VOMoneyPersonalizationOption
@interface VOMoneyPersonalizationOption : VOPersonalizationOption
VOMoneyPersonalizationOption represents a VOVoucher customization which enables the user to add a monetary component to the VOMutableVoucher. 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.Declaration
Objective-C
@property (readonly, nonatomic) NSDictionary<NSString *, NSArray<VOMerchant *> *> *merchantsPerCountry;Swift
var merchantsPerCountry: [String : [VOMerchant]]! { get } -
List of merchants to be highlighted in the VOGiftCardPickerViewController.
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.Declaration
Objective-C
@property (readonly, nonatomic) NSArray<VOMerchant *> *featuredMerchants;Swift
var featuredMerchants: [VOMerchant]! { get } -
Theme used on the
VOActionSheetViewControllerwhen the user is selecting a country.Note
Default isVOConfigdefaultTheme. -
Theme used on the
VOProductDetailsViewControllerwhen the user selects aVOMerchant.Note
Default isVOConfigdefaultTheme. -
Creates a VOMerchant personalization option with the values from the builder. Internally calls initWithBuilder.
Declaration
Objective-C
+ (instancetype)moneyPersonalizationOptionWithBuilderBlock: (void (^)(VOMoneyPersonalizationOptionBuilder *))builderBlock;Swift
convenience init!(builderBlock: ((VOMoneyPersonalizationOptionBuilder?) -> Void)!)Parameters
builderBlock- the builder block with specified values for each property.
Return Value
instancetype - MerchantPersonalizationOption object.
View on GitHub
VOMoneyPersonalizationOption Class Reference