Class: Mollie::Method

Inherits:
Base
  • Object
show all
Defined in:
lib/mollie/method.rb

Constant Summary collapse

ALMA =
'alma'.freeze
APPLEPAY =
'applepay'.freeze
BANCONTACT =
'bancontact'.freeze
BANCOMAT_PAY =
'bancomatpay'.freeze
BANKTRANSFER =
'banktransfer'.freeze
BELFIUS =
'belfius'.freeze
BILLIE =
'billie'.freeze
BLIK =
'bilk'.freeze
CREDITCARD =
'creditcard'.freeze
DIRECTDEBIT =
'directdebit'.freeze
EPS =
'eps'.freeze
GIFTCARD =
'giftcard'.freeze
GIROPAY =
'giropay'.freeze
IDEAL =
'ideal'.freeze
IN3 =
'in3'.freeze
INGHOMEPAY =
'inghomepay'.freeze
KBC =
'kbc'.freeze
MYBANK =
'mybank'.freeze
PAYPAL =
'paypal'.freeze
PAYSAFECARD =
'paysafecard'.freeze
PRZELEWY24 =
'przelewy24'.freeze
RIVERTY =
'riverty'.freeze
SOFORT =
'sofort'.freeze
SATISPAY =
'satispay'.freeze
TRUSTLY =
'trustly'.freeze
TWINT =
'twint'.freeze
VOUCHER =
'voucher'.freeze
KLARNA =
'klarna'.freeze
KLARNASLICEIT =
'klarnasliceit'.freeze
KLARNAPAYLATER =
'klarnapaylater'.freeze

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

all, #assign_attributes, cancel, create, #delete, delete, get, id_param, #initialize, parent_id, request, resource_name, update, #update

Constructor Details

This class inherits a constructor from Mollie::Base

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



34
35
36
# File 'lib/mollie/method.rb', line 34

def description
  @description
end

#idObject

Returns the value of attribute id.



34
35
36
# File 'lib/mollie/method.rb', line 34

def id
  @id
end

#imageObject

Returns the value of attribute image.



34
35
36
# File 'lib/mollie/method.rb', line 34

def image
  @image
end

#issuersObject

Returns the value of attribute issuers.



34
35
36
# File 'lib/mollie/method.rb', line 34

def issuers
  @issuers
end

#maximum_amountObject

Returns the value of attribute maximum_amount.



34
35
36
# File 'lib/mollie/method.rb', line 34

def maximum_amount
  @maximum_amount
end

#minimum_amountObject

Returns the value of attribute minimum_amount.



34
35
36
# File 'lib/mollie/method.rb', line 34

def minimum_amount
  @minimum_amount
end

#pricingObject

Returns the value of attribute pricing.



34
35
36
# File 'lib/mollie/method.rb', line 34

def pricing
  @pricing
end

#statusObject

Returns the value of attribute status.



34
35
36
# File 'lib/mollie/method.rb', line 34

def status
  @status
end

Class Method Details

.all_available(options = {}) ⇒ Object



43
44
45
46
# File 'lib/mollie/method.rb', line 43

def self.all_available(options = {})
  response = Client.instance.perform_http_call("GET", "methods", "all", {}, options)
  Mollie::List.new(response, Mollie::Method)
end

Instance Method Details

#bigger_imageObject



60
61
62
# File 'lib/mollie/method.rb', line 60

def bigger_image
  image['size2x']
end

#normal_imageObject



56
57
58
# File 'lib/mollie/method.rb', line 56

def normal_image
  image['size1x']
end