Reserves units for an operation, or refuses. Rejects with SpendMeterUnavailableError when the store cannot answer.
Settles an operation's reservation. Idempotent per operation and outcome.
Settles the reservations whose lease ran out.
Optional opts: { Optional now?: numberOptional limit?: numberThe account's current period: its allowance, the units used and reserved, and what remains.
Optional now: numberWrites the current period's allowance at once after a plan change; the units used stay. A store that reads the product's allowance at every reservation takes the product's answer again at the next one.
Optional now: number
A persisted per-account meter. Every method is safe to call from several processes at once against one store: two reservations cannot both take the last unit, and a reservation settles exactly once.