import { ShopifyDiscountApplication } from '@daffodil/driver/shopify'
Discount applications capture the intentions of a discount source at the time of application.
interface ShopifyDiscountApplication {
allocationMethod: ShopifyDiscountApplicationAllocationMethod
targetSelection: ShopifyDiscountApplicationTargetSelection
targetType: ShopifyDiscountApplicationTargetType
value: ShopifyPricingValue
}
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. |
value ShopifyPricingValue |
|---|
The value of the discount application. |