Constructor
new Coupon(data) → {void}
Coupon Constructor.
Coupon Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Members
(static, constant) CUSTOMER_SCOPE_ALL_LOGGED_IN
Constant CUSTOMER_SCOPE_ALL_LOGGED_IN
.Constant CUSTOMER_SCOPE_ALL_LOGGED_IN
(static, constant) CUSTOMER_SCOPE_ALL_SHOPPERS
Constant CUSTOMER_SCOPE_ALL_SHOPPERS
.Constant CUSTOMER_SCOPE_ALL_SHOPPERS
(static, constant) CUSTOMER_SCOPE_SPECIFIC_CUSTOMERS
Constant CUSTOMER_SCOPE_SPECIFIC_CUSTOMERS
.Constant CUSTOMER_SCOPE_SPECIFIC_CUSTOMERS
Methods
getActive() → {boolean}
Get active.
Get active.
Returns:
- Type
- boolean
getCode() → {string}
Get code.
Get code.
Returns:
- Type
- string
getCustomerScope() → {string}
Get custscope.
Get custscope.
Returns:
- Type
- string
getDateTimeEnd() → {number}
Get dt_end.
Get dt_end.
Returns:
- Type
- number
getDateTimeStart() → {number}
Get dt_start.
Get dt_start.
Returns:
- Type
- number
getDescription() → {string}
Get descrip.
Get descrip.
Returns:
- Type
- string
getId() → {number}
Get id.
Get id.
Returns:
- Type
- number
getMaxPer() → {number}
Get max_per.
Get max_per.
Returns:
- Type
- number
getMaxUse() → {number}
Get max_use.
Get max_use.
Returns:
- Type
- number
getUseCount() → {number}
Get use_count.
Get use_count.
Returns:
- Type
- number
setActive(active) → {Coupon}
Set active.
Set active.
Parameters:
Name | Type | Description |
---|---|---|
active |
boolean |
Returns:
- Type
- Coupon
setCode(code) → {Coupon}
Set code.
Set code.
Parameters:
Name | Type | Description |
---|---|---|
code |
string |
Returns:
- Type
- Coupon
setCustomerScope(customerScope) → {Coupon}
Set custscope.
Set custscope.
Parameters:
Name | Type | Description |
---|---|---|
customerScope |
string |
Returns:
- Type
- Coupon
setDateTimeEnd(dateTimeEnd) → {Coupon}
Set dt_end.
Set dt_end.
Parameters:
Name | Type | Description |
---|---|---|
dateTimeEnd |
Date | number |
Returns:
- Type
- Coupon
setDateTimeStart(dateTimeStart) → {Coupon}
Set dt_start.
Set dt_start.
Parameters:
Name | Type | Description |
---|---|---|
dateTimeStart |
Date | number |
Returns:
- Type
- Coupon
setDescription(description) → {Coupon}
Set descrip.
Set descrip.
Parameters:
Name | Type | Description |
---|---|---|
description |
string |
Returns:
- Type
- Coupon
setMaxPer(maxPer) → {Coupon}
Set max_per.
Set max_per.
Parameters:
Name | Type | Description |
---|---|---|
maxPer |
number |
Returns:
- Type
- Coupon
setMaxUse(maxUse) → {Coupon}
Set max_use.
Set max_use.
Parameters:
Name | Type | Description |
---|---|---|
maxUse |
number |
Returns:
- Type
- Coupon