1 /**
2 * @schema StoreShippingOption
3 * type: object
4 * description: The shipping option's details.
5 * x-schemaName: StoreShippingOption
6 * required:
7 * - id
8 * - name
9 * - price_type
10 * - service_zone_id
11 * - provider_id
12 * - provider
13 * - shipping_option_type_id
14 * - type
15 * - shipping_profile_id
16 * - amount
17 * - is_tax_inclusive
18 * - data
19 * - metadata
20 * properties:
21 * id:
22 * type: string
23 * title: id
24 * description: The shipping option's ID.
25 * name:
26 * type: string
27 * title: name
28 * description: The shipping option's name.
29 * price_type:
30 * type: string
31 * description: The shipping option's price type. If it's `flat`, the price is fixed and is set in the `prices` property. If it's `calculated`, the price is calculated on checkout by the associated
32 * fulfillment provider.
33 * enum:
34 * - flat
35 * - calculated
36 * service_zone_id:
37 * type: string
38 * title: service_zone_id
39 * description: The ID of the service zone the shipping option belongs to.
40 * provider_id:
41 * type: string
42 * title: provider_id
43 * description: The ID of the fulfillment provider handling this option.
44 * provider:
45 * $ref: "#/components/schemas/BaseFulfillmentProvider"
46 * shipping_option_type_id:
47 * type: string
48 * title: shipping_option_type_id
49 * description: The ID of the shipping option's type.
50 * type:
51 * $ref: "#/components/schemas/StoreShippingOptionType"
52 * shipping_profile_id:
53 * type: string
54 * title: shipping_profile_id
55 * description: The ID of the associated shipping profile.
56 * amount:
57 * type: number
58 * title: amount
59 * description: The shipping option's amount. For a shipping option whose `price_type` is `calculated`, this amount isn't reliable until it's computed by the fulfillment provider using the [Calculate Shipping Option Price API route](https://docs.medusajs.com/api/store#shipping-options_postshippingoptionsidcalculate).
60 * is_tax_inclusive:
61 * type: boolean
62 * title: is_tax_inclusive
63 * description: Whether the amount includes taxes.
64 * data:
65 * type: object
66 * description: The shipping option's data, useful for the provider handling fulfillment.
67 * externalDocs:
68 * url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property
69 * metadata:
70 * type: object
71 * description: The shipping option's metadata, can hold custom key-value pairs.
72 * externalDocs:
73 * url: https://docs.medusajs.com/api/store#manage-metadata
74 * description: Learn how to manage metadata
75 *
76 */
77