Class: module:models/ShippingPromotion

module:models/ShippingPromotion()

new module:models/ShippingPromotion()

Constructs a new ShippingPromotion. Document representing a shipping 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) promotion_name :String

The localized promotion name.

Type:
  • String
Source:

Methods

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

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

Optional instance to populate.

Source:
Returns:

The populated ShippingPromotion instance.

Type
module:models/ShippingPromotion