Class: module:models/Voucher

module:models/Voucher()

new module:models/Voucher()

Constructs a new Voucher.

Source:

Members

(inner) appliedValue :module:models/Price

Type:
Source:

(inner) code :String

Type:
  • String
Source:

(inner) currency :module:models/CurrencyOCC

Type:
Source:

(inner) description :String

Type:
  • String
Source:

(inner) freeShipping :Boolean

Type:
  • Boolean
Source:

(inner) name :String

Type:
  • String
Source:

(inner) value :Number

Type:
  • Number
Source:

(inner) valueFormatted :String

Type:
  • String
Source:

(inner) valueString :String

Type:
  • String
Source:

(inner) voucherCode :String

Type:
  • String
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/Voucher}

Constructs a Voucher from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/Voucher

Optional instance to populate.

Source:
Returns:

The populated Voucher instance.

Type
module:models/Voucher