Class: Adyen::Payments

Inherits:
Service show all
Defined in:
lib/adyen/services/payments.rb

Constant Summary collapse

DEFAULT_VERSION =
50

Instance Attribute Summary collapse

Attributes inherited from Service

#service

Instance Method Summary collapse

Methods inherited from Service

action_for_method_name

Constructor Details

#initialize(client, version = DEFAULT_VERSION) ⇒ Payments

Returns a new instance of Payments.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/adyen/services/payments.rb', line 8

def initialize(client, version = DEFAULT_VERSION)
  service = "Payment"
  method_names = [
    :authorise,
    :authorise3d,
    :authorise3ds2,
    :capture,
    :cancel,
    :refund,
    :cancel_or_refund,
    :adjust_authorisation,
    :donate,
  ]
  with_application_info = [
    :authorise,
    :authorise3d,
    :authorise3ds2,
  ]

  super(client, version, service, method_names, with_application_info)
end

Instance Attribute Details

#versionObject

Returns the value of attribute version.



5
6
7
# File 'lib/adyen/services/payments.rb', line 5

def version
  @version
end