booker_ruby 1.10.0 → 1.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87ff013355e30096191c7a94bea5c87b9f637851
4
- data.tar.gz: 35426bfaa4f701c6d0bcad0375875d195351a7c4
3
+ metadata.gz: 25875e2b46e94f776cc677f230b375bfc28920cc
4
+ data.tar.gz: 577c7240659bb4f88ac9c9dd3979d788e6db5c11
5
5
  SHA512:
6
- metadata.gz: 644b6eedc3e0170dcf412591db9269611a382aa51696aa8ec46c9a2d70703c2835084ac9f31e24fce1c57c02700b6f80bd4cdc3434c80ca0af33f085b387e153
7
- data.tar.gz: 03c5bd4403fbe8fbcedff8d21790cf6c013ed5ae0a9ac02387c7581ee2e19bcc212989d0599b4dffe3c4c82adcaf01659bd95c9f494e40ee0c8340295d101f3e
6
+ metadata.gz: a865aa69b5fc55d6f4f6372eb8827a6479c1fd712ff05d87b8796f918d6528b2cc084f7e84fc1107b3b8a991d17e714613e218ed3e5dafa1d1edbff1818a887a
7
+ data.tar.gz: ce95e85859a7bdd68eaf72af939c7d1fa1d5a6c7be2a33ff32883723853d420f93da7a3826a087bf7b0b02217bd87dd59babae18425d1e453098444a73e6cc05
@@ -0,0 +1,269 @@
1
+ ---
2
+ 1: 'US'
3
+ 2: 'CA'
4
+ 3: 'AL'
5
+ 4: 'DZ'
6
+ 5: 'AS'
7
+ 6: 'AD'
8
+ 7: 'AO'
9
+ 8: 'AI'
10
+ 9: 'AG'
11
+ 10: 'AR'
12
+ 11: 'AM'
13
+ 12: 'AW'
14
+ 13: 'AU'
15
+ 14: 'AT'
16
+ 15: 'AZ'
17
+ 16: 'AP'
18
+ 17: 'BS'
19
+ 18: 'BH'
20
+ 19: 'BD'
21
+ 20: 'BB'
22
+ 21: 'BY'
23
+ 22: 'BE'
24
+ 23: 'BZ'
25
+ 24: 'BJ'
26
+ 25: 'BM'
27
+ 26: 'BT'
28
+ 27: 'BO'
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108: 'IT'
108
+ 109: 'JM'
109
+ 110: 'JP'
110
+ 111: 'JO'
111
+ 112: 'KZ'
112
+ 113: 'KE'
113
+ 114: 'KI'
114
+ 115: 'KO'
115
+ 116: 'KW'
116
+ 117: 'KG'
117
+ 118: 'LA'
118
+ 119: 'LV'
119
+ 120: 'LB'
120
+ 121: 'LS'
121
+ 122: 'LR'
122
+ 123: 'LY'
123
+ 124: 'LI'
124
+ 125: 'LT'
125
+ 126: 'LU'
126
+ 127: 'MO'
127
+ 128: 'MK'
128
+ 129: 'MG'
129
+ 130: 'ME'
130
+ 131: 'MW'
131
+ 132: 'MY'
132
+ 133: 'MV'
133
+ 134: 'ML'
134
+ 135: 'MT'
135
+ 136: 'MH'
136
+ 137: 'MQ'
137
+ 138: 'MR'
138
+ 139: 'MU'
139
+ 140: 'YT'
140
+ 141: 'MX'
141
+ 142: 'FM'
142
+ 143: 'MD'
143
+ 144: 'MC'
144
+ 145: 'MN'
145
+ 146: 'MS'
146
+ 147: 'MA'
147
+ 148: 'MZ'
148
+ 149: 'MM'
149
+ 150: 'NA'
150
+ 151: 'NR'
151
+ 152: 'NP'
152
+ 153: 'NL'
153
+ 154: 'AN'
154
+ 155: 'NT'
155
+ 156: 'NC'
156
+ 157: 'NZ'
157
+ 158: 'NI'
158
+ 159: 'NE'
159
+ 160: 'NG'
160
+ 161: 'NU'
161
+ 162: 'NF'
162
+ 163: 'KP'
163
+ 164: 'NB'
164
+ 165: 'MP'
165
+ 166: 'NO'
166
+ 167: 'OM'
167
+ 168: 'PK'
168
+ 169: 'PW'
169
+ 170: 'PA'
170
+ 171: 'PG'
171
+ 172: 'PY'
172
+ 173: 'PE'
173
+ 174: 'PH'
174
+ 175: 'PN'
175
+ 176: 'PL'
176
+ 177: 'PO'
177
+ 178: 'PT'
178
+ 179: 'PR'
179
+ 180: 'QA'
180
+ 181: 'RE'
181
+ 182: 'RO'
182
+ 183: 'RT'
183
+ 184: 'RU'
184
+ 185: 'RW'
185
+ 186: 'SS'
186
+ 187: 'KN'
187
+ 188: 'LC'
188
+ 189: 'VC'
189
+ 190: 'SP'
190
+ 191: 'WS'
191
+ 192: 'SM'
192
+ 193: 'ST'
193
+ 194: 'SA'
194
+ 195: 'SF'
195
+ 196: 'SN'
196
+ 197: 'SC'
197
+ 198: 'SL'
198
+ 199: 'SG'
199
+ 200: 'SK'
200
+ 201: 'SI'
201
+ 202: 'SB'
202
+ 203: 'SO'
203
+ 204: 'ZA'
204
+ 205: 'GS'
205
+ 206: 'KR'
206
+ 207: 'ES'
207
+ 208: 'LK'
208
+ 209: 'NT'
209
+ 210: 'SW'
210
+ 211: 'VI'
211
+ 212: 'EU'
212
+ 213: 'SH'
213
+ 214: 'UV'
214
+ 215: 'KN'
215
+ 216: 'LC'
216
+ 217: 'MB'
217
+ 218: 'TB'
218
+ 219: 'PM'
219
+ 220: 'VL'
220
+ 221: 'VC'
221
+ 222: 'SD'
222
+ 223: 'SR'
223
+ 224: 'SJ'
224
+ 225: 'SZ'
225
+ 226: 'SE'
226
+ 227: 'CH'
227
+ 228: 'SY'
228
+ 229: 'TA'
229
+ 230: 'TW'
230
+ 231: 'TJ'
231
+ 232: 'TZ'
232
+ 233: 'TH'
233
+ 234: 'TI'
234
+ 235: 'TG'
235
+ 236: 'TK'
236
+ 237: 'TO'
237
+ 238: 'TL'
238
+ 239: 'TT'
239
+ 240: 'TU'
240
+ 241: 'TN'
241
+ 242: 'TR'
242
+ 243: 'TM'
243
+ 244: 'TC'
244
+ 245: 'TV'
245
+ 246: 'UG'
246
+ 247: 'UA'
247
+ 248: 'UI'
248
+ 249: 'AE'
249
+ 251: 'UY'
250
+ 252: 'UM'
251
+ 253: 'SU'
252
+ 254: 'UZ'
253
+ 255: 'VU'
254
+ 256: 'VA'
255
+ 257: 'VE'
256
+ 258: 'VN'
257
+ 259: 'VR'
258
+ 260: 'VG'
259
+ 261: 'VI'
260
+ 262: 'WL'
261
+ 263: 'WF'
262
+ 264: 'WS'
263
+ 265: 'YA'
264
+ 266: 'YE'
265
+ 267: 'YU'
266
+ 268: 'ZR'
267
+ 269: 'ZM'
268
+ 270: 'ZW'
269
+ 271: 'RS'
@@ -2,9 +2,9 @@ module Booker
2
2
  module Models
3
3
  class Country < Type
4
4
  # ISO 3166-1 alpha-2 Codes
5
- NAMES_TO_ISO_CODES = YAML::load_file(File.join(__dir__, '..', 'config', 'booker_country_names_to_iso_codes.yml')).freeze
5
+ IDS_TO_ISO_CODES = YAML::load_file(File.join(__dir__, '..', 'config', 'booker_country_ids_to_iso_codes.yml')).freeze
6
6
 
7
- def country_code; NAMES_TO_ISO_CODES[self.Name]; end
7
+ def country_code; IDS_TO_ISO_CODES[self.ID]; end
8
8
  end
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module Booker
2
- VERSION = '1.10.0'
2
+ VERSION = '1.10.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booker_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-14 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -134,7 +134,7 @@ files:
134
134
  - lib/booker/business_rest.rb
135
135
  - lib/booker/client.rb
136
136
  - lib/booker/common_rest.rb
137
- - lib/booker/config/booker_country_names_to_iso_codes.yml
137
+ - lib/booker/config/booker_country_ids_to_iso_codes.yml
138
138
  - lib/booker/customer_client.rb
139
139
  - lib/booker/customer_rest.rb
140
140
  - lib/booker/errors.rb
@@ -1,268 +0,0 @@
1
- ---
2
- United States: US
3
- Canada: CA
4
- Albania: AL
5
- Algeria: DZ
6
- American Samoa: AS
7
- Andorra: AD
8
- Angola: AO
9
- Anguilla: AI
10
- Antigua and Barbuda: AG
11
- Argentina: AR
12
- Armenia: AM
13
- Aruba: AW
14
- Australia: AU
15
- Austria: AT
16
- Azerbaijan: AZ
17
- Azores: PT
18
- Bahamas: BS
19
- Bahrain: BH
20
- Bangladesh: BD
21
- Barbados: BB
22
- Belarus: BY
23
- Belgium: BE
24
- Belize: BZ
25
- Benin: BJ
26
- Bermuda: BM
27
- Bhutan: BT
28
- Bolivia: BO
29
- Bonaire: BL
30
- Bosnia and Herzegovina: BA
31
- Botswana: BW
32
- Bouvet Island: BV
33
- Brazil: BR
34
- British Indian Ocean Territory: IO
35
- Brunei Darussalam: BN
36
- Bulgaria: BG
37
- Burkina Faso: BF
38
- Burundi: BI
39
- Cambodia: KH
40
- Cameroon: CM
41
- Canary Islands: ES
42
- Cape Verde: CV
43
- Cayman Islands: KY
44
- Central African Republic: CF
45
- Chad: TD
46
- Channel Islands: CD
47
- Chile: CL
48
- China: CN
49
- Christmas Island: CX
50
- Cocos (Keeling) Islands: CC
51
- Colombia: CO
52
- Comoros: KM
53
- Congo (Democratic Republic of): CD
54
- Cook Islands: CK
55
- Costa Rica: CR
56
- Cote D'Ivoire (Ivory Coast): CI
57
- Croatia: HR
58
- Curacao: CW
59
- Cyprus: CY
60
- Czech Republic: CZ
61
- Denmark: DK
62
- Djibouti: DJ
63
- Dominica: DM
64
- Dominican Republic: DO
65
- East Timor: TL
66
- Ecuador: EC
67
- Egypt: EG
68
- El Salvador: SV
69
- United Kingdom: GB
70
- Equatorial Guinea: GQ
71
- Eritrea: ER
72
- Estonia: EE
73
- Ethiopia: ET
74
- Faeroe Islands: FO
75
- Falkland Islands (Malvinas): FK
76
- Fiji: FJ
77
- Finland: FI
78
- France: FR
79
- French Guiana: GF
80
- French Polynesia: PF
81
- French Southern Territories: TF
82
- Gabon: GA
83
- Gambia: GM
84
- Georgia: GE
85
- Germany: DE
86
- Ghana: GH
87
- Gibraltar: GI
88
- Greece: GR
89
- Greenland: GL
90
- Grenada: GD
91
- Guadeloupe: GP
92
- Guam: GU
93
- Guatemala: GT
94
- Guinea: GN
95
- Guinea-Bissau: GW
96
- Guyana: GY
97
- Haiti: HT
98
- Heard Island and McDonald Islands: HM
99
- Honduras: HN
100
- Hong Kong: HK
101
- Hungary: HU
102
- Iceland: IS
103
- India: IN
104
- Indonesia: ID
105
- Ireland: IE
106
- Israel: IL
107
- Italy: IT
108
- Jamaica: JM
109
- Japan: JP
110
- Jordan: JO
111
- Kazakhstan: KZ
112
- Kenya: KE
113
- Kiribati: KI
114
- Kosrae: FM
115
- Kuwait: KW
116
- Kyrgyzstan: KG
117
- Laos: LA
118
- Latvia: LV
119
- Lebanon: LB
120
- Lesotho: LS
121
- Liberia: LR
122
- Libya: LY
123
- Liechtenstein: LI
124
- Lithuania: LT
125
- Luxembourg: LU
126
- Macau: MO
127
- Macedonia: MK
128
- Madagascar: MG
129
- Montenegro: ME
130
- Malawi: MW
131
- Malaysia: MY
132
- Maldives: MV
133
- Mali: ML
134
- Malta: MT
135
- Marshall Islands: MH
136
- Martinique: MQ
137
- Mauritania: MR
138
- Mauritius: MU
139
- Mayotte: YT
140
- Mexico: MX
141
- Micronesia: FM
142
- Moldova: MD
143
- Monaco: MC
144
- Mongolia: MN
145
- Montserrat: MS
146
- Morocco: MA
147
- Mozambique: MZ
148
- Myanmar: MM
149
- Namibia: NA
150
- Nauru: NR
151
- Nepal: NP
152
- Netherlands: NL
153
- Netherlands Antilles: NL
154
- New Caledonia: NC
155
- New Zealand (Aotearoa): NZ
156
- Nicaragua: NI
157
- Niger: NE
158
- Nigeria: NG
159
- Niue: NU
160
- Norfolk Island: NF
161
- North Korea: KP
162
- Northern Ireland: GB
163
- Northern Mariana Islands: MP
164
- Norway: "NO"
165
- Oman: OM
166
- Pakistan: PK
167
- Palau: PW
168
- Panama: PA
169
- Papua New Guinea: PG
170
- Paraguay: PY
171
- Peru: PE
172
- Philippines: PH
173
- Pitcairn: PN
174
- Poland: PL
175
- Ponape: FM
176
- Portugal: PT
177
- Puerto Rico: US
178
- Qatar: QA
179
- Reunion: RE
180
- Romania: RO
181
- Rota: MP
182
- Russian Federation: RU
183
- Rwanda: RW
184
- Saba: SS
185
- Saint Kitts and Nevis: KN
186
- Saint Lucia: LC
187
- Saint Vincent and the Grenadines: VC
188
- Saipan: MP
189
- Samoa: WS
190
- San Marino: SM
191
- Sao Tome and Principe: ST
192
- Saudi Arabia: SA
193
- Scotland: GB
194
- Senegal: SN
195
- Seychelles: SC
196
- Sierra Leone: SL
197
- Singapore: SG
198
- Slovak Republic: SK
199
- Slovenia: SI
200
- Solomon Islands: SB
201
- Somalia: SO
202
- South Africa: ZA
203
- South Georgia and South Sandwich Islands.: GS
204
- South Korea: KR
205
- Spain: ES
206
- Sri Lanka: LK
207
- St. Barthelemy: BL
208
- St. Christopher: KN
209
- St. Croix: VI
210
- St. Eustatius: BQ
211
- St. Helena: SH
212
- St. John: VI
213
- St. Kitts and Nevis: KN
214
- St. Lucia: LC
215
- St. Maarten: SX
216
- St. Martin: MF
217
- St. Pierre and Miquelon: PM
218
- St. Thomas: VI
219
- St. Vincent/Grenadine: VC
220
- Sudan: SD
221
- Suriname: SR
222
- Svalbard and Jan Mayen Islands: SJ
223
- Swaziland: SZ
224
- Sweden: SE
225
- Switzerland: CH
226
- Syria: SY
227
- Tahiti: PF
228
- Taiwan: TW
229
- Tajikistan: TJ
230
- Tanzania: TZ
231
- Thailand: TH
232
- Tinian: MP
233
- Togo: TG
234
- Tokelau: TK
235
- Tonga: TO
236
- Tortola: TL
237
- Trinidad and Tobago: TT
238
- Truk: FM
239
- Tunisia: TN
240
- Turkey: TR
241
- Turkmenistan: TM
242
- Turks and Caicos Islands: TC
243
- Tuvalu: TV
244
- Uganda: UG
245
- Ukraine: UA
246
- Union Island: VC
247
- United Arab Emirates: AE
248
- Uruguay: UY
249
- US Minor Outlying Islands: UM
250
- USSR (former): RU
251
- Uzbekistan: UZ
252
- Vanuatu: VU
253
- Vatican City State (Holy See): VA
254
- Venezuela: VE
255
- Vietnam: VN
256
- Virgin Gorda: VG
257
- Virgin Islands (British): VG
258
- Virgin Islands (U.S.): VI
259
- Wales: GB
260
- Wallis and Futuna Islands: WF
261
- Western Samoa: WS
262
- Yap: FM
263
- Yemen: YE
264
- Yugoslavia: ME
265
- Zaire: CG
266
- Zambia: ZM
267
- Zimbabwe: ZW
268
- Serbia: RS