Application Load

ICartQuantityRequest

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

ICartQuantityRequest

Set a product’s total cart quantity.

src/lib/interfaces/orionplace/cart/ICartActions.ts
TypeScript
export interface ICartQuantityRequest {
  // Product ID from `products_search`.
  product: number;
  // New product quantity: a positive whole number within available stock. Use
  // `cart_guest_remove_by_cart_item` to remove the item.
  quantity: number;
}