草稿订单的计算属性-CalculatedDraftOrder 对象

草稿订单的计算属性。

所需的访问

read_draft_orders 访问范围。


在本页面


字段

  • AppliedDiscount([DraftOrderAppliedDiscount](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorderapplieddiscount))
    订单级折扣应用于订单草稿。
  • availableShippingRates([[ShippingRate!]!](https://shopify.dev/docs/admin-api/graphql/reference/shipping-and-fulfillment/shippingrate))
    订单草稿的可用运费。要求客户提供有效的送货地址和至少一个订单项。
  • customer([Customer](https://shopify.dev/docs/admin-api/graphql/reference/customers/customer))
    如果有订单草稿,将向其发送发票的客户。
  • lineItems([[CalculatedDraftOrderLineItem!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculateddraftorderlineitem))
    草稿订单中的订单项及其计算的属性。
  • shippingLine([ShippingLine](https://shopify.dev/docs/admin-api/graphql/reference/orders/shippingline))
    包含运输费用的订单项。
  • subtotalPrice([Money!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
    订单项及其折扣的小计(不包含运输费用,运输折扣或税金)。
  • taxLines([[TaxLine!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/taxline))
    每个订单项和运输行收取的税金总额。
  • totalPrice([Money!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
    订单草稿的总金额(包括税金,运费和折扣)。
  • totalShippingPrice([Money!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
    订单草稿的总运费。
  • totalTax([Money!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
    订单草稿的税金总额。