VOPaymentInfo
@interface VOPaymentInfo : NSObject
VOPaymentInfo
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
VOPaymentInfo
.Declaration
Objective-C
@property (readonly, strong, nonatomic) NSString *_Nonnull paymentId;
Swift
var paymentId: String { get }
-
Information for this payment related specifically to this
VOVoucher
.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSDictionary *voucherInfo;
Swift
var voucherInfo: [AnyHashable : Any]? { get }
-
Information for this payment related specifically to this
VOUser
.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
VOMerchant
.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
VOPaymentInfo
from a dictionary.Declaration
Objective-C
+ (nonnull VOPaymentInfo *)paymentInfoFromDictionary: (nonnull NSDictionary *)dictionary;
Swift
/*not inherited*/ init(from dictionary: [AnyHashable : Any])
Parameters
dictionary
- dictionary form of the
VOPaymentInfo
.Return Value
Instance of
VOPaymentInfo
. -
Converts a
VOPaymentInfo
to 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
VOPaymentInfo
.