PaymentMerchantInfo
@interface PaymentMerchantInfo : NSObject
PaymentMerchantInfo contains all the information related to a specific payment object inside a Merchant.
-
The type associated with the
PaymentMerchantInfo.Declaration
Objective-C
@property (readonly, nonatomic) PaymentMerchantInfoType type;Swift
var type: PaymentMerchantInfoType { get } -
The name of the
PaymentMerchantInfo.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
PaymentMerchantInfo. 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
PaymentMerchantInfo.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
PaymentMerchantInfo.Declaration
Objective-C
@property (readonly, nonatomic) double minValue;Swift
var minValue: Double { get } -
The maximum value supported by this
PaymentMerchantInfo.Declaration
Objective-C
@property (readonly, nonatomic) double maxValue;Swift
var maxValue: Double { get } -
A list of products supported by this
PaymentMerchantInfoinstead 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<MerchantProduct *> *fixedProducts;Swift
var fixedProducts: [MerchantProduct]? { get } -
An internal id for each
PaymentMerchantInfo. 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
PaymentMerchantInfowhich parses values from a dictionary.Declaration
Objective-C
+ (nonnull PaymentMerchantInfo *)paymentMerchantInfoFromDictionary: (nonnull NSDictionary *)dictionary;Swift
/*not inherited*/ init(from dictionary: [AnyHashable : Any])Parameters
dictionary- The dictionary form of
PaymentMerchantInfo.Return Value
Instance of
PaymentMerchantInfo. -
Converts a
PaymentMerchantInfoto 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
PaymentMerchantInfo.
View on GitHub
PaymentMerchantInfo Class Reference