Application Load

ICartModalResponse

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

ICartModalResponse

Cart-preview products with detailed cart quantities and amounts.

interfaces/orionplace/cart/ICartModal.ts
TypeScript
export interface ICartModalResponse {
  // Field or general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message, or null.
  success_message: string | null;
  // Cart products and the cart position counter, without the full cart summary
  // or pagination.
  page_data: {
    // Cart counters for the header.
    cart: {
      // Number of cart positions; 0 when no cart exists. The storefront shows
      // it in the header counter.
      c_cart_positions: number;
    };
    // Array of cart products with their standard product data and detailed
    // `cart_counts`. Empty when no cart exists.
    cart_data: IProduct[];
  } | null;
}