import { ShopifyCart } from '@daffodil/driver/shopify'
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.
interface ShopifyCart {
__typename: "Cart"
attribute: ShopifyAttribute
attributes: ShopifyAttribute[]
buyerIdentity: ShopifyCartBuyerIdentity
checkoutUrl: Scalars['URL']['output']
cost: ShopifyCartCost
createdAt: Scalars['DateTime']['output']
deliveryGroups: ShopifyCartDeliveryGroupConnection
discountAllocations: ShopifyCartDiscountAllocation[]
discountCodes: ShopifyCartDiscountCode[]
estimatedCost: ShopifyCartEstimatedCost
id: string
lines: ShopifyBaseCartLineConnection
metafield: ShopifyMetafield
metafields: ShopifyMetafield[]
note: string
totalQuantity: number
updatedAt: Scalars['DateTime']['output']
}
__typename "Cart" |
|---|
attribute ShopifyAttribute |
|---|
An attribute associated with the cart. |
attributes ShopifyAttribute[] |
|---|
The attributes associated with the cart. Attributes are represented as key-value pairs. |
buyerIdentity ShopifyCartBuyerIdentity |
|---|
Information about the buyer that's interacting with the cart. |
checkoutUrl Scalars['URL']['output'] |
|---|
The URL of the checkout for the cart. |
cost ShopifyCartCost |
|---|
The estimated costs that the buyer will pay at checkout. The costs are subject to change and changes will be reflected at checkout. The |
createdAt Scalars['DateTime']['output'] |
|---|
The date and time when the cart was created. |
deliveryGroups ShopifyCartDeliveryGroupConnection |
|---|
The delivery groups available for the cart, based on the buyer identity default delivery address preference or the default address of the logged-in customer. |
discountAllocations ShopifyCartDiscountAllocation[] |
|---|
The discounts that have been applied to the entire cart. |
discountCodes ShopifyCartDiscountCode[] |
|---|
The case-insensitive discount codes that the customer added at checkout. |
estimatedCost ShopifyCartEstimatedCost |
|---|
The estimated costs that the buyer will pay at checkout. The estimated costs are subject to change and changes will be reflected at checkout. The |
id string |
|---|
A globally-unique ID. |
lines ShopifyBaseCartLineConnection |
|---|
A list of lines containing information about the items the customer intends to purchase. |
metafield ShopifyMetafield |
|---|
A custom field, including its |
metafields ShopifyMetafield[] |
|---|
A list of custom fields that a merchant associates with a Shopify resource. |
note string |
|---|
A note that's associated with the cart. For example, the note can be a personalized message to the buyer. |
totalQuantity number |
|---|
The total number of items in the cart. |
updatedAt Scalars['DateTime']['output'] |
|---|
The date and time when the cart was updated. |