flow-reference 0.2.85

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ require_relative './lib/flow-reference'
2
+
3
+ Gem::Specification.new 'flow-reference' do |gem|
4
+ gem.version = Io::Flow::Reference::V0::Client::Constants::VERSION
5
+ gem.summary = 'Flow helpers'
6
+ gem.description = 'Flow helper libraries for working with https://api.flow.io'
7
+ gem.homepage = 'https://www.flow.io'
8
+ gem.license = 'MIT'
9
+ gem.authors = ['Michael Bryzek', 'Dino Reic']
10
+ gem.email = 'mbryzek@alum.mit.edu'
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{spec/})
14
+
15
+ # gem.add_runtime_dependency 'flowcommerce'
16
+ end
@@ -0,0 +1,38 @@
1
+ require_relative 'io_flow_reference_v0'
2
+ require_relative 'generated/currencies'
3
+
4
+ module Flow
5
+ module Reference
6
+ class Currencies
7
+ class << self
8
+
9
+ def find(currency_code)
10
+ code = currency_code.to_s.downcase.gsub(/[^\w]/,"")
11
+ return nil unless code.length == 3
12
+ _get_currency(code.to_sym)
13
+ end
14
+
15
+ def find!(currency)
16
+ find(currency) || raise(ArgumentError, 'Currency "%s" not found' % currency)
17
+ end
18
+
19
+ end
20
+ end
21
+ end
22
+ end
23
+
24
+ module Io::Flow::Reference::V0::Models
25
+ class Currency
26
+
27
+ def to_cents(amount_in)
28
+ amount = amount_in.to_f
29
+
30
+ if number_decimals > 0
31
+ (amount * (10**number_decimals)).round(0)
32
+ else
33
+ amount.to_i
34
+ end
35
+ end
36
+
37
+ end
38
+ end
@@ -0,0 +1,832 @@
1
+ # Generated by Flow code builder
2
+
3
+ module Flow
4
+ module Reference
5
+ class Currencies
6
+ class Data
7
+ def Data.All
8
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Albanian Lek","iso_4217_3":"ALL","number_decimals":2,"default_locale":"sq-AL"})
9
+ end
10
+
11
+ def Data.Dzd
12
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Algerian Dinar","iso_4217_3":"DZD","number_decimals":2,"default_locale":"ar-DZ"})
13
+ end
14
+
15
+ def Data.Ang
16
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Antillian Guilder","iso_4217_3":"ANG","number_decimals":2,"default_locale":"nl-CW"})
17
+ end
18
+
19
+ def Data.Ars
20
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Argentine Peso","iso_4217_3":"ARS","number_decimals":2,"default_locale":"es-AR"})
21
+ end
22
+
23
+ def Data.Amd
24
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Armenian Dram","iso_4217_3":"AMD","number_decimals":2,"default_locale":"hy-AM"})
25
+ end
26
+
27
+ def Data.Awg
28
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Aruban Guilder","iso_4217_3":"AWG","number_decimals":2,"default_locale":"nl-AW"})
29
+ end
30
+
31
+ def Data.Aud
32
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Australian Dollar","iso_4217_3":"AUD","number_decimals":2,"symbols":{"primary":"A$","narrow":"$"},"default_locale":"en-AU"})
33
+ end
34
+
35
+ def Data.Azn
36
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Azerbaijani manat","iso_4217_3":"AZN","number_decimals":2,"default_locale":"az"})
37
+ end
38
+
39
+ def Data.Bsd
40
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Bahamian Dollar","iso_4217_3":"BSD","number_decimals":2,"default_locale":"en-BS"})
41
+ end
42
+
43
+ def Data.Bhd
44
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Bahraini Dinar","iso_4217_3":"BHD","number_decimals":3,"default_locale":"ar-BH"})
45
+ end
46
+
47
+ def Data.Bdt
48
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Bangladesh Taka","iso_4217_3":"BDT","number_decimals":2})
49
+ end
50
+
51
+ def Data.Bbd
52
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Barbados Dollar","iso_4217_3":"BBD","number_decimals":2,"default_locale":"en-BB"})
53
+ end
54
+
55
+ def Data.Bzd
56
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Belize Dollar","iso_4217_3":"BZD","number_decimals":2,"default_locale":"en-BZ"})
57
+ end
58
+
59
+ def Data.Bmd
60
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Bermudian Dollar","iso_4217_3":"BMD","number_decimals":2})
61
+ end
62
+
63
+ def Data.Bob
64
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Bolivia Boliviano","iso_4217_3":"BOB","number_decimals":2,"default_locale":"qu-BO"})
65
+ end
66
+
67
+ def Data.Bam
68
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Bosnia and Herzegovina Convertible Marks","iso_4217_3":"BAM","number_decimals":2,"default_locale":"hr-BA"})
69
+ end
70
+
71
+ def Data.Bwp
72
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Botswana Pula","iso_4217_3":"BWP","number_decimals":2,"default_locale":"en-BW"})
73
+ end
74
+
75
+ def Data.Brl
76
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Brazilian Real","iso_4217_3":"BRL","number_decimals":2,"symbols":{"primary":"R$"},"default_locale":"pt-BR"})
77
+ end
78
+
79
+ def Data.Bnd
80
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Brunei Dollar","iso_4217_3":"BND","number_decimals":2,"default_locale":"ms-BN"})
81
+ end
82
+
83
+ def Data.Khr
84
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Cambodia Riel","iso_4217_3":"KHR","number_decimals":2})
85
+ end
86
+
87
+ def Data.Cad
88
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Canadian Dollar","iso_4217_3":"CAD","number_decimals":2,"symbols":{"primary":"CA$","narrow":"$"},"default_locale":"en-CA"})
89
+ end
90
+
91
+ def Data.Cve
92
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Cape Verdi Escudo","iso_4217_3":"CVE","number_decimals":0,"default_locale":"pt-CV"})
93
+ end
94
+
95
+ def Data.Kyd
96
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Cayman Islands Dollar","iso_4217_3":"KYD","number_decimals":2})
97
+ end
98
+
99
+ def Data.Xof
100
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"CFA Franc BCEAO","iso_4217_3":"XOF","number_decimals":0,"symbols":{"primary":"CFA"},"default_locale":"ee-TG"})
101
+ end
102
+
103
+ def Data.Xaf
104
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"CFA Franc BEAC","iso_4217_3":"XAF","number_decimals":0,"symbols":{"primary":"FCFA"},"default_locale":"ar-TD"})
105
+ end
106
+
107
+ def Data.Xpf
108
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"CFP Franc","iso_4217_3":"XPF","number_decimals":0,"symbols":{"primary":"CFPF"},"default_locale":"fr-PF"})
109
+ end
110
+
111
+ def Data.Clp
112
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Chilean Peso","iso_4217_3":"CLP","number_decimals":2,"default_locale":"es-CL"})
113
+ end
114
+
115
+ def Data.Cop
116
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Colombian Peso","iso_4217_3":"COP","number_decimals":2,"default_locale":"es-CO"})
117
+ end
118
+
119
+ def Data.Kmf
120
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Comoro Franc","iso_4217_3":"KMF","number_decimals":0,"default_locale":"ar-KM"})
121
+ end
122
+
123
+ def Data.Crc
124
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Costa Rican Colon","iso_4217_3":"CRC","number_decimals":2,"default_locale":"es-CR"})
125
+ end
126
+
127
+ def Data.Hrk
128
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Croatia Kuna","iso_4217_3":"HRK","number_decimals":2,"default_locale":"hr"})
129
+ end
130
+
131
+ def Data.Czk
132
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Czech Koruna","iso_4217_3":"CZK","number_decimals":2})
133
+ end
134
+
135
+ def Data.Dkk
136
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Danish Krone","iso_4217_3":"DKK","number_decimals":2,"default_locale":"da-DK"})
137
+ end
138
+
139
+ def Data.Djf
140
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Djibouti Franc","iso_4217_3":"DJF","number_decimals":0,"default_locale":"ar-DJ"})
141
+ end
142
+
143
+ def Data.Dop
144
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Dominican Republic Peso","iso_4217_3":"DOP","number_decimals":2,"default_locale":"es-DO"})
145
+ end
146
+
147
+ def Data.Xcd
148
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"East Carribean Dollar","iso_4217_3":"XCD","number_decimals":2,"symbols":{"primary":"EC$","narrow":"$"},"default_locale":"en-AI"})
149
+ end
150
+
151
+ def Data.Egp
152
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Egyptian Pound","iso_4217_3":"EGP","number_decimals":2,"default_locale":"ar-EG"})
153
+ end
154
+
155
+ def Data.Svc
156
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"El Salvador Colón","iso_4217_3":"SVC","number_decimals":2})
157
+ end
158
+
159
+ def Data.Eek
160
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Estonian Krone","iso_4217_3":"EEK","number_decimals":2})
161
+ end
162
+
163
+ def Data.Etb
164
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Ethiopian Birr","iso_4217_3":"ETB","number_decimals":2})
165
+ end
166
+
167
+ def Data.Eur
168
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Euro","iso_4217_3":"EUR","number_decimals":2,"symbols":{"primary":"€"},"default_locale":"de"})
169
+ end
170
+
171
+ def Data.Fkp
172
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Falkland Islands Pound","iso_4217_3":"FKP","number_decimals":2})
173
+ end
174
+
175
+ def Data.Fjd
176
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Fiji Dollar","iso_4217_3":"FJD","number_decimals":2,"default_locale":"en-FJ"})
177
+ end
178
+
179
+ def Data.Gmd
180
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Gambia Delasi","iso_4217_3":"GMD","number_decimals":2,"default_locale":"en-GM"})
181
+ end
182
+
183
+ def Data.Gel
184
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Georgian Lari","iso_4217_3":"GEL","number_decimals":2,"default_locale":"ka-GE"})
185
+ end
186
+
187
+ def Data.Ghs
188
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Ghanaian Cedi (3rd)","iso_4217_3":"GHS","number_decimals":2,"default_locale":"ak-GH"})
189
+ end
190
+
191
+ def Data.Gip
192
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Gibraltar Pound","iso_4217_3":"GIP","number_decimals":2})
193
+ end
194
+
195
+ def Data.Gtq
196
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Guatemala Quetzal","iso_4217_3":"GTQ","number_decimals":2,"default_locale":"es-GT"})
197
+ end
198
+
199
+ def Data.Gnf
200
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Guinea Franc","iso_4217_3":"GNF","number_decimals":0,"default_locale":"fr-GN"})
201
+ end
202
+
203
+ def Data.Gyd
204
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Guyanese Dollar","iso_4217_3":"GYD","number_decimals":2,"default_locale":"en-GY"})
205
+ end
206
+
207
+ def Data.Htg
208
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Haitian Gourde","iso_4217_3":"HTG","number_decimals":2})
209
+ end
210
+
211
+ def Data.Hnl
212
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Honduras Lempira","iso_4217_3":"HNL","number_decimals":2,"default_locale":"es-HN"})
213
+ end
214
+
215
+ def Data.Hkd
216
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Hong Kong Dollar","iso_4217_3":"HKD","number_decimals":2,"symbols":{"primary":"HK$","narrow":"$"},"default_locale":"zh-HK"})
217
+ end
218
+
219
+ def Data.Huf
220
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Hungarian Forint","iso_4217_3":"HUF","number_decimals":2,"default_locale":"hu"})
221
+ end
222
+
223
+ def Data.Isk
224
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Iceland Krona","iso_4217_3":"ISK","number_decimals":2,"default_locale":"is"})
225
+ end
226
+
227
+ def Data.Inr
228
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Indian Rupee","iso_4217_3":"INR","number_decimals":2,"symbols":{"primary":"₹"},"default_locale":"bn-IN"})
229
+ end
230
+
231
+ def Data.Idr
232
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Indonesian Rupiah","iso_4217_3":"IDR","number_decimals":0,"default_locale":"id"})
233
+ end
234
+
235
+ def Data.Jmd
236
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Jamaican Dollar","iso_4217_3":"JMD","number_decimals":2,"default_locale":"en-JM"})
237
+ end
238
+
239
+ def Data.Jpy
240
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Japanese Yen","iso_4217_3":"JPY","number_decimals":0,"symbols":{"primary":"¥"},"default_locale":"ja-JP"})
241
+ end
242
+
243
+ def Data.Jod
244
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Jordanian Dinar","iso_4217_3":"JOD","number_decimals":3,"default_locale":"ar-JO"})
245
+ end
246
+
247
+ def Data.Kzt
248
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Kazakhstani Tenge","iso_4217_3":"KZT","number_decimals":2,"default_locale":"kk-KZ"})
249
+ end
250
+
251
+ def Data.Kes
252
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Kenyan Shilling","iso_4217_3":"KES","number_decimals":2,"default_locale":"en-KE"})
253
+ end
254
+
255
+ def Data.Kwd
256
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Kuwaiti Dinar","iso_4217_3":"KWD","number_decimals":3,"default_locale":"ar-KW"})
257
+ end
258
+
259
+ def Data.Kgs
260
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Kyrgyzstan Som","iso_4217_3":"KGS","number_decimals":2,"default_locale":"ru-KG"})
261
+ end
262
+
263
+ def Data.Lak
264
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Laos Kip","iso_4217_3":"LAK","number_decimals":2,"default_locale":"lo-LA"})
265
+ end
266
+
267
+ def Data.Lvl
268
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Latvian Lats","iso_4217_3":"LVL","number_decimals":2})
269
+ end
270
+
271
+ def Data.Lbp
272
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Lebanese Pound","iso_4217_3":"LBP","number_decimals":2,"default_locale":"ar-LB"})
273
+ end
274
+
275
+ def Data.Lyd
276
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Libyan Dinar","iso_4217_3":"LYD","number_decimals":3,"default_locale":"ar-LY"})
277
+ end
278
+
279
+ def Data.Ltl
280
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Lithuanian Litas","iso_4217_3":"LTL","number_decimals":2})
281
+ end
282
+
283
+ def Data.Mop
284
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Macau Pataca","iso_4217_3":"MOP","number_decimals":2,"default_locale":"zh-MO"})
285
+ end
286
+
287
+ def Data.Mwk
288
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Malawi Kwacha","iso_4217_3":"MWK","number_decimals":2,"default_locale":"en-MW"})
289
+ end
290
+
291
+ def Data.Myr
292
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Malaysian Ringgit","iso_4217_3":"MYR","number_decimals":2,"default_locale":"en-MY"})
293
+ end
294
+
295
+ def Data.Mvr
296
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Maldives Rufiyaa","iso_4217_3":"MVR","number_decimals":2})
297
+ end
298
+
299
+ def Data.Mro
300
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Mauritania Ouguiya","iso_4217_3":"MRO","number_decimals":1,"default_locale":"ar-MR"})
301
+ end
302
+
303
+ def Data.Mur
304
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Mauritius Rupee","iso_4217_3":"MUR","number_decimals":2,"default_locale":"en-MU"})
305
+ end
306
+
307
+ def Data.Mxn
308
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Mexican Peso","iso_4217_3":"MXN","number_decimals":2,"symbols":{"primary":"MX$","narrow":"$"},"default_locale":"es-MX"})
309
+ end
310
+
311
+ def Data.Mdl
312
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Moldovia Leu","iso_4217_3":"MDL","number_decimals":2,"default_locale":"ro-MD"})
313
+ end
314
+
315
+ def Data.Mnt
316
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Mongolia Tugrik","iso_4217_3":"MNT","number_decimals":2,"default_locale":"mn"})
317
+ end
318
+
319
+ def Data.Mad
320
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Moroccan Dirham","iso_4217_3":"MAD","number_decimals":2,"default_locale":"ar-MA"})
321
+ end
322
+
323
+ def Data.Nad
324
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Namibian Dollar","iso_4217_3":"NAD","number_decimals":2})
325
+ end
326
+
327
+ def Data.Npr
328
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Nepalese Rupee","iso_4217_3":"NPR","number_decimals":2})
329
+ end
330
+
331
+ def Data.Byn
332
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"New Belarusian Ruble","iso_4217_3":"BYN","number_decimals":2})
333
+ end
334
+
335
+ def Data.Bgn
336
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"New Bulgarian Lev","iso_4217_3":"BGN","number_decimals":2,"default_locale":"bg"})
337
+ end
338
+
339
+ def Data.Pgk
340
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"New Guinea Kina","iso_4217_3":"PGK","number_decimals":2,"default_locale":"en-PG"})
341
+ end
342
+
343
+ def Data.Ils
344
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"New Israeli Scheqel","iso_4217_3":"ILS","number_decimals":2,"symbols":{"primary":"₪"},"default_locale":"ar-IL"})
345
+ end
346
+
347
+ def Data.Pln
348
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"New Polish Zloty","iso_4217_3":"PLN","number_decimals":2,"default_locale":"pl"})
349
+ end
350
+
351
+ def Data.Ron
352
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"New Romanian Lei","iso_4217_3":"RON","number_decimals":2,"default_locale":"ro"})
353
+ end
354
+
355
+ def Data.Twd
356
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"New Taiwan Dollar","iso_4217_3":"TWD","number_decimals":2,"symbols":{"primary":"NT$","narrow":"$"}})
357
+ end
358
+
359
+ def Data.Try
360
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"New Turkish Lira","iso_4217_3":"TRY","number_decimals":2,"default_locale":"tr"})
361
+ end
362
+
363
+ def Data.Nzd
364
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"New Zealand Dollar","iso_4217_3":"NZD","number_decimals":2,"symbols":{"primary":"NZ$","narrow":"$"},"default_locale":"en-CK"})
365
+ end
366
+
367
+ def Data.Nio
368
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Nicaragua Cordoba Oro","iso_4217_3":"NIO","number_decimals":2,"default_locale":"es-NI"})
369
+ end
370
+
371
+ def Data.Ngn
372
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Nigerian Naira","iso_4217_3":"NGN","number_decimals":2,"default_locale":"en-NG"})
373
+ end
374
+
375
+ def Data.Nok
376
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Norwegian Krone","iso_4217_3":"NOK","number_decimals":2,"default_locale":"nb-NO"})
377
+ end
378
+
379
+ def Data.Pkr
380
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Pakistan Rupee","iso_4217_3":"PKR","number_decimals":2,"default_locale":"en-PK"})
381
+ end
382
+
383
+ def Data.Pab
384
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Panamanian Balboa","iso_4217_3":"PAB","number_decimals":2})
385
+ end
386
+
387
+ def Data.Pyg
388
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Paraguay Guarani","iso_4217_3":"PYG","number_decimals":0,"default_locale":"es-PY"})
389
+ end
390
+
391
+ def Data.Pen
392
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Peruvian Nuevo Sol","iso_4217_3":"PEN","number_decimals":2,"default_locale":"es-PE"})
393
+ end
394
+
395
+ def Data.Uyu
396
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Peso Uruguayo","iso_4217_3":"UYU","number_decimals":2,"default_locale":"es-UY"})
397
+ end
398
+
399
+ def Data.Php
400
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Philippine Peso","iso_4217_3":"PHP","number_decimals":2,"default_locale":"en-PH"})
401
+ end
402
+
403
+ def Data.Gbp
404
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Pound Sterling","iso_4217_3":"GBP","number_decimals":2,"symbols":{"primary":"£"},"default_locale":"en-GB"})
405
+ end
406
+
407
+ def Data.Qar
408
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Qatari Rial","iso_4217_3":"QAR","number_decimals":2,"default_locale":"ar-QA"})
409
+ end
410
+
411
+ def Data.Omr
412
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Rial Omani","iso_4217_3":"OMR","number_decimals":3,"default_locale":"ar-OM"})
413
+ end
414
+
415
+ def Data.Rub
416
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Russian Ruble","iso_4217_3":"RUB","number_decimals":2,"default_locale":"ru"})
417
+ end
418
+
419
+ def Data.Rwf
420
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Rwanda Franc","iso_4217_3":"RWF","number_decimals":0,"default_locale":"en-RW"})
421
+ end
422
+
423
+ def Data.Wst
424
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Samoan Tala","iso_4217_3":"WST","number_decimals":2,"default_locale":"en-WS"})
425
+ end
426
+
427
+ def Data.Std
428
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Sao Tome & Principe Dobra","iso_4217_3":"STD","number_decimals":2,"default_locale":"pt-ST"})
429
+ end
430
+
431
+ def Data.Sar
432
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Saudi Riyal","iso_4217_3":"SAR","number_decimals":2,"default_locale":"ar-SA"})
433
+ end
434
+
435
+ def Data.Rsd
436
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Serbian Dinar","iso_4217_3":"RSD","number_decimals":2})
437
+ end
438
+
439
+ def Data.Scr
440
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Seychelles Rupee","iso_4217_3":"SCR","number_decimals":2,"default_locale":"en-SC"})
441
+ end
442
+
443
+ def Data.Sll
444
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Sierra Leone","iso_4217_3":"SLL","number_decimals":2,"default_locale":"en-SL"})
445
+ end
446
+
447
+ def Data.Sgd
448
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Singapore Dollar","iso_4217_3":"SGD","number_decimals":2,"default_locale":"zh-SG"})
449
+ end
450
+
451
+ def Data.Sbd
452
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Solomon Island Dollar","iso_4217_3":"SBD","number_decimals":2,"default_locale":"en-SB"})
453
+ end
454
+
455
+ def Data.Sos
456
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Somalia Shilling","iso_4217_3":"SOS","number_decimals":2,"default_locale":"ar-SO"})
457
+ end
458
+
459
+ def Data.Zar
460
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"South African Rand","iso_4217_3":"ZAR","number_decimals":2,"default_locale":"af-NA"})
461
+ end
462
+
463
+ def Data.Krw
464
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"South-Korean Won","iso_4217_3":"KRW","number_decimals":0,"symbols":{"primary":"₩"}})
465
+ end
466
+
467
+ def Data.Lkr
468
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Sri Lanka Rupee","iso_4217_3":"LKR","number_decimals":2,"default_locale":"ta-LK"})
469
+ end
470
+
471
+ def Data.Shp
472
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"St. Helena Pound","iso_4217_3":"SHP","number_decimals":2})
473
+ end
474
+
475
+ def Data.Szl
476
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Swaziland Lilangeni","iso_4217_3":"SZL","number_decimals":2,"default_locale":"en-SZ"})
477
+ end
478
+
479
+ def Data.Sek
480
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Swedish Krone","iso_4217_3":"SEK","number_decimals":2})
481
+ end
482
+
483
+ def Data.Chf
484
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Swiss Franc","iso_4217_3":"CHF","number_decimals":2,"default_locale":"fr-CH"})
485
+ end
486
+
487
+ def Data.Tzs
488
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Tanzanian Shilling","iso_4217_3":"TZS","number_decimals":2,"default_locale":"en-TZ"})
489
+ end
490
+
491
+ def Data.Thb
492
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Thai Baht","iso_4217_3":"THB","number_decimals":2,"default_locale":"th"})
493
+ end
494
+
495
+ def Data.Top
496
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Tonga Pa'anga","iso_4217_3":"TOP","number_decimals":2,"default_locale":"en-TO"})
497
+ end
498
+
499
+ def Data.Ttd
500
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Trinidad & Tobago Dollar","iso_4217_3":"TTD","number_decimals":2,"default_locale":"en-TT"})
501
+ end
502
+
503
+ def Data.Tnd
504
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Tunisian Dinar","iso_4217_3":"TND","number_decimals":3,"default_locale":"ar-TN"})
505
+ end
506
+
507
+ def Data.Aed
508
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"UAE Dirham","iso_4217_3":"AED","number_decimals":2,"default_locale":"ar-AE"})
509
+ end
510
+
511
+ def Data.Ugx
512
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Uganda Shilling","iso_4217_3":"UGX","number_decimals":0,"default_locale":"en-UG"})
513
+ end
514
+
515
+ def Data.Uah
516
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Ukraine Hryvnia","iso_4217_3":"UAH","number_decimals":2,"default_locale":"uk-UA"})
517
+ end
518
+
519
+ def Data.Usd
520
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"US Dollars","iso_4217_3":"USD","number_decimals":2,"symbols":{"primary":"$"},"default_locale":"en-US"})
521
+ end
522
+
523
+ def Data.Uzs
524
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Uzbekistani Som","iso_4217_3":"UZS","number_decimals":2,"default_locale":"uz"})
525
+ end
526
+
527
+ def Data.Vuv
528
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Vanuatu Vatu","iso_4217_3":"VUV","number_decimals":0,"default_locale":"en-VU"})
529
+ end
530
+
531
+ def Data.Vef
532
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Venezuelan Bolívar","iso_4217_3":"VEF","number_decimals":2,"default_locale":"es-VE"})
533
+ end
534
+
535
+ def Data.Vnd
536
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Vietnamese New Dong","iso_4217_3":"VND","number_decimals":0,"symbols":{"primary":"₫"}})
537
+ end
538
+
539
+ def Data.Yer
540
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Yemeni Rial","iso_4217_3":"YER","number_decimals":2,"default_locale":"ar-YE"})
541
+ end
542
+
543
+ def Data.Cny
544
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Yuan Renminbi","iso_4217_3":"CNY","number_decimals":2,"symbols":{"primary":"CN¥","narrow":"¥"},"default_locale":"zh-CN"})
545
+ end
546
+
547
+ def Data.Zmw
548
+ ::Io::Flow::Reference::V0::Models::Currency.new({"name":"Zambia Kwacha","iso_4217_3":"ZMW","number_decimals":2,"default_locale":"en-ZM"})
549
+ end
550
+
551
+ end
552
+
553
+ def Currencies._get_currency(code)
554
+ case code
555
+ when :all
556
+ return Data.All
557
+ when :dzd
558
+ return Data.Dzd
559
+ when :ang
560
+ return Data.Ang
561
+ when :ars
562
+ return Data.Ars
563
+ when :amd
564
+ return Data.Amd
565
+ when :awg
566
+ return Data.Awg
567
+ when :aud
568
+ return Data.Aud
569
+ when :azn
570
+ return Data.Azn
571
+ when :bsd
572
+ return Data.Bsd
573
+ when :bhd
574
+ return Data.Bhd
575
+ when :bdt
576
+ return Data.Bdt
577
+ when :bbd
578
+ return Data.Bbd
579
+ when :bzd
580
+ return Data.Bzd
581
+ when :bmd
582
+ return Data.Bmd
583
+ when :bob
584
+ return Data.Bob
585
+ when :bam
586
+ return Data.Bam
587
+ when :bwp
588
+ return Data.Bwp
589
+ when :brl
590
+ return Data.Brl
591
+ when :bnd
592
+ return Data.Bnd
593
+ when :khr
594
+ return Data.Khr
595
+ when :cad
596
+ return Data.Cad
597
+ when :cve
598
+ return Data.Cve
599
+ when :kyd
600
+ return Data.Kyd
601
+ when :xof
602
+ return Data.Xof
603
+ when :xaf
604
+ return Data.Xaf
605
+ when :xpf
606
+ return Data.Xpf
607
+ when :clp
608
+ return Data.Clp
609
+ when :cop
610
+ return Data.Cop
611
+ when :kmf
612
+ return Data.Kmf
613
+ when :crc
614
+ return Data.Crc
615
+ when :hrk
616
+ return Data.Hrk
617
+ when :czk
618
+ return Data.Czk
619
+ when :dkk
620
+ return Data.Dkk
621
+ when :djf
622
+ return Data.Djf
623
+ when :dop
624
+ return Data.Dop
625
+ when :xcd
626
+ return Data.Xcd
627
+ when :egp
628
+ return Data.Egp
629
+ when :svc
630
+ return Data.Svc
631
+ when :eek
632
+ return Data.Eek
633
+ when :etb
634
+ return Data.Etb
635
+ when :eur
636
+ return Data.Eur
637
+ when :fkp
638
+ return Data.Fkp
639
+ when :fjd
640
+ return Data.Fjd
641
+ when :gmd
642
+ return Data.Gmd
643
+ when :gel
644
+ return Data.Gel
645
+ when :ghs
646
+ return Data.Ghs
647
+ when :gip
648
+ return Data.Gip
649
+ when :gtq
650
+ return Data.Gtq
651
+ when :gnf
652
+ return Data.Gnf
653
+ when :gyd
654
+ return Data.Gyd
655
+ when :htg
656
+ return Data.Htg
657
+ when :hnl
658
+ return Data.Hnl
659
+ when :hkd
660
+ return Data.Hkd
661
+ when :huf
662
+ return Data.Huf
663
+ when :isk
664
+ return Data.Isk
665
+ when :inr
666
+ return Data.Inr
667
+ when :idr
668
+ return Data.Idr
669
+ when :jmd
670
+ return Data.Jmd
671
+ when :jpy
672
+ return Data.Jpy
673
+ when :jod
674
+ return Data.Jod
675
+ when :kzt
676
+ return Data.Kzt
677
+ when :kes
678
+ return Data.Kes
679
+ when :kwd
680
+ return Data.Kwd
681
+ when :kgs
682
+ return Data.Kgs
683
+ when :lak
684
+ return Data.Lak
685
+ when :lvl
686
+ return Data.Lvl
687
+ when :lbp
688
+ return Data.Lbp
689
+ when :lyd
690
+ return Data.Lyd
691
+ when :ltl
692
+ return Data.Ltl
693
+ when :mop
694
+ return Data.Mop
695
+ when :mwk
696
+ return Data.Mwk
697
+ when :myr
698
+ return Data.Myr
699
+ when :mvr
700
+ return Data.Mvr
701
+ when :mro
702
+ return Data.Mro
703
+ when :mur
704
+ return Data.Mur
705
+ when :mxn
706
+ return Data.Mxn
707
+ when :mdl
708
+ return Data.Mdl
709
+ when :mnt
710
+ return Data.Mnt
711
+ when :mad
712
+ return Data.Mad
713
+ when :nad
714
+ return Data.Nad
715
+ when :npr
716
+ return Data.Npr
717
+ when :byn
718
+ return Data.Byn
719
+ when :bgn
720
+ return Data.Bgn
721
+ when :pgk
722
+ return Data.Pgk
723
+ when :ils
724
+ return Data.Ils
725
+ when :pln
726
+ return Data.Pln
727
+ when :ron
728
+ return Data.Ron
729
+ when :twd
730
+ return Data.Twd
731
+ when :try
732
+ return Data.Try
733
+ when :nzd
734
+ return Data.Nzd
735
+ when :nio
736
+ return Data.Nio
737
+ when :ngn
738
+ return Data.Ngn
739
+ when :nok
740
+ return Data.Nok
741
+ when :pkr
742
+ return Data.Pkr
743
+ when :pab
744
+ return Data.Pab
745
+ when :pyg
746
+ return Data.Pyg
747
+ when :pen
748
+ return Data.Pen
749
+ when :uyu
750
+ return Data.Uyu
751
+ when :php
752
+ return Data.Php
753
+ when :gbp
754
+ return Data.Gbp
755
+ when :qar
756
+ return Data.Qar
757
+ when :omr
758
+ return Data.Omr
759
+ when :rub
760
+ return Data.Rub
761
+ when :rwf
762
+ return Data.Rwf
763
+ when :wst
764
+ return Data.Wst
765
+ when :std
766
+ return Data.Std
767
+ when :sar
768
+ return Data.Sar
769
+ when :rsd
770
+ return Data.Rsd
771
+ when :scr
772
+ return Data.Scr
773
+ when :sll
774
+ return Data.Sll
775
+ when :sgd
776
+ return Data.Sgd
777
+ when :sbd
778
+ return Data.Sbd
779
+ when :sos
780
+ return Data.Sos
781
+ when :zar
782
+ return Data.Zar
783
+ when :krw
784
+ return Data.Krw
785
+ when :lkr
786
+ return Data.Lkr
787
+ when :shp
788
+ return Data.Shp
789
+ when :szl
790
+ return Data.Szl
791
+ when :sek
792
+ return Data.Sek
793
+ when :chf
794
+ return Data.Chf
795
+ when :tzs
796
+ return Data.Tzs
797
+ when :thb
798
+ return Data.Thb
799
+ when :top
800
+ return Data.Top
801
+ when :ttd
802
+ return Data.Ttd
803
+ when :tnd
804
+ return Data.Tnd
805
+ when :aed
806
+ return Data.Aed
807
+ when :ugx
808
+ return Data.Ugx
809
+ when :uah
810
+ return Data.Uah
811
+ when :usd
812
+ return Data.Usd
813
+ when :uzs
814
+ return Data.Uzs
815
+ when :vuv
816
+ return Data.Vuv
817
+ when :vef
818
+ return Data.Vef
819
+ when :vnd
820
+ return Data.Vnd
821
+ when :yer
822
+ return Data.Yer
823
+ when :cny
824
+ return Data.Cny
825
+ when :zmw
826
+ return Data.Zmw
827
+ end
828
+ nil
829
+ end
830
+ end
831
+ end
832
+ end