Class: Adyen::BalancePlatform

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

Constant Summary collapse

DEFAULT_VERSION =
2

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, version = DEFAULT_VERSION) ⇒ BalancePlatform

Returns a new instance of BalancePlatform.



16
17
18
19
20
# File 'lib/adyen/services/balancePlatform.rb', line 16

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

Instance Attribute Details

#serviceObject

Returns the value of attribute service.



13
14
15
# File 'lib/adyen/services/balancePlatform.rb', line 13

def service
  @service
end

#versionObject

Returns the value of attribute version.



13
14
15
# File 'lib/adyen/services/balancePlatform.rb', line 13

def version
  @version
end

Instance Method Details

#account_holders_apiObject



22
23
24
# File 'lib/adyen/services/balancePlatform.rb', line 22

def 
  @account_holders_api ||= Adyen::AccountHoldersApi.new(@client, @version)
end

#balance_accounts_apiObject



26
27
28
# File 'lib/adyen/services/balancePlatform.rb', line 26

def balance_accounts_api
  @balance_accounts_api ||= Adyen::BalanceAccountsApi.new(@client, @version)
end

#bank_account_validation_apiObject



30
31
32
# File 'lib/adyen/services/balancePlatform.rb', line 30

def 
  @bank_account_validation_api ||= Adyen::BankAccountValidationApi.new(@client, @version)
end

#grant_accounts_apiObject



34
35
36
# File 'lib/adyen/services/balancePlatform.rb', line 34

def grant_accounts_api
  @grant_accounts_api ||= Adyen::GrantAccountsApi.new(@client, @version)
end

#grant_offers_apiObject



38
39
40
# File 'lib/adyen/services/balancePlatform.rb', line 38

def grant_offers_api
  @grant_offers_api ||= Adyen::GrantOffersApi.new(@client, @version)
end

#payment_instrument_groups_apiObject



42
43
44
# File 'lib/adyen/services/balancePlatform.rb', line 42

def payment_instrument_groups_api
  @payment_instrument_groups_api ||= Adyen::PaymentInstrumentGroupsApi.new(@client, @version)
end

#payment_instruments_apiObject



46
47
48
# File 'lib/adyen/services/balancePlatform.rb', line 46

def payment_instruments_api
  @payment_instruments_api ||= Adyen::PaymentInstrumentsApi.new(@client, @version)
end

#platform_apiObject



50
51
52
# File 'lib/adyen/services/balancePlatform.rb', line 50

def platform_api
  @platform_api ||= Adyen::PlatformApi.new(@client, @version)
end

#transaction_rules_apiObject



54
55
56
# File 'lib/adyen/services/balancePlatform.rb', line 54

def transaction_rules_api
  @transaction_rules_api ||= Adyen::TransactionRulesApi.new(@client, @version)
end