new module:models/CustomerProductListItemPurchase()
Constructs a new CustomerProductListItemPurchase
.
Document representing a customer product list item purchase.
Members
(inner) id :String
The id of this purchase.
Type:
- String
(inner) order_no :String
The order number of this purchase.
Type:
- String
(inner) product_list_item_id :String
The id of the product list item this purchase relates to.
Type:
- String
(inner) purchaser_name :String
The name of the purchaser.
Type:
- String
(inner) quantity :Number
The quantity of this product list item purchased.
Type:
- Number
Methods
(static) constructFromObject(data, obj) → {module:models/CustomerProductListItemPurchase}
Constructs a CustomerProductListItemPurchase
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/CustomerProductListItemPurchase | Optional instance to populate. |
Returns:
The populated CustomerProductListItemPurchase
instance.