CheckoutCollection
How much of a basket is charged at checkout, and how much is owed afterwards.
The two numbers always sum to CheckoutPreview.total, and are quoted together for that reason: a checkout that computes "due now" and "balance" from the total independently is one rounding rule away from showing a buyer a ladder whose parts do not add up to the bill.
Fields
modePaymentCollection!The collection mode the basket resolved to. registration charges the whole total now; manual and cardOnFile charge nothing now; deposit charges a part. A basket that mixes a deferred activity with anything bought outright charges in full, and reads registration here.
dueNowInt!Cents the buyer pays at checkout.
balanceInt!Cents that will be owed as Purchase.balanceDue once the order completes.
balanceDueAtDateTimeWhen that balance falls due — the end of the session being paid for, because what a deposit defers is the rest of the price until the service has actually been delivered.
Null when the basket books nothing with an end time to hang it off, and on every plan that leaves no balance. A buyer told "balance after" and nothing else has been given a promise with no date on it, which is the one thing a deferred payment must not be.
depositDepositPolicyThe policy dueNow came from, when the mode is deposit.