代表草稿订单中包含的订单项-DraftOrderLineItem 对象
代表草稿订单中包含的订单项。
所需的访问
read_draft_orders 访问范围。
在本页面
字段
- AppliedDiscount(
[DraftOrderAppliedDiscount](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorderapplieddiscount))
折扣将应用于订单项或整体订单。 - 自定义(
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
这是产品变体订单项还是自定义订单项。如果设置为true,则表示自定义订单项。如果设置为false,则表示产品变体订单项。 - customAttributes(
[[Attribute!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/attribute))
有关该订单项的其他信息(元字段)列表。 - discountedTotal(
[Money!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
应用折扣后的订单项价格。 - discountedUnitPrice(
[Money!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
所述discountedTotal除以quantity,从而导致每单位的折扣值。 - 满额服务(
[FulfillmentService!](https://shopify.dev/docs/admin-api/graphql/reference/shipping-and-fulfillment/fulfillmentservice))
完成订单的服务提供商的名称。
有效值可以是手动值,也可以是提供者的名称。例如,亚马逊,shipwire。 - id(
[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
全局唯一标识符。 - image(
[Image](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/image))
与草稿订单订单项关联的图片。 
| 争论 | 描述 | 
|---|---|
crop() [CropRegion](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/cropregion) | 
根据指定区域裁剪图像。不建议使用此参数:改为使用cropon Image.transformedSrc。 | 
maxHeight() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) | 
图片高度,以像素为单位,介于1到2048之间。不建议使用此参数:改为使用maxHeighton Image.transformedSrc。 | 
maxWidth() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) | 
图像宽度(以像素为单位,介于1到2048之间)。不建议使用此参数:改为使用maxWidthon Image.transformedSrc。 | 
scale() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) | 
高分辨率视网膜显示器的图像尺寸倍增器。必须在1到3之间。不建议使用此参数:改为使用scaleon Image.transformedSrc。默认值: 1 | 
- isGiftCard(
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
订单项是否代表礼品卡的购物券。 - 名称(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
产品名称。 - originalTotal(
[Money!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
订单项的总价(无折扣),基于变体的原始单价x数量。 - originalUnitPrice(
[Money!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
可变价格,未应用任何折扣。 - 产品(
[Product](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/product))
与订单项的产品变体相对应的产品。 - 数量(
[Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01))
订单草稿中要求的变体项目数。 - requireShipping(
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
该变体是否需要物理运输。 - sku(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
变体SKU编号。 - taxLines(
[[TaxLine!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/taxline))
税线对象列表,每个对象都详细说明了适用于订单的总税额。 - 应税(
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
该变式是否应税。 - 标题(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
产品或变体的标题(此字段仅适用于自定义订单项)。 - totalDiscount(
[Money!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#money-2021-01))
应用于订单项的折扣总价值。 - 变体(
[ProductVariant](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/productvariant))
订单项的关联变体。 - variantTitle(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
变体的名称。 - 供应商(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
进行变体的供应商名称。 - 重量(
[Weight](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/weight))
订单单项目的重量单位和值。 
返回DraftOrderLineItem的类型
[DraftOrder.lineItems](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorder#lineitems-2021-01)
派生关系
[Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)
在本页面
字段
- edges(
[[DraftOrderLineItemEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorderlineitem))
边列表。 - pageInfo(
[PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo))
有助于分页的信息。 
一种自动生成的类型,在分页期间包含一个DraftOrderLineItem和一个光标。
在本页面
字段
- cursor(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
用于分页的光标。 - node(
[DraftOrderLineItem!](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorderlineitem))
该项目位于DraftOrderLineItemEdge末尾。 
返回DraftOrderLineItemEdge的类型
[DraftOrderLineItemConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/orders/draftorderlineitem#edges-2021-01)
