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.

Money Personalization *

  • 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<Merchant *> *> *merchantsPerCountry;

    Swift

    var merchantsPerCountry: [String : [Merchant]]! { get }
  • 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.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSArray<Merchant *> *featuredMerchants;

    Swift

    var featuredMerchants: [Merchant]! { get }
  • Theme used on the VouchrActionSheetViewController when the user is selecting a country.

    Note

    Default is VouchrConfig defaultTheme.

    Declaration

    Objective-C

    @property (readonly, nonatomic) VouchrTheme *actionSheetTheme;

    Swift

    var actionSheetTheme: VouchrTheme! { get }
  • Theme used on the ProductDetailsViewController when the user selects a Merchant.

    Note

    Default is VouchrConfig defaultTheme.

    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.