|
1
|
/** |
|
2
|
* @schema AdminCreateCalculatedShippingOption |
|
3
|
* type: object |
|
4
|
* description: The calculated shipping option's details. |
|
5
|
* x-schemaName: AdminCreateCalculatedShippingOption |
|
6
|
* required: |
|
7
|
* - price_type |
|
8
|
* - name |
|
9
|
* - service_zone_id |
|
10
|
* - shipping_profile_id |
|
11
|
* - provider_id |
|
12
|
* properties: |
|
13
|
* price_type: |
|
14
|
* type: string |
|
15
|
* title: price_type |
|
16
|
* description: The calculated shipping option's price type. |
|
17
|
* enum: |
|
18
|
* - calculated |
|
19
|
* - flat |
|
20
|
* name: |
|
21
|
* type: string |
|
22
|
* title: name |
|
23
|
* description: The calculated shipping option's name. |
|
24
|
* service_zone_id: |
|
25
|
* type: string |
|
26
|
* title: service_zone_id |
|
27
|
* description: The ID of the associated service zone. |
|
28
|
* shipping_profile_id: |
|
29
|
* type: string |
|
30
|
* title: shipping_profile_id |
|
31
|
* description: The ID of the associated shipping profile. |
|
32
|
* data: |
|
33
|
* type: object |
|
34
|
* description: The calculated shipping option's data. |
|
35
|
* externalDocs: |
|
36
|
* url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property |
|
37
|
* provider_id: |
|
38
|
* type: string |
|
39
|
* title: provider_id |
|
40
|
* description: The ID of the fulfillment provider handling this calculated shipping option. |
|
41
|
* type: |
|
42
|
* $ref: "#/components/schemas/AdminCreateShippingOptionType" |
|
43
|
* type_id: |
|
44
|
* type: string |
|
45
|
* title: type_id |
|
46
|
* description: The ID of the shipping option type that this shipping option belongs to. |
|
47
|
* rules: |
|
48
|
* type: array |
|
49
|
* description: The calculated shipping option's rules. |
|
50
|
* items: |
|
51
|
* $ref: "#/components/schemas/AdminCreateShippingOptionRule" |
|
52
|
* metadata: |
|
53
|
* type: object |
|
54
|
* description: The shipping option's metadata, can hold custom key-value pairs. |
|
55
|
* |
|
56
|
*/ |
|
57
|
|