Class: Coupon

Model~Coupon(data) → {void}

Coupon data model.

Constructor

new Coupon(data) → {void}

Coupon Constructor.

Coupon Constructor.

Parameters:
Name Type Description
data Object
Source:
Returns:
Type
void

Members

(static, constant) CUSTOMER_SCOPE_ALL_LOGGED_IN

Constant CUSTOMER_SCOPE_ALL_LOGGED_IN

.

Constant CUSTOMER_SCOPE_ALL_LOGGED_IN

Source:

(static, constant) CUSTOMER_SCOPE_ALL_SHOPPERS

Constant CUSTOMER_SCOPE_ALL_SHOPPERS

.

Constant CUSTOMER_SCOPE_ALL_SHOPPERS

Source:

(static, constant) CUSTOMER_SCOPE_SPECIFIC_CUSTOMERS

Constant CUSTOMER_SCOPE_SPECIFIC_CUSTOMERS

.

Constant CUSTOMER_SCOPE_SPECIFIC_CUSTOMERS

Source:

Methods

getActive() → {boolean}

Get active.

Get active.

Source:
Returns:
Type
boolean

getCode() → {string}

Get code.

Get code.

Source:
Returns:
Type
string

getCustomerScope() → {string}

Get custscope.

Get custscope.

Source:
Returns:
Type
string

getDateTimeEnd() → {number}

Get dt_end.

Get dt_end.

Source:
Returns:
Type
number

getDateTimeStart() → {number}

Get dt_start.

Get dt_start.

Source:
Returns:
Type
number

getDescription() → {string}

Get descrip.

Get descrip.

Source:
Returns:
Type
string

getId() → {number}

Get id.

Get id.

Source:
Returns:
Type
number

getMaxPer() → {number}

Get max_per.

Get max_per.

Source:
Returns:
Type
number

getMaxUse() → {number}

Get max_use.

Get max_use.

Source:
Returns:
Type
number

getUseCount() → {number}

Get use_count.

Get use_count.

Source:
Returns:
Type
number

setActive(active) → {Coupon}

Set active.

Set active.

Parameters:
Name Type Description
active boolean
Source:
Returns:
Type
Coupon

setCode(code) → {Coupon}

Set code.

Set code.

Parameters:
Name Type Description
code string
Source:
Returns:
Type
Coupon

setCustomerScope(customerScope) → {Coupon}

Set custscope.

Set custscope.

Parameters:
Name Type Description
customerScope string
Source:
Returns:
Type
Coupon

setDateTimeEnd(dateTimeEnd) → {Coupon}

Set dt_end.

Set dt_end.

Parameters:
Name Type Description
dateTimeEnd Date | number
Source:
Returns:
Type
Coupon

setDateTimeStart(dateTimeStart) → {Coupon}

Set dt_start.

Set dt_start.

Parameters:
Name Type Description
dateTimeStart Date | number
Source:
Returns:
Type
Coupon

setDescription(description) → {Coupon}

Set descrip.

Set descrip.

Parameters:
Name Type Description
description string
Source:
Returns:
Type
Coupon

setMaxPer(maxPer) → {Coupon}

Set max_per.

Set max_per.

Parameters:
Name Type Description
maxPer number
Source:
Returns:
Type
Coupon

setMaxUse(maxUse) → {Coupon}

Set max_use.

Set max_use.

Parameters:
Name Type Description
maxUse number
Source:
Returns:
Type
Coupon