new module:models/CustomerProductListItem()
Constructs a new CustomerProductListItem
.
Document representing a customer product list item.
- Source:
Members
(readonly) TypeEnum :String
Allowed values for the type
property.
Type:
- String
(inner, constant) gift_certificate
value: "gift_certificate"
(inner) id :String
The id of this product list item.
Type:
- String
- Source:
(inner) priority :Number
The priority of the item.
Type:
- Number
(inner) product :module:models/Product
The product item
Type:
(inner, constant) product
value: "product"
(inner) product_details_link :module:models/ProductSimpleLink
A link to the product.
Type:
(inner) product_id :String
The id of the product.
Type:
- String
(inner) public :Boolean
Is this product list item available for access by other customers?
Type:
- Boolean
(inner) purchased_quantity :Number
The quantity of products already purchased.
Type:
- Number
(inner) quantity :Number
The quantity of this product list item.
Type:
- Number
(inner) type :module:models/CustomerProductListItem.TypeEnum
The type of the item.
Type:
- module:models/CustomerProductListItem.TypeEnum
Methods
(static) constructFromObject(data, obj) → {module:models/CustomerProductListItem}
Constructs a CustomerProductListItem
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/CustomerProductListItem | Optional instance to populate. |
- Source:
Returns:
The populated CustomerProductListItem
instance.