Class: module:models/ApproachingDiscount

module:models/ApproachingDiscount()

new module:models/ApproachingDiscount()

Constructs a new ApproachingDiscount. Document representing a note to an object.

Source:

Members

(inner) condition_threshold :Number

The total amount needed to receive the discount.

Type:
  • Number
Source:

(inner) discount :module:models/Discount

The discount the customer can receive if eligible.

Type:
Source:

(inner) merchandise_total :Number

The amount the customer basket contributes towards the purchase condition.

Type:
  • Number
Source:

The link to details of the promotion associated with this discount.

Type:
Source:

(inner) shipment_id :String

The unique id of the shipment the discount relates to.

Type:
  • String
Source:

(inner) shipping_methods :Array.<module:models/ShippingMethod>

The shipping methods the promotion relates to.

Type:
Source:

(inner) type :String

The type of the approaching discount ("order" or "shipping").

Type:
  • String
Source:

Methods

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

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

Optional instance to populate.

Source:
Returns:

The populated ApproachingDiscount instance.

Type
module:models/ApproachingDiscount