import { ShopifyScriptDiscountApplication } from '@daffodil/driver/shopify'
Script discount applications capture the intentions of a discount that was created by a Shopify Script.
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. |