exchange 0.2.6 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/.travis.yml +1 -0
  2. data/README.rdoc +5 -3
  3. data/VERSION +1 -1
  4. data/exchange.gemspec +16 -2
  5. data/iso4217.yml +589 -0
  6. data/lib/core_extensions/conversability.rb +12 -7
  7. data/lib/exchange.rb +7 -1
  8. data/lib/exchange/cache.rb +2 -0
  9. data/lib/exchange/cache/base.rb +9 -5
  10. data/lib/exchange/cache/file.rb +65 -0
  11. data/lib/exchange/cache/memcached.rb +4 -4
  12. data/lib/exchange/cache/no_cache.rb +33 -0
  13. data/lib/exchange/cache/rails.rb +2 -2
  14. data/lib/exchange/cache/redis.rb +5 -5
  15. data/lib/exchange/configuration.rb +23 -7
  16. data/lib/exchange/currency.rb +94 -40
  17. data/lib/exchange/external_api.rb +1 -0
  18. data/lib/exchange/external_api/base.rb +11 -19
  19. data/lib/exchange/external_api/call.rb +10 -12
  20. data/lib/exchange/external_api/currency_bot.rb +2 -2
  21. data/lib/exchange/external_api/ecb.rb +68 -0
  22. data/lib/exchange/external_api/xavier_media.rb +4 -3
  23. data/lib/exchange/helper.rb +27 -0
  24. data/lib/exchange/iso_4217.rb +95 -0
  25. data/spec/core_extensions/conversability_spec.rb +40 -6
  26. data/spec/exchange/cache/base_spec.rb +4 -4
  27. data/spec/exchange/cache/file_spec.rb +70 -0
  28. data/spec/exchange/cache/memcached_spec.rb +5 -2
  29. data/spec/exchange/cache/no_cache_spec.rb +27 -0
  30. data/spec/exchange/cache/rails_spec.rb +6 -3
  31. data/spec/exchange/cache/redis_spec.rb +5 -2
  32. data/spec/exchange/currency_spec.rb +86 -23
  33. data/spec/exchange/external_api/base_spec.rb +8 -5
  34. data/spec/exchange/external_api/call_spec.rb +38 -29
  35. data/spec/exchange/external_api/currency_bot_spec.rb +8 -10
  36. data/spec/exchange/external_api/ecb_spec.rb +55 -0
  37. data/spec/exchange/external_api/xavier_media_spec.rb +8 -8
  38. data/spec/exchange/helper_spec.rb +30 -0
  39. data/spec/exchange/iso_4217_spec.rb +45 -0
  40. data/spec/support/api_responses/example_ecb_xml_90d.xml +64 -0
  41. data/spec/support/api_responses/example_ecb_xml_daily.xml +44 -0
  42. data/spec/support/api_responses/example_ecb_xml_history.xml +64 -0
  43. metadata +35 -21
@@ -3,4 +3,5 @@ rvm:
3
3
  - 1.8.7
4
4
  - 1.9.2
5
5
  - 1.9.3
6
+ - ree
6
7
  script: bundle exec rspec
@@ -1,6 +1,6 @@
1
1
  = exchange {<img src="https://secure.travis-ci.org/beatrichartz/exchange.png" />}[http://travis-ci.org/beatrichartz/exchange]
2
2
 
3
- The Exchange Gem gives you easy access to currency functions directly on your Numbers. It has been tested against ruby 1.8.7, ruby 1.9.2 and 1.9.3. You can use it with just plain ruby projects, in Rails 2 and 3, Sinatra, Padrino or whatever Framework you like.
3
+ The Exchange Gem gives you easy access to currency functions directly on your Numbers. It has been tested against ruby 1.8.7, ree, ruby 1.9.2 and 1.9.3. You can use it with just plain ruby projects, in Rails 2 and 3, Sinatra, Padrino or whatever Framework you like.
4
4
 
5
5
  === Easy Conversion
6
6
 
@@ -27,10 +27,12 @@ But, same here, if you don't like any of these or want to use your own caching s
27
27
  == Installation
28
28
  === Bundler / Rails
29
29
  Add it to your Gemfile
30
- gem "exchange", ">=0.2.5"
30
+ gem "exchange", ">=0.2.6"
31
31
  === Manually
32
- Just install it as a gem :)
32
+ Just install it as a gem
33
33
  gem install exchange
34
+ Then require it
35
+ require 'exchange'
34
36
 
35
37
  == Basic Operations
36
38
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.3.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "exchange"
8
- s.version = "0.2.6"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Beat Richartz"]
12
- s.date = "2012-02-03"
12
+ s.date = "2012-02-05"
13
13
  s.description = "The Exchange Gem gives you easy access to currency functions directly on your Numbers. Imagine a conversion as easy as \n 1.eur.to_usd\n or even better \n 1.eur.to_usd(:at => Time.now - 84600)\n which gets you an exchange at the rates of yesterday."
14
14
  s.email = "exchange_gem@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -27,11 +27,14 @@ Gem::Specification.new do |s|
27
27
  "Rakefile",
28
28
  "VERSION",
29
29
  "exchange.gemspec",
30
+ "iso4217.yml",
30
31
  "lib/core_extensions/conversability.rb",
31
32
  "lib/exchange.rb",
32
33
  "lib/exchange/cache.rb",
33
34
  "lib/exchange/cache/base.rb",
35
+ "lib/exchange/cache/file.rb",
34
36
  "lib/exchange/cache/memcached.rb",
37
+ "lib/exchange/cache/no_cache.rb",
35
38
  "lib/exchange/cache/rails.rb",
36
39
  "lib/exchange/cache/redis.rb",
37
40
  "lib/exchange/configuration.rb",
@@ -40,10 +43,15 @@ Gem::Specification.new do |s|
40
43
  "lib/exchange/external_api/base.rb",
41
44
  "lib/exchange/external_api/call.rb",
42
45
  "lib/exchange/external_api/currency_bot.rb",
46
+ "lib/exchange/external_api/ecb.rb",
43
47
  "lib/exchange/external_api/xavier_media.rb",
48
+ "lib/exchange/helper.rb",
49
+ "lib/exchange/iso_4217.rb",
44
50
  "spec/core_extensions/conversability_spec.rb",
45
51
  "spec/exchange/cache/base_spec.rb",
52
+ "spec/exchange/cache/file_spec.rb",
46
53
  "spec/exchange/cache/memcached_spec.rb",
54
+ "spec/exchange/cache/no_cache_spec.rb",
47
55
  "spec/exchange/cache/rails_spec.rb",
48
56
  "spec/exchange/cache/redis_spec.rb",
49
57
  "spec/exchange/configuration_spec.rb",
@@ -51,8 +59,14 @@ Gem::Specification.new do |s|
51
59
  "spec/exchange/external_api/base_spec.rb",
52
60
  "spec/exchange/external_api/call_spec.rb",
53
61
  "spec/exchange/external_api/currency_bot_spec.rb",
62
+ "spec/exchange/external_api/ecb_spec.rb",
54
63
  "spec/exchange/external_api/xavier_media_spec.rb",
64
+ "spec/exchange/helper_spec.rb",
65
+ "spec/exchange/iso_4217_spec.rb",
55
66
  "spec/spec_helper.rb",
67
+ "spec/support/api_responses/example_ecb_xml_90d.xml",
68
+ "spec/support/api_responses/example_ecb_xml_daily.xml",
69
+ "spec/support/api_responses/example_ecb_xml_history.xml",
56
70
  "spec/support/api_responses/example_historic_json.json",
57
71
  "spec/support/api_responses/example_json_api.json",
58
72
  "spec/support/api_responses/example_xml_api.xml"
@@ -0,0 +1,589 @@
1
+ ---
2
+ NIO:
3
+ minor_unit: 2
4
+ currency: Cordoba Oro
5
+ LAK:
6
+ minor_unit: 2
7
+ currency: Kip
8
+ SAR:
9
+ format: "#,###.##"
10
+ minor_unit: 2
11
+ currency: Saudi Riyal
12
+ NOK:
13
+ format: "#.###,##"
14
+ minor_unit: 2
15
+ currency: Norwegian Krone
16
+ USD:
17
+ format: "#,###.##"
18
+ minor_unit: 2
19
+ currency: US Dollar
20
+ RUB:
21
+ format: "#.###,##"
22
+ minor_unit: 2
23
+ currency: Russian Ruble
24
+ XCD:
25
+ format: "#,###.##"
26
+ minor_unit: 2
27
+ currency: East Caribbean Dollar
28
+ OMR:
29
+ format: "#,###.###"
30
+ minor_unit: 3
31
+ currency: Rial Omani
32
+ AMD:
33
+ format: "#,###.##"
34
+ minor_unit: 2
35
+ currency: Armenian Dram
36
+ CDF:
37
+ minor_unit: 2
38
+ currency: Congolese Franc
39
+ KPW:
40
+ minor_unit: 2
41
+ currency: North Korean Won
42
+ CNY:
43
+ format: "#,###.##"
44
+ minor_unit: 2
45
+ currency: Yuan Renminbi
46
+ KES:
47
+ format: "#,###.##"
48
+ minor_unit: 2
49
+ currency: Kenyan Shilling
50
+ KHR:
51
+ minor_unit: 2
52
+ currency: Riel
53
+ PLN:
54
+ format: "# ###,##"
55
+ minor_unit: 2
56
+ currency: Zloty
57
+ MVR:
58
+ minor_unit: 2
59
+ currency: Rufiyaa
60
+ GTQ:
61
+ format: "#,###.##"
62
+ minor_unit: 2
63
+ currency: Quetzal
64
+ CLP:
65
+ format: "#.###"
66
+ minor_unit: 0
67
+ currency: Chilean Peso
68
+ INR:
69
+ format: "#,##,###.##"
70
+ minor_unit: 2
71
+ currency: Indian Rupee
72
+ BZD:
73
+ format: "#,###.##"
74
+ minor_unit: 2
75
+ currency: Belize Dollar
76
+ MYR:
77
+ format: "#,###.##"
78
+ minor_unit: 2
79
+ currency: Malaysian Ringgit
80
+ HKD:
81
+ format: "#,###.##"
82
+ minor_unit: 2
83
+ currency: Hong Kong Dollar
84
+ COP:
85
+ format: "#.###,##"
86
+ minor_unit: 2
87
+ currency: Colombian Peso
88
+ DKK:
89
+ format: "#.###,##"
90
+ minor_unit: 2
91
+ currency: Danish Krone
92
+ SEK:
93
+ format: "#.###,##"
94
+ minor_unit: 2
95
+ currency: Swedish Krona
96
+ BYR:
97
+ minor_unit: 0
98
+ currency: Belarussian Ruble
99
+ LYD:
100
+ minor_unit: 3
101
+ currency: Libyan Dinar
102
+ RON:
103
+ format: "#.###,##"
104
+ minor_unit: 2
105
+ currency: New Romanian Leu
106
+ DZD:
107
+ minor_unit: 2
108
+ currency: Algerian Dinar
109
+ BIF:
110
+ minor_unit: 0
111
+ currency: Burundi Franc
112
+ ARS:
113
+ format: "#.###,##"
114
+ minor_unit: 2
115
+ currency: Argentine Peso
116
+ GIP:
117
+ format: "#,###.##"
118
+ minor_unit: 2
119
+ currency: Gibraltar Pound
120
+ UYI:
121
+ minor_unit: 0
122
+ currency: Uruguay Peso en Unidades Indexadas (URUIURUI)
123
+ BOB:
124
+ format: "#,###.##"
125
+ minor_unit: 2
126
+ currency: Boliviano
127
+ SSP:
128
+ minor_unit: 2
129
+ currency: South Sudanese Pound
130
+ NGN:
131
+ minor_unit: 2
132
+ currency: Naira
133
+ PGK:
134
+ minor_unit: 2
135
+ currency: Kina
136
+ STD:
137
+ minor_unit: 2
138
+ currency: Dobra
139
+ XOF:
140
+ minor_unit: 0
141
+ currency: CFA Franc BCEAO
142
+ AED:
143
+ format: "#,###.##"
144
+ minor_unit: 2
145
+ currency: UAE Dirham
146
+ ERN:
147
+ minor_unit: 2
148
+ currency: Nakfa
149
+ MWK:
150
+ minor_unit: 2
151
+ currency: Kwacha
152
+ CUP:
153
+ format: "#,###.##"
154
+ minor_unit: 2
155
+ currency: Cuban Peso
156
+ USN:
157
+ minor_unit: 2
158
+ currency: US Dollar (Next day)
159
+ GMD:
160
+ minor_unit: 2
161
+ currency: Dalasi
162
+ CVE:
163
+ minor_unit: 2
164
+ currency: Cape Verde Escudo
165
+ TZS:
166
+ format: "#,###.##"
167
+ minor_unit: 2
168
+ currency: Tanzanian Shilling
169
+ COU:
170
+ minor_unit: 2
171
+ currency: Unidad de Valor Real
172
+ BTN:
173
+ minor_unit: 2
174
+ currency: Ngultrum
175
+ ZWL:
176
+ minor_unit: 2
177
+ currency: Zimbabwe Dollar
178
+ UGX:
179
+ minor_unit: 2
180
+ currency: Uganda Shilling
181
+ SYP:
182
+ minor_unit: 2
183
+ currency: Syrian Pound
184
+ MAD:
185
+ minor_unit: 2
186
+ currency: Moroccan Dirham
187
+ MNT:
188
+ minor_unit: 2
189
+ currency: Tugrik
190
+ LSL:
191
+ minor_unit: 2
192
+ currency: Loti
193
+ XAF:
194
+ minor_unit: 0
195
+ currency: CFA Franc BEAC
196
+ SHP:
197
+ minor_unit: 2
198
+ currency: Saint Helena Pound
199
+ HTG:
200
+ minor_unit: 2
201
+ currency: Gourde
202
+ RSD:
203
+ minor_unit: 2
204
+ currency: Serbian Dinar
205
+ MGA:
206
+ minor_unit: 2
207
+ currency: Malagasy Ariary
208
+ TOP:
209
+ format: "#,###.##"
210
+ minor_unit: 2
211
+ currency: !binary |
212
+ UGHigJlhbmdh
213
+
214
+ MZN:
215
+ minor_unit: 2
216
+ currency: Mozambique Metical
217
+ LVL:
218
+ format: "#,###.##"
219
+ minor_unit: 2
220
+ currency: Latvian Lats
221
+ FKP:
222
+ minor_unit: 2
223
+ currency: Falkland Islands Pound
224
+ USS:
225
+ minor_unit: 2
226
+ currency: US Dollar (Same day)
227
+ BWP:
228
+ format: "#,###.##"
229
+ minor_unit: 2
230
+ currency: Pula
231
+ HNL:
232
+ format: "#,###.##"
233
+ minor_unit: 2
234
+ currency: Lempira
235
+ CHE:
236
+ minor_unit: 2
237
+ currency: WIR Euro
238
+ EUR:
239
+ format: "#,###.##"
240
+ minor_unit: 2
241
+ currency: Euro
242
+ EGP:
243
+ format: "#,###.##"
244
+ minor_unit: 2
245
+ currency: Egyptian Pound
246
+ CHF:
247
+ format: "#'###.##"
248
+ minor_unit: 2
249
+ currency: Swiss Franc
250
+ ILS:
251
+ format: "#,###.##"
252
+ minor_unit: 2
253
+ currency: New Israeli Sheqel
254
+ PYG:
255
+ minor_unit: 0
256
+ currency: Guarani
257
+ LBP:
258
+ format: "# ###"
259
+ minor_unit: 2
260
+ currency: Lebanese Pound
261
+ ANG:
262
+ format: "#.###,##"
263
+ minor_unit: 2
264
+ currency: Netherlands Antillean Guilder
265
+ KZT:
266
+ minor_unit: 2
267
+ currency: Tenge
268
+ GYD:
269
+ minor_unit: 2
270
+ currency: Guyana Dollar
271
+ WST:
272
+ minor_unit: 2
273
+ currency: Tala
274
+ NPR:
275
+ format: "#,###.##"
276
+ minor_unit: 2
277
+ currency: Nepalese Rupee
278
+ KMF:
279
+ minor_unit: 0
280
+ currency: Comoro Franc
281
+ THB:
282
+ format: "#,###.##"
283
+ minor_unit: 2
284
+ currency: Baht
285
+ IRR:
286
+ format: "#,###.##"
287
+ minor_unit: 2
288
+ currency: Iranian Rial
289
+ SRD:
290
+ minor_unit: 2
291
+ currency: Surinam Dollar
292
+ JPY:
293
+ format: "#,###"
294
+ minor_unit: 0
295
+ currency: Yen
296
+ BRL:
297
+ format: "#.###,##"
298
+ minor_unit: 2
299
+ currency: Brazilian Real
300
+ UYU:
301
+ format: "#.###,##"
302
+ minor_unit: 2
303
+ currency: Peso Uruguayo
304
+ MOP:
305
+ minor_unit: 2
306
+ currency: Pataca
307
+ BMD:
308
+ format: "#,###.##"
309
+ minor_unit: 2
310
+ currency: Bermudian Dollar
311
+ SZL:
312
+ format: "#, ###.##"
313
+ minor_unit: 2
314
+ currency: Lilangeni
315
+ ETB:
316
+ minor_unit: 2
317
+ currency: Ethiopian Birr
318
+ JOD:
319
+ format: "#,###.###"
320
+ minor_unit: 3
321
+ currency: Jordanian Dinar
322
+ IDR:
323
+ format: "#.###,##"
324
+ minor_unit: 2
325
+ currency: Rupiah
326
+ MDL:
327
+ minor_unit: 2
328
+ currency: Moldovan Leu
329
+ XPF:
330
+ minor_unit: 0
331
+ currency: CFP Franc
332
+ MRO:
333
+ minor_unit: 2
334
+ currency: Ouguiya
335
+ YER:
336
+ minor_unit: 2
337
+ currency: Yemeni Rial
338
+ BAM:
339
+ format: "#,###.##"
340
+ minor_unit: 2
341
+ currency: Convertible Mark
342
+ AWG:
343
+ format: "#,###.##"
344
+ minor_unit: 2
345
+ currency: Aruban Florin
346
+ NZD:
347
+ format: "#,###.##"
348
+ minor_unit: 2
349
+ currency: New Zealand Dollar
350
+ PEN:
351
+ format: "#,###.##"
352
+ minor_unit: 2
353
+ currency: Nuevo Sol
354
+ AOA:
355
+ minor_unit: 2
356
+ currency: Kwanza
357
+ KYD:
358
+ format: "#,###.##"
359
+ minor_unit: 2
360
+ currency: Cayman Islands Dollar
361
+ SLL:
362
+ minor_unit: 2
363
+ currency: Leone
364
+ TRY:
365
+ format: "#,###.##"
366
+ minor_unit: 2
367
+ currency: Turkish Lira
368
+ VEF:
369
+ format: "#.###,##"
370
+ minor_unit: 2
371
+ currency: Bolivar Fuerte
372
+ ISK:
373
+ format: "#.###"
374
+ minor_unit: 0
375
+ currency: Iceland Krona
376
+ GNF:
377
+ minor_unit: 0
378
+ currency: Guinea Franc
379
+ BSD:
380
+ format: "#,###.##"
381
+ minor_unit: 2
382
+ currency: Bahamian Dollar
383
+ DJF:
384
+ minor_unit: 0
385
+ currency: Djibouti Franc
386
+ HUF:
387
+ format: "#.###"
388
+ minor_unit: 2
389
+ currency: Forint
390
+ LTL:
391
+ format: "# ###,##"
392
+ minor_unit: 2
393
+ currency: Lithuanian Litas
394
+ MXN:
395
+ format: "#,###.##"
396
+ minor_unit: 2
397
+ currency: Mexican Peso
398
+ SCR:
399
+ minor_unit: 2
400
+ currency: Seychelles Rupee
401
+ SGD:
402
+ format: "#,###.##"
403
+ minor_unit: 2
404
+ currency: Singapore Dollar
405
+ LKR:
406
+ minor_unit: 2
407
+ currency: Sri Lanka Rupee
408
+ TJS:
409
+ minor_unit: 2
410
+ currency: Somoni
411
+ TND:
412
+ minor_unit: 3
413
+ currency: Tunisian Dinar
414
+ DOP:
415
+ format: "#,###.##"
416
+ minor_unit: 2
417
+ currency: Dominican Peso
418
+ FJD:
419
+ minor_unit: 2
420
+ currency: Fiji Dollar
421
+ GEL:
422
+ minor_unit: 2
423
+ currency: Lari
424
+ SDG:
425
+ minor_unit: 2
426
+ currency: Sudanese Pound
427
+ VUV:
428
+ format: "#,###"
429
+ minor_unit: 0
430
+ currency: Vatu
431
+ BBD:
432
+ minor_unit: 2
433
+ currency: Barbados Dollar
434
+ LRD:
435
+ minor_unit: 2
436
+ currency: Liberian Dollar
437
+ KRW:
438
+ format: "#,###"
439
+ minor_unit: 0
440
+ currency: Won
441
+ MMK:
442
+ minor_unit: 2
443
+ currency: Kyat
444
+ MUR:
445
+ format: "#,###"
446
+ minor_unit: 2
447
+ currency: Mauritius Rupee
448
+ PHP:
449
+ format: "#,###.##"
450
+ minor_unit: 2
451
+ currency: Philippine Peso
452
+ ZAR:
453
+ format: "# ###.##"
454
+ minor_unit: 2
455
+ currency: Rand
456
+ KGS:
457
+ minor_unit: 2
458
+ currency: Som
459
+ GBP:
460
+ format: "#,###.##"
461
+ minor_unit: 2
462
+ currency: Pound Sterling
463
+ BGN:
464
+ minor_unit: 2
465
+ currency: Bulgarian Lev
466
+ IQD:
467
+ minor_unit: 3
468
+ currency: Iraqi Dinar
469
+ TMT:
470
+ minor_unit: 2
471
+ currency: Turkmenistan New Manat
472
+ UAH:
473
+ format: "# ###,##"
474
+ minor_unit: 2
475
+ currency: Hryvnia
476
+ VND:
477
+ format: "#.###"
478
+ minor_unit: 0
479
+ currency: Dong
480
+ ZMK:
481
+ minor_unit: 2
482
+ currency: Zambian Kwacha
483
+ BOV:
484
+ minor_unit: 2
485
+ currency: Mvdol
486
+ HRK:
487
+ format: "#.###,##"
488
+ minor_unit: 2
489
+ currency: Croatian Kuna
490
+ TTD:
491
+ minor_unit: 2
492
+ currency: Trinidad and Tobago Dollar
493
+ BHD:
494
+ format: "#,###.###"
495
+ minor_unit: 3
496
+ currency: Bahraini Dinar
497
+ CLF:
498
+ minor_unit: 0
499
+ currency: Unidades de fomento
500
+ RWF:
501
+ minor_unit: 0
502
+ currency: Rwanda Franc
503
+ MKD:
504
+ format: "#,###.##"
505
+ minor_unit: 2
506
+ currency: Denar
507
+ AUD:
508
+ format: "# ###.##"
509
+ minor_unit: 2
510
+ currency: Australian Dollar
511
+ CRC:
512
+ format: "#.###,##"
513
+ minor_unit: 2
514
+ currency: Costa Rican Colon
515
+ PKR:
516
+ format: "#,###.##"
517
+ minor_unit: 2
518
+ currency: Pakistan Rupee
519
+ TWD:
520
+ minor_unit: 2
521
+ currency: New Taiwan Dollar
522
+ UZS:
523
+ minor_unit: 2
524
+ currency: Uzbekistan Sum
525
+ CZK:
526
+ format: "#.###,##"
527
+ minor_unit: 2
528
+ currency: Czech Koruna
529
+ AZN:
530
+ minor_unit: 2
531
+ currency: Azerbaijanian Manat
532
+ BDT:
533
+ format: "#,###.##"
534
+ minor_unit: 2
535
+ currency: Taka
536
+ NAD:
537
+ minor_unit: 2
538
+ currency: Namibia Dollar
539
+ AFN:
540
+ minor_unit: 2
541
+ currency: Afghani
542
+ MXV:
543
+ minor_unit: 2
544
+ currency: Mexican Unidad de Inversion (UDI)
545
+ CUC:
546
+ format: "#,###.##"
547
+ minor_unit: 2
548
+ currency: Peso Convertible
549
+ PAB:
550
+ minor_unit: 2
551
+ currency: Balboa
552
+ QAR:
553
+ minor_unit: 2
554
+ currency: Qatari Rial
555
+ SOS:
556
+ minor_unit: 2
557
+ currency: Somali Shilling
558
+ CHW:
559
+ minor_unit: 2
560
+ currency: WIR Franc
561
+ CAD:
562
+ format: "#,###.##"
563
+ minor_unit: 2
564
+ currency: Canadian Dollar
565
+ JMD:
566
+ format: "#,###.##"
567
+ minor_unit: 2
568
+ currency: Jamaican Dollar
569
+ BND:
570
+ format: "#,###.##"
571
+ minor_unit: 2
572
+ currency: Brunei Dollar
573
+ ALL:
574
+ minor_unit: 2
575
+ currency: Lek
576
+ SVC:
577
+ format: "#,###.##"
578
+ minor_unit: 2
579
+ currency: El Salvador Colon
580
+ SBD:
581
+ minor_unit: 2
582
+ currency: Solomon Islands Dollar
583
+ GHS:
584
+ minor_unit: 2
585
+ currency: Ghana Cedi
586
+ KWD:
587
+ format: "#,###.###"
588
+ minor_unit: 3
589
+ currency: Kuwaiti Dinar