折扣应用-DiscountApplication 对象

自动生成的类型,用于通过多个DiscountApplications分页。


在本页面


字段

  • edges([[DiscountApplicationEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplication)
    边列表。
  • pageInfo([PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo)
    有助于分页的信息。

一种自动生成的类型,在分页期间包含一个DiscountApplication和一个光标。


在本页面


字段

  • 光标([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    用于分页的光标。
  • 节点([DiscountApplication!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplication)
    DiscountApplicationEdge末尾的项目。


返回DiscountApplicationEdge的类型

  • [DiscountApplicationConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplication#edges-2021-01)

折扣应用程序在应用订单的订单项或运输行时捕获了折扣来源的意图。


字段

  • locationMethod([DiscountApplicationAllocationMethod!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationallocationmethod)
    折扣值分配给其应享项目的方法。
  • index([Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
    有序索引,可用于标识折扣应用程序并指示折扣应用程序的优先级以进行计算。
  • targetSelection([DiscountApplicationTargetSelection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationtargetselection)
    折扣金额如何在折扣行上分配。
  • targetType([DiscountApplicationTargetType!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationtargettype)
    折扣适用于行项目还是运输行。
  • value([PricingValue!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/pricingvalue)
    折扣应用程序的值。


实现DiscountApplication的类型

  • [AutomaticDiscountApplication](https://shopify.dev/docs/admin-api/graphql/reference/orders/automaticdiscountapplication)
  • [DiscountCodeApplication](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountcodeapplication)
  • [ManualDiscountApplication](https://shopify.dev/docs/admin-api/graphql/reference/orders/manualdiscountapplication)
  • [ScriptDiscountApplication](https://shopify.dev/docs/admin-api/graphql/reference/orders/scriptdiscountapplication)