|
1
|
/** |
|
2
|
* @schema AdminUpdateShippingOption |
|
3
|
* type: object |
|
4
|
* description: The properties to update in the shipping option type. |
|
5
|
* properties: |
|
6
|
* name: |
|
7
|
* type: string |
|
8
|
* title: name |
|
9
|
* description: The shipping option's name. |
|
10
|
* data: |
|
11
|
* type: object |
|
12
|
* description: The shipping option's data. |
|
13
|
* price_type: |
|
14
|
* type: string |
|
15
|
* description: The shipping option's price type. |
|
16
|
* enum: |
|
17
|
* - flat |
|
18
|
* - calculated |
|
19
|
* provider_id: |
|
20
|
* type: string |
|
21
|
* title: provider_id |
|
22
|
* description: The shipping option's provider id. |
|
23
|
* shipping_profile_id: |
|
24
|
* type: string |
|
25
|
* title: shipping_profile_id |
|
26
|
* description: The shipping option's shipping profile id. |
|
27
|
* type: |
|
28
|
* $ref: "#/components/schemas/AdminCreateShippingOptionType" |
|
29
|
* type_id: |
|
30
|
* type: string |
|
31
|
* title: type_id |
|
32
|
* description: The shipping option's type id. |
|
33
|
* prices: |
|
34
|
* type: array |
|
35
|
* description: The shipping option's prices. This array replaces the shipping option's existing prices - a price with a matching `id` is updated, a price without an `id` is created, and any existing |
|
36
|
* price whose `id` isn't included is deleted. Omit this property to leave the existing prices unchanged. |
|
37
|
* items: |
|
38
|
* oneOf: |
|
39
|
* - $ref: "#/components/schemas/AdminUpdateShippingOptionPriceWithCurrency" |
|
40
|
* - $ref: "#/components/schemas/AdminUpdateShippingOptionPriceWithRegion" |
|
41
|
* rules: |
|
42
|
* type: array |
|
43
|
* description: The shipping option's rules. |
|
44
|
* items: |
|
45
|
* oneOf: |
|
46
|
* - $ref: "#/components/schemas/AdminCreateShippingOptionRule" |
|
47
|
* - $ref: "#/components/schemas/AdminUpdateShippingOptionRule" |
|
48
|
* metadata: |
|
49
|
* type: object |
|
50
|
* description: The shipping option's metadata. |
|
51
|
* x-schemaName: AdminUpdateShippingOption |
|
52
|
* |
|
53
|
*/ |
|
54
|
|