GitHub

Cart

A cart represents the merchandise that a buyer intends to purchase, and the estimated cost associated with the cart. Learn how to interact with a cart during a customer's session.

import { Cart } from '@daffodil/driver/shopify'
type Cart = HasMetafields & Node & {
    __typename?: 'Cart';
    attribute?: Maybe<Attribute>;
    attributes: Array<Attribute>;
    buyerIdentity: CartBuyerIdentity;
    checkoutUrl: Scalars['URL']['output'];
    cost: CartCost;
    createdAt: Scalars['DateTime']['output'];
    deliveryGroups: CartDeliveryGroupConnection;
    discountAllocations: Array<CartDiscountAllocation>;
    discountCodes: Array<CartDiscountCode>;
    estimatedCost: CartEstimatedCost;
    id: Scalars['ID']['output'];
    lines: BaseCartLineConnection;
    metafield?: Maybe<Metafield>;
    metafields: Array<Maybe<Metafield>>;
    note?: Maybe<Scalars['String']['output']>;
    totalQuantity: Scalars['Int']['output'];
    updatedAt: Scalars['DateTime']['output'];
}
Type Options
Cart HasMetafields & Node & { __typename?: 'Cart'; attribute?: Maybe<Attribute>; attributes: Array<Attribute>; buyerIdentity: CartBuyerIdentity; checkoutUrl: Scalars['URL']['output']; cost: CartCost; createdAt: Scalars['DateTime']['output']; deliveryGroups: CartDeliveryGroupConnection; discountAllocations: Array<CartDiscountAllocation>; discountCodes: Array<CartDiscountCode>; estimatedCost: CartEstimatedCost; id: Scalars['ID']['output']; lines: BaseCartLineConnection; metafield?: Maybe<Metafield>; metafields: Array<Maybe<Metafield>>; note?: Maybe<Scalars['String']['output']>; totalQuantity: Scalars['Int']['output']; updatedAt: Scalars['DateTime']['output']; }