import { ShopifyOrderLineItem } from '@daffodil/driver/shopify'
Represents a single line in an order. There is one line item for each distinct product variant.
interface ShopifyOrderLineItem {
__typename: "OrderLineItem"
currentQuantity: number
customAttributes: ShopifyAttribute[]
discountAllocations: ShopifyDiscountAllocation[]
discountedTotalPrice: ShopifyMoneyV2
originalTotalPrice: ShopifyMoneyV2
quantity: number
title: string
variant: ShopifyProductVariant
}
__typename "OrderLineItem" |
|---|
currentQuantity number |
|---|
The number of entries associated to the line item minus the items that have been removed. |
customAttributes ShopifyAttribute[] |
|---|
List of custom attributes associated to the line item. |
discountAllocations ShopifyDiscountAllocation[] |
|---|
The discounts that have been allocated onto the order line item by discount applications. |
discountedTotalPrice ShopifyMoneyV2 |
|---|
The total price of the line item, including discounts, and displayed in the presentment currency. |
originalTotalPrice ShopifyMoneyV2 |
|---|
The total price of the line item, not including any discounts. The total price is calculated using the original unit price multiplied by the quantity, and it's displayed in the presentment currency. |
quantity number |
|---|
The number of products variants associated to the line item. |
title string |
|---|
The title of the product combined with title of the variant. |
variant ShopifyProductVariant |
|---|
The product variant object associated to the line item. |