OPPBankAccount
@interface OPPBankAccount : NSObject
Class to encapsulate shopper’s bank account details that have been tokenized.
-
The name of the bank account holder.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull holder;
Swift
var holder: String { get set }
-
The IBAN (International Bank Account Number) associated with the bank account.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull IBAN;
Swift
var iban: String { get set }
-
Creates an
OPPBankAccount
object from the JSON.Declaration
Objective-C
+ (nullable instancetype)bankAccountFromJSON:(nonnull NSDictionary *)JSON;
Swift
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 with the provided values.Declaration
Objective-C
+ (nullable instancetype)bankAccountWithHolder:(nonnull NSString *)holder IBAN:(nonnull NSString *)IBAN;
Parameters
holder
The name of the bank account holder.
IBAN
The IBAN (International Bank Account Number) associated with the bank account.
Return Value
Returns an
OPPBankAccount
object, ornil
if parameters are empty. -
Creates an
OPPBankAccount
object with the provided values.Declaration
Objective-C
- (nullable instancetype)initWithHolder:(nonnull NSString *)holder IBAN:(nonnull NSString *)IBAN;
Swift
init?(holder: String, iban IBAN: String)
Parameters
holder
The name of the bank account holder.
IBAN
The IBAN (International Bank Account Number) associated with the bank account.
Return Value
Returns an
OPPBankAccount
object, ornil
if parameters are empty.