|
1
|
/** |
|
2
|
* @schema AdminShippingOption |
|
3
|
* type: object |
|
4
|
* description: The shipping option's details. |
|
5
|
* x-schemaName: AdminShippingOption |
|
6
|
* required: |
|
7
|
* - id |
|
8
|
* - name |
|
9
|
* - price_type |
|
10
|
* - service_zone_id |
|
11
|
* - service_zone |
|
12
|
* - provider_id |
|
13
|
* - provider |
|
14
|
* - shipping_option_type_id |
|
15
|
* - type |
|
16
|
* - shipping_profile_id |
|
17
|
* - shipping_profile |
|
18
|
* - rules |
|
19
|
* - prices |
|
20
|
* - data |
|
21
|
* - metadata |
|
22
|
* - created_at |
|
23
|
* - updated_at |
|
24
|
* - deleted_at |
|
25
|
* properties: |
|
26
|
* id: |
|
27
|
* type: string |
|
28
|
* title: id |
|
29
|
* description: The shipping option's ID. |
|
30
|
* name: |
|
31
|
* type: string |
|
32
|
* title: name |
|
33
|
* description: The shipping option's name. |
|
34
|
* price_type: |
|
35
|
* type: string |
|
36
|
* 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 |
|
37
|
* fulfillment provider. |
|
38
|
* enum: |
|
39
|
* - calculated |
|
40
|
* - flat |
|
41
|
* service_zone_id: |
|
42
|
* type: string |
|
43
|
* title: service_zone_id |
|
44
|
* description: The ID of the service zone this option belongs to. |
|
45
|
* service_zone: |
|
46
|
* $ref: "#/components/schemas/AdminServiceZone" |
|
47
|
* provider_id: |
|
48
|
* type: string |
|
49
|
* title: provider_id |
|
50
|
* description: The ID of the provider handling fulfillments created from this shipping option. |
|
51
|
* provider: |
|
52
|
* $ref: "#/components/schemas/AdminFulfillmentProvider" |
|
53
|
* shipping_option_type_id: |
|
54
|
* type: string |
|
55
|
* title: shipping_option_type_id |
|
56
|
* description: The ID of the associated shipping option type. |
|
57
|
* type: |
|
58
|
* $ref: "#/components/schemas/AdminShippingOptionType" |
|
59
|
* shipping_profile_id: |
|
60
|
* type: string |
|
61
|
* title: shipping_profile_id |
|
62
|
* description: The ID of the associated shipping profile. |
|
63
|
* shipping_profile: |
|
64
|
* $ref: "#/components/schemas/AdminShippingProfile" |
|
65
|
* rules: |
|
66
|
* type: array |
|
67
|
* description: The shipping option's rules. |
|
68
|
* items: |
|
69
|
* $ref: "#/components/schemas/AdminShippingOptionRule" |
|
70
|
* prices: |
|
71
|
* type: array |
|
72
|
* description: The shipping option's prices. If the `price_type` is `calculated`, this array will be empty since the price is calculated by the fulfillment provider during checkout. |
|
73
|
* items: |
|
74
|
* $ref: "#/components/schemas/AdminShippingOptionPrice" |
|
75
|
* data: |
|
76
|
* type: object |
|
77
|
* description: The shipping option's data, useful for the fulfillment provider handling fulfillments created from this option. |
|
78
|
* externalDocs: |
|
79
|
* url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property |
|
80
|
* metadata: |
|
81
|
* type: object |
|
82
|
* description: The shipping option's metadata, can hold custom key-value pairs. |
|
83
|
* externalDocs: |
|
84
|
* url: https://docs.medusajs.com/api/admin#manage-metadata |
|
85
|
* description: Learn how to manage metadata |
|
86
|
* created_at: |
|
87
|
* type: string |
|
88
|
* format: date-time |
|
89
|
* title: created_at |
|
90
|
* description: The date the shipping option was created. |
|
91
|
* updated_at: |
|
92
|
* type: string |
|
93
|
* format: date-time |
|
94
|
* title: updated_at |
|
95
|
* description: The date the shipping option was updated. |
|
96
|
* deleted_at: |
|
97
|
* type: string |
|
98
|
* format: date-time |
|
99
|
* title: deleted_at |
|
100
|
* description: The date the shipping option was deleted. |
|
101
|
* |
|
102
|
*/ |
|
103
|
|