Application Load
ICartOption
The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.
ICartOptionSelectable product inside a cart option group.
src/lib/interfaces/orionplace/cart/ICartData.tsexport interface ICartOption {
// Cart option record ID.
id: number;
// Selected units in this cart option record; save the new total, including
// zero to deselect.
quantity: number;
// Units still available after this record and the cart’s other uses of the
// same product. Add quantity to obtain this record’s stock bound.
quantity_left: number;
// Current option price values.
option_price: ICartOptionPrices;
// Option product details, or null when no product data is available; omit its
// product card.
product: IProduct | null;
}