Interface: CartTotals
Interface: CartTotals in @ticketlayer/live.
@ticketlayer/live / index / CartTotals
Defined in: core/cartTotals.ts:35
Properties#
currency#
currency: string | null;Defined in: core/cartTotals.ts:37
ISO currency code as the cart reports it, or null when it has none yet.
discount#
discount: number;Defined in: core/cartTotals.ts:43
Discount the surface reports, as a positive magnitude in minor units.
feeLabel#
feeLabel: string | null;Defined in: core/cartTotals.ts:52
The fee's name as the surface gives it, or null when it names none.
fees#
fees: number;Defined in: core/cartTotals.ts:41
Fees the surface reports, in minor units. 0 when it reports none.
hasFees#
hasFees: boolean;Defined in: core/cartTotals.ts:50
Whether to render a fee line. A fee of zero is not the same as no fee: see expressesFee.
subtotal#
subtotal: number;Defined in: core/cartTotals.ts:39
Ticket lines, in minor units.
total#
total: number;Defined in: core/cartTotals.ts:45
What the buyer pays: the server's figure whenever it gives one.
totalFromServer#
totalFromServer: boolean;Defined in: core/cartTotals.ts:54
True when the total came from the response rather than being derived.