flow-reference 0.2.87 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,62 @@
1
+ # Generated by Flow.io (2017) code builder
2
+
3
+ module Flow
4
+ module Reference
5
+ class PaymentMethods
6
+ SUPPORTED_CREDIT_CARDS = [:american_express, :cartes_bancaires, :china_union_pay, :dankort, :diners_club, :discover, :jcb, :maestro, :mastercard, :paypal, :visa]
7
+
8
+ class Data
9
+ class << self
10
+ def new_pm(hash)
11
+ ::Io::Flow::Reference::V0::Models::PaymentMethod.new(hash)
12
+ end
13
+
14
+ def AmericanExpress
15
+ new_pm({"id":"american_express","type":"card","name":"American Express","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/american_express/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/american_express/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/american_express/256x256.png","width":256,"height":256}},"regions":["world"]})
16
+ end
17
+
18
+ def CartesBancaires
19
+ new_pm({"id":"cartes_bancaires","type":"card","name":"Cartes Bancaires","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/cartes_bancaires/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/cartes_bancaires/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/cartes_bancaires/256x256.png","width":256,"height":256}},"regions":["fra"]})
20
+ end
21
+
22
+ def ChinaUnionPay
23
+ new_pm({"id":"china_union_pay","type":"card","name":"China Union Pay","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/china_union_pay/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/china_union_pay/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/china_union_pay/256x256.png","width":256,"height":256}},"regions":["chn"]})
24
+ end
25
+
26
+ def Dankort
27
+ new_pm({"id":"dankort","type":"card","name":"Dankort","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/dankort/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/dankort/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/dankort/256x256.png","width":256,"height":256}},"regions":["europe"]})
28
+ end
29
+
30
+ def DinersClub
31
+ new_pm({"id":"diners_club","type":"card","name":"Diners Club","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/diners_club/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/diners_club/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/diners_club/256x256.png","width":256,"height":256}},"regions":["europe","north-america"]})
32
+ end
33
+
34
+ def Discover
35
+ new_pm({"id":"discover","type":"card","name":"Discover","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/discover/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/discover/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/discover/256x256.png","width":256,"height":256}},"regions":["europe","north-america"]})
36
+ end
37
+
38
+ def Jcb
39
+ new_pm({"id":"jcb","type":"card","name":"Jcb","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/jcb/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/jcb/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/jcb/256x256.png","width":256,"height":256}},"regions":["jpn"]})
40
+ end
41
+
42
+ def Maestro
43
+ new_pm({"id":"maestro","type":"card","name":"Maestro","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/maestro/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/maestro/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/maestro/256x256.png","width":256,"height":256}},"regions":["europe","north-america"]})
44
+ end
45
+
46
+ def Mastercard
47
+ new_pm({"id":"mastercard","type":"card","name":"Mastercard","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/mastercard/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/mastercard/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/mastercard/256x256.png","width":256,"height":256}},"regions":["world"]})
48
+ end
49
+
50
+ def Paypal
51
+ new_pm({"id":"paypal","type":"online","name":"Paypal","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/paypal/76x48.png","width":76,"height":48},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/paypal/150x94.png","width":150,"height":94},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/paypal/266x142.png","width":266,"height":142}},"regions":["world"]})
52
+ end
53
+
54
+ def Visa
55
+ new_pm({"id":"visa","type":"card","name":"VISA","images":{"small":{"url":"https://flowcdn.io/util/icons/payment-methods/visa/64x64.png","width":64,"height":64},"medium":{"url":"https://flowcdn.io/util/icons/payment-methods/visa/128x128.png","width":128,"height":128},"large":{"url":"https://flowcdn.io/util/icons/payment-methods/visa/256x256.png","width":256,"height":256}},"regions":["world"]})
56
+ end
57
+
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,5 @@
1
+ module Flow
2
+ module Reference
3
+ VERSION = '0.3.1'
4
+ end
5
+ end
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.2.87
4
+ version: 0.3.1
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: 2017-04-01 00:00:00.000000000 Z
12
+ date: 2017-04-11 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,8 +18,12 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - "./lib/flow-reference.rb"
21
+ - "./lib/generated/continents.rb"
22
+ - "./lib/generated/countries.rb"
21
23
  - "./lib/generated/currencies.rb"
24
+ - "./lib/generated/payment_methods.rb"
22
25
  - "./lib/io_flow_reference_v0.rb"
26
+ - "./lib/version.rb"
23
27
  homepage: https://www.flow.io
24
28
  licenses:
25
29
  - MIT