Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 2.47 KB

File metadata and controls

26 lines (22 loc) · 2.47 KB

Voucherify.Model.Discount

Properties

Name Type Description Notes
Type string [optional]
AmountOff decimal? Amount taken off the subtotal of a price. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 discount is written as 1000. [optional]
AmountOffFormula string Formula used to dynamically calculate the discount. [optional]
AggregatedAmountLimit int? Maximum discount amount per order. [optional]
Effect string [optional]
IsDynamic bool? Flag indicating whether the discount was calculated using a formula. [optional]
UnitOff int? Number of units to be granted a full value discount. [optional]
UnitOffFormula string Formula used to dynamically calculate the number of units. [optional]
UnitType string The product deemed as free, chosen from product inventory (e.g. time, items). [optional]
Product DiscountProduct [optional]
Sku SimpleSkuDiscountUnit [optional]
Units List<DiscountUnitMultipleOneUnit> [optional]
PercentOff decimal? The percent discount that the customer will receive. [optional]
PercentOffFormula string Formula used to dynamically calculate the discount. [optional]
AmountLimit decimal? Upper limit allowed to be applied as a discount. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $6 maximum discount is written as 600. [optional]
FixedAmount decimal? Sets a fixed value for an order total or the item price. The value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 discount is written as 1000. If the fixed amount is calculated by the formula, i.e. the `fixed_amount_formula` parameter is present in the fixed amount definition, this value becomes the fallback value. As a result, if the formula cannot be calculated due to missing metadata, for example, this value will be used as the fixed value. [optional]
FixedAmountFormula string Formula used to dynamically calculate the discount. [optional]

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