@sumup/sdk
    Preparing search index...

    Type Alias DiscountLine

    Object representing information about single discount line.

    type DiscountLine = {
        description?: string;
        gross_amount: number;
        id?: string;
        level: string;
        net_amount: number;
        source: DiscountSource;
        tax_amount: number;
        value: DiscountValue;
    }
    Index
    description?: string

    A description or reason of the discount.

    Max length: 250

    gross_amount: number

    The gross amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.

    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

    id?: string

    An id used to associate a discount line with a specific discount. Since we can apply multiple discounts (e.g. 2x 10% whole cart off) we need to be able to identify which discount line belongs to which cart discount. Recommended to use UUID identifiers.

    Max length: 100

    level: string

    Specifies where discount was applied by user (either merchant or consumer):

    • CART: Applied to the whole cart (calculated and distributed per sale item)
    • ITEM: Applied to specific sale item

    Accepted values: ["ITEM", "CART"].

    Min length: 4

    Max length: 4

    net_amount: number

    The net amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.

    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

    tax_amount: number

    The tax amount of the discount. The value of the amount in minor units of the currency according to the Sale.currency.scale.

    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