Skip to content

export Class

LabeledPrices ​

extends ​

Builder

Constructor ​

ts
new LabeledPrices( ...prices )
ParameterTypeDescription
...pricesLabeledPrice[]An array of labeled prices representing a portion of the price.

Methods ​

add( label, amount ) ​

Adds a portion of a price to the list.

ParameterTypeDescription
labelstringThe label of the portion.
amountnumberThe amount of the portion, see LabeledPrice for more info.

Returns: LabeledPrices