#import <EventPromocode.h>
- (id) initWithDictionary: |
|
(NSDictionary *) |
dictionary |
|
Factory method to create a Event Promocode object from an dictionary
- Parameters
-
NSDictionary | *dictionary - associative dictionary of initial properties to set |
- Returns
- EventPromocode
+ (EventPromocode *) promocodeWithDictionary: |
|
(NSDictionary *) |
dictionary |
|
REQUIRED. Name of the promotional code visible to registrants, between 4 - 12 characters, cannot contain spaces or special character (_ is OK); each code_name must be unique
- (double) discountAmount |
|
readwritenonatomicassign |
Specifies a fixed discount amount, minimum of 0.01, is required when code_type = DISCOUNT, but not using discount_percent
- (int) discountPercentage |
|
readwritenonatomicassign |
Specifies a discount percentage, from 1% - 100%, is required when code_type = DISCOUNT, but not using discount_amount
- (NSString*) discountScope |
|
readwritenonatomicstrong |
- (NSString*) discoutType |
|
readnonatomicstrong |
- (NSMutableArray*) feeIds |
|
readwritenonatomicstrong |
Identifies the fees to which the promocode applies;
REQUIRED. When set to true, promocode cannot be redeemed; when false, promocode can be redeemed; default = false.
Enumeration class that contains valid options for the code type element
Enumeration class that contains valid options for the discount scope element
Enumeration class that contains valid options for the discount type element
- (NSString*) promocodeId |
|
readnonatomicstrong |
Unique ID for the event promotional code
Enumeration class that contains valid options for the status element
- (int) quantityAvailable |
|
readnonatomicassign |
Number of promocodes available for redemption; -1 = unlimited
REQUIRED. Total number of promocodes available for redemption; -1 = unlimited.
Number of promocodes that have been redeemed; starts at 0
The documentation for this class was generated from the following files:
- /Users/grigorievs/Documents/work/Code/constantcontact/ios-sdk/CTCTWrapper/Components/EventSpot/EventPromocode.h
- /Users/grigorievs/Documents/work/Code/constantcontact/ios-sdk/CTCTWrapper/Components/EventSpot/EventPromocode.m