new module:models/BonusDiscountLineItem()
Constructs a new BonusDiscountLineItem
.
Document representing a bonus discount line item
- Source:
Members
(inner) bonus_products :Array.<module:models/ProductDetailsLink>
The list of links to the bonus products the customer can choose from.
Type:
- Array.<module:models/ProductDetailsLink>
- Source:
(inner) coupon_code :String
The coupon code that triggered the promotion, if applicable.
Type:
- String
- Source:
(inner) id :String
The ID of the line item.
Type:
- String
- Source:
(inner) max_bonus_items :Number
The maximum number of bonus items the user can select for this promotion.
Type:
- Number
- Source:
(inner) promotion_id :String
The ID of the promotion which triggered the creation of the line item.
Type:
- String
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/BonusDiscountLineItem}
Constructs a BonusDiscountLineItem
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/BonusDiscountLineItem | Optional instance to populate. |
- Source:
Returns:
The populated BonusDiscountLineItem
instance.