new module:models/ProductLink()
Constructs a new ProductLink
.
Document representing a link between two products. It contains the id of the source and target products, the type of product link, and URLs to retrieve product data.
- Source:
Members
(readonly) TypeEnum :String
Allowed values for the type
property.
Type:
- String
- Source:
(inner, constant) accessory
value: "accessory"
- Source:
(inner, constant) alt_orderunit
value: "alt_orderunit"
- Source:
(inner, constant) cross_sell
value: "cross_sell"
- Source:
(inner, constant) newer_version
value: "newer_version"
- Source:
(inner, constant) other
value: "other"
- Source:
(inner, constant) replacement
value: "replacement"
- Source:
(inner) source_product_id :String
The semantic id of the product from which this product link is coming.
Type:
- String
- Source:
(inner) source_product_link :String
The URL addressing the product from which this product link is coming.
Type:
- String
- Source:
(inner, constant) spare_part
value: "spare_part"
- Source:
(inner) target_product_id :String
The semantic id of the product to which this product link is pointing.
Type:
- String
- Source:
(inner) target_product_link :String
The URL addressing the product to which this product link is pointing.
Type:
- String
- Source:
(inner) type :module:models/ProductLink.TypeEnum
The type of this product link.
Type:
- module:models/ProductLink.TypeEnum
- Source:
(inner, constant) up_sell
value: "up_sell"
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/ProductLink}
Constructs a ProductLink
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/ProductLink | Optional instance to populate. |
- Source:
Returns:
The populated ProductLink
instance.