PromoCodeContent

PromoCodeContent

# new PromoCodeContent()

Methods

# (static) withCode(code) → {PromoCodeContent}

Create a Promo Code with defined code.
Parameters:
Name Type Description
code string Code to be used as promo code.
Returns:
- New promo code content instance.
Type
PromoCodeContent

# (static) withRandomCode() → {PromoCodeContent}

Create a Promo Code with a random code.
Returns:
New promo code content instance.
Type
PromoCodeContent

# setTimeLimit(startDate, endDate) → {PromoCodeContent}

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.
Parameters:
Name Type Description
startDate number Date when the Promo Code should become available.
endDate number Date when the Promo Code should not be available anymore.
Returns:
Same instance.
Type
PromoCodeContent