PaymentInfo
@interface PaymentInfo : NSObject
PaymentInfo contains data related to a part of the payment process.
-
The type of payment
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull type;Swift
var type: String { get } -
The module of payment
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull module;Swift
var module: String { get } -
A unique id associated with each
PaymentInfo.Declaration
Objective-C
@property (readonly, strong, nonatomic) NSString *_Nonnull paymentId;Swift
var paymentId: String { get } -
Information for this payment related specifically to this
Voucher.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSDictionary *voucherInfo;Swift
var voucherInfo: [AnyHashable : Any]? { get } -
Information for this payment related specifically to this
User.Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSDictionary *userInfo;Swift
var userInfo: [AnyHashable : Any]? { get set } -
Information for this payment related specifically to this
Merchant.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSDictionary *merchantInfo;Swift
var merchantInfo: [AnyHashable : Any]? { get } -
Whether the payment is cashless.
Declaration
Objective-C
@property (readonly, nonatomic) BOOL isCashless;Swift
var isCashless: Bool { get } -
Default Initializer for
PaymentInfofrom a dictionary.Declaration
Objective-C
+ (nonnull PaymentInfo *)paymentInfoFromDictionary: (nonnull NSDictionary *)dictionary;Swift
/*not inherited*/ init(from dictionary: [AnyHashable : Any])Parameters
dictionary- dictionary form of the
PaymentInfo.Return Value
Instance of
PaymentInfo. -
Converts a
PaymentInfoto an NSDictionary that can be used for caching or sending to the server.Declaration
Objective-C
- (nonnull NSDictionary *)dictionaryRepresentation;Swift
func dictionaryRepresentation() -> [AnyHashable : Any]Return Value
dictionary - Dictionary form of a
PaymentInfo.
View on GitHub
PaymentInfo Class Reference