Class: module:models/Promotion

module:models/Promotion()

new module:models/Promotion()

Constructs a new Promotion.

Source:

Members

(inner) code :String

Type:
  • String
Source:

(inner) couldFireMessages :Array.<String>

Type:
  • Array.<String>
Source:

(inner) description :String

Type:
  • String
Source:

(inner) enabled :Boolean

Type:
  • Boolean
Source:

(inner) endDate :String

Type:
  • String
Source:

(inner) firedMessages :Array.<String>

Type:
  • Array.<String>
Source:

(inner) priority :Number

Type:
  • Number
Source:

(inner) productBanner :module:models/Image

Type:
Source:

(inner) promotionGroup :String

Type:
  • String
Source:

(inner) promotionType :String

Type:
  • String
Source:

(inner) restrictions :Array.<module:models/PromotionRestriction>

Type:
Source:

(inner) startDate :String

Type:
  • String
Source:

(inner) title :String

Type:
  • String
Source:

Methods

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

Constructs a Promotion 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/Promotion

Optional instance to populate.

Source:
Returns:

The populated Promotion instance.

Type
module:models/Promotion