import { DiscountApplicationTargetSelection } 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 DiscountApplicationTargetSelection {
All = DiscountApplicationTargetSelection.All,
Entitled = DiscountApplicationTargetSelection.Entitled,
Explicit = DiscountApplicationTargetSelection.Explicit,
}
All DiscountApplicationTargetSelection.All |
|---|
The discount is allocated onto all the lines. |
Entitled DiscountApplicationTargetSelection.Entitled |
|---|
The discount is allocated onto only the lines that it's entitled for. |
Explicit DiscountApplicationTargetSelection.Explicit |
|---|
The discount is allocated onto explicitly chosen lines. |