new module:models/PublicProductListItem()
Constructs a new PublicProductListItem
.
Document representing a product list item.
- Source:
Members
(readonly) TypeEnum :String
Allowed values for the type
property.
Type:
- String
- Source:
(inner, constant) gift_certificate
value: "gift_certificate"
- Source:
(inner) id :String
The id of this product list item.
Type:
- String
- Source:
(inner) priority :Number
The priority of the item.
Type:
- Number
- Source:
(inner) product :module:models/Product
The product item
Type:
- Source:
(inner, constant) product
value: "product"
- Source:
(inner) product_details_link :module:models/ProductSimpleLink
A link to the product.
Type:
- Source:
(inner) type :module:models/PublicProductListItem.TypeEnum
The type of the item.
Type:
- module:models/PublicProductListItem.TypeEnum
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/PublicProductListItem}
Constructs a PublicProductListItem
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/PublicProductListItem | Optional instance to populate. |
- Source:
Returns:
The populated PublicProductListItem
instance.