İçeriğe geç

PricedLine

A line with its tariff attached: what price() consumes.

Type Parameter Default type
M extends string string
D Dims

optional at?: number


optional carry?: number

cumulative rounding: remainder carried from the previous observation.


optional dims?: D


optional feeder?: object

Set on pool lines produced by feeds.

meter: string

weight: number


optional limit?: number

Hard cap for this meter in the period usedSoFar counts. price() refuses with quota_exceeded when usedSoFar + earlier units of the same meter in this call + quantity exceed it; the row carries it so commit can enforce it atomically.


meter: M


quantity: number


rate: ValidRate


optional usedSoFar?: number

Units of this meter already used in the tier period. Required for tiered, flat, volume and package rates.