import { ShopifyDiscountCodeApplication } from '@daffodil/driver/shopify'
Discount code applications capture the intentions of a discount code at the time that it is applied.
interface ShopifyDiscountCodeApplication {
__typename: "DiscountCodeApplication"
allocationMethod: ShopifyDiscountApplicationAllocationMethod
applicable: boolean
code: string
targetSelection: ShopifyDiscountApplicationTargetSelection
targetType: ShopifyDiscountApplicationTargetType
value: ShopifyPricingValue
}
__typename "DiscountCodeApplication" |
|---|
allocationMethod ShopifyDiscountApplicationAllocationMethod |
|---|
The method by which the discount's value is allocated to its entitled items. |
applicable boolean |
|---|
Specifies whether the discount code was applied successfully. |
code string |
|---|
The string identifying the discount code that was used at the time of application. |
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. |