RecipientPersonalizationOption
@interface RecipientPersonalizationOption : PersonalizationOption
RecipientPersonalizationOption represents a Voucher customization which will be available to the user to add a recipient to the MutableVoucher. Instantiate a RecipientPersonalizationOption if you would like the user to be able to add a recipient to their Voucher.
*
-
Allow the user to enable race mode for their
Voucher
(multiple users will compete to unlock the voucher).Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canMakeItARace;
Swift
var canMakeItARace: Bool { get }
-
Allow the user to set an unwrap date
Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canChangeUnwrapDate;
Swift
var canChangeUnwrapDate: Bool { get }
-
Allow the user to send the gift to an email address.
Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canSendToEmail;
Swift
var canSendToEmail: Bool { get }
-
Allow the user to send the gift to a phone number.
Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canSendToPhoneNumber;
Swift
var canSendToPhoneNumber: Bool { get }
-
Enum to decide how phone numbers are formatted in the Gift Tag
Note
Default is VouchrPhoneNumberFormatNationalDeclaration
Objective-C
@property (readonly, nonatomic) VouchrPhoneNumberFormat phoneNumberFormat;
Swift
var phoneNumberFormat: VouchrPhoneNumberFormat { get }
-
Set to true if users that have not registered should appear in the friends list.
Note
Default is set to NO.Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL shouldDisplayPendingUsersInFriendsList;
Swift
var shouldDisplayPendingUsersInFriendsList: Bool { get set }
-
Groups of users that the creator can send the Voucher to. The key of the dictionary is displayed in the header of each group.
Note
Default is nil. If nil is passed in, a request will be made to get the creator’s friends from the Vouchr server if they are logged in. -
Creates a Recipient personalization option with the values from the builder. Internally calls initWithBuilder.
Declaration
Objective-C
+ (instancetype)recipientPersonalizationOptionWithBuilderBlock: (void (^)(RecipientPersonalizationOptionBuilder *))builderBlock;
Swift
convenience init!(builderBlock: ((RecipientPersonalizationOptionBuilder?) -> Void)!)
Parameters
builderBlock
- the builder block with specified values for each property.
Return Value
instancetype - RecipientPersonalizationOption object.