Home > @infiniteobjects/shopify-data-manager > AdminTypes > CalculatedDraftOrder
The computed properties for a draft order.
Signature:
export interface CalculatedDraftOrder
Property | Modifiers | Type | Description |
---|---|---|---|
appliedDiscount? | Maybe<DraftOrderAppliedDiscount> | (Optional) Order-level discount applied to the draft order. | |
availableShippingRates | Array<ShippingRate> | The available shipping rates for the draft order. Requires a customer with a valid shipping address and at least one line item. | |
billingAddressMatchesShippingAddress | Scalars[‘Boolean’][‘output’] | Whether the billing address matches the shipping address. | |
currencyCode | CurrencyCode | `${CurrencyCode}` | The currency of the store for this draft order. | |
customer? | Maybe<Customer> | (Optional) Customer who will be sent an invoice for the draft order, if there’s one. | |
lineItems | Array<CalculatedDraftOrderLineItem> | Line items in the draft order with their computed properties. | |
lineItemsSubtotalPrice | MoneyBag | A subtotal of the line items and corresponding discounts. The subtotal doesn’t include shipping charges, shipping discounts, taxes, or order discounts. | |
marketName | Scalars[‘String’][‘output’] | The name of the selected market. | |
marketRegionCountryCode | CountryCode | `${CountryCode}` | The selected market region country code for the draft order. | |
phone? | Maybe<Scalars[‘String’][‘output’]> | (Optional) Phone number assigned to draft order. | |
presentmentCurrencyCode | CurrencyCode | `${CurrencyCode}` | The payment currency of the customer for this draft order. | |
purchasingEntity? | Maybe<PurchasingEntity> | (Optional) The purchasing entity for the draft order. | |
shippingLine? | Maybe<ShippingLine> | (Optional) Line item that contains the shipping costs. | |
subtotalPrice | Scalars[‘Money’][‘output’] | Subtotal of the line items and their discounts (doesn’t contain shipping charges or shipping discounts, or taxes). | |
subtotalPriceSet | MoneyBag | Subtotal of the line items and their discounts (doesn’t contain shipping charges or shipping discounts, or taxes). | |
taxLines | Array<TaxLine> | Total amount of taxes charged for each line item and shipping line. | |
totalDiscountsSet | MoneyBag | Total discounts for this draft order. | |
totalLineItemsPriceSet | MoneyBag | Total price of line items for this draft order. | |
totalPrice | Scalars[‘Money’][‘output’] | Total amount of the draft order (includes taxes, shipping charges, and discounts). | |
totalPriceSet | MoneyBag | Total amount of the draft order(includes taxes, shipping charges, and discounts). | |
totalShippingPrice | Scalars[‘Money’][‘output’] | Total shipping charge for the draft order. | |
totalShippingPriceSet | MoneyBag | Total shipping charge for the draft order. | |
totalTax | Scalars[‘Money’][‘output’] | Total amount of taxes for the draft order. | |
totalTaxSet | MoneyBag | Total amount of taxes for the draft order. |