flow-reference 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flow_reference_v0_client.rb +1370 -0
- data/lib/generated/continents.rb +4 -4
- data/lib/generated/countries.rb +39 -255
- data/lib/generated/currencies.rb +126 -126
- data/lib/generated/languages.rb +8 -8
- data/lib/generated/payment_methods.rb +52 -12
- data/lib/version.rb +2 -2
- metadata +4 -3
data/lib/generated/languages.rb
CHANGED
@@ -29,7 +29,7 @@ module Flow
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def Data.Ar
|
32
|
-
new_l({"name":"Arabic","iso_639_2":"ar","countries":["ARE","BHR","COM","DJI","
|
32
|
+
new_l({"name":"Arabic","iso_639_2":"ar","countries":["ARE","BHR","COM","DJI","EGY","ISR","JOR","KWT","LBN","LBY","MRT","NER","OMN","QAT","SAU","SOM","TCD","YEM"],"locales":["ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LB","ar-LY","ar-MA","ar-OM","ar-QA","ar-SA","ar-SY","ar-TN","ar-YE"]})
|
33
33
|
end
|
34
34
|
|
35
35
|
def Data.Hy
|
@@ -101,7 +101,7 @@ module Flow
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def Data.Nl
|
104
|
-
new_l({"name":"Dutch","iso_639_2":"nl","countries":["ABW","BEL","CUW","NLD"
|
104
|
+
new_l({"name":"Dutch","iso_639_2":"nl","countries":["ABW","BEL","CUW","NLD"],"locales":["nl","nl-BE"]})
|
105
105
|
end
|
106
106
|
|
107
107
|
def Data.Dz
|
@@ -109,7 +109,7 @@ module Flow
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def Data.En
|
112
|
-
new_l({"name":"English","iso_639_2":"en","countries":["ATG","AUS","BHS","BLZ","BRB","BWA","CAN","CMR","CUW","DMA","FJI","FSM","GBR","GHA","GMB","GRD","GUY","HKG","IND","IRL","JAM","KEN","KIR","KNA","LCA","LKA","LSO","MHL","MLT","MUS","MWI","MYS","NAM","NGA","NRU","NZL","PAK","PHL","PLW","PNG","RWA","SGP","SLB","SLE","SWZ","
|
112
|
+
new_l({"name":"English","iso_639_2":"en","countries":["ATG","AUS","BHS","BLZ","BRB","BWA","CAN","CMR","CUW","DMA","FJI","FSM","GBR","GHA","GMB","GRD","GUY","HKG","IND","IRL","JAM","KEN","KIR","KNA","LCA","LKA","LSO","MHL","MLT","MUS","MWI","MYS","NAM","NGA","NRU","NZL","PAK","PHL","PLW","PNG","RWA","SGP","SLB","SLE","SWZ","SYC","TON","TTO","TUV","TZA","UGA","USA","VCT","VUT","WSM","ZAF","ZMB"],"locales":["en-AU","en-BZ","en-CA","en-CB","en-GB","en-IE","en-JM","en-NZ","en-PH","en-TT","en-US","en-ZA","en-ZW"]})
|
113
113
|
end
|
114
114
|
|
115
115
|
def Data.Et
|
@@ -129,7 +129,7 @@ module Flow
|
|
129
129
|
end
|
130
130
|
|
131
131
|
def Data.Fr
|
132
|
-
new_l({"name":"French","iso_639_2":"fr","countries":["BEL","BEN","BFA","BLM","CAF","CAN","CHE","CIV","CMR","COG","COM","DJI","FRA","GAB","GIN","GLP","GNQ","GUF","HTI","ITA","JEY","LUX","MCO","MLI","MTQ","MUS","MYT","NCL","NER","PYF","REU","RWA","SEN","
|
132
|
+
new_l({"name":"French","iso_639_2":"fr","countries":["BEL","BEN","BFA","BLM","CAF","CAN","CHE","CIV","CMR","COG","COM","DJI","FRA","GAB","GIN","GLP","GNQ","GUF","HTI","ITA","JEY","LUX","MCO","MLI","MTQ","MUS","MYT","NCL","NER","PYF","REU","RWA","SEN","SYC","TCD","TGO","VUT"],"locales":["fr","fr-BE","fr-CA","fr-CH","fr-LU","fr-MC"]})
|
133
133
|
end
|
134
134
|
|
135
135
|
def Data.Ff
|
@@ -197,7 +197,7 @@ module Flow
|
|
197
197
|
end
|
198
198
|
|
199
199
|
def Data.It
|
200
|
-
new_l({"name":"Italian","iso_639_2":"it","countries":["CHE","HRV","ITA","SMR","SVN"
|
200
|
+
new_l({"name":"Italian","iso_639_2":"it","countries":["CHE","HRV","ITA","SMR","SVN"],"locales":["it","it-CH"]})
|
201
201
|
end
|
202
202
|
|
203
203
|
def Data.Ja
|
@@ -249,7 +249,7 @@ module Flow
|
|
249
249
|
end
|
250
250
|
|
251
251
|
def Data.La
|
252
|
-
new_l({"name":"Latin","iso_639_2":"la","countries":[
|
252
|
+
new_l({"name":"Latin","iso_639_2":"la","countries":[],"locales":[]})
|
253
253
|
end
|
254
254
|
|
255
255
|
def Data.Lv
|
@@ -393,7 +393,7 @@ module Flow
|
|
393
393
|
end
|
394
394
|
|
395
395
|
def Data.Es
|
396
|
-
new_l({"name":"Spanish","iso_639_2":"es","countries":["ARG","BOL","CHL","COL","CRI","DOM","ECU","
|
396
|
+
new_l({"name":"Spanish","iso_639_2":"es","countries":["ARG","BOL","CHL","COL","CRI","DOM","ECU","ESP","GNQ","GTM","HND","MEX","NIC","PAN","PER","PRY","SLV","URY","VEN"],"locales":["es","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-PY","es-SV","es-UY","es-VE"]})
|
397
397
|
end
|
398
398
|
|
399
399
|
def Data.Sw
|
@@ -405,7 +405,7 @@ module Flow
|
|
405
405
|
end
|
406
406
|
|
407
407
|
def Data.Sv
|
408
|
-
new_l({"name":"Swedish","iso_639_2":"sv","countries":["
|
408
|
+
new_l({"name":"Swedish","iso_639_2":"sv","countries":["FIN","SWE"],"locales":["sv-FI","sv-SE"]})
|
409
409
|
end
|
410
410
|
|
411
411
|
def Data.Tl
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Flow
|
4
4
|
module Reference
|
5
5
|
class PaymentMethods
|
6
|
-
SUPPORTED_CREDIT_CARDS = [:american_express, :cartes_bancaires, :china_union_pay, :dankort, :diners_club, :discover, :jcb, :maestro, :mastercard, :paypal, :visa]
|
6
|
+
SUPPORTED_CREDIT_CARDS = [:alipay, :american_express, :bitcoin, :cartes_bancaires, :china_union_pay, :dankort, :diners_club, :directEbanking, :discover, :giropay, :ideal, :jcb, :klarna, :maestro, :mastercard, :paypal, :qiwiwallet, :sepadirectdebit, :unionpay, :visa, :wechatpay]
|
7
7
|
|
8
8
|
class Data
|
9
9
|
class << self
|
@@ -11,48 +11,88 @@ module Flow
|
|
11
11
|
::Io::Flow::Reference::V0::Models::PaymentMethod.new(hash)
|
12
12
|
end
|
13
13
|
|
14
|
+
def Alipay
|
15
|
+
new_pm({"id":"alipay","type":"online","name":"Alipay","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/alipay/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/alipay/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/alipay/120/original.png","width":256,"height":256}},"regions":["world"]})
|
16
|
+
end
|
17
|
+
|
14
18
|
def AmericanExpress
|
15
|
-
new_pm({"id":"american_express","type":"card","name":"American Express","images":{"small":{"url":"https://flowcdn.io/util/
|
19
|
+
new_pm({"id":"american_express","type":"card","name":"American Express","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/american_express/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/american_express/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/american_express/120/original.png","width":256,"height":256}},"regions":["world"]})
|
20
|
+
end
|
21
|
+
|
22
|
+
def Bitcoin
|
23
|
+
new_pm({"id":"bitcoin","type":"online","name":"Bitcoin","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/bitcoin/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/bitcoin/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/bitcoin/120/original.png","width":256,"height":256}},"regions":["world"]})
|
16
24
|
end
|
17
25
|
|
18
26
|
def CartesBancaires
|
19
|
-
new_pm({"id":"cartes_bancaires","type":"card","name":"Cartes Bancaires","images":{"small":{"url":"https://flowcdn.io/util/
|
27
|
+
new_pm({"id":"cartes_bancaires","type":"card","name":"Cartes Bancaires","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/cartes_bancaires/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/cartes_bancaires/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/cartes_bancaires/120/original.png","width":256,"height":256}},"regions":["fra"]})
|
20
28
|
end
|
21
29
|
|
22
30
|
def ChinaUnionPay
|
23
|
-
new_pm({"id":"china_union_pay","type":"card","name":"China Union Pay","images":{"small":{"url":"https://flowcdn.io/util/
|
31
|
+
new_pm({"id":"china_union_pay","type":"card","name":"China Union Pay","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/china_union_pay/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/china_union_pay/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/china_union_pay/120/original.png","width":256,"height":256}},"regions":["chn"]})
|
24
32
|
end
|
25
33
|
|
26
34
|
def Dankort
|
27
|
-
new_pm({"id":"dankort","type":"card","name":"Dankort","images":{"small":{"url":"https://flowcdn.io/util/
|
35
|
+
new_pm({"id":"dankort","type":"card","name":"Dankort","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/dankort/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/dankort/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/dankort/120/original.png","width":256,"height":256}},"regions":["europe"]})
|
28
36
|
end
|
29
37
|
|
30
38
|
def DinersClub
|
31
|
-
new_pm({"id":"diners_club","type":"card","name":"Diners Club","images":{"small":{"url":"https://flowcdn.io/util/
|
39
|
+
new_pm({"id":"diners_club","type":"card","name":"Diners Club","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/diners_club/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/diners_club/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/diners_club/120/original.png","width":256,"height":256}},"regions":["europe","north-america"]})
|
40
|
+
end
|
41
|
+
|
42
|
+
def Directebanking
|
43
|
+
new_pm({"id":"directEbanking","type":"online","name":"Sofortüberweisung","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/directEbanking/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/directEbanking/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/directEbanking/120/original.png","width":256,"height":256}},"regions":["world"]})
|
32
44
|
end
|
33
45
|
|
34
46
|
def Discover
|
35
|
-
new_pm({"id":"discover","type":"card","name":"Discover","images":{"small":{"url":"https://flowcdn.io/util/
|
47
|
+
new_pm({"id":"discover","type":"card","name":"Discover","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/discover/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/discover/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/discover/120/original.png","width":256,"height":256}},"regions":["europe","north-america"]})
|
48
|
+
end
|
49
|
+
|
50
|
+
def Giropay
|
51
|
+
new_pm({"id":"giropay","type":"online","name":"GiroPay","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/giropay/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/giropay/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/giropay/120/original.png","width":256,"height":256}},"regions":["world"]})
|
52
|
+
end
|
53
|
+
|
54
|
+
def Ideal
|
55
|
+
new_pm({"id":"ideal","type":"online","name":"iDEAL","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/ideal/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/ideal/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/ideal/120/original.png","width":256,"height":256}},"regions":["world"]})
|
36
56
|
end
|
37
57
|
|
38
58
|
def Jcb
|
39
|
-
new_pm({"id":"jcb","type":"card","name":"Jcb","images":{"small":{"url":"https://flowcdn.io/util/
|
59
|
+
new_pm({"id":"jcb","type":"card","name":"Jcb","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/jcb/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/jcb/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/jcb/120/original.png","width":256,"height":256}},"regions":["jpn"]})
|
60
|
+
end
|
61
|
+
|
62
|
+
def Klarna
|
63
|
+
new_pm({"id":"klarna","type":"online","name":"Klarna","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/klarna/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/klarna/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/klarna/120/original.png","width":256,"height":256}},"regions":["world"]})
|
40
64
|
end
|
41
65
|
|
42
66
|
def Maestro
|
43
|
-
new_pm({"id":"maestro","type":"card","name":"Maestro","images":{"small":{"url":"https://flowcdn.io/util/
|
67
|
+
new_pm({"id":"maestro","type":"card","name":"Maestro","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/maestro/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/maestro/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/maestro/120/original.png","width":256,"height":256}},"regions":["europe","north-america"]})
|
44
68
|
end
|
45
69
|
|
46
70
|
def Mastercard
|
47
|
-
new_pm({"id":"mastercard","type":"card","name":"Mastercard","images":{"small":{"url":"https://flowcdn.io/util/
|
71
|
+
new_pm({"id":"mastercard","type":"card","name":"Mastercard","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/mastercard/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/mastercard/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/mastercard/120/original.png","width":256,"height":256}},"regions":["world"]})
|
48
72
|
end
|
49
73
|
|
50
74
|
def Paypal
|
51
|
-
new_pm({"id":"paypal","type":"online","name":"
|
75
|
+
new_pm({"id":"paypal","type":"online","name":"PayPal","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/paypal/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/paypal/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/paypal/120/original.png","width":180,"height":60}},"regions":["world"]})
|
76
|
+
end
|
77
|
+
|
78
|
+
def Qiwiwallet
|
79
|
+
new_pm({"id":"qiwiwallet","type":"online","name":"Qiwi Wallet","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/qiwiwallet/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/qiwiwallet/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/qiwiwallet/120/original.png","width":256,"height":256}},"regions":["world"]})
|
80
|
+
end
|
81
|
+
|
82
|
+
def Sepadirectdebit
|
83
|
+
new_pm({"id":"sepadirectdebit","type":"online","name":"SEPA Direct Debit","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/sepadirectdebit/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/sepadirectdebit/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/sepadirectdebit/120/original.png","width":256,"height":256}},"regions":["world"]})
|
84
|
+
end
|
85
|
+
|
86
|
+
def Unionpay
|
87
|
+
new_pm({"id":"unionpay","type":"online","name":"UnionPay","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/unionpay/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/unionpay/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/unionpay/120/original.png","width":256,"height":256}},"regions":["world"]})
|
52
88
|
end
|
53
89
|
|
54
90
|
def Visa
|
55
|
-
new_pm({"id":"visa","type":"card","name":"VISA","images":{"small":{"url":"https://flowcdn.io/util/
|
91
|
+
new_pm({"id":"visa","type":"card","name":"VISA","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/visa/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/visa/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/visa/120/original.png","width":256,"height":256}},"regions":["world"]})
|
92
|
+
end
|
93
|
+
|
94
|
+
def Wechatpay
|
95
|
+
new_pm({"id":"wechatpay","type":"online","name":"WeChat Pay","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/wechatpay/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/wechatpay/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/wechatpay/120/original.png","width":256,"height":256}},"regions":["world"]})
|
56
96
|
end
|
57
97
|
|
58
98
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flow-reference
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bryzek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Flow helper libraries for working with https://api.flow.io
|
15
15
|
email: mbryzek@alum.mit.edu
|
@@ -18,6 +18,7 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- "./lib/flow-reference.rb"
|
21
|
+
- "./lib/flow_reference_v0_client.rb"
|
21
22
|
- "./lib/generated/continents.rb"
|
22
23
|
- "./lib/generated/countries.rb"
|
23
24
|
- "./lib/generated/currencies.rb"
|
@@ -45,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
46
|
version: '0'
|
46
47
|
requirements: []
|
47
48
|
rubyforge_project:
|
48
|
-
rubygems_version: 2.
|
49
|
+
rubygems_version: 2.5.2
|
49
50
|
signing_key:
|
50
51
|
specification_version: 4
|
51
52
|
summary: Flow helpers
|