basalt / subscriptions/src / PricingTier
Interface: PricingTier
Defined in: subscriptions/src/metered.ts:12
Metered-billing depth — tiered pricing on top of the flat overageLine. A TieredPrice prices consumed units through brackets, either graduated (each unit priced by the bracket it falls into, like tax brackets) or volume (all units priced at the single bracket the total lands in). meteredLine() turns recorded usage into an invoice line. Pure domain.
Properties
flatAmount?
> optional flatAmount?: number
Defined in: subscriptions/src/metered.ts:18
Optional flat fee charged once when this tier has any usage.
unitAmount
> unitAmount: number
Defined in: subscriptions/src/metered.ts:16
Price per unit within this tier, in minor units.
upTo
> upTo: number | null
Defined in: subscriptions/src/metered.ts:14
Inclusive upper bound of this tier's units; null = unbounded (last tier).