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.



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

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

Instance Attribute Details

#serviceObject

Returns the value of attribute service.



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

def service
  @service
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#account_holders_apiObject



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

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

#balance_accounts_apiObject



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

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

#bank_account_validation_apiObject



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

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

#grant_accounts_apiObject



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

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

#grant_offers_apiObject



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

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

#network_tokens_apiObject



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

def network_tokens_api
  @network_tokens_api ||= Adyen::NetworkTokensApi.new(@client, @version)
end

#payment_instrument_groups_apiObject



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

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

#payment_instruments_apiObject



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

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

#platform_apiObject



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

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

#transaction_rules_apiObject



59
60
61
# File 'lib/adyen/services/balancePlatform.rb', line 59

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