@sumup/sdk
    Preparing search index...

    Type Alias SaleTotals

    Sale-level pricing aggregate, parallel to SaleItemPrice on each SaleItem.

    Line-level breakdown (unit price, line discounts, per-line taxes) lives on items[].price. This object holds the rolled-up totals and cart-level adjustments that consumers use for receipts and payment reconciliation.

    type SaleTotals = {
        cart_discounts?: DiscountLine[];
        gross_amount: number;
        net_amount: number;
        taxes: TaxLine[];
    }
    Index
    cart_discounts?: DiscountLine[]

    Discounts applied at cart level. Item-level discounts remain on items[].price.discounts.

    Max items: 1000

    gross_amount: number

    Final gross total for the sale: sum of items[].price.total_gross_amount_final after cart-level discounts (tips excluded). Same value as search total_amount, in minor units according to Sale.currency.scale. Payment amounts include tips and can therefore differ from this gross total.

    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

    net_amount: number

    Final net total for the sale: sum of items[].price.total_net_amount_final after cart-level discounts (tips excluded). In minor units according to 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

    taxes: TaxLine[]

    Tax lines aggregated across the sale (after cart-level discounts). Per-line tax detail remains on items[].price.taxes / taxes_final.

    Min items: 1

    Max items: 1000