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