1 /**
2 * The type of a shipping option's price, which determines how the price
3 * customers pay for the shipping option is resolved.
4 */
5 export enum ShippingOptionPriceType {
6 /**
7 * The price is calculated dynamically during checkout by the shipping
8 * option's fulfillment provider. The shipping option has no stored prices;
9 * instead, the provider's `calculatePrice` method is invoked to resolve the
10 * amount against the cart. This is useful when prices depend on the cart's
11 * contents, destination, or a third-party rate service.
12 */
13 CALCULATED = "calculated",
14 /**
15 * The price is a fixed amount stored in the Pricing Module and resolved
16 * against the cart's currency and region. The fulfillment provider isn't
17 * invoked to compute the price.
18 */
19 FLAT = "flat",
20 }