GitHub

ShopifyComponentizableCartLine

interface

import { ShopifyComponentizableCartLine } from '@daffodil/driver/shopify'

Represents information about the grouped merchandise in the cart.

interface ShopifyComponentizableCartLine {
  __typename: "ComponentizableCartLine"
  attribute: ShopifyAttribute
  attributes: ShopifyAttribute[]
  cost: ShopifyCartLineCost
  discountAllocations: ShopifyCartDiscountAllocation[]
  estimatedCost: ShopifyCartLineEstimatedCost
  id: string
  lineComponents: ShopifyCartLine[]
  merchandise: ShopifyProductVariant
  quantity: number
  sellingPlanAllocation: ShopifySellingPlanAllocation
}

Properties

__typename
"ComponentizableCartLine"
attribute
ShopifyAttribute

An attribute associated with the cart line.

attributes
ShopifyAttribute[]

The attributes associated with the cart line. Attributes are represented as key-value pairs.

cost
ShopifyCartLineCost

The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout.

discountAllocations
ShopifyCartDiscountAllocation[]

The discounts that have been applied to the cart line.

estimatedCost
ShopifyCartLineEstimatedCost

The estimated cost of the merchandise that the buyer will pay for at checkout. The estimated costs are subject to change and changes will be reflected at checkout.

id
string

A globally-unique ID.

lineComponents
ShopifyCartLine[]

The components of the line item.

merchandise
ShopifyProductVariant

The merchandise that the buyer intends to purchase.

quantity
number

The quantity of the merchandise that the customer intends to purchase.

sellingPlanAllocation
ShopifySellingPlanAllocation

The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.