Class: Flow::Reference::PaymentMethods::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/generated/payment_methods.rb

Class Method Summary collapse

Class Method Details

.AmericanExpressObject



14
15
16
# File 'lib/generated/payment_methods.rb', line 14

def AmericanExpress
  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"]})
end

.CartesBancairesObject



18
19
20
# File 'lib/generated/payment_methods.rb', line 18

def CartesBancaires
  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"]})
end

.ChinaUnionPayObject



22
23
24
# File 'lib/generated/payment_methods.rb', line 22

def ChinaUnionPay
  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"]})
end

.DankortObject



26
27
28
# File 'lib/generated/payment_methods.rb', line 26

def Dankort
  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"]})
end

.DinersClubObject



30
31
32
# File 'lib/generated/payment_methods.rb', line 30

def DinersClub
  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"]})
end

.DiscoverObject



34
35
36
# File 'lib/generated/payment_methods.rb', line 34

def Discover
  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"]})
end

.JcbObject



38
39
40
# File 'lib/generated/payment_methods.rb', line 38

def Jcb
  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"]})
end

.MaestroObject



42
43
44
# File 'lib/generated/payment_methods.rb', line 42

def Maestro
  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"]})
end

.MastercardObject



46
47
48
# File 'lib/generated/payment_methods.rb', line 46

def Mastercard
  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"]})
end

.new_pm(hash) ⇒ Object



10
11
12
# File 'lib/generated/payment_methods.rb', line 10

def new_pm(hash)
  ::Io::Flow::Reference::V0::Models::PaymentMethod.new(hash)
end

.PaypalObject



50
51
52
# File 'lib/generated/payment_methods.rb', line 50

def Paypal
  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"]})
end

.VisaObject



54
55
56
# File 'lib/generated/payment_methods.rb', line 54

def Visa
  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"]})
end