The value type of the discount, either a percentage based or absolute monetary value.
It is required that only one of the following is set:
- absolute
- percentage.
Fields
- absoluteintegerformat:
int64minimum:0The absolute value in minor units of the currency according to the Sale.currency.scale. Example: 10000 = 10.00
Example:
100 - percentageintegerformat:
int64minimum:0The percentage in minor units (1/100000).
Examples:
- 10% -> 0.10 (decimal) = 10000 (minor units)
- 15.5% -> 0.155 (decimal) = 15500 (minor units)
- 0.001% -> 0.00001 (decimal) = 1 (minor units)
Example:
10000