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!lines[CheckoutPreviewLine!]!taxCalculationIdIDThe tax quote behind taxTotal. Hand it back to checkout so the buyer is charged the figure they were shown.
applied[CheckoutPreviewCredit!]!Credits and codes that were applied, and what they were worth.
collectionCheckoutCollection!When this basket's money is collected, and how much of it is collected now.
errors[OperationError!]!