@sumup/sdk
    Preparing search index...

    Type Alias DiscountValue

    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.
    type DiscountValue = {
        absolute?: number;
        percentage?: number;
    }
    Index
    absolute?: number

    The absolute value in minor units of the currency according to the Sale.currency.scale. Example: 10000 = 10.00

    The value of the amount in minor units of the currency according to the Sale.currency.scale. value can get large for some currencies and applications. Use Long type or a similar data type when parsing value.

    Format: int64

    Min: 0

    percentage?: number

    The 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)

    Format: int64

    Min: 0