ProductSpecificationValue

Extends Object. Represents the value of a specification entry for a product.

Properties
color

Type Color or Null

If the product specification is a type of swatch, then the value can be accompanied with a hexidecimal color.

id

Type Number

The system ID for the specification value.

image

Type Url or Null

If the product specification is a type of swatch, then the value can be accompanied with an image.

maxValue

Type Number or Null

Set when the specification is a range with a minimum and maxmimum number.

minValue

Type Number or Null

Set when the specification is a range with a minimum and maxmimum number.

productId

Type Number

The ID of the current product.

productIds

Type Array

The product IDs across all variations of this product with this specification value.

value

Type String or Number

The value of the specification for the current Product e.g. Red.



Methods
toString()

Type String
Returns the descriptive value property (above).