Alokai

Cart

Contains the contents and other details about a guest or customer cart.

type Cart = {
  __typename?: 'Cart'; /** @deprecated Use `applied_coupons` instead. */
  applied_coupon?: Maybe<AppliedCoupon>; /** An array of `AppliedCoupon` objects. Each object contains the `code` text attribute, which specifies the coupon code. */
  applied_coupons?: Maybe<Array<Maybe<AppliedCoupon>>>; /** An array of available payment methods. */
  available_payment_methods?: Maybe<Array<Maybe<AvailablePaymentMethod>>>; /** The billing address assigned to the cart. */
  billing_address?: Maybe<BillingCartAddress>; /** The email address of the guest or customer. */
  email?: Maybe<Scalars['String']['output']>; /** The entered gift message for the cart */
  gift_message?: Maybe<GiftMessage>; /** The unique ID for a `Cart` object. */
  id: Scalars['ID']['output']; /** Indicates whether the cart contains only virtual products. */
  is_virtual: Scalars['Boolean']['output'];
  items?: Maybe<Array<Maybe<CartItemInterface>>>;
  itemsV2?: Maybe<CartItems>; /** Pricing details for the quote. */
  prices?: Maybe<CartPrices>; /** Provides applied cart rules in the current active cart */
  rules?: Maybe<Array<Maybe<CartRule>>>; /** Indicates which payment method was applied to the cart. */
  selected_payment_method?: Maybe<SelectedPaymentMethod>; /** An array of shipping addresses assigned to the cart. */
  shipping_addresses: Array<Maybe<ShippingCartAddress>>; /** The total number of items in the cart. */
  total_quantity: Scalars['Float']['output'];
};

Referenced Types

On this page