import { ShopifyAutomaticDiscountApplication } from '@daffodil/driver/shopify'
An automatic discount applied to a cart or checkout without requiring a discount code. Implements the DiscountApplication interface.
Includes the discount's title, value, and allocation details that specify how the discount amount distributes across entitled line items or shipping lines.
interface ShopifyAutomaticDiscountApplication {
__typename: "AutomaticDiscountApplication"
allocationMethod: ShopifyDiscountApplicationAllocationMethod
targetSelection: ShopifyDiscountApplicationTargetSelection
targetType: ShopifyDiscountApplicationTargetType
title: string
value: ShopifyPricingValue
}
__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. |