VOPaymentMerchantInfo
@interface VOPaymentMerchantInfo : NSObject
VOPaymentMerchantInfo
contains all the information related to a specific payment object inside a VOMerchant
.
-
The type associated with the
VOPaymentMerchantInfo
.Declaration
Objective-C
@property (readonly, nonatomic) VOPaymentMerchantInfoType type;
Swift
var type: VOPaymentMerchantInfoType { get }
-
The module associated with the
VOPaymentMerchantInfo
.Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull module;
Swift
var module: String { get }
-
The name of the
VOPaymentMerchantInfo
.Declaration
Objective-C
@property (readonly, strong, nonatomic) NSString *_Nonnull name;
Swift
var name: String { get }
-
The company photo url.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *photoUrl;
Swift
var photoUrl: String? { get }
-
An external id for each
VOPaymentMerchantInfo
. This id will be unique.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *externalId;
Swift
var externalId: String? { get }
-
A list of supported curriences.
Declaration
Objective-C
@property (readonly, strong, nonatomic) NSArray<NSString *> *_Nonnull currencies;
Swift
var currencies: [String] { get }
-
A preview image for the monetary value. Usually a gift card / credit card.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *giftCardPreviewImageUrl;
Swift
var giftCardPreviewImageUrl: String? { get }
-
A description of the
VOPaymentMerchantInfo
.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *paymentMerchantInfoDescription;
Swift
var paymentMerchantInfoDescription: String? { get }
-
The user must print something to redeem the monetary value.
Declaration
Objective-C
@property (readonly, nonatomic) BOOL mustPrintToRedeem;
Swift
var mustPrintToRedeem: Bool { get }
-
The minimum value supported by this
VOPaymentMerchantInfo
.Declaration
Objective-C
@property (readonly, nonatomic) double minValue;
Swift
var minValue: Double { get }
-
The maximum value supported by this
VOPaymentMerchantInfo
.Declaration
Objective-C
@property (readonly, nonatomic) double maxValue;
Swift
var maxValue: Double { get }
-
A list of products supported by this
VOPaymentMerchantInfo
instead of a minimum and maximum values. Eg. XBox Membership for 3 month / 6 month / 12 month.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSArray<VOMerchantProduct *> *fixedProducts;
Swift
var fixedProducts: [VOMerchantProduct]? { get }
-
An internal id for each
VOPaymentMerchantInfo
. This id will be unique.Declaration
Objective-C
@property (readonly, strong, nonatomic) NSString *_Nonnull brandId;
Swift
var brandId: String { get }
-
Legal disclaimer text that will be displayed to the user.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *legalDisclaimer;
Swift
var legalDisclaimer: String? { get }
-
Terms and Conditions text that will be displayed to the user.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *termsAndConditions;
Swift
var termsAndConditions: String? { get }
-
Card Holder Agreement Url that will be a link for the user.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *cardHolderAgreementUrlString;
Swift
var cardHolderAgreementUrlString: String? { get }
-
Default Initializer for
VOPaymentMerchantInfo
which parses values from a dictionary.Declaration
Objective-C
+ (nonnull VOPaymentMerchantInfo *)paymentMerchantInfoFromDictionary: (nonnull NSDictionary *)dictionary;
Swift
/*not inherited*/ init(from dictionary: [AnyHashable : Any])
Parameters
dictionary
- The dictionary form of
VOPaymentMerchantInfo
.Return Value
Instance of
VOPaymentMerchantInfo
. -
Converts a
VOPaymentMerchantInfo
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
VOPaymentMerchantInfo
.