@sumup/sdk
    Preparing search index...

    Type Alias SaleItemPrice

    Pricing for a single line, valid for every item type.

    Merges the standard amounts (with tax breakdown) and the final amounts (after discounts/modifiers).

    Totals and tax amounts can be negative for return-like operations (for example a deposit with operation_type = RETURN).

    type SaleItemPrice = {
        discounts?: DiscountLine[];
        taxes: TaxLine[];
        taxes_final: TaxLine[];
        total_gross_amount: number;
        total_gross_amount_final: number;
        total_net_amount: number;
        total_net_amount_final: number;
        unit_amount: number;
    }
    Index
    discounts?: DiscountLine[]

    Discounts applied. Discount amounts do not affect total_net_amount / total_gross_amount; they are reflected in the *_final amounts.

    Max items: 1000

    taxes: TaxLine[]

    Taxes applied on top of the net amount resulting in the gross amount.

    Min items: 1

    Max items: 1000

    taxes_final: TaxLine[]

    Taxes applied on top of total_net_amount_final resulting in total_gross_amount_final. Equals taxes if no discounts apply.

    Min items: 1

    Max items: 1000

    total_gross_amount: number

    The gross amount (including modifiers if applied). It does NOT include discounts.

    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

    total_gross_amount_final: number

    The final gross amount including discounts, modifiers and taxes. Equals total_gross_amount if no discounts apply.

    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

    total_net_amount: number

    The net amount (including modifiers if applied). It does NOT include discounts.

    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

    total_net_amount_final: number

    The final net amount including discounts and modifiers. Equals total_net_amount if no discounts apply.

    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

    unit_amount: number

    The price of a single unit. If the tax_mode is GROSS it includes taxes, otherwise no tax is included. It does NOT include discounts.

    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