PricedLine
A line with its tariff attached: what price() consumes.
Type Parameters
Bölüm başlığı “Type Parameters”| Type Parameter | Default type |
|---|---|
M extends string |
string |
D |
Dims |
Properties
Bölüm başlığı “Properties”
optionalat?:number
carry?
Bölüm başlığı “carry?”
optionalcarry?:number
cumulative rounding: remainder carried from the previous observation.
optionaldims?:D
feeder?
Bölüm başlığı “feeder?”
optionalfeeder?:object
Set on pool lines produced by feeds.
meter:
string
weight
Bölüm başlığı “weight”weight:
number
limit?
Bölüm başlığı “limit?”
optionallimit?: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
Bölüm başlığı “quantity”quantity:
number
rate:
ValidRate
usedSoFar?
Bölüm başlığı “usedSoFar?”
optionalusedSoFar?:number
Units of this meter already used in the tier period. Required for tiered, flat, volume and package rates.