ProductOption
A Product Option defines properties that may vary between different variants of a Product. Common Product Options are "Size" and "Color". Admins are free to create any product options.
Constructors
constructor
**new ProductOption**()
A Product Option defines properties that may vary between different variants of a Product. Common Product Options are "Size" and "Color". Admins are free to create any product options.
Properties
created_atDateRequiredThe date with timezone at which the resource was created.
deleted_atnull | DateRequiredThe date with timezone at which the resource was deleted.
idstringRequiredThe product option's ID
metadataRecord<string, unknown>RequiredAn optional key-value map with additional details
The details of the product that this product option belongs to.
product_idstringRequiredThe ID of the product that this product option belongs to.
titlestringRequiredThe title that the Product Option is defined by (e.g.
Size).updated_atDateRequiredThe date with timezone at which the resource was updated.
The details of the values of the product option.
Methods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidWas this section helpful?