VOMutableVoucher
@interface VOMutableVoucher : VOVoucherVOMutableVoucher is the mutable model that represents the bundle of personalizations.
- 
                  
                  The status of the VOVoucher. SeeVOVoucherStatusfor all the possible states.DeclarationObjective-C @property (assign, readwrite, nonatomic) VOVoucherStatus status;Swift var status: VOVoucherStatus { get set }
- 
                  
                  The amount that is given to the VOUser.DeclarationObjective-C @property (assign, readwrite, nonatomic) double amount;Swift var amount: Double { get set }
- 
                  
                  The fee associated with the given amount. DeclarationObjective-C @property (assign, readwrite, nonatomic) double fee;Swift var fee: Double { get set }
- 
                  
                  The currency of the VOVoucher. Eg. USD.DeclarationObjective-C @property (readwrite, strong, nonatomic, nullable) NSString *currency;Swift var currency: String? { get set }
- 
                  
                  The merchant associated with the VOVoucher. Eg. Paypal.DeclarationObjective-C @property (readwrite, strong, nonatomic, nullable) VOMerchant *merchant;Swift var merchant: VOMerchant? { get set }
- 
                  
                  The payment info provided by the Sender of the VOVoucher.DeclarationObjective-C @property (readwrite, strong, nonatomic, nullable) VOVoucherPayment *paymentInfo;Swift var paymentInfo: VOVoucherPayment? { get set }
- 
                  
                  Require a thank you photo to be taken by the claimer of the VOVoucherbefore they are able to claim it.DeclarationObjective-C @property (assign, readwrite, nonatomic) BOOL isThankYouPhotoRequired;Swift var isThankYouPhotoRequired: Bool { get set }
- 
                  
                  The date the thank you photo was taken for a VOVoucher.DeclarationObjective-C @property (assign, readwrite, nonatomic, nullable) NSDate *thankYouDate;Swift var thankYouDate: Date? { get set }
- 
                  
                  The date the VOVoucherwas created. This date will never change.DeclarationObjective-C @property (readwrite, strong, nonatomic) NSDate *_Nonnull dateCreated;Swift var dateCreated: Date { get set }
- 
                  
                  The date the VOVoucheris first able to be claimed. This date will never change.DeclarationObjective-C @property (readwrite, strong, nonatomic) NSDate *_Nonnull dateClaimable;Swift var dateClaimable: Date { get set }
- 
                  
                  Any user ids who have unwrapped the VOVoucher.DeclarationObjective-C @property (readwrite, strong, nonatomic, nullable) NSArray<NSNumber *> *unwrappedUsers;Swift var unwrappedUsers: [NSNumber]? { get set }
- 
                  
                  TODO: this property DeclarationObjective-C @property (readwrite, strong, nonatomic, nullable) NSString *shareImageUrl;Swift var shareImageUrl: String? { get set }
- 
                  
                  The privacy status of the VOVoucher. Either Private / Friends / Public.DeclarationObjective-C @property (assign, readwrite, nonatomic) VOVoucherPrivacyStatus privacy;Swift var privacy: VOVoucherPrivacyStatus { get set }
- 
                  
                  The game the Usermust play to claim theVOVoucher.DeclarationObjective-C @property (readwrite, strong, nonatomic) VOGameData *_Nonnull gameData;Swift var gameData: VOGameData { get set }
- 
                  
                  An array of all media items. This includes pictures, videos, sounds, notes. Customizable by the user when sending the VOVoucher.DeclarationObjective-C @property (readwrite, strong, nonatomic, nullable) NSArray<VOVoucherMedia *> *medias;Swift var medias: [VOVoucherMedia]? { get set }
- 
                  
                  The wrapping paper that shows up on the envelope before the VOVoucherhas been claimed.DeclarationObjective-C @property (readwrite, strong, nonatomic, nullable) VOWrappingPaperMedia *wrappingPaperMedia;Swift var wrappingPaperMedia: VOWrappingPaperMedia? { get set }
- 
                  
                  Default initializer to create a VOMutableVoucher.DeclarationObjective-C - (nonnull instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary;Swift init(dictionary: [AnyHashable : Any])Parametersdictionary- the dictionary representation of the the VOMutableVoucher.Return Valueinstance of VOMutableVoucher.
- 
                  
                  Static initializer to create a VOMutableVoucher.DeclarationObjective-C + (nonnull instancetype)mutableVoucherWithDictionary: (nonnull NSDictionary *)dictionary;Parametersdictionary- the dictionary representation of the the VOMutableVoucher.Return Valueinstance of VOMutableVoucher.
- 
                  
                  Static initializer to create a VOMutableVoucherfrom anotherVOVoucher. All properties of the VOVoucher will be copied to theVOMutableVoucher.DeclarationObjective-C + (nonnull instancetype)mutableVoucherWithVoucher:(nonnull VOVoucher *)voucher;Swift convenience init(voucher: VOVoucher)Parametersvoucher- VOVoucher used to create the VOMutableVoucher.Return Valueinstance of VOMutableVoucher.
- 
                  
                  Copies the contents of a preexisting voucher into the current voucher DeclarationObjective-C - (void)replaceVoucherContents:(nonnull VOMutableVoucher *)mutableVoucher;Swift func replaceContents(_ mutableVoucher: VOMutableVoucher)ParametersmutableVoucher- the source voucher to copy contents from 
- 
                  
                  Adds a media object to the VOVoucherMediaarray. If no id is set on theVOVoucherMediaitem, an id will be given.DeclarationObjective-C - (void)addMedia:(nonnull VOVoucherMedia *)media;Swift func addMedia(_ media: VOVoucherMedia)Parametersmedia- The media item to add to the array. 
- 
                  
                  Removes a media object from the VOVoucherMediaarray. If no id is set on theVOVoucherMediaitem, an id will be given.DeclarationObjective-C - (void)removeMedia:(nonnull VOVoucherMedia *)media;Swift func removeMedia(_ media: VOVoucherMedia)Parametersmedia- The media item to be removed from the array 
- 
                  
                  Removes a VOPersonalizationOptioncreation item from theVOVoucher.DeclarationObjective-C - (void)removeCreationObjectFromVoucher: (nonnull VOCreationItemView *)creationItem;Swift func removeCreationObject(fromVoucher creationItem: VOCreationItemView)ParameterscreationItem- The creation item of a VOPersonalizationOptionto be removed from theVOVoucher.
- 
                  
                  Clears the VOPersonalizationOptioncontents of aVOMutableVoucher. Does not modifyVOVoucherspecific properties such as vId and status.DeclarationObjective-C - (void)clearMutableVoucherData;Swift func clearData()
 View on GitHub
            View on GitHub
           VOMutableVoucher Class Reference
      VOMutableVoucher Class Reference