Home > @poq/sdk-sfcc > Variant
Document representing a product variation.
Signature:
export declare class Variant extends BaseModel<Variant>
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(params) | Constructs a new instance of the Variant class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| link | string | The URL addressing the product. | |
| orderable? | boolean | (Optional) A flag indicating whether the variant is orderable. | |
| price? | number | (Optional) The sales price of the variant. | |
| pricePerUnit? | number | (Optional) The sales price of the variant. | |
| productId | string | The id (SKU) of the variant. | |
| variationValues? | { [key: string]: string; } | (Optional) The actual variation attribute id - value pairs. |