Class: module:models/ProductPromotion

module:models/ProductPromotion()

new module:models/ProductPromotion()

Constructs a new ProductPromotion. Document representing a product promotion.

Source:

Members

(inner) callout_msg :String

The localized call-out message of the promotion.

Type:
  • String
Source:

The URL addressing the promotion.

Type:
  • String
Source:

(inner) promotion_id :String

The unique id of the promotion.

Type:
  • String
Source:

(inner) promotional_price :Number

The promotional price for this product.

Type:
  • Number
Source:

Methods

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

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

Optional instance to populate.

Source:
Returns:

The populated ProductPromotion instance.

Type
module:models/ProductPromotion