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
. SeeVOVoucherStatus
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 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 }
-
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
.