Type Alias: ClassifyAdjustment
type ClassifyAdjustment = (action: AppliedAction) =>
| AdjustmentClassification
| undefined;Defined in: shared/checkout/priced-cart.ts:140
MUST return a classification for every FEE/DISCOUNT applied action —
toPricedCart throws UnclassifiedAdjustmentError on undefined.
There is no default bucket (fail-closed): a mis-bucketed
responsibleParty silently moves money between parties, and pricing
rules are org-admin-editable data. Never called for BASE_PRICE actions.
Parameters
| Parameter | Type |
|---|---|
action | AppliedAction |
Returns
| AdjustmentClassification
| undefined