export Class
ShippingOptions ​
extends ​
Builder
Constructor ​
ts
new ShippingOptions( ...shippings )
Parameter | Type | Description |
---|---|---|
...shippings | ShippingOptionPayload[] | Available shipping options for flexible invoices. |
Methods ​
add( id, title, prices ) ​
Parameter | Type | Description |
---|---|---|
id | string | Shipping option identifier |
title | string | Shipping option title. |
prices | LabeledPrices | LabeledPrice[] | List of price portions. |
Adds a new shipping option.
Returns:
ShippingOptions