import { ShopifyScriptDiscountApplication } from '@daffodil/driver/shopify'
A discount application created by a Shopify Script. Implements the DiscountApplication interface and captures the discount's value, allocation method, and targeting rules at the time the script applied it.
interface ShopifyScriptDiscountApplication {
__typename: "ScriptDiscountApplication"
allocationMethod: ShopifyDiscountApplicationAllocationMethod
targetSelection: ShopifyDiscountApplicationTargetSelection
targetType: ShopifyDiscountApplicationTargetType
title: string
value: ShopifyPricingValue
}
__typename "ScriptDiscountApplication" |
|---|
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 as defined by the Script. |
value ShopifyPricingValue |
|---|
The value of the discount application. |