Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.44 KB

SetDiscountPerAdditionalCostPerItemEffectProps.md

File metadata and controls

29 lines (22 loc) · 1.44 KB

TalonOne::SetDiscountPerAdditionalCostPerItemEffectProps

Properties

Name Type Description Notes
name String The name / description of this discount
additional_cost_id Integer 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 String 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]

Code Sample

require 'TalonOne'

instance = TalonOne::SetDiscountPerAdditionalCostPerItemEffectProps.new(name: null,
                                 additional_cost_id: null,
                                 value: null,
                                 position: null,
                                 sub_position: null,
                                 additional_cost: null,
                                 desired_value: null)