square_rust/api/models/enums/country.rs
1//! Country model enum
2
3use serde::{Deserialize, Serialize};
4
5/// Indicates the country associated with another entity, such as a business.
6/// Values are in [ISO 3166-1-alpha-2 format](https://www.iso.org/iso-3166-country-codes.html).
7#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
8#[serde(rename_all = "UPPERCASE")]
9pub enum Country {
10 /// Unknown
11 Zz,
12 /// Andorra
13 Ad,
14 /// United Arab Emirates
15 Ae,
16 /// Afghanistan
17 Af,
18 /// Antigua and Barbuda
19 Ag,
20 /// Anguilla
21 Ai,
22 /// Albania
23 Al,
24 /// Armenia
25 Am,
26 /// Angola
27 Ao,
28 /// Antartica
29 Aq,
30 /// Argentina
31 Ar,
32 /// American Samoa
33 As,
34 /// Austria
35 At,
36 /// Australia
37 Au,
38 /// Aruba
39 Aw,
40 /// Åland Islands
41 Ax,
42 /// Azerbaijan
43 Az,
44 /// Bosnia and Herzegovina
45 Ba,
46 /// Barbados
47 Bb,
48 /// Bangladesh
49 Bd,
50 /// Belgium
51 Be,
52 /// Burkina Faso
53 Bf,
54 /// Bulgaria
55 Bg,
56 /// Bahrain
57 Bh,
58 /// Burundi
59 Bi,
60 /// Benin
61 Bj,
62 /// Saint Barthélemy
63 Bl,
64 /// Bermuda
65 Bm,
66 /// Brunei
67 Bn,
68 /// Bolivia
69 Bo,
70 /// Bonaire
71 Bq,
72 /// Brazil
73 Br,
74 /// Bahamas
75 Bs,
76 /// Bhutan
77 Bt,
78 /// Bouvet Island
79 Bv,
80 /// Botswana
81 Bw,
82 /// Belarus
83 By,
84 /// Belize
85 Bz,
86 /// Canada
87 Ca,
88 /// Cocos Islands
89 Cc,
90 /// Democratic Republic of the Congo
91 Cd,
92 /// Central African Republic
93 Cf,
94 /// Congo
95 Cg,
96 /// Switzerland
97 Ch,
98 /// Ivory Coast
99 Ci,
100 /// Cook Islands
101 Ck,
102 /// Chile
103 Cl,
104 /// Cameroon
105 Cm,
106 /// China
107 Cn,
108 /// Colombia
109 Co,
110 /// Costa Rica
111 Cr,
112 /// Cuba
113 Cu,
114 /// Cabo Verde
115 Cv,
116 /// Curaçao
117 Cw,
118 /// Christmas Island
119 Cx,
120 /// Cyprus
121 Cy,
122 /// Czechia
123 Cz,
124 /// Germany
125 De,
126 /// Djibouti
127 Dj,
128 /// Denmark
129 Dk,
130 /// Dominica
131 Dm,
132 /// Dominican Republic
133 Do,
134 /// Algeria
135 Dz,
136 /// Ecuador
137 Ec,
138 /// Estonia
139 Ee,
140 /// Egypt
141 Eg,
142 /// Western Sahara
143 Eh,
144 /// Eritrea
145 Er,
146 /// Spain
147 Es,
148 /// Ethiopia
149 Et,
150 /// Finland
151 Fi,
152 /// Fiji
153 Fj,
154 /// Falkland Islands
155 Fk,
156 /// Federated States of Micronesia
157 Fm,
158 /// Faroe Islands
159 Fo,
160 /// France
161 Fr,
162 /// Gabon
163 Ga,
164 /// United Kingdom
165 Gb,
166 /// Grenada
167 Gd,
168 /// Georgia
169 Ge,
170 /// French Guiana
171 Gf,
172 /// Guernsey
173 Gg,
174 /// Ghana
175 Gh,
176 /// Gibraltar
177 Gi,
178 /// Greenland
179 Gl,
180 /// Gambia
181 Gm,
182 /// Guinea
183 Gn,
184 /// Guadeloupe
185 Gp,
186 /// Equatorial Guinea
187 Gq,
188 /// Greece
189 Gr,
190 /// South Georgia and the South Sandwich Islands
191 Gs,
192 /// Guatemala
193 Gt,
194 /// Guam
195 Gu,
196 /// Guinea-Bissau
197 Gw,
198 /// Guyana
199 Gy,
200 /// Hong Kong
201 Hk,
202 /// Heard Island and McDonald Islands
203 Hm,
204 /// Honduras
205 Hn,
206 /// Croatia
207 Hr,
208 /// Haiti
209 Ht,
210 /// Hungary
211 Hu,
212 /// Indonesia
213 Id,
214 /// Ireland
215 Ie,
216 /// Israel
217 Il,
218 /// Isle of Man
219 Im,
220 /// India
221 In,
222 /// British Indian Ocean Territory
223 Io,
224 /// Iraq
225 Iq,
226 /// Iran
227 Ir,
228 /// Iceland
229 Is,
230 /// Italy
231 It,
232 /// Jersey
233 Je,
234 /// Jamaica
235 Jm,
236 /// Jordan
237 Jo,
238 /// Japan
239 Jp,
240 /// Kenya
241 Ke,
242 /// Kyrgyzstan
243 Kg,
244 /// Cambodia
245 Kh,
246 /// Kiribati
247 Ki,
248 /// Comoros
249 Km,
250 /// Saint Kitts and Nevis
251 Kn,
252 /// Democratic People's Republic of Korea
253 Kp,
254 /// Republic of Korea
255 Kr,
256 /// Kuwait
257 Kw,
258 /// Cayman Islands
259 Ky,
260 /// Kazakhstan
261 Kz,
262 /// Lao People's Democratic Republic
263 La,
264 /// Lebanon
265 Lb,
266 /// Saint Lucia
267 Lc,
268 /// Liechtenstein
269 Li,
270 /// Sri Lanka
271 Lk,
272 /// Liberia
273 Lr,
274 /// Lesotho
275 Ls,
276 /// Lithuania
277 Lt,
278 /// Luxembourg
279 Lu,
280 /// Latvia
281 Lv,
282 /// Libya
283 Ly,
284 /// Morocco
285 Ma,
286 /// Monaco
287 Mc,
288 /// Moldova
289 Md,
290 /// Montenegro
291 Me,
292 /// Saint Martin
293 Mf,
294 /// Madagascar
295 Mg,
296 /// Marshall Islands
297 Mh,
298 /// North Macedonia
299 Mk,
300 /// Mali
301 Ml,
302 /// Myanmar
303 Mm,
304 /// Mongolia
305 Mn,
306 /// Macao
307 Mo,
308 /// Northern Mariana Islands
309 Mp,
310 /// Martinique
311 Mq,
312 /// Mauritania
313 Mr,
314 /// Montserrat
315 Ms,
316 /// Malta
317 Mt,
318 /// Mauritius
319 Mu,
320 /// Maldives
321 Mv,
322 /// Malawi
323 Mw,
324 /// Mexico
325 Mx,
326 /// Malaysia
327 My,
328 /// Mozambique
329 Mz,
330 /// Namibia
331 Na,
332 /// New Caledonia
333 Nc,
334 /// Niger
335 Ne,
336 /// Norfolk Island
337 Nf,
338 /// Nigeria
339 Ng,
340 /// Nicaragua
341 Ni,
342 /// Netherlands
343 Nl,
344 /// Norway
345 No,
346 /// Nepal
347 Np,
348 /// Nauru
349 Nr,
350 /// Niue
351 Nu,
352 /// New Zealand
353 Nz,
354 /// Oman
355 Om,
356 /// Panama
357 Pa,
358 /// Peru
359 Pe,
360 /// French Polynesia
361 Pf,
362 /// Papua New Guinea
363 Pg,
364 /// Philippines
365 Ph,
366 /// Pakistan
367 Pk,
368 /// Poland
369 Pl,
370 /// Saint Pierre and Miquelon
371 Pm,
372 /// Pitcairn
373 Pn,
374 /// Puerto Rico
375 Pr,
376 /// Palestine
377 Ps,
378 /// Portugal
379 Pt,
380 /// Palau
381 Pw,
382 /// Paraguay
383 Py,
384 /// Qatar
385 Qa,
386 /// Réunion
387 Re,
388 /// Romania
389 Ro,
390 /// Serbia
391 Rs,
392 /// Russia
393 Ru,
394 /// Rwanda
395 Rw,
396 /// Saudi Arabia
397 Sa,
398 /// Solomon Islands
399 Sb,
400 /// Seychelles
401 Sc,
402 /// Sudan
403 Sd,
404 /// Sweden
405 Se,
406 /// Singapore
407 Sg,
408 /// Saint Helena, Ascension and Tristan da Cunha
409 Sh,
410 /// Slovenia
411 Si,
412 /// Svalbard and Jan Mayen
413 Sj,
414 /// Slovakia
415 Sk,
416 /// Sierra Leone
417 Sl,
418 /// San Marino
419 Sm,
420 /// Senegal
421 Sn,
422 /// Somalia
423 So,
424 /// Suriname
425 Sr,
426 /// South Sudan
427 Ss,
428 /// Sao Tome and Principe
429 St,
430 /// El Salvador
431 Sv,
432 /// Sint Maarten
433 Sx,
434 /// Syrian Arab Republic
435 Sy,
436 /// Eswatini
437 Sz,
438 /// Turks and Caicos Islands
439 Tc,
440 /// Chad
441 Td,
442 /// French Southern Territories
443 Tf,
444 /// Togo
445 Tg,
446 /// Thailand
447 Th,
448 /// Tajikistan
449 Tj,
450 /// Tokelau
451 Tk,
452 /// Timor-Leste
453 Tl,
454 /// Turkmenistan
455 Tm,
456 /// Tunisia
457 Tn,
458 /// Tonga
459 To,
460 /// Turkey
461 Tr,
462 /// Trinidad and Tobago
463 Tt,
464 /// Tuvalu
465 Tv,
466 /// Taiwan
467 Tw,
468 /// Tanzania
469 Tz,
470 /// Ukraine
471 Ua,
472 /// Uganda
473 Ug,
474 /// United States Minor Outlying Islands
475 Um,
476 /// United States of America
477 Us,
478 /// Uruguay
479 Uy,
480 /// Uzbekistan
481 Uz,
482 /// Vatican City
483 Va,
484 /// Saint Vincent and the Grenadines
485 Vc,
486 /// Venezuela
487 Ve,
488 /// British Virgin Islands
489 Vg,
490 /// U.S. Virgin Islands
491 Vi,
492 /// Vietnam
493 Vn,
494 /// Vanuatu
495 Vu,
496 /// Wallis and Futuna
497 Wf,
498 /// Samoa
499 Ws,
500 /// Yemen
501 Ye,
502 /// Mayotte
503 Yt,
504 /// South Africa
505 Za,
506 /// Zambia
507 Zm,
508 /// Zimbabwe
509 Zw,
510}