import { ShopifyCheckoutLineItem } from '@daffodil/driver/shopify'
A single line item in the checkout, grouped by variant and attributes.
interface ShopifyCheckoutLineItem {
__typename: "CheckoutLineItem"
customAttributes: ShopifyAttribute[]
discountAllocations: ShopifyDiscountAllocation[]
id: string
quantity: number
title: string
unitPrice: ShopifyMoneyV2
variant: ShopifyProductVariant
}
__typename "CheckoutLineItem" |
|---|
customAttributes ShopifyAttribute[] |
|---|
Extra information in the form of an array of Key-Value pairs about the line item. |
discountAllocations ShopifyDiscountAllocation[] |
|---|
The discounts that have been allocated onto the checkout line item by discount applications. |
id string |
|---|
A globally-unique ID. |
quantity number |
|---|
The quantity of the line item. |
title string |
|---|
Title of the line item. Defaults to the product's title. |
unitPrice ShopifyMoneyV2 |
|---|
Unit price of the line item. |
variant ShopifyProductVariant |
|---|
Product variant of the line item. |