forked from Adyen/adyen-ruby-api-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
balancePlatform.rb
69 lines (55 loc) · 2.14 KB
/
balancePlatform.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
require_relative 'balancePlatform/account_holders_api'
require_relative 'balancePlatform/balance_accounts_api'
require_relative 'balancePlatform/bank_account_validation_api'
require_relative 'balancePlatform/grant_accounts_api'
require_relative 'balancePlatform/grant_offers_api'
require_relative 'balancePlatform/network_tokens_api'
require_relative 'balancePlatform/payment_instrument_groups_api'
require_relative 'balancePlatform/payment_instruments_api'
require_relative 'balancePlatform/platform_api'
require_relative 'balancePlatform/transaction_rules_api'
require_relative 'balancePlatform/transfer_routes_api'
module Adyen
class BalancePlatform
attr_accessor :service, :version
DEFAULT_VERSION = 2
def initialize(client, version = DEFAULT_VERSION)
@service = 'BalancePlatform'
@client = client
@version = version
end
def account_holders_api
@account_holders_api ||= Adyen::AccountHoldersApi.new(@client, @version)
end
def balance_accounts_api
@balance_accounts_api ||= Adyen::BalanceAccountsApi.new(@client, @version)
end
def bank_account_validation_api
@bank_account_validation_api ||= Adyen::BankAccountValidationApi.new(@client, @version)
end
def grant_accounts_api
@grant_accounts_api ||= Adyen::GrantAccountsApi.new(@client, @version)
end
def grant_offers_api
@grant_offers_api ||= Adyen::GrantOffersApi.new(@client, @version)
end
def network_tokens_api
@network_tokens_api ||= Adyen::NetworkTokensApi.new(@client, @version)
end
def payment_instrument_groups_api
@payment_instrument_groups_api ||= Adyen::PaymentInstrumentGroupsApi.new(@client, @version)
end
def payment_instruments_api
@payment_instruments_api ||= Adyen::PaymentInstrumentsApi.new(@client, @version)
end
def platform_api
@platform_api ||= Adyen::PlatformApi.new(@client, @version)
end
def transaction_rules_api
@transaction_rules_api ||= Adyen::TransactionRulesApi.new(@client, @version)
end
def transfer_routes_api
@transfer_routes_api ||= Adyen::TransferRoutesApi.new(@client, @version)
end
end
end