VOPromo

@interface VOPromo : NSObject

typedef NS_ENUM(NSInteger, VOPromoStatus){
    VOPromoStatusUnknown,
    VOPromoStatusActive,
    VOPromoStatusCancelled,
    VOPromoStatusUnstarted,
    VOPromoStatusExpired,
    VOPromoStatusExhausted,
    VOPromoStatusClaimed,
    VOPromoStatusRequired,
};

typedef NS_ENUM(NSInteger, VOPromoType){
    VOPromoTypeUnknown,
    VOPromoTypeOffers,
    VOPromoTypeSponsoredGift,
    VOPromoTypeReward
};

@property (nonatomic) NSString * promoId;
@property (nonatomic) NSString * code;

@property (nonatomic) NSString * title;
@property (nonatomic) double amount;
@property (nonatomic) NSString * formattedAmount;
@property (nonatomic) NSString * currency;
@property (nonatomic) NSString * photoUrl;
@property (nonatomic) NSString * hashTag;
@property (nonatomic) NSString * promoDescription;
@property (nonatomic) NSString * shareMessage;
@property (nonatomic) VOPromoType type;
@property (nonatomic) VOMerchant * merchant; // Who is sponsoring the promo

@property (nonatomic) VOGameData * gameData;
@property (nonatomic) VOWrappingPaperMedia * wrappingPaper;

@property (nonatomic) VOPromoStatus status;         //status relative to user (claimed, upgrade etc)
@property (nonatomic) VOPromoStatus ongoingStatus;  //status of promo apart from user

@property (nonatomic) NSInteger limit;
@property (nonatomic) NSDate * dateStarts;
@property (nonatomic) NSDate * dateEnds;
@property (nonatomic) NSDate * dateClaimable;

@property (nonatomic) NSString *errorDisplayTitle;
@property (nonatomic) NSString *errorDisplayMessage;

@property (nonatomic) BOOL isSurpriiseMode;

@property (nonatomic) NSArray <VOVoucherMedia *> *medias;

+ (VOPromo*)promoFromNSDictionary:(NSDictionary*)dictionary;
- (NSDictionary *)dictionaryRepresentation;

@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString * promoId

    Swift

    var promoId: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString * code

    Swift

    var code: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString * title

    Swift

    var title: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) double amount

    Swift

    var amount: Double { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString * formattedAmount

    Swift

    var formattedAmount: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString * currency

    Swift

    var currency: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString * photoUrl

    Swift

    var photoUrl: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString * hashTag

    Swift

    var hashTag: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString * promoDescription

    Swift

    var promoDescription: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString * shareMessage

    Swift

    var shareMessage: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) VOPromoType type

    Swift

    var type: VOPromoType { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) VOMerchant * merchant

    Swift

    var merchant: VOMerchant! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) VOGameData * gameData

    Swift

    var gameData: VOGameData! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) VOWrappingPaperMedia * wrappingPaper

    Swift

    var wrappingPaper: VOWrappingPaperMedia! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) VOPromoStatus status

    Swift

    var status: VOPromoStatus { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) VOPromoStatus ongoingStatus

    Swift

    var ongoingStatus: VOPromoStatus { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSInteger limit

    Swift

    var limit: Int { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSDate * dateStarts

    Swift

    var dateStarts: Date! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSDate * dateEnds

    Swift

    var dateEnds: Date! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSDate * dateClaimable

    Swift

    var dateClaimable: Date! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString *errorDisplayTitle

    Swift

    var errorDisplayTitle: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSString *errorDisplayMessage

    Swift

    var errorDisplayMessage: String! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL isSurpriiseMode

    Swift

    var isSurpriiseMode: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSArray <VOVoucherMedia *> *medias

    Swift

    var medias: [VOVoucherMedia]! { get set }
  • Undocumented

    Declaration

    Objective-C

    + (VOPromo*)promoFromNSDictionary:(NSDictionary*)dictionary;

    Swift

    /*not inherited*/ init!(from dictionary: [AnyHashable : Any]!)
  • Undocumented

    Declaration

    Objective-C

    - (NSDictionary *)dictionaryRepresentation;

    Swift

    func dictionaryRepresentation() -> [AnyHashable : Any]!