The cents a discount removes from subtotalCents — ROUNDED to a whole cent and CLAMPED to [0, subtotal] so a
discount can never exceed the order or go negative. Validation (eligibility) is validateDiscount; this is the
raw amount assuming the discount applies.
The cents a discount removes from
subtotalCents— ROUNDED to a whole cent and CLAMPED to [0, subtotal] so a discount can never exceed the order or go negative. Validation (eligibility) isvalidateDiscount; this is the raw amount assuming the discount applies.