Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.35 KB

SetDiscountPerAdditionalCostPerItemEffectProps.md

File metadata and controls

19 lines (12 loc) · 1.35 KB

SetDiscountPerAdditionalCostPerItemEffectProps

The properties specific to the "setDiscountPerAdditionalCostPerItem" effect. This gets triggered whenever a validated rule contained a "set discount per additional cost per item" effect. This is a discount that should be applied on a specific additional cost in a specific item.

Properties

Name Type Description Notes
name String The name / description of this discount
additionalCostId Integer The ID of the additional cost.
value BigDecimal The total monetary value of the discount.
position BigDecimal The index of the item in the cart item list containing the additional cost to be discounted.
subPosition BigDecimal For cart items with `quantity` > 1, the sub position indicates which item the discount applies to. [optional]
additionalCost String The name of the additional cost.
desiredValue BigDecimal Only with partial discounts enabled. Represents the monetary value of the discount to be applied to additional discount without considering budget limitations. [optional]