Class: ProductVariant

Model~ProductVariant(data) → {void}

ProductVariant data model.

Constructor

new ProductVariant(data) → {void}

ProductVariant Constructor.

ProductVariant Constructor.

Parameters:
Name Type Description
data Object
Source:
Returns:
Type
void

Methods

getDimensions() → {Array.<ProductVariantDimension>}

Get dimensions.

Get dimensions.

Source:
Returns:
Type
Array.<ProductVariantDimension>

getParts() → {Array.<ProductVariantPart>}

Get parts.

Get parts.

Source:
Returns:
Type
Array.<ProductVariantPart>

getProductId() → {number}

Get product_id.

Get product_id.

Source:
Returns:
Type
number

getVariantId() → {number}

Get variant_id.

Get variant_id.

Source:
Returns:
Type
number

toObject()

Source: