Class: Adyen::Marketpay::Account

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

Constant Summary collapse

DEFAULT_VERSION =
4

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) ⇒ Account

Returns a new instance of Account.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/adyen/services/marketpay.rb', line 34

def initialize(client, version = DEFAULT_VERSION)
  service = 'Account'
  method_names = [
    :create_account_holder,
    :update_account_holder,
    :create_account,
    :update_account,
    :upload_document,
    :get_uploaded_documents,
    :get_account_holder,
    :update_account_holder_state,
    :delete_bank_accounts,
    :delete_shareholders,
    :close_account,
    :close_account_holder,
    :get_tier_configuration,
    :suspend_account_holder,
    :un_suspend_account_holder
  ]

  super(client, version, service, method_names)
end

Instance Attribute Details

#versionObject

Returns the value of attribute version.



31
32
33
# File 'lib/adyen/services/marketpay.rb', line 31

def version
  @version
end