rbedi 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/edi +897 -0
- data/lib/rbedi/codes/aaa.rb +437 -0
- data/lib/rbedi/codes/ak1.rb +278 -0
- data/lib/rbedi/codes/ak2.rb +336 -0
- data/lib/rbedi/codes/ak9.rb +55 -0
- data/lib/rbedi/codes/bht.rb +706 -0
- data/lib/rbedi/codes/codeset.rb +27 -0
- data/lib/rbedi/codes/dmg.rb +1583 -0
- data/lib/rbedi/codes/dtp.rb +1342 -0
- data/lib/rbedi/codes/eb.rb +1511 -0
- data/lib/rbedi/codes/eq.rb +286 -0
- data/lib/rbedi/codes/ge.rb +14 -0
- data/lib/rbedi/codes/gs.rb +287 -0
- data/lib/rbedi/codes/hl.rb +273 -0
- data/lib/rbedi/codes/iea.rb +14 -0
- data/lib/rbedi/codes/ik3.rb +32 -0
- data/lib/rbedi/codes/ik4.rb +37 -0
- data/lib/rbedi/codes/ik5.rb +56 -0
- data/lib/rbedi/codes/isa.rb +137 -0
- data/lib/rbedi/codes/le.rb +13 -0
- data/lib/rbedi/codes/ls.rb +13 -0
- data/lib/rbedi/codes/msg.rb +25 -0
- data/lib/rbedi/codes/n3.rb +14 -0
- data/lib/rbedi/codes/n4.rb +706 -0
- data/lib/rbedi/codes/nm1.rb +1916 -0
- data/lib/rbedi/codes/per.rb +308 -0
- data/lib/rbedi/codes/ref.rb +1749 -0
- data/lib/rbedi/codes/se.rb +14 -0
- data/lib/rbedi/codes/segment_names.rb +44 -0
- data/lib/rbedi/codes/st.rb +336 -0
- data/lib/rbedi/codes/trn.rb +22 -0
- data/lib/rbedi/codes.rb +8 -0
- data/lib/rbedi/edi_date_time.rb +69 -0
- data/lib/rbedi/functional_group.rb +52 -0
- data/lib/rbedi/non_existent_element_error.rb +4 -0
- data/lib/rbedi/parser.rb +102 -0
- data/lib/rbedi/segment.rb +114 -0
- data/lib/rbedi/transaction_envelope.rb +77 -0
- data/lib/rbedi/transaction_set.rb +40 -0
- data/lib/rbedi.rb +20 -4
- metadata +79 -10
@@ -0,0 +1,706 @@
|
|
1
|
+
module RBEDI
|
2
|
+
module Codes
|
3
|
+
module N4
|
4
|
+
extend CodeSet
|
5
|
+
|
6
|
+
SEGMENT_POSITIONS = {
|
7
|
+
1 => :city_name,
|
8
|
+
2 => :state_province_code,
|
9
|
+
3 => :postal_code,
|
10
|
+
4 => :country_code,
|
11
|
+
5 => :location_qualifier,
|
12
|
+
6 => :location_identifier,
|
13
|
+
7 => :country_subdivision_code
|
14
|
+
}
|
15
|
+
|
16
|
+
CODES = {
|
17
|
+
4 => {
|
18
|
+
"abw" => :aruba,
|
19
|
+
"ad" => :andorra,
|
20
|
+
"ae" => :united_arab_emirates_the,
|
21
|
+
"af" => :afghanistan,
|
22
|
+
"afg" => :afghanistan,
|
23
|
+
"ag" => :antigua_and_barbuda,
|
24
|
+
"ago" => :angola,
|
25
|
+
"ai" => :anguilla,
|
26
|
+
"aia" => :anguilla,
|
27
|
+
"al" => :albania,
|
28
|
+
"ala" => :land_islands,
|
29
|
+
"alb" => :albania,
|
30
|
+
"am" => :armenia,
|
31
|
+
"and" => :andorra,
|
32
|
+
"ao" => :angola,
|
33
|
+
"aq" => :antarctica,
|
34
|
+
"ar" => :argentina,
|
35
|
+
"are" => :united_arab_emirates_the,
|
36
|
+
"arg" => :argentina,
|
37
|
+
"arm" => :armenia,
|
38
|
+
"as" => :american_samoa,
|
39
|
+
"asm" => :american_samoa,
|
40
|
+
"at" => :austria,
|
41
|
+
"ata" => :antarctica,
|
42
|
+
"atf" => :french_southern_territories_the,
|
43
|
+
"atg" => :antigua_and_barbuda,
|
44
|
+
"au" => :australia,
|
45
|
+
"aus" => :australia,
|
46
|
+
"aut" => :austria,
|
47
|
+
"aw" => :aruba,
|
48
|
+
"ax" => :land_islands,
|
49
|
+
"az" => :azerbaijan,
|
50
|
+
"aze" => :azerbaijan,
|
51
|
+
"ba" => :bosnia_and_herzegovina,
|
52
|
+
"bb" => :barbados,
|
53
|
+
"bd" => :bangladesh,
|
54
|
+
"bdi" => :burundi,
|
55
|
+
"be" => :belgium,
|
56
|
+
"bel" => :belgium,
|
57
|
+
"ben" => :benin,
|
58
|
+
"bes" => :bonaire_sint_eustatius_and_saba,
|
59
|
+
"bf" => :burkina_faso,
|
60
|
+
"bfa" => :burkina_faso,
|
61
|
+
"bg" => :bulgaria,
|
62
|
+
"bgd" => :bangladesh,
|
63
|
+
"bgr" => :bulgaria,
|
64
|
+
"bh" => :bahrain,
|
65
|
+
"bhr" => :bahrain,
|
66
|
+
"bhs" => :bahamas_the,
|
67
|
+
"bi" => :burundi,
|
68
|
+
"bih" => :bosnia_and_herzegovina,
|
69
|
+
"bj" => :benin,
|
70
|
+
"bl" => :saint_barthlemy,
|
71
|
+
"blm" => :saint_barthlemy,
|
72
|
+
"blr" => :belarus,
|
73
|
+
"blz" => :belize,
|
74
|
+
"bm" => :bermuda,
|
75
|
+
"bmu" => :bermuda,
|
76
|
+
"bn" => :brunei_darussalam,
|
77
|
+
"bo" => :bolivia_plurinational_state_of,
|
78
|
+
"bol" => :bolivia_plurinational_state_of,
|
79
|
+
"bq" => :bonaire_sint_eustatius_and_saba,
|
80
|
+
"br" => :brazil,
|
81
|
+
"bra" => :brazil,
|
82
|
+
"brb" => :barbados,
|
83
|
+
"brn" => :brunei_darussalam,
|
84
|
+
"bs" => :bahamas_the,
|
85
|
+
"bt" => :bhutan,
|
86
|
+
"btn" => :bhutan,
|
87
|
+
"bv" => :bouvet_island,
|
88
|
+
"bvt" => :bouvet_island,
|
89
|
+
"bw" => :botswana,
|
90
|
+
"bwa" => :botswana,
|
91
|
+
"by" => :belarus,
|
92
|
+
"bz" => :belize,
|
93
|
+
"ca" => :canada,
|
94
|
+
"caf" => :central_african_republic_the,
|
95
|
+
"can" => :canada,
|
96
|
+
"cc" => :cocos_keeling_islands_the,
|
97
|
+
"cck" => :cocos_keeling_islands_the,
|
98
|
+
"cd" => :congo_the_democratic_republic_of_the,
|
99
|
+
"cf" => :central_african_republic_the,
|
100
|
+
"cg" => :congo_the,
|
101
|
+
"ch" => :switzerland,
|
102
|
+
"che" => :switzerland,
|
103
|
+
"chl" => :chile,
|
104
|
+
"chn" => :china,
|
105
|
+
"ci" => :cte_divoire,
|
106
|
+
"civ" => :cte_divoire,
|
107
|
+
"ck" => :cook_islands_the,
|
108
|
+
"cl" => :chile,
|
109
|
+
"cm" => :cameroon,
|
110
|
+
"cmr" => :cameroon,
|
111
|
+
"cn" => :china,
|
112
|
+
"co" => :colombia,
|
113
|
+
"cod" => :congo_the_democratic_republic_of_the,
|
114
|
+
"cog" => :congo_the,
|
115
|
+
"cok" => :cook_islands_the,
|
116
|
+
"col" => :colombia,
|
117
|
+
"com" => :comoros_the,
|
118
|
+
"cpv" => :cabo_verde,
|
119
|
+
"cr" => :costa_rica,
|
120
|
+
"cri" => :costa_rica,
|
121
|
+
"cu" => :cuba,
|
122
|
+
"cub" => :cuba,
|
123
|
+
"cuw" => :curaao,
|
124
|
+
"cv" => :cabo_verde,
|
125
|
+
"cw" => :curaao,
|
126
|
+
"cx" => :christmas_island,
|
127
|
+
"cxr" => :christmas_island,
|
128
|
+
"cy" => :cyprus,
|
129
|
+
"cym" => :cayman_islands_the,
|
130
|
+
"cyp" => :cyprus,
|
131
|
+
"cz" => :czechia,
|
132
|
+
"cze" => :czechia,
|
133
|
+
"de" => :germany,
|
134
|
+
"deu" => :germany,
|
135
|
+
"dj" => :djibouti,
|
136
|
+
"dji" => :djibouti,
|
137
|
+
"dk" => :denmark,
|
138
|
+
"dm" => :dominica,
|
139
|
+
"dma" => :dominica,
|
140
|
+
"dnk" => :denmark,
|
141
|
+
"do" => :dominican_republic_the,
|
142
|
+
"dom" => :dominican_republic_the,
|
143
|
+
"dz" => :algeria,
|
144
|
+
"dza" => :algeria,
|
145
|
+
"ec" => :ecuador,
|
146
|
+
"ecu" => :ecuador,
|
147
|
+
"ee" => :estonia,
|
148
|
+
"eg" => :egypt,
|
149
|
+
"egy" => :egypt,
|
150
|
+
"eh" => :western_sahara,
|
151
|
+
"er" => :eritrea,
|
152
|
+
"eri" => :eritrea,
|
153
|
+
"es" => :spain,
|
154
|
+
"esh" => :western_sahara,
|
155
|
+
"esp" => :spain,
|
156
|
+
"est" => :estonia,
|
157
|
+
"et" => :ethiopia,
|
158
|
+
"eth" => :ethiopia,
|
159
|
+
"fi" => :finland,
|
160
|
+
"fin" => :finland,
|
161
|
+
"fj" => :fiji,
|
162
|
+
"fji" => :fiji,
|
163
|
+
"fk" => :falkland_islands_the_malvinas,
|
164
|
+
"flk" => :falkland_islands_the_malvinas,
|
165
|
+
"fm" => :micronesia_federated_states_of,
|
166
|
+
"fo" => :faroe_islands_the,
|
167
|
+
"fr" => :france,
|
168
|
+
"fra" => :france,
|
169
|
+
"fro" => :faroe_islands_the,
|
170
|
+
"fsm" => :micronesia_federated_states_of,
|
171
|
+
"ga" => :gabon,
|
172
|
+
"gab" => :gabon,
|
173
|
+
"gb" => :united_kingdom_of_great_britain_and_northern_ireland_the,
|
174
|
+
"gbr" => :united_kingdom_of_great_britain_and_northern_ireland_the,
|
175
|
+
"gd" => :grenada,
|
176
|
+
"ge" => :georgia,
|
177
|
+
"geo" => :georgia,
|
178
|
+
"gf" => :french_guiana,
|
179
|
+
"gg" => :guernsey,
|
180
|
+
"ggy" => :guernsey,
|
181
|
+
"gh" => :ghana,
|
182
|
+
"gha" => :ghana,
|
183
|
+
"gi" => :gibraltar,
|
184
|
+
"gib" => :gibraltar,
|
185
|
+
"gin" => :guinea,
|
186
|
+
"gl" => :greenland,
|
187
|
+
"glp" => :guadeloupe,
|
188
|
+
"gm" => :gambia_the,
|
189
|
+
"gmb" => :gambia_the,
|
190
|
+
"gn" => :guinea,
|
191
|
+
"gnb" => :guineabissau,
|
192
|
+
"gnq" => :equatorial_guinea,
|
193
|
+
"gp" => :guadeloupe,
|
194
|
+
"gq" => :equatorial_guinea,
|
195
|
+
"gr" => :greece,
|
196
|
+
"grc" => :greece,
|
197
|
+
"grd" => :grenada,
|
198
|
+
"grl" => :greenland,
|
199
|
+
"gs" => :south_georgia_and_the_south_sandwich_islands,
|
200
|
+
"gt" => :guatemala,
|
201
|
+
"gtm" => :guatemala,
|
202
|
+
"gu" => :guam,
|
203
|
+
"guf" => :french_guiana,
|
204
|
+
"gum" => :guam,
|
205
|
+
"guy" => :guyana,
|
206
|
+
"gw" => :guineabissau,
|
207
|
+
"gy" => :guyana,
|
208
|
+
"hk" => :hong_kong,
|
209
|
+
"hkg" => :hong_kong,
|
210
|
+
"hm" => :heard_island_and_mcdonald_islands,
|
211
|
+
"hmd" => :heard_island_and_mcdonald_islands,
|
212
|
+
"hn" => :honduras,
|
213
|
+
"hnd" => :honduras,
|
214
|
+
"hr" => :croatia,
|
215
|
+
"hrv" => :croatia,
|
216
|
+
"ht" => :haiti,
|
217
|
+
"hti" => :haiti,
|
218
|
+
"hu" => :hungary,
|
219
|
+
"hun" => :hungary,
|
220
|
+
"id" => :indonesia,
|
221
|
+
"idn" => :indonesia,
|
222
|
+
"ie" => :ireland,
|
223
|
+
"il" => :israel,
|
224
|
+
"im" => :isle_of_man,
|
225
|
+
"imn" => :isle_of_man,
|
226
|
+
"in" => :india,
|
227
|
+
"ind" => :india,
|
228
|
+
"io" => :british_indian_ocean_territory_the,
|
229
|
+
"iot" => :british_indian_ocean_territory_the,
|
230
|
+
"iq" => :iraq,
|
231
|
+
"ir" => :iran_islamic_republic_of,
|
232
|
+
"irl" => :ireland,
|
233
|
+
"irn" => :iran_islamic_republic_of,
|
234
|
+
"irq" => :iraq,
|
235
|
+
"is" => :iceland,
|
236
|
+
"isl" => :iceland,
|
237
|
+
"isr" => :israel,
|
238
|
+
"it" => :italy,
|
239
|
+
"ita" => :italy,
|
240
|
+
"jam" => :jamaica,
|
241
|
+
"je" => :jersey,
|
242
|
+
"jey" => :jersey,
|
243
|
+
"jm" => :jamaica,
|
244
|
+
"jo" => :jordan,
|
245
|
+
"jor" => :jordan,
|
246
|
+
"jp" => :japan,
|
247
|
+
"jpn" => :japan,
|
248
|
+
"kaz" => :kazakhstan,
|
249
|
+
"ke" => :kenya,
|
250
|
+
"ken" => :kenya,
|
251
|
+
"kg" => :kyrgyzstan,
|
252
|
+
"kgz" => :kyrgyzstan,
|
253
|
+
"kh" => :cambodia,
|
254
|
+
"khm" => :cambodia,
|
255
|
+
"ki" => :kiribati,
|
256
|
+
"kir" => :kiribati,
|
257
|
+
"km" => :comoros_the,
|
258
|
+
"kn" => :saint_kitts_and_nevis,
|
259
|
+
"kna" => :saint_kitts_and_nevis,
|
260
|
+
"kor" => :korea_the_republic_of,
|
261
|
+
"kp" => :korea_the_democratic_peoples_republic_of,
|
262
|
+
"kr" => :korea_the_republic_of,
|
263
|
+
"kw" => :kuwait,
|
264
|
+
"kwt" => :kuwait,
|
265
|
+
"ky" => :cayman_islands_the,
|
266
|
+
"kz" => :kazakhstan,
|
267
|
+
"la" => :lao_peoples_democratic_republic_the,
|
268
|
+
"lao" => :lao_peoples_democratic_republic_the,
|
269
|
+
"lb" => :lebanon,
|
270
|
+
"lbn" => :lebanon,
|
271
|
+
"lbr" => :liberia,
|
272
|
+
"lby" => :libya,
|
273
|
+
"lc" => :saint_lucia,
|
274
|
+
"lca" => :saint_lucia,
|
275
|
+
"li" => :liechtenstein,
|
276
|
+
"lie" => :liechtenstein,
|
277
|
+
"lk" => :sri_lanka,
|
278
|
+
"lka" => :sri_lanka,
|
279
|
+
"lr" => :liberia,
|
280
|
+
"ls" => :lesotho,
|
281
|
+
"lso" => :lesotho,
|
282
|
+
"lt" => :lithuania,
|
283
|
+
"ltu" => :lithuania,
|
284
|
+
"lu" => :luxembourg,
|
285
|
+
"lux" => :luxembourg,
|
286
|
+
"lv" => :latvia,
|
287
|
+
"lva" => :latvia,
|
288
|
+
"ly" => :libya,
|
289
|
+
"ma" => :morocco,
|
290
|
+
"mac" => :macao,
|
291
|
+
"maf" => :saint_martin_french_part,
|
292
|
+
"mar" => :morocco,
|
293
|
+
"mc" => :monaco,
|
294
|
+
"mco" => :monaco,
|
295
|
+
"md" => :moldova_the_republic_of,
|
296
|
+
"mda" => :moldova_the_republic_of,
|
297
|
+
"mdg" => :madagascar,
|
298
|
+
"mdv" => :maldives,
|
299
|
+
"me" => :montenegro,
|
300
|
+
"mex" => :mexico,
|
301
|
+
"mf" => :saint_martin_french_part,
|
302
|
+
"mg" => :madagascar,
|
303
|
+
"mh" => :marshall_islands_the,
|
304
|
+
"mhl" => :marshall_islands_the,
|
305
|
+
"mk" => :north_macedonia,
|
306
|
+
"mkd" => :north_macedonia,
|
307
|
+
"ml" => :mali,
|
308
|
+
"mli" => :mali,
|
309
|
+
"mlt" => :malta,
|
310
|
+
"mm" => :myanmar,
|
311
|
+
"mmr" => :myanmar,
|
312
|
+
"mn" => :mongolia,
|
313
|
+
"mne" => :montenegro,
|
314
|
+
"mng" => :mongolia,
|
315
|
+
"mnp" => :northern_mariana_islands_the,
|
316
|
+
"mo" => :macao,
|
317
|
+
"moz" => :mozambique,
|
318
|
+
"mp" => :northern_mariana_islands_the,
|
319
|
+
"mq" => :martinique,
|
320
|
+
"mr" => :mauritania,
|
321
|
+
"mrt" => :mauritania,
|
322
|
+
"ms" => :montserrat,
|
323
|
+
"msr" => :montserrat,
|
324
|
+
"mt" => :malta,
|
325
|
+
"mtq" => :martinique,
|
326
|
+
"mu" => :mauritius,
|
327
|
+
"mus" => :mauritius,
|
328
|
+
"mv" => :maldives,
|
329
|
+
"mw" => :malawi,
|
330
|
+
"mwi" => :malawi,
|
331
|
+
"mx" => :mexico,
|
332
|
+
"my" => :malaysia,
|
333
|
+
"mys" => :malaysia,
|
334
|
+
"myt" => :mayotte,
|
335
|
+
"mz" => :mozambique,
|
336
|
+
"na" => :namibia,
|
337
|
+
"nam" => :namibia,
|
338
|
+
"nc" => :new_caledonia,
|
339
|
+
"ncl" => :new_caledonia,
|
340
|
+
"ne" => :niger_the,
|
341
|
+
"ner" => :niger_the,
|
342
|
+
"nf" => :norfolk_island,
|
343
|
+
"nfk" => :norfolk_island,
|
344
|
+
"ng" => :nigeria,
|
345
|
+
"nga" => :nigeria,
|
346
|
+
"ni" => :nicaragua,
|
347
|
+
"nic" => :nicaragua,
|
348
|
+
"niu" => :niue,
|
349
|
+
"nl" => :netherlands_the,
|
350
|
+
"nld" => :netherlands_the,
|
351
|
+
"no" => :norway,
|
352
|
+
"nor" => :norway,
|
353
|
+
"np" => :nepal,
|
354
|
+
"npl" => :nepal,
|
355
|
+
"nr" => :nauru,
|
356
|
+
"nru" => :nauru,
|
357
|
+
"nu" => :niue,
|
358
|
+
"nz" => :new_zealand,
|
359
|
+
"nzl" => :new_zealand,
|
360
|
+
"om" => :oman,
|
361
|
+
"omn" => :oman,
|
362
|
+
"pa" => :panama,
|
363
|
+
"pak" => :pakistan,
|
364
|
+
"pan" => :panama,
|
365
|
+
"pcn" => :pitcairn,
|
366
|
+
"pe" => :peru,
|
367
|
+
"per" => :peru,
|
368
|
+
"pf" => :french_polynesia,
|
369
|
+
"pg" => :papua_new_guinea,
|
370
|
+
"ph" => :philippines_the,
|
371
|
+
"phl" => :philippines_the,
|
372
|
+
"pk" => :pakistan,
|
373
|
+
"pl" => :poland,
|
374
|
+
"plw" => :palau,
|
375
|
+
"pm" => :saint_pierre_and_miquelon,
|
376
|
+
"pn" => :pitcairn,
|
377
|
+
"png" => :papua_new_guinea,
|
378
|
+
"pol" => :poland,
|
379
|
+
"pr" => :puerto_rico,
|
380
|
+
"pri" => :puerto_rico,
|
381
|
+
"prk" => :korea_the_democratic_peoples_republic_of,
|
382
|
+
"prt" => :portugal,
|
383
|
+
"pry" => :paraguay,
|
384
|
+
"ps" => :palestine_state_of,
|
385
|
+
"pse" => :palestine_state_of,
|
386
|
+
"pt" => :portugal,
|
387
|
+
"pw" => :palau,
|
388
|
+
"py" => :paraguay,
|
389
|
+
"pyf" => :french_polynesia,
|
390
|
+
"qa" => :qatar,
|
391
|
+
"qat" => :qatar,
|
392
|
+
"re" => :runion,
|
393
|
+
"reu" => :runion,
|
394
|
+
"ro" => :romania,
|
395
|
+
"rou" => :romania,
|
396
|
+
"rs" => :serbia,
|
397
|
+
"ru" => :russian_federation_the,
|
398
|
+
"rus" => :russian_federation_the,
|
399
|
+
"rw" => :rwanda,
|
400
|
+
"rwa" => :rwanda,
|
401
|
+
"sa" => :saudi_arabia,
|
402
|
+
"sau" => :saudi_arabia,
|
403
|
+
"sb" => :solomon_islands,
|
404
|
+
"sc" => :seychelles,
|
405
|
+
"sd" => :sudan_the,
|
406
|
+
"sdn" => :sudan_the,
|
407
|
+
"se" => :sweden,
|
408
|
+
"sen" => :senegal,
|
409
|
+
"sg" => :singapore,
|
410
|
+
"sgp" => :singapore,
|
411
|
+
"sgs" => :south_georgia_and_the_south_sandwich_islands,
|
412
|
+
"sh" => :saint_helena_ascension_and_tristan_da_cunha,
|
413
|
+
"shn" => :saint_helena_ascension_and_tristan_da_cunha,
|
414
|
+
"si" => :slovenia,
|
415
|
+
"sj" => :svalbard_and_jan_mayen,
|
416
|
+
"sjm" => :svalbard_and_jan_mayen,
|
417
|
+
"sk" => :slovakia,
|
418
|
+
"sl" => :sierra_leone,
|
419
|
+
"slb" => :solomon_islands,
|
420
|
+
"sle" => :sierra_leone,
|
421
|
+
"slv" => :el_salvador,
|
422
|
+
"sm" => :san_marino,
|
423
|
+
"smr" => :san_marino,
|
424
|
+
"sn" => :senegal,
|
425
|
+
"so" => :somalia,
|
426
|
+
"som" => :somalia,
|
427
|
+
"spm" => :saint_pierre_and_miquelon,
|
428
|
+
"sr" => :suriname,
|
429
|
+
"srb" => :serbia,
|
430
|
+
"ss" => :south_sudan,
|
431
|
+
"ssd" => :south_sudan,
|
432
|
+
"st" => :sao_tome_and_principe,
|
433
|
+
"stp" => :sao_tome_and_principe,
|
434
|
+
"sur" => :suriname,
|
435
|
+
"sv" => :el_salvador,
|
436
|
+
"svk" => :slovakia,
|
437
|
+
"svn" => :slovenia,
|
438
|
+
"swe" => :sweden,
|
439
|
+
"swz" => :eswatini,
|
440
|
+
"sx" => :sint_maarten_dutch_part,
|
441
|
+
"sxm" => :sint_maarten_dutch_part,
|
442
|
+
"sy" => :syrian_arab_republic_the,
|
443
|
+
"syc" => :seychelles,
|
444
|
+
"syr" => :syrian_arab_republic_the,
|
445
|
+
"sz" => :eswatini,
|
446
|
+
"tc" => :turks_and_caicos_islands_the,
|
447
|
+
"tca" => :turks_and_caicos_islands_the,
|
448
|
+
"tcd" => :chad,
|
449
|
+
"td" => :chad,
|
450
|
+
"tf" => :french_southern_territories_the,
|
451
|
+
"tg" => :togo,
|
452
|
+
"tgo" => :togo,
|
453
|
+
"th" => :thailand,
|
454
|
+
"tha" => :thailand,
|
455
|
+
"tj" => :tajikistan,
|
456
|
+
"tjk" => :tajikistan,
|
457
|
+
"tk" => :tokelau,
|
458
|
+
"tkl" => :tokelau,
|
459
|
+
"tkm" => :turkmenistan,
|
460
|
+
"tl" => :timorleste,
|
461
|
+
"tls" => :timorleste,
|
462
|
+
"tm" => :turkmenistan,
|
463
|
+
"tn" => :tunisia,
|
464
|
+
"to" => :tonga,
|
465
|
+
"ton" => :tonga,
|
466
|
+
"tr" => :trkiye,
|
467
|
+
"tt" => :trinidad_and_tobago,
|
468
|
+
"tto" => :trinidad_and_tobago,
|
469
|
+
"tun" => :tunisia,
|
470
|
+
"tur" => :trkiye,
|
471
|
+
"tuv" => :tuvalu,
|
472
|
+
"tv" => :tuvalu,
|
473
|
+
"tw" => :taiwan,
|
474
|
+
"twn" => :taiwan,
|
475
|
+
"tz" => :tanzania_the_united_republic_of,
|
476
|
+
"tza" => :tanzania_the_united_republic_of,
|
477
|
+
"ua" => :ukraine,
|
478
|
+
"ug" => :uganda,
|
479
|
+
"uga" => :uganda,
|
480
|
+
"ukr" => :ukraine,
|
481
|
+
"um" => :united_states_minor_outlying_islands_the,
|
482
|
+
"umi" => :united_states_minor_outlying_islands_the,
|
483
|
+
"ury" => :uruguay,
|
484
|
+
"us" => :united_states_of_america_the,
|
485
|
+
"usa" => :united_states_of_america_the,
|
486
|
+
"uy" => :uruguay,
|
487
|
+
"uz" => :uzbekistan,
|
488
|
+
"uzb" => :uzbekistan,
|
489
|
+
"va" => :holy_see_the,
|
490
|
+
"vat" => :holy_see_the,
|
491
|
+
"vc" => :saint_vincent_and_the_grenadines,
|
492
|
+
"vct" => :saint_vincent_and_the_grenadines,
|
493
|
+
"ve" => :venezuela_bolivarian_republic_of,
|
494
|
+
"ven" => :venezuela_bolivarian_republic_of,
|
495
|
+
"vg" => :virgin_islands_british,
|
496
|
+
"vgb" => :virgin_islands_british,
|
497
|
+
"vi" => :virgin_islands_us,
|
498
|
+
"vir" => :virgin_islands_us,
|
499
|
+
"vn" => :viet_nam,
|
500
|
+
"vnm" => :viet_nam,
|
501
|
+
"vu" => :vanuatu,
|
502
|
+
"vut" => :vanuatu,
|
503
|
+
"wf" => :wallis_and_futuna,
|
504
|
+
"wlf" => :wallis_and_futuna,
|
505
|
+
"ws" => :samoa,
|
506
|
+
"wsm" => :samoa,
|
507
|
+
"ye" => :yemen,
|
508
|
+
"yem" => :yemen,
|
509
|
+
"yt" => :mayotte,
|
510
|
+
"za" => :south_africa,
|
511
|
+
"zaf" => :south_africa,
|
512
|
+
"zm" => :zambia,
|
513
|
+
"zmb" => :zambia,
|
514
|
+
"zw" => :zimbabwe,
|
515
|
+
"zwe" => :zimbabwe,
|
516
|
+
},
|
517
|
+
5 => {
|
518
|
+
"10" => :nearest_cross_street,
|
519
|
+
"11" => :secondary_cross_street,
|
520
|
+
"12" => :rangegeographic_delineations_established_by_public_land_survey_often_six_miles_on_the_latitudinal_axis,
|
521
|
+
"13" => :sectiongeographic_delineations_established_by_public_land_survey_often_one_mile_square,
|
522
|
+
"14" => :quarter_sectiongeographic_delineations_established_by_public_land_survey_often_12_mile_square_portion_of_a_section,
|
523
|
+
"18" => :marker_identifier_location,
|
524
|
+
"19" => :route,
|
525
|
+
"20" => :route_subdivision,
|
526
|
+
"21" => :grid_location,
|
527
|
+
"22" => :page,
|
528
|
+
"27" => :marker_typeidentifies_type_of_facility,
|
529
|
+
"28" => :latitudelongitude_source,
|
530
|
+
"29" => :map_source,
|
531
|
+
"30" => :map_reference,
|
532
|
+
"31" => :grid_source,
|
533
|
+
"32" => :aliquotidentifies_the_subdivided_portion_of_a_one_square_mile_legal_survey_area_section,
|
534
|
+
"33" => :block,
|
535
|
+
"34" => :district,
|
536
|
+
"35" => :drainhole_number,
|
537
|
+
"36" => :city_block,
|
538
|
+
"38" => :footage_call_direction,
|
539
|
+
"39" => :location_direction,
|
540
|
+
"40" => :outer_continental_lease_location,
|
541
|
+
"41" => :lot,
|
542
|
+
"42" => :map_quadrangle,
|
543
|
+
"43" => :principal_meridiana_starting_point_of_a_rectangular_land_survey_area,
|
544
|
+
"44" => :outer_continental_shelf_area,
|
545
|
+
"45" => :outer_continental_shelf_block,
|
546
|
+
"46" => :official_protraction_diagram,
|
547
|
+
"47" => :quarter_quarter_quarter_sectionthe_subdivided_description_for_a_usual_tenacre_portion_of_a_legal_survey_area_section,
|
548
|
+
"48" => :quarter_quarter_sectionthe_subdivided_description_for_a_usual_forty_acre_portion_of_a_legal_survey_area_section,
|
549
|
+
"49" => :section_type,
|
550
|
+
"50" => :abstract,
|
551
|
+
"52" => :labor,
|
552
|
+
"53" => :league,
|
553
|
+
"54" => :survey,
|
554
|
+
"55" => :tier,
|
555
|
+
"57" => :tract,
|
556
|
+
"58" => :universal_transverse_mercator_quadranta_designation_of_a_rectangular_survey_area_used_for_large_scale_mapping,
|
557
|
+
"59" => :course_direction,
|
558
|
+
"60" => :area,
|
559
|
+
"93" => :senders_location_code,
|
560
|
+
"94" => :receivers_location_code,
|
561
|
+
"a" => :jurisdiction_to_receive_credit_for_uniform_commercial_code_filing,
|
562
|
+
"a1" => :office,
|
563
|
+
"aa" => :annual_statements_mailing_address,
|
564
|
+
"ac" => :city_and_state,
|
565
|
+
"ap" => :all_pointsqualifies_a_code_that_identifies_a_geographic_area_where_transportation_rates_apply,
|
566
|
+
"ar" => :armed_services_location_designation,
|
567
|
+
"b" => :transmitting_utility,
|
568
|
+
"b1" => :branch,
|
569
|
+
"be" => :business_economic_area_bea_region_code,
|
570
|
+
"bl" => :government_bill_of_lading_office_code_gblocqualifies_a_code_that_identifies_the_location_of_a_government_office_authorized_to_process_transportation_bills_of_lading,
|
571
|
+
"bs" => :place_of_business,
|
572
|
+
"c" => :consignor,
|
573
|
+
"c2" => :geopolitical_name_code,
|
574
|
+
"ca" => :country_of_origin,
|
575
|
+
"cb" => :confirmation_mailing_address,
|
576
|
+
"cc" => :country,
|
577
|
+
"cd" => :canada_customs_office_code,
|
578
|
+
"ce" => :correspondence_mailing_address,
|
579
|
+
"cg" => :congressional_district,
|
580
|
+
"ci" => :city,
|
581
|
+
"cl" => :national_rate_basis_nrb,
|
582
|
+
"cm" => :consolidated_metropolitan_statistical_area_cmsa,
|
583
|
+
"co" => :countyparish_and_state,
|
584
|
+
"cr" => :in_tank_car,
|
585
|
+
"cs" => :canadian_splc,
|
586
|
+
"cy" => :countyparish,
|
587
|
+
"d" => :census_schedule_d,
|
588
|
+
"dc" => :distribution_center_number,
|
589
|
+
"de" => :destination_shipping,
|
590
|
+
"dl" => :delivery_location,
|
591
|
+
"do" => :district_office,
|
592
|
+
"dp" => :department,
|
593
|
+
"dr" => :district_of_residence,
|
594
|
+
"dt" => :domicile_type_code,
|
595
|
+
"e" => :uniform_commercial_code_filing_office,
|
596
|
+
"ea" => :event_location,
|
597
|
+
"eb" => :borough,
|
598
|
+
"el" => :employer_locationa_specific_work_location_where_an_injury_occurred,
|
599
|
+
"f" => :current_address,
|
600
|
+
"fa" => :factory,
|
601
|
+
"fe" => :freight_equalization_point,
|
602
|
+
"ff" => :foreign_freight_forwarder_location,
|
603
|
+
"fi" => :federal_information_processing_standards_fips_55_named_populated_places,
|
604
|
+
"fr" => :us_customs_facilities_information_and_resource_management_systems_firms,
|
605
|
+
"fs" => :freight_station_accounting_code,
|
606
|
+
"ft" => :foreign_trade_zonea_secured_area_legally_outside_a_nations_customs_territory_usually_located_in_or_near_customs_ports_of_entry_industrial_parks_or_terminal_warehouse_facilities_while_in_a_zone_merchandise_is_not_covered_by_a_customs_bond_or_subject_to_duty_or_excise_tax,
|
607
|
+
"fv" => :free_alongside_vessel_free_on_board_fob_point,
|
608
|
+
"g" => :census_block_group,
|
609
|
+
"gl" => :freight_station_geographic_location,
|
610
|
+
"h" => :home_address,
|
611
|
+
"i" => :home_base_address,
|
612
|
+
"ia" => :international_air_transport_association_iata_location_qualifier,
|
613
|
+
"ib" => :issue_location,
|
614
|
+
"im" => :military_standard_movement_procedures_milstamp,
|
615
|
+
"ip" => :postal,
|
616
|
+
"is" => :in_store,
|
617
|
+
"it" => :intermediate_fob_pointa_location_indicating_the_point_of_destination_is_not_the_origin_or_final_destination_but_rather_at_some_other_point,
|
618
|
+
"j" => :census_tract,
|
619
|
+
"k" => :census_schedule_k,
|
620
|
+
"ke" => :port_of_embarkation,
|
621
|
+
"kl" => :port_of_loading,
|
622
|
+
"kp" => :government_furnished_property_fob_point,
|
623
|
+
"l" => :local_address,
|
624
|
+
"lo" => :local_office,
|
625
|
+
"m" => :mailing_address,
|
626
|
+
"mi" => :mill,
|
627
|
+
"mo" => :main_campus,
|
628
|
+
"ms" => :metropolitan_sampling_area_msa_region_code,
|
629
|
+
"mz" => :mexican_postal_code,
|
630
|
+
"ns" => :citystate_from_points,
|
631
|
+
"o" => :office_address,
|
632
|
+
"oa" => :origin_after_loading_on_equipment,
|
633
|
+
"of" => :other_unlisted_free_on_board_fob_pointan_fob_point_that_cannot_be_predetermined,
|
634
|
+
"ol" => :open_and_prepay_station_list_codescac__number,
|
635
|
+
"op" => :other_unlisted_acceptance_pointan_acceptance_point_that_cannot_be_predetermined,
|
636
|
+
"or" => :origin_shipping_point,
|
637
|
+
"ov" => :on_vessel_free_on_board_fob_point,
|
638
|
+
"p" => :permanent_address,
|
639
|
+
"pa" => :port_of_arrivalport_where_shipment_enters_country,
|
640
|
+
"pb" => :port_of_dischargeport_where_shipment_is_unloaded,
|
641
|
+
"pc" => :policy_mailing_address,
|
642
|
+
"pd" => :place_of_delivery,
|
643
|
+
"pe" => :port_of_entryport_where_customs_is_declared,
|
644
|
+
"pf" => :parents_address,
|
645
|
+
"pg" => :primary,
|
646
|
+
"ph" => :prior_business,
|
647
|
+
"pl" => :plant,
|
648
|
+
"pm" => :primary_metropolitan_statistical_area_pmsa,
|
649
|
+
"po" => :principal_servicing_office,
|
650
|
+
"pp" => :pool_point,
|
651
|
+
"pq" => :three_digit_us_zip,
|
652
|
+
"pr" => :four_digit_us_zip,
|
653
|
+
"ps" => :five_digit_us_zip,
|
654
|
+
"pt" => :three_digit_canadian_postal_code,
|
655
|
+
"pu" => :six_digit_canadian_postal_code,
|
656
|
+
"pv" => :nine_digit_us_zip,
|
657
|
+
"pz" => :eleven_digit_us_zip,
|
658
|
+
"q" => :birthplace,
|
659
|
+
"ra" => :rate_area_codequalifies_a_code_that_identifies_a_geographic_area_where_transportation_rates_apply,
|
660
|
+
"rc" => :in_rail_car,
|
661
|
+
"re" => :regional_education_service_agencyan_educational_agency_funded_by_a_state_or_by_school_districts_for_the_purpose_of_providing_services_to_multiple_schools_or_school_districts,
|
662
|
+
"rg" => :region_codequalifies_a_code_that_identifies_a_geographic_area_where_transportation_rates_apply,
|
663
|
+
"rj" => :region,
|
664
|
+
"rl" => :rural,
|
665
|
+
"rs" => :standard_carrier_alpha_code,
|
666
|
+
"rt" => :route_administrative_message_to,
|
667
|
+
"sa" => :secondary,
|
668
|
+
"sb" => :suburban,
|
669
|
+
"sc" => :citystate_and_points_within,
|
670
|
+
"sd" => :school_district,
|
671
|
+
"se" => :summer,
|
672
|
+
"sg" => :storage,
|
673
|
+
"sh" => :school_campus_code,
|
674
|
+
"sl" => :us_splc,
|
675
|
+
"sn" => :store_number,
|
676
|
+
"sp" => :stateprovince,
|
677
|
+
"ss" => :school,
|
678
|
+
"st" => :in_storage_tank,
|
679
|
+
"sw" => :switching_district,
|
680
|
+
"ta" => :tank,
|
681
|
+
"tc" => :transcontinental_freight_bureau,
|
682
|
+
"ti" => :tribal_land,
|
683
|
+
"tl" => :terminal_cargo_location,
|
684
|
+
"tm" => :terminal,
|
685
|
+
"tn" => :township,
|
686
|
+
"tp" => :temporary,
|
687
|
+
"tr" => :rail_territory,
|
688
|
+
"tx" => :taxing_district,
|
689
|
+
"un" => :united_nations_location_code_unlocode,
|
690
|
+
"ur" => :urban,
|
691
|
+
"ut" => :business_unit,
|
692
|
+
"va" => :vacation,
|
693
|
+
"vi" => :village,
|
694
|
+
"vs" => :vessel_stowage_location,
|
695
|
+
"w" => :worldwide_geographic_location_code,
|
696
|
+
"wf" => :wharf,
|
697
|
+
"wh" => :warehouse,
|
698
|
+
"wi" => :winter,
|
699
|
+
"x1" => :national_center_for_education_statistics_locale_code,
|
700
|
+
"zn" => :zone_codequalifies_a_code_that_identifies_a_geographic_area_where_transportation_rates_apply,
|
701
|
+
"zz" => :mutually_defined,
|
702
|
+
}
|
703
|
+
}
|
704
|
+
end
|
705
|
+
end
|
706
|
+
end
|