Base Cart Discount Application
Captures the intent of a discount source at the time it was applied to a cart. This includes the discount value, how it's allocated across entitled items, and which line types it targets.
The actual discounted amounts on specific cart lines are represented by
objects, which reference this application.
Anchor to FieldsFields
- allocationMethod (DiscountApplicationAllocationMethod!)
- targetSelection (DiscountApplicationTargetSelection!)
- targetType (DiscountApplicationTargetType!)
- totalAllocatedAmount (MoneyV2!)
- value (PricingValue!)
- Anchor to allocationMethodallocation•Discount
Method Application Allocation Method! non-null The method by which the discount's value is allocated to its entitled items.
- Anchor to targetSelectiontarget•Discount
Selection Application Target Selection! non-null Which lines of targetType that the discount is allocated over.
- Anchor to targetTypetarget•Discount
Type Application Target Type! non-null The type of line that the discount is applicable towards.
- Anchor to totalAllocatedAmounttotal•Money
Allocated Amount V2! non-null The total amount allocated by this discount application across all entitled items.
- Anchor to valuevalue•Pricing
Value! non-null The value of the discount application.
Anchor to Types implemented inTypes implemented in
- CartAutomaticDiscountApplication (CartAutomaticDiscountApplication)
- CartCodeDiscountApplication (CartCodeDiscountApplication)
- CartCustomDiscountApplication (CartCustomDiscountApplication)
- •OBJECT
The discount application automatically applied based on prerequisites.
- Anchor to allocationMethodallocation•Discount
Method Application Allocation Method! non-null The method by which the discount's value is allocated to its entitled items.
- Anchor to targetSelectiontarget•Discount
Selection Application Target Selection! non-null Which lines of targetType that the discount is allocated over.
- Anchor to targetTypetarget•Discount
Type Application Target Type! non-null The type of line that the discount is applicable towards.
- Anchor to titletitle•String!non-null
The title of the discount.
- Anchor to totalAllocatedAmounttotal•Money
Allocated Amount V2! non-null The total amount allocated by this discount application across all entitled items.
- Anchor to valuevalue•Pricing
Value! non-null The value of the discount application.
- •OBJECT
The discount application applied using a discount code.
- Anchor to allocationMethodallocation•Discount
Method Application Allocation Method! non-null The method by which the discount's value is allocated to its entitled items.
- Anchor to codecode•String!non-null
The code used to apply the discount.
- Anchor to targetSelectiontarget•Discount
Selection Application Target Selection! non-null Which lines of targetType that the discount is allocated over.
- Anchor to targetTypetarget•Discount
Type Application Target Type! non-null The type of line that the discount is applicable towards.
- Anchor to totalAllocatedAmounttotal•Money
Allocated Amount V2! non-null The total amount allocated by this discount application across all entitled items.
- Anchor to valuevalue•Pricing
Value! non-null The value of the discount application.
- •OBJECT
The discount application applied by a custom script or function.
- Anchor to allocationMethodallocation•Discount
Method Application Allocation Method! non-null The method by which the discount's value is allocated to its entitled items.
- Anchor to targetSelectiontarget•Discount
Selection Application Target Selection! non-null Which lines of targetType that the discount is allocated over.
- Anchor to targetTypetarget•Discount
Type Application Target Type! non-null The type of line that the discount is applicable towards.
- Anchor to titletitle•String!non-null
The title of the discount.
- Anchor to totalAllocatedAmounttotal•Money
Allocated Amount V2! non-null The total amount allocated by this discount application across all entitled items.
- Anchor to valuevalue•Pricing
Value! non-null The value of the discount application.