Application Load

ICartItemMutationResponse

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

ICartItemMutationResponse

Cart-item mutation result.

app/interfaces/orionplace/cart/ICartActions.ts
TypeScript
export interface ICartItemMutationResponse {
  // Field or general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message, or null.
  success_message: string | null;
  // Changed cart-item ID and current counters.
  page_data: {
    // Cart-item ID.
    cart_item_id: number;
    // Available product stock after the operation.
    c_real_left: number;
    // Total physical and digital product quantity in the cart.
    c_cart_positions: number;
  } | null;
}