DiscountApplication
Discount applications capture the intentions of a discount source at the time of application on an order's line items or shipping lines.
Discount applications don't represent the actual final amount discounted on a line (line item or shipping line). The actual amount discounted on a line is represented by the DiscountAllocation object.
Anchor to FieldsFields
- Anchor to allocationMethodallocation•
Method The method by which the discount's value is applied to its entitled items.
- Anchor to indexindex•Int!non-null
An ordered index that can be used to identify the discount application and indicate the precedence of the discount application for calculations.
- Anchor to targetSelectiontarget•
Selection How the discount amount is distributed on the discounted lines.
- Anchor to targetTypetarget•
Type DiscountApplication non-nullTarget Type! Whether the discount is applied on line items or shipping lines.
- Anchor to valuevalue•Pricing
Value! non-null The value of the discount application.
{
"allocationMethod": "",
"index": "",
"targetSelection": "",
"targetType": "",
"value": ""
}
interface DiscountApplication {
allocationMethod: DiscountApplicationAllocationMethod!
index: Int!
targetSelection: DiscountApplicationTargetSelection!
targetType: DiscountApplicationTargetType!
value: PricingValue!
}