Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1.54 KB

RollbackDiscountEffectProps.md

File metadata and controls

17 lines (13 loc) · 1.54 KB

RollbackDiscountEffectProps

The properties specific to the "rollbackDiscount" effect. This gets triggered whenever previously closed session is now cancelled or partially returned and a setDiscount effect was cancelled on our internal discount limit counters.

Properties

Name Type Description Notes
name str The name of the "setDiscount" effect that was rolled back.
value float The value of the discount that was rolled back.
cart_item_position float The index of the item in the cart items for which the discount was rolled back. [optional]
cart_item_sub_position float The index of the item unit in its line item. It is only used for cart items with `quantity` > 1 and is only returned when cart item flattening is enabled. [optional]
additional_cost_id int The ID of the additional cost that was rolled back. [optional]
additional_cost str The name of the additional cost that was rolled back. [optional]
scope str The scope of the rolled back discount - For a discount per session, it can be one of `cartItems`, `additionalCosts` or `sessionTotal` - For a discount per item, it can be one of `price`, `additionalCosts` or `itemTotal` [optional]

[Back to Model list] [Back to API list] [Back to README]