import { ShopifyDiscountApplicationTargetSelection } from '@daffodil/driver/shopify'
The lines on the order to which the discount is applied, of the type defined by
the discount application's targetType. For example, the value ENTITLED, combined with a targetType of
LINE_ITEM, applies the discount on all line items that are entitled to the discount.
The value ALL, combined with a targetType of SHIPPING_LINE, applies the discount on all shipping lines.
enum ShopifyDiscountApplicationTargetSelection {
All = ShopifyDiscountApplicationTargetSelection.All,
Entitled = ShopifyDiscountApplicationTargetSelection.Entitled,
Explicit = ShopifyDiscountApplicationTargetSelection.Explicit,
}
All ShopifyDiscountApplicationTargetSelection.All |
|---|
The discount is allocated onto all the lines. |
Entitled ShopifyDiscountApplicationTargetSelection.Entitled |
|---|
The discount is allocated onto only the lines that it's entitled for. |
Explicit ShopifyDiscountApplicationTargetSelection.Explicit |
|---|
The discount is allocated onto explicitly chosen lines. |