GetSocialPromoCodeBuilder Class Reference

Inherits from NSObject
Declared in GetSocialPromoCodeBuilder.h

Properties and Methods

+ withRandomCode

Create a Promo Code with a random code.

+ (instancetype)withRandomCode

Return Value

new builder instance.

Declared In

GetSocialPromoCodeBuilder.h

+ withCode:

Create a Promo Code with defined code.

+ (instancetype)withCode:(NSString *)code

Parameters

code

code to be used as promo code.

Return Value

new builder instance.

Declared In

GetSocialPromoCodeBuilder.h

– addDataValue:forKey:

Attach some custom data to the promo code.

- (void)addDataValue:(NSString *)value forKey:(NSString *)key

Parameters

value

Data value.

key

Data key.

Declared In

GetSocialPromoCodeBuilder.h

– addData:

Attach some custom data to the promo code.

- (void)addData:(NSDictionary<NSString*,NSString*> *)data

Parameters

data

Custom data.

Declared In

GetSocialPromoCodeBuilder.h

– setTimeLimitWithStartDate:endDate:

Set the time range when this Promo Code is available. If not set - will be available from the creation moment and until manually disabled on the Dashboard.

- (void)setTimeLimitWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate

Parameters

startDate

Date when the Promo Code should become available.

endDate

Date when the Promo Code should not be available anymore.

Declared In

GetSocialPromoCodeBuilder.h

– setMaxClaimCount:

The maximum number of times this code can be claimed. All the next attempts will receive an error. If 0 then no limits.

- (void)setMaxClaimCount:(uint)maxClaimCount

Parameters

maxClaimCount

Maximum claim times.

Declared In

GetSocialPromoCodeBuilder.h