OPPVirtualAccount
@objc
public final class OPPVirtualAccount : NSObject
Class to encapsulate shopper’s virtual account details that have been tokenized.
-
The name of virtual account holder.
Declaration
Swift
@objc public var holder: String? -
The identifier of the virtual account.
Declaration
Swift
@objc public var accountId: String
-
Creates an
OPPVirtualAccountobject with the provided values.Declaration
Swift
@objc public init?(holder: String?, accountId: String)Parameters
holderThe name of virtual account holder.
accountIdThe identifier of the virtual account.
Return Value
Returns an
OPPVirtualAccountobject, ornilif parameters are empty. -
Creates an
OPPVirtualAccountobject from the JSON.Declaration
Swift
@objc public convenience init?(fromJSON JSON: [AnyHashable : Any])Parameters
JSONA dictionary with parameters received from the Server.
Return Value
Returns an
OPPVirtualAccountobject, ornilif JSON contains invalid values. -
Creates an
OPPVirtualAccountobject from the JSON.Declaration
Swift
@objc public static func virtualAccount(fromJSON JSON: [AnyHashable : Any]) -> `Self`?Parameters
JSONA dictionary with parameters received from the Server.
Return Value
Returns an
OPPVirtualAccountobject, ornilif JSON contains invalid values. -
Creates an
OPPVirtualAccountobject with the provided values.Declaration
Swift
@objc public static func virtualAccount(withHolder holder: String?, accountId: String) -> Self?Parameters
holderThe name of virtual account holder.
accountIdThe identifier of the virtual account.
Return Value
Returns an
OPPVirtualAccountobject, ornilif parameters are empty.
OPPVirtualAccount Class Reference