maguire 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. data/LICENSE +21 -0
  2. data/README.md +59 -0
  3. data/iso_data/seed_layer/aed.json +9 -0
  4. data/iso_data/seed_layer/afn.json +9 -0
  5. data/iso_data/seed_layer/all.json +9 -0
  6. data/iso_data/seed_layer/amd.json +9 -0
  7. data/iso_data/seed_layer/ang.json +10 -0
  8. data/iso_data/seed_layer/aoa.json +9 -0
  9. data/iso_data/seed_layer/ars.json +9 -0
  10. data/iso_data/seed_layer/aud.json +16 -0
  11. data/iso_data/seed_layer/awg.json +9 -0
  12. data/iso_data/seed_layer/azn.json +9 -0
  13. data/iso_data/seed_layer/bam.json +9 -0
  14. data/iso_data/seed_layer/bbd.json +9 -0
  15. data/iso_data/seed_layer/bdt.json +9 -0
  16. data/iso_data/seed_layer/bgn.json +9 -0
  17. data/iso_data/seed_layer/bhd.json +9 -0
  18. data/iso_data/seed_layer/bif.json +9 -0
  19. data/iso_data/seed_layer/bmd.json +9 -0
  20. data/iso_data/seed_layer/bnd.json +9 -0
  21. data/iso_data/seed_layer/bob.json +9 -0
  22. data/iso_data/seed_layer/bov.json +9 -0
  23. data/iso_data/seed_layer/brl.json +9 -0
  24. data/iso_data/seed_layer/bsd.json +9 -0
  25. data/iso_data/seed_layer/btn.json +9 -0
  26. data/iso_data/seed_layer/bwp.json +9 -0
  27. data/iso_data/seed_layer/byr.json +9 -0
  28. data/iso_data/seed_layer/bzd.json +9 -0
  29. data/iso_data/seed_layer/cad.json +9 -0
  30. data/iso_data/seed_layer/cdf.json +9 -0
  31. data/iso_data/seed_layer/che.json +9 -0
  32. data/iso_data/seed_layer/chf.json +10 -0
  33. data/iso_data/seed_layer/chw.json +9 -0
  34. data/iso_data/seed_layer/clf.json +9 -0
  35. data/iso_data/seed_layer/clp.json +9 -0
  36. data/iso_data/seed_layer/cny.json +9 -0
  37. data/iso_data/seed_layer/cop.json +9 -0
  38. data/iso_data/seed_layer/cou.json +9 -0
  39. data/iso_data/seed_layer/crc.json +9 -0
  40. data/iso_data/seed_layer/cuc.json +9 -0
  41. data/iso_data/seed_layer/cup.json +9 -0
  42. data/iso_data/seed_layer/cve.json +9 -0
  43. data/iso_data/seed_layer/czk.json +9 -0
  44. data/iso_data/seed_layer/djf.json +9 -0
  45. data/iso_data/seed_layer/dkk.json +11 -0
  46. data/iso_data/seed_layer/dop.json +9 -0
  47. data/iso_data/seed_layer/dzd.json +9 -0
  48. data/iso_data/seed_layer/egp.json +9 -0
  49. data/iso_data/seed_layer/ern.json +9 -0
  50. data/iso_data/seed_layer/etb.json +9 -0
  51. data/iso_data/seed_layer/eur.json +42 -0
  52. data/iso_data/seed_layer/fjd.json +9 -0
  53. data/iso_data/seed_layer/fkp.json +9 -0
  54. data/iso_data/seed_layer/gbp.json +12 -0
  55. data/iso_data/seed_layer/gel.json +9 -0
  56. data/iso_data/seed_layer/ghs.json +9 -0
  57. data/iso_data/seed_layer/gip.json +9 -0
  58. data/iso_data/seed_layer/gmd.json +9 -0
  59. data/iso_data/seed_layer/gnf.json +9 -0
  60. data/iso_data/seed_layer/gtq.json +9 -0
  61. data/iso_data/seed_layer/gyd.json +9 -0
  62. data/iso_data/seed_layer/hkd.json +9 -0
  63. data/iso_data/seed_layer/hnl.json +9 -0
  64. data/iso_data/seed_layer/hrk.json +9 -0
  65. data/iso_data/seed_layer/htg.json +9 -0
  66. data/iso_data/seed_layer/huf.json +9 -0
  67. data/iso_data/seed_layer/idr.json +9 -0
  68. data/iso_data/seed_layer/ils.json +9 -0
  69. data/iso_data/seed_layer/inr.json +10 -0
  70. data/iso_data/seed_layer/iqd.json +9 -0
  71. data/iso_data/seed_layer/irr.json +9 -0
  72. data/iso_data/seed_layer/isk.json +9 -0
  73. data/iso_data/seed_layer/jmd.json +9 -0
  74. data/iso_data/seed_layer/jod.json +9 -0
  75. data/iso_data/seed_layer/jpy.json +9 -0
  76. data/iso_data/seed_layer/kes.json +9 -0
  77. data/iso_data/seed_layer/kgs.json +9 -0
  78. data/iso_data/seed_layer/khr.json +9 -0
  79. data/iso_data/seed_layer/kmf.json +9 -0
  80. data/iso_data/seed_layer/kpw.json +9 -0
  81. data/iso_data/seed_layer/krw.json +9 -0
  82. data/iso_data/seed_layer/kwd.json +9 -0
  83. data/iso_data/seed_layer/kyd.json +9 -0
  84. data/iso_data/seed_layer/kzt.json +9 -0
  85. data/iso_data/seed_layer/lak.json +9 -0
  86. data/iso_data/seed_layer/lbp.json +9 -0
  87. data/iso_data/seed_layer/lkr.json +9 -0
  88. data/iso_data/seed_layer/lrd.json +9 -0
  89. data/iso_data/seed_layer/lsl.json +9 -0
  90. data/iso_data/seed_layer/ltl.json +9 -0
  91. data/iso_data/seed_layer/lyd.json +9 -0
  92. data/iso_data/seed_layer/mad.json +10 -0
  93. data/iso_data/seed_layer/mdl.json +9 -0
  94. data/iso_data/seed_layer/mga.json +9 -0
  95. data/iso_data/seed_layer/mkd.json +9 -0
  96. data/iso_data/seed_layer/mmk.json +9 -0
  97. data/iso_data/seed_layer/mnt.json +9 -0
  98. data/iso_data/seed_layer/mop.json +9 -0
  99. data/iso_data/seed_layer/mro.json +9 -0
  100. data/iso_data/seed_layer/mur.json +9 -0
  101. data/iso_data/seed_layer/mvr.json +9 -0
  102. data/iso_data/seed_layer/mwk.json +9 -0
  103. data/iso_data/seed_layer/mxn.json +9 -0
  104. data/iso_data/seed_layer/mxv.json +9 -0
  105. data/iso_data/seed_layer/myr.json +9 -0
  106. data/iso_data/seed_layer/mzn.json +9 -0
  107. data/iso_data/seed_layer/nad.json +9 -0
  108. data/iso_data/seed_layer/ngn.json +9 -0
  109. data/iso_data/seed_layer/nio.json +9 -0
  110. data/iso_data/seed_layer/nok.json +11 -0
  111. data/iso_data/seed_layer/npr.json +9 -0
  112. data/iso_data/seed_layer/nzd.json +13 -0
  113. data/iso_data/seed_layer/omr.json +9 -0
  114. data/iso_data/seed_layer/pab.json +9 -0
  115. data/iso_data/seed_layer/pen.json +9 -0
  116. data/iso_data/seed_layer/pgk.json +9 -0
  117. data/iso_data/seed_layer/php.json +9 -0
  118. data/iso_data/seed_layer/pkr.json +9 -0
  119. data/iso_data/seed_layer/pln.json +9 -0
  120. data/iso_data/seed_layer/pyg.json +9 -0
  121. data/iso_data/seed_layer/qar.json +9 -0
  122. data/iso_data/seed_layer/ron.json +9 -0
  123. data/iso_data/seed_layer/rsd.json +9 -0
  124. data/iso_data/seed_layer/rub.json +9 -0
  125. data/iso_data/seed_layer/rwf.json +9 -0
  126. data/iso_data/seed_layer/sar.json +9 -0
  127. data/iso_data/seed_layer/sbd.json +9 -0
  128. data/iso_data/seed_layer/scr.json +9 -0
  129. data/iso_data/seed_layer/sdg.json +9 -0
  130. data/iso_data/seed_layer/sek.json +9 -0
  131. data/iso_data/seed_layer/sgd.json +9 -0
  132. data/iso_data/seed_layer/shp.json +9 -0
  133. data/iso_data/seed_layer/sll.json +9 -0
  134. data/iso_data/seed_layer/sos.json +9 -0
  135. data/iso_data/seed_layer/srd.json +9 -0
  136. data/iso_data/seed_layer/ssp.json +9 -0
  137. data/iso_data/seed_layer/std.json +9 -0
  138. data/iso_data/seed_layer/svc.json +9 -0
  139. data/iso_data/seed_layer/syp.json +9 -0
  140. data/iso_data/seed_layer/szl.json +9 -0
  141. data/iso_data/seed_layer/thb.json +9 -0
  142. data/iso_data/seed_layer/tjs.json +9 -0
  143. data/iso_data/seed_layer/tmt.json +9 -0
  144. data/iso_data/seed_layer/tnd.json +9 -0
  145. data/iso_data/seed_layer/top.json +9 -0
  146. data/iso_data/seed_layer/try.json +9 -0
  147. data/iso_data/seed_layer/ttd.json +9 -0
  148. data/iso_data/seed_layer/twd.json +9 -0
  149. data/iso_data/seed_layer/tzs.json +9 -0
  150. data/iso_data/seed_layer/uah.json +9 -0
  151. data/iso_data/seed_layer/ugx.json +9 -0
  152. data/iso_data/seed_layer/usd.json +27 -0
  153. data/iso_data/seed_layer/usn.json +9 -0
  154. data/iso_data/seed_layer/uyi.json +9 -0
  155. data/iso_data/seed_layer/uyu.json +9 -0
  156. data/iso_data/seed_layer/uzs.json +9 -0
  157. data/iso_data/seed_layer/vef.json +9 -0
  158. data/iso_data/seed_layer/vnd.json +9 -0
  159. data/iso_data/seed_layer/vuv.json +9 -0
  160. data/iso_data/seed_layer/wst.json +9 -0
  161. data/iso_data/seed_layer/xaf.json +14 -0
  162. data/iso_data/seed_layer/xag.json +9 -0
  163. data/iso_data/seed_layer/xau.json +9 -0
  164. data/iso_data/seed_layer/xba.json +9 -0
  165. data/iso_data/seed_layer/xbb.json +9 -0
  166. data/iso_data/seed_layer/xbc.json +9 -0
  167. data/iso_data/seed_layer/xbd.json +9 -0
  168. data/iso_data/seed_layer/xcd.json +16 -0
  169. data/iso_data/seed_layer/xdr.json +9 -0
  170. data/iso_data/seed_layer/xof.json +16 -0
  171. data/iso_data/seed_layer/xpd.json +9 -0
  172. data/iso_data/seed_layer/xpf.json +11 -0
  173. data/iso_data/seed_layer/xpt.json +9 -0
  174. data/iso_data/seed_layer/xsu.json +9 -0
  175. data/iso_data/seed_layer/xts.json +9 -0
  176. data/iso_data/seed_layer/xua.json +9 -0
  177. data/iso_data/seed_layer/xxx.json +9 -0
  178. data/iso_data/seed_layer/yer.json +9 -0
  179. data/iso_data/seed_layer/zar.json +11 -0
  180. data/iso_data/seed_layer/zmw.json +9 -0
  181. data/iso_data/seed_layer/zwl.json +9 -0
  182. data/iso_data/symbol_layer/aud.json +3 -0
  183. data/iso_data/symbol_layer/aud.json~ +17 -0
  184. data/iso_data/symbol_layer/cad.json +3 -0
  185. data/iso_data/symbol_layer/cad.json~ +10 -0
  186. data/iso_data/symbol_layer/chf.json +3 -0
  187. data/iso_data/symbol_layer/chf.json~ +11 -0
  188. data/iso_data/symbol_layer/cny.json +4 -0
  189. data/iso_data/symbol_layer/cny.json~ +11 -0
  190. data/iso_data/symbol_layer/dkk.json +3 -0
  191. data/iso_data/symbol_layer/dkk.json~ +12 -0
  192. data/iso_data/symbol_layer/eur.json +4 -0
  193. data/iso_data/symbol_layer/eur.json~ +44 -0
  194. data/iso_data/symbol_layer/gbp.json +4 -0
  195. data/iso_data/symbol_layer/gbp.json~ +14 -0
  196. data/iso_data/symbol_layer/hkd.json +3 -0
  197. data/iso_data/symbol_layer/hkd.json~ +10 -0
  198. data/iso_data/symbol_layer/ils.json +4 -0
  199. data/iso_data/symbol_layer/ils.json~ +11 -0
  200. data/iso_data/symbol_layer/inr.json +4 -0
  201. data/iso_data/symbol_layer/inr.json~ +12 -0
  202. data/iso_data/symbol_layer/jpy.json +4 -0
  203. data/iso_data/symbol_layer/jpy.json~ +11 -0
  204. data/iso_data/symbol_layer/khr.json +4 -0
  205. data/iso_data/symbol_layer/khr.json~ +11 -0
  206. data/iso_data/symbol_layer/kpw.json +4 -0
  207. data/iso_data/symbol_layer/kpw.json~ +11 -0
  208. data/iso_data/symbol_layer/krw.json +4 -0
  209. data/iso_data/symbol_layer/krw.json~ +11 -0
  210. data/iso_data/symbol_layer/lkr.json +4 -0
  211. data/iso_data/symbol_layer/lkr.json~ +11 -0
  212. data/iso_data/symbol_layer/mur.json +4 -0
  213. data/iso_data/symbol_layer/mur.json~ +11 -0
  214. data/iso_data/symbol_layer/mxn.json +3 -0
  215. data/iso_data/symbol_layer/mxn.json~ +10 -0
  216. data/iso_data/symbol_layer/ngn.json +4 -0
  217. data/iso_data/symbol_layer/ngn.json~ +11 -0
  218. data/iso_data/symbol_layer/nok.json +3 -0
  219. data/iso_data/symbol_layer/nok.json~ +12 -0
  220. data/iso_data/symbol_layer/npr.json +4 -0
  221. data/iso_data/symbol_layer/npr.json~ +11 -0
  222. data/iso_data/symbol_layer/php.json +4 -0
  223. data/iso_data/symbol_layer/php.json~ +11 -0
  224. data/iso_data/symbol_layer/pkr.json +4 -0
  225. data/iso_data/symbol_layer/pkr.json~ +11 -0
  226. data/iso_data/symbol_layer/rub.json +4 -0
  227. data/iso_data/symbol_layer/rub.json~ +11 -0
  228. data/iso_data/symbol_layer/scr.json +3 -0
  229. data/iso_data/symbol_layer/scr.json~ +10 -0
  230. data/iso_data/symbol_layer/sek.json +3 -0
  231. data/iso_data/symbol_layer/sek.json~ +10 -0
  232. data/iso_data/symbol_layer/thb.json +4 -0
  233. data/iso_data/symbol_layer/thb.json~ +11 -0
  234. data/iso_data/symbol_layer/try.json +4 -0
  235. data/iso_data/symbol_layer/try.json~ +11 -0
  236. data/iso_data/symbol_layer/uah.json +4 -0
  237. data/iso_data/symbol_layer/uah.json~ +11 -0
  238. data/iso_data/symbol_layer/usd.json +3 -0
  239. data/iso_data/symbol_layer/usd.json~ +28 -0
  240. data/iso_data/symbol_layer/vnd.json +4 -0
  241. data/iso_data/symbol_layer/vnd.json~ +11 -0
  242. data/iso_data/symbol_layer/zar.json +3 -0
  243. data/iso_data/symbol_layer/zar.json~ +12 -0
  244. data/lib/maguire/currency.rb +29 -0
  245. data/lib/maguire/data_set.rb +61 -0
  246. data/lib/maguire/hash.rb +13 -0
  247. data/lib/maguire/locale.rb +165 -0
  248. data/lib/maguire/version.rb +3 -0
  249. data/lib/maguire.rb +47 -0
  250. data/locale/en_CA.json~ +26 -0
  251. data/locale/en_US.json +26 -0
  252. data/locale/en_US.json~ +50 -0
  253. metadata +360 -0
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Paddle8
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # Maguire [![Build Status](https://next.travis-ci.org/paddle8/maguire.svg)](https://next.travis-ci.org/paddle8/maguire) [![Code Climate](https://codeclimate.com/github/paddle8/maguire.png)](https://codeclimate.com/github/paddle8/maguire) [![Code Climate](https://codeclimate.com/github/paddle8/maguire/coverage.png)](https://codeclimate.com/github/paddle8/maguire)
2
+
3
+ Maguire handles formatting currencies in various locales with capabilities to layer custom data sets on top.
4
+
5
+ ## Adding your own locales
6
+
7
+ To add your own locale information, point Maguire to the directory in your project where the locale files will be:
8
+
9
+ ```ruby
10
+ Maguire.locale_paths << "path/to/my/locales"
11
+ ```
12
+
13
+ If you're adding a customization for French-speaking Canadians, the JSON file should be named `fr_CA.json`.
14
+
15
+ The file should *at least* have a layouts hash for providing information on how to format the currencies. The layout format should always be in US Dollars (using the code `USD`, and symbol `$`) and use the monetary value of `1234567890.12`.
16
+
17
+ So a layout for use in Quebec might be:
18
+
19
+ ```json
20
+ {
21
+ "layouts": {
22
+ "positive": "1.234.567.890,12 $",
23
+ "negative": "-1.234.567.890,12"
24
+ }
25
+ }
26
+ ```
27
+
28
+ Note: positive and negative layouts must be provided.
29
+
30
+ ## Adding your own currencies
31
+
32
+ Adding your own custom currencies works just like adding your own locales; point Maguire to the directory where your currency files are:
33
+
34
+ ```ruby
35
+ Maguire.data_paths << "path/to/my/currencies"
36
+ ```
37
+
38
+ If you're adding Bitcoin to your project, the JSON file should be named `BTC`. (This corresponds to the lookup code used by the currency parameter passed into the `format` method.)
39
+
40
+ Currency files are required to have a `"symbol"` (and `"symbol_html"` if needed), `"code"`, and `"minor_units"` values. (`"minor_units"` says how many minor units make up a major unit in the currency. If there is no minor unit, this should be 0.)
41
+
42
+ A file for the Bitcoin currency would look like:
43
+
44
+ ```json
45
+ {
46
+ "name": "Bitcoin",
47
+ "code": "BTC",
48
+ "symbol": "฿",
49
+ "symbol_html": "&#3647;",
50
+ "minor_units": 0
51
+ }
52
+ ```
53
+
54
+ After doing this, you can format your Bitcoins:
55
+
56
+ ```ruby
57
+ Maguire.format({ value: 400_000, currency: "BTC" })
58
+ # ฿400,000
59
+ ```
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "UAE Dirham",
3
+ "code": "AED",
4
+ "number": "784",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "UNITED ARAB EMIRATES"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Afghani",
3
+ "code": "AFN",
4
+ "number": "971",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "AFGHANISTAN"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Lek",
3
+ "code": "ALL",
4
+ "number": "008",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "ALBANIA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Armenian Dram",
3
+ "code": "AMD",
4
+ "number": "051",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "ARMENIA"
8
+ ]
9
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "Netherlands Antillean Guilder",
3
+ "code": "ANG",
4
+ "number": "532",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "CURAÇAO",
8
+ "SINT MAARTEN (DUTCH PART)"
9
+ ]
10
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Kwanza",
3
+ "code": "AOA",
4
+ "number": "973",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "ANGOLA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Argentine Peso",
3
+ "code": "ARS",
4
+ "number": "032",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "ARGENTINA"
8
+ ]
9
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "Australian Dollar",
3
+ "code": "AUD",
4
+ "number": "036",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "AUSTRALIA",
8
+ "CHRISTMAS ISLAND",
9
+ "COCOS (KEELING) ISLANDS",
10
+ "HEARD ISLAND AND McDONALD ISLANDS",
11
+ "KIRIBATI",
12
+ "NAURU",
13
+ "NORFOLK ISLAND",
14
+ "TUVALU"
15
+ ]
16
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Aruban Florin",
3
+ "code": "AWG",
4
+ "number": "533",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "ARUBA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Azerbaijanian Manat",
3
+ "code": "AZN",
4
+ "number": "944",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "AZERBAIJAN"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Convertible Mark",
3
+ "code": "BAM",
4
+ "number": "977",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BOSNIA AND HERZEGOVINA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Barbados Dollar",
3
+ "code": "BBD",
4
+ "number": "052",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BARBADOS"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Taka",
3
+ "code": "BDT",
4
+ "number": "050",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BANGLADESH"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Bulgarian Lev",
3
+ "code": "BGN",
4
+ "number": "975",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BULGARIA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Bahraini Dinar",
3
+ "code": "BHD",
4
+ "number": "048",
5
+ "minor_units": 3,
6
+ "countries": [
7
+ "BAHRAIN"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Burundi Franc",
3
+ "code": "BIF",
4
+ "number": "108",
5
+ "minor_units": 0,
6
+ "countries": [
7
+ "BURUNDI"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Bermudian Dollar",
3
+ "code": "BMD",
4
+ "number": "060",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BERMUDA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Brunei Dollar",
3
+ "code": "BND",
4
+ "number": "096",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BRUNEI DARUSSALAM"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Boliviano",
3
+ "code": "BOB",
4
+ "number": "068",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BOLIVIA, PLURINATIONAL STATE OF"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Mvdol",
3
+ "code": "BOV",
4
+ "number": "984",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BOLIVIA, PLURINATIONAL STATE OF"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Brazilian Real",
3
+ "code": "BRL",
4
+ "number": "986",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BRAZIL"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Bahamian Dollar",
3
+ "code": "BSD",
4
+ "number": "044",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BAHAMAS"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Ngultrum",
3
+ "code": "BTN",
4
+ "number": "064",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BHUTAN"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Pula",
3
+ "code": "BWP",
4
+ "number": "072",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BOTSWANA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Belarussian Ruble",
3
+ "code": "BYR",
4
+ "number": "974",
5
+ "minor_units": 0,
6
+ "countries": [
7
+ "BELARUS"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Belize Dollar",
3
+ "code": "BZD",
4
+ "number": "084",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "BELIZE"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Canadian Dollar",
3
+ "code": "CAD",
4
+ "number": "124",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "CANADA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Congolese Franc",
3
+ "code": "CDF",
4
+ "number": "976",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "CONGO, DEMOCRATIC REPUBLIC OF THE "
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "WIR Euro",
3
+ "code": "CHE",
4
+ "number": "947",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "SWITZERLAND"
8
+ ]
9
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "Swiss Franc",
3
+ "code": "CHF",
4
+ "number": "756",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "LIECHTENSTEIN",
8
+ "SWITZERLAND"
9
+ ]
10
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "WIR Franc",
3
+ "code": "CHW",
4
+ "number": "948",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "SWITZERLAND"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Unidad de Fomento",
3
+ "code": "CLF",
4
+ "number": "990",
5
+ "minor_units": 4,
6
+ "countries": [
7
+ "CHILE"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Chilean Peso",
3
+ "code": "CLP",
4
+ "number": "152",
5
+ "minor_units": 0,
6
+ "countries": [
7
+ "CHILE"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Yuan Renminbi",
3
+ "code": "CNY",
4
+ "number": "156",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "CHINA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Colombian Peso",
3
+ "code": "COP",
4
+ "number": "170",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "COLOMBIA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Unidad de Valor Real",
3
+ "code": "COU",
4
+ "number": "970",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "COLOMBIA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Costa Rican Colon",
3
+ "code": "CRC",
4
+ "number": "188",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "COSTA RICA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Peso Convertible",
3
+ "code": "CUC",
4
+ "number": "931",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "CUBA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Cuban Peso",
3
+ "code": "CUP",
4
+ "number": "192",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "CUBA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Cape Verde Escudo",
3
+ "code": "CVE",
4
+ "number": "132",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "CAPE VERDE"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Czech Koruna",
3
+ "code": "CZK",
4
+ "number": "203",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "CZECH REPUBLIC"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Djibouti Franc",
3
+ "code": "DJF",
4
+ "number": "262",
5
+ "minor_units": 0,
6
+ "countries": [
7
+ "DJIBOUTI"
8
+ ]
9
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "Danish Krone",
3
+ "code": "DKK",
4
+ "number": "208",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "DENMARK",
8
+ "FAROE ISLANDS",
9
+ "GREENLAND"
10
+ ]
11
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Dominican Peso",
3
+ "code": "DOP",
4
+ "number": "214",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "DOMINICAN REPUBLIC"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Algerian Dinar",
3
+ "code": "DZD",
4
+ "number": "012",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "ALGERIA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Egyptian Pound",
3
+ "code": "EGP",
4
+ "number": "818",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "EGYPT"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Nakfa",
3
+ "code": "ERN",
4
+ "number": "232",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "ERITREA"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Ethiopian Birr",
3
+ "code": "ETB",
4
+ "number": "230",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "ETHIOPIA"
8
+ ]
9
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "Euro",
3
+ "code": "EUR",
4
+ "number": "978",
5
+ "minor_units": 2,
6
+ "countries": [
7
+ "ÅLAND ISLANDS",
8
+ "ANDORRA",
9
+ "AUSTRIA",
10
+ "BELGIUM",
11
+ "CYPRUS",
12
+ "ESTONIA",
13
+ "EUROPEAN UNION",
14
+ "FINLAND",
15
+ "FRANCE",
16
+ "FRENCH GUIANA",
17
+ "FRENCH SOUTHERN TERRITORIES",
18
+ "GERMANY",
19
+ "GREECE",
20
+ "GUADELOUPE",
21
+ "HOLY SEE (VATICAN CITY STATE)",
22
+ "IRELAND",
23
+ "ITALY",
24
+ "LATVIA",
25
+ "LUXEMBOURG",
26
+ "MALTA",
27
+ "MARTINIQUE",
28
+ "MAYOTTE",
29
+ "MONACO",
30
+ "MONTENEGRO",
31
+ "NETHERLANDS",
32
+ "PORTUGAL",
33
+ "RÉUNION",
34
+ "SAINT BARTHÉLEMY",
35
+ "SAINT MARTIN (FRENCH PART)",
36
+ "SAINT PIERRE AND MIQUELON",
37
+ "SAN MARINO",
38
+ "SLOVAKIA",
39
+ "SLOVENIA",
40
+ "SPAIN"
41
+ ]
42
+ }