Skip to content

CheckoutPreview

A priced basket, before anything is minted. Same item shape as checkout, so what the buyer previews and what they are charged cannot disagree.

Fields

currencyString!
subtotalInt!
discountTotalInt!
taxTotalInt!
taxBreakdown[TaxBreakdownLine!]!

taxTotal by jurisdiction, as the receipt will split it (GST and QST in Quebec). Empty when the tax has no split to show: draw one line for taxTotal then.

tipTotalInt!
donationTotalInt!
totalInt!
taxCalculationIdID

The tax quote behind taxTotal. Hand it back to checkout so the buyer is charged the figure they were shown.

Credits and codes that were applied, and what they were worth.

When this basket's money is collected, and how much of it is collected now.

errors[OperationError!]!

Used in