VOFeedVoucher

@interface VOFeedVoucher : NSObject

VOFeedVoucher is a light version of the VOVoucher. It is used for paging through long lists of vouchers such as the user’s sent and recieved vouchers.

  • The voucherId represented by this voucher;

    Declaration

    Objective-C

    @property (readonly, nonatomic) long long voucherId;

    Swift

    var voucherId: Int64 { get }
  • The status of the VOVoucher. See VOVoucherStatus for all the possible states.

    Declaration

    Objective-C

    @property (readonly, nonatomic) VOVoucherStatus status;

    Swift

    var status: VOVoucherStatus { get }
  • The date the VOVoucher was created. This date will never change.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSDate *_Nonnull dateCreated;

    Swift

    var dateCreated: Date { get }
  • The creator of the VOVoucher.

    Declaration

    Objective-C

    @property (readonly, nonatomic) VOUser *_Nonnull creator;

    Swift

    var creator: VOUser { get }
  • Any VOUsers who are able to claim the VOVoucher before it has been claimed.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSArray<VOUser *> *_Nonnull recipients;

    Swift

    var recipients: [VOUser] { get }
  • The title of the VOVoucher. Customizable by the user when creating the VOVoucher.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *title;

    Swift

    var title: String? { get }
  • The amount that is given to the VOUser.

    Declaration

    Objective-C

    @property (readonly, nonatomic) double amount;

    Swift

    var amount: Double { get }
  • The currency of the gift. Eg. USD.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *currency;

    Swift

    var currency: String? { get }
  • The merchant associated with the VOVoucher. Eg. Paypal.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *merchantName;

    Swift

    var merchantName: String? { get }
  • The payment info provided by the Sender of the gift.

    Declaration

    Objective-C

    @property (readonly, nonatomic) VOPaymentMerchantInfoType paymentDestinationType;

    Swift

    var paymentDestinationType: VOPaymentMerchantInfoType { get }
  • A preview image for the monetary value. Usually a gift card / credit card.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull giftCardPreviewImageUrl;

    Swift

    var giftCardPreviewImageUrl: String { get }
  • The VOWrappingPaperMedia the gift package’s wrapping paper.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        VOWrappingPaperMedia *_Nonnull wrappingPaperMedia;

    Swift

    var wrappingPaperMedia: VOWrappingPaperMedia { get }
  • The game the VOUser must play to claim the VOVoucher.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) VOGameData *gameData;

    Swift

    var gameData: VOGameData? { get }
  • Default initializer to create a VOFeedVoucher.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary;

    Swift

    init(dictionary: [AnyHashable : Any])

    Parameters

    dictionary

    - the dictionary representation of the the VOFeedVoucher.

    Return Value

    instance of VOFeedVoucher.