GitHub

ShopifyAutomaticDiscountApplication

interface

import { ShopifyAutomaticDiscountApplication } from '@daffodil/driver/shopify'

Automatic discount applications capture the intentions of a discount that was automatically applied.

interface ShopifyAutomaticDiscountApplication {
  __typename: "AutomaticDiscountApplication"
  allocationMethod: ShopifyDiscountApplicationAllocationMethod
  targetSelection: ShopifyDiscountApplicationTargetSelection
  targetType: ShopifyDiscountApplicationTargetType
  title: string
  value: ShopifyPricingValue
}

Properties

__typename
"AutomaticDiscountApplication"
allocationMethod
ShopifyDiscountApplicationAllocationMethod

The method by which the discount's value is allocated to its entitled items.

targetSelection
ShopifyDiscountApplicationTargetSelection

Which lines of targetType that the discount is allocated over.

targetType
ShopifyDiscountApplicationTargetType

The type of line that the discount is applicable towards.

title
string

The title of the application.

value
ShopifyPricingValue

The value of the discount application.