Class: Adyen::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/adyen/services/payment.rb

Constant Summary collapse

DEFAULT_VERSION =
68

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, version = DEFAULT_VERSION) ⇒ Payment

Returns a new instance of Payment.



9
10
11
12
13
# File 'lib/adyen/services/payment.rb', line 9

def initialize(client, version = DEFAULT_VERSION)
  @service = 'Payment'
  @client = client
  @version = version
end

Instance Attribute Details

#serviceObject

Returns the value of attribute service.



6
7
8
# File 'lib/adyen/services/payment.rb', line 6

def service
  @service
end

#versionObject

Returns the value of attribute version.



6
7
8
# File 'lib/adyen/services/payment.rb', line 6

def version
  @version
end

Instance Method Details

#general_apiObject



15
16
17
# File 'lib/adyen/services/payment.rb', line 15

def general_api
  @general_api ||= Adyen::GeneralApi.new(@client, @version)
end

#modifications_apiObject



19
20
21
# File 'lib/adyen/services/payment.rb', line 19

def modifications_api
  @modifications_api ||= Adyen::ModificationsApi.new(@client, @version)
end