OPPBankAccount
@objc
public final class OPPBankAccount : NSObject
Class to encapsulate shopper’s bank account details that have been tokenized.
-
The name of the bank account holder.
Declaration
Swift
@objc public var holder: String
-
The IBAN (International Bank Account Number) associated with the bank account.
Declaration
Swift
@objc public var iban: String
-
Creates an
OPPBankAccount
object with the provided values.- holder: The name of the bank account holder.
- iban: The IBAN (International Bank Account Number) associated with the bank account.
Declaration
Swift
@objc public init?(holder: String, iban: String)
Return Value
Returns an
OPPBankAccount
object, ornil
if parameters are empty. -
Creates an
OPPBankAccount
object from the JSON.Declaration
Swift
@objc public convenience init?(fromJSON JSON: [AnyHashable : Any])
Parameters
JSON
A dictionary with parameters received from the Server.
Return Value
Returns an
OPPBankAccount
object, ornil
if JSON contains invalid values. -
Creates an
OPPBankAccount
object from the JSON.Declaration
Swift
@objc public static func bankAccount(fromJSON JSON: [AnyHashable : Any]) -> `Self`?
Parameters
JSON
A dictionary with parameters received from the Server.
Return Value
Returns an
OPPBankAccount
object, ornil
if JSON contains invalid values. -
Creates an
OPPBankAccount
object with the provided values.- holder: The name of the bank account holder.
- IBAN: The IBAN (International Bank Account Number) associated with the bank account.
Declaration
Swift
@objc public static func bankAccount(withHolder holder: String, iban: String) -> `Self`?
Return Value
Returns an
OPPBankAccount
object, ornil
if parameters are empty.