stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > CalculatedDraftOrderLineItem

AdminTypes.CalculatedDraftOrderLineItem interface

The computed line items for a draft order.

Signature:

export interface CalculatedDraftOrderLineItem 

Properties

Property Modifiers Type Description
appliedDiscount?   Maybe<DraftOrderAppliedDiscount> (Optional) The discount applied to the line item.
custom   Scalars[‘Boolean’][‘output’] Whether the line item is a custom line item (true) or a product variant line item (false).
customAttributes   Array<Attribute> A list of attributes that represent custom features or special requests.
customAttributesV2   Array<TypedAttribute> Additional information (metafields) about the line item with the associated types.
discountedTotal   MoneyV2 Total price with discounts applied.
discountedTotalSet   MoneyBag The total price with discounts applied.
discountedUnitPrice   MoneyV2 The unit price with discounts applied.
discountedUnitPriceSet   MoneyBag Unit price with discounts applied.
fulfillmentService?   Maybe<FulfillmentService> <p>(Optional) Name of the service provider who fulfilled the order.</p><p>Valid values are either **manual** or the name of the provider. For example, **amazon**, **shipwire**.</p><p>Deleted fulfillment services will return null.</p>
image?   Maybe<Image> (Optional) The image associated with the draft order line item.
isGiftCard   Scalars[‘Boolean’][‘output’] Whether the line item represents the purchase of a gift card.
name   Scalars[‘String’][‘output’] The name of the product.
originalTotal   MoneyV2 The total price (without discounts) of the line item, based on the original unit price of the variant x quantity.
originalTotalSet   MoneyBag The total price (without discounts) of the line item, based on the original unit price of the variant x quantity.
originalUnitPrice   MoneyV2 The variant price without any discounts applied.
originalUnitPriceSet   MoneyBag The variant price without any discounts applied.
product?   Maybe<Product> (Optional) The product associated with the draft order line item.
quantity   Scalars[‘Int’][‘output’] The number of variant items requested in the draft order.
requiresShipping   Scalars[‘Boolean’][‘output’] Whether physical shipping is required for the variant.
sku?   Maybe<Scalars[‘String’][‘output’]> (Optional) The SKU number of the product variant.
taxable   Scalars[‘Boolean’][‘output’] Whether the variant is taxable.
title   Scalars[‘String’][‘output’] The title of the product or variant. This field only applies to custom line items.
totalDiscount   MoneyV2 The total value of the discount.
totalDiscountSet   MoneyBag The total value of the discount.
variant?   Maybe<ProductVariant> (Optional) The variant associated with the draft order line item.
variantTitle?   Maybe<Scalars[‘String’][‘output’]> (Optional) The name of the variant.
vendor?   Maybe<Scalars[‘String’][‘output’]> (Optional) The name of the vendor who created the product variant.
weight?   Maybe<Weight> (Optional) The weight unit and value for a draft order line item.