MoneyPersonalizationOption
@interface MoneyPersonalizationOption : PersonalizationOption
MoneyPersonalizationOption represents a Voucher customization which enables the user to add a monetary component to the MutableVoucher. The default implementation of this personalization is a Gift Card Mall. Override this personalization if a custom payment technology is desired.
*
-
A dictionary of participating countries. The key is the 2-letter ISO country code. The value is the name of the country.
Note
Default is @{@US
: @United States
}.Declaration
Objective-C
@property (readonly, nonatomic) NSDictionary<NSString *, NSString *> *countryAbbreviationsMap;Swift
var countryAbbreviationsMap: [String : String]! { get } -
A dictionary of merchants available for a particular country. The key is the 2-letter ISO country code. The values are all the participating merchants for that country.
Note
Default is nil. If nil is passed in, a request will be made to the Vouchr server to get the list of merchants. -
List of merchants to be highlighted in the GiftCardPickerViewController.
Note
Default is nil. If nil is passed in, a request will be made to the Vouchr server to get the list of featured merchants. -
Theme used on the
VouchrActionSheetViewControllerwhen the user is selecting a country.Note
Default isVouchrConfigdefaultTheme.Declaration
Objective-C
@property (readonly, nonatomic) VouchrTheme *actionSheetTheme;Swift
var actionSheetTheme: VouchrTheme! { get } -
Theme used on the
ProductDetailsViewControllerwhen the user selects aMerchant.Note
Default isVouchrConfigdefaultTheme.Declaration
Objective-C
@property (readonly, nonatomic) VouchrTheme *productDetailsTheme;Swift
var productDetailsTheme: VouchrTheme! { get } -
Creates a Merchant personalization option with the values from the builder. Internally calls initWithBuilder.
Declaration
Objective-C
+ (instancetype)moneyPersonalizationOptionWithBuilderBlock: (void (^)(MoneyPersonalizationOptionBuilder *))builderBlock;Swift
convenience init!(builderBlock: ((MoneyPersonalizationOptionBuilder?) -> Void)!)Parameters
builderBlock- the builder block with specified values for each property.
Return Value
instancetype - MerchantPersonalizationOption object.
View on GitHub
MoneyPersonalizationOption Class Reference