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.
| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | The name / description of this discount | |
| additional_cost_id | int | The ID of the additional cost. | |
| value | float | The total monetary value of the discount. | |
| position | float | The index of the item in the cart item list containing the additional cost to be discounted. | |
| sub_position | float | For cart items with `quantity` > 1, the sub position indicates which item the discount applies to. | [optional] |
| additional_cost | str | The name of the additional cost. | |
| desired_value | float | Only with partial discounts enabled. Represents the monetary value of the discount to be applied to additional discount without considering budget limitations. | [optional] |
from talon_one.models.set_discount_per_additional_cost_per_item_effect_props import SetDiscountPerAdditionalCostPerItemEffectProps
# TODO update the JSON string below
json = "{}"
# create an instance of SetDiscountPerAdditionalCostPerItemEffectProps from a JSON string
set_discount_per_additional_cost_per_item_effect_props_instance = SetDiscountPerAdditionalCostPerItemEffectProps.from_json(json)
# print the JSON string representation of the object
print(SetDiscountPerAdditionalCostPerItemEffectProps.to_json())
# convert the object into a dict
set_discount_per_additional_cost_per_item_effect_props_dict = set_discount_per_additional_cost_per_item_effect_props_instance.to_dict()
# create an instance of SetDiscountPerAdditionalCostPerItemEffectProps from a dict
set_discount_per_additional_cost_per_item_effect_props_from_dict = SetDiscountPerAdditionalCostPerItemEffectProps.from_dict(set_discount_per_additional_cost_per_item_effect_props_dict)