计算订单项-CalculatedLineItem 对象
订单编辑中涉及的订单项可能是新添加的或已应用新更改。
所需的访问
read_order_edits
访问范围。
在本页面
字段
- calculatedDiscountAllocations(
[[CalculatedDiscountAllocation!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculateddiscountallocation)
)
折扣申请已分配给订单项的折扣。 - customAttributes(
[[Attribute!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/attribute)
)
有关该订单项的其他信息(元字段)列表。 - discountedUnitPriceSet(
[MoneyBag!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneybag)
)
折扣后的总行价以商店和演示货币应用。 - editableQuantity(
[Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
)
可以编辑的项目总数。 - editableQuantityBeforeChanges(
[Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
)
在当前编辑中进行任何更改之前的可编辑数量。 - editableSubtotalSet(
[MoneyBag!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneybag)
)
商店和演示货币中可编辑行的总价。 - hasStagedLineItemDiscount(
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
)
计算的订单项是否具有分段折扣。 - 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)
)
与订单项变体相关的Image对象。 - originalUnitPriceSet(
[MoneyBag!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneybag)
)
变动价格,不采用商店和演示货币的任何折扣。 - quantity(
[Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
)
项目总数。 - restockable(
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
)
订单项是否可以补货。 - restocking(
[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编号。 - stagedChanges(
[[OrderStagedChange!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/orderstagedchange)
)
影响此订单项的更改列表。 - title(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
产品或变体的标题。 - uneditableSubtotalSet(
[MoneyBag!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneybag)
)
商店和演示货币中不可编辑的行的总价。 - variant(
[ProductVariant](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/productvariant)
)
与此订单项关联的产品变体。对于自定义订单项及其变体已删除的项目,该字段将为null。 - variantTitle(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
变体的名称。
返回CalculatedLineItem的类型
[CalculatedOrder.addedLineItems](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculatedorder#addedlineitems-2021-01)
[CalculatedOrder.lineItems](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculatedorder#lineitems-2021-01)
在本页面
字段
- edges(
[[CalculatedLineItemEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculatedlineitem)
)
边列表。 - pageInfo(
[PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo)
)
有助于分页的信息。
一种自动生成的类型,在分页期间包含一个CalculatedLineItem和一个光标。
在本页面
字段
- cursor(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
用于分页的光标。 - node(
[CalculatedLineItem!](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculatedlineitem)
)
CalculatedLineItemEdge末尾的项目。
返回CalculatedLineItemEdge的类型
[CalculatedLineItemConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/orders/calculatedlineitem#edges-2021-01)