1 /**
2 * @schema AdminUpdateFulfillmentSetServiceZone
3 * type: object
4 * description: The service zone's details.
5 * properties:
6 * name:
7 * type: string
8 * title: name
9 * description: The service zone's name.
10 * geo_zones:
11 * type: array
12 * description: The service zone's associated geo zones.
13 * items:
14 * oneOf:
15 * - type: object
16 * description: A country geo zone.
17 * required:
18 * - type
19 * - metadata
20 * - country_code
21 * properties:
22 * type:
23 * type: string
24 * title: type
25 * description: The geo zone's type.
26 * default: country
27 * metadata:
28 * type: object
29 * description: The geo zone's metadata.
30 * externalDocs:
31 * url: https://docs.medusajs.com/api/admin#manage-metadata
32 * description: Learn how to manage metadata
33 * country_code:
34 * type: string
35 * title: country_code
36 * description: The geo zone's country code.
37 * id:
38 * type: string
39 * title: id
40 * description: The ID of an existing geo zone.
41 * - type: object
42 * description: A province geo zone.
43 * required:
44 * - type
45 * - metadata
46 * - country_code
47 * - province_code
48 * properties:
49 * type:
50 * type: string
51 * title: type
52 * description: The geo zone's type.
53 * default: province
54 * metadata:
55 * type: object
56 * description: The geo zone's metadata.
57 * externalDocs:
58 * url: https://docs.medusajs.com/api/admin#manage-metadata
59 * description: Learn how to manage metadata
60 * country_code:
61 * type: string
62 * title: country_code
63 * description: The geo zone's country code.
64 * province_code:
65 * type: string
66 * title: province_code
67 * description: The geo zone's ISO 3166-2 province code. Must be lower-case.
68 * example: us-ca
69 * externalDocs:
70 * url: https://en.wikipedia.org/wiki/ISO_3166-2
71 * description: Learn more about ISO 3166-2
72 * id:
73 * type: string
74 * title: id
75 * description: The ID of an existing geo zone.
76 * - type: object
77 * description: A city geo zone
78 * required:
79 * - type
80 * - metadata
81 * - city
82 * - country_code
83 * - province_code
84 * properties:
85 * type:
86 * type: string
87 * title: type
88 * description: The geo zone's type.
89 * default: city
90 * metadata:
91 * type: object
92 * description: The geo zone's metadata.
93 * externalDocs:
94 * url: https://docs.medusajs.com/api/admin#manage-metadata
95 * description: Learn how to manage metadata
96 * city:
97 * type: string
98 * title: city
99 * description: The geo zone's city.
100 * country_code:
101 * type: string
102 * title: country_code
103 * description: The geo zone's country code.
104 * province_code:
105 * type: string
106 * title: province_code
107 * description: The geo zone's ISO 3166-2 province code. Must be lower-case.
108 * example: us-ca
109 * externalDocs:
110 * url: https://en.wikipedia.org/wiki/ISO_3166-2
111 * description: Learn more about ISO 3166-2
112 * id:
113 * type: string
114 * title: id
115 * description: The ID of an existing geo zone.
116 * - type: object
117 * description: A ZIP geo zone.
118 * required:
119 * - type
120 * - metadata
121 * - city
122 * - country_code
123 * - province_code
124 * - postal_expression
125 * properties:
126 * type:
127 * type: string
128 * title: type
129 * description: The geo zone's type.
130 * default: zip
131 * metadata:
132 * type: object
133 * description: The geo zone's metadata.
134 * externalDocs:
135 * url: https://docs.medusajs.com/api/admin#manage-metadata
136 * description: Learn how to manage metadata
137 * city:
138 * type: string
139 * title: city
140 * description: The geo zone's city.
141 * country_code:
142 * type: string
143 * title: country_code
144 * description: The geo zone's country code.
145 * province_code:
146 * type: string
147 * title: province_code
148 * description: The geo zone's ISO 3166-2 province code. Must be lower-case.
149 * example: us-ca
150 * externalDocs:
151 * url: https://en.wikipedia.org/wiki/ISO_3166-2
152 * description: Learn more about ISO 3166-2
153 * postal_expression:
154 * type: object
155 * description: The geo zone's postal expression or ZIP code.
156 * id:
157 * type: string
158 * title: id
159 * description: The ID of an existing geo zone.
160 * x-schemaName: AdminUpdateFulfillmentSetServiceZone
161 *
162 */
163