Constructor
new ProductVariant(data) → {void}
ProductVariant Constructor.
ProductVariant Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
getDimensions() → {Array.<ProductVariantDimension>}
Get dimensions.
Get dimensions.
Returns:
- Type
- Array.<ProductVariantDimension>
getParts() → {Array.<ProductVariantPart>}
Get parts.
Get parts.
Returns:
- Type
- Array.<ProductVariantPart>
getProductId() → {number}
Get product_id.
Get product_id.
Returns:
- Type
- number
getVariantId() → {number}
Get variant_id.
Get variant_id.
Returns:
- Type
- number