type alias ModifierSpec

A modifier resolved for a specific checkout — the input the pricing pipeline applies. Eligibility (scope, stock, codes) is decided upstream; by the time a spec reaches pricing it is known to apply. value is the signed calc value (see modifierDelta); listingIds scopes which items it is charged on (null = the whole order); quantity is how many the buyer took (1 for an automatic or code modifier, more for an opt-in add-on).

Properties

id: number
name: string
kind: CalcKind
trigger: ModifierTrigger
value: number
listingIds: number[] | null
quantity: number

Usage

import { type ModifierSpec } from "doc.ts";