Skip to content

Commit aaa2f1e

Browse files
false[adyen-sdk-automation] automated change
1 parent 7020d92 commit aaa2f1e

File tree

4 files changed

+121
-0
lines changed

4 files changed

+121
-0
lines changed

lib/adyen/services/balancePlatform.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require_relative 'balancePlatform/account_holders_api'
22
require_relative 'balancePlatform/balance_accounts_api'
3+
require_relative 'balancePlatform/balances_api'
34
require_relative 'balancePlatform/bank_account_validation_api'
45
require_relative 'balancePlatform/card_orders_api'
56
require_relative 'balancePlatform/grant_accounts_api'
@@ -37,6 +38,10 @@ def balance_accounts_api
3738
@balance_accounts_api ||= Adyen::BalanceAccountsApi.new(@client, @version)
3839
end
3940

41+
def balances_api
42+
@balances_api ||= Adyen::BalancesApi.new(@client, @version)
43+
end
44+
4045
def bank_account_validation_api
4146
@bank_account_validation_api ||= Adyen::BankAccountValidationApi.new(@client, @version)
4247
end
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
require_relative '../service'
2+
module Adyen
3+
4+
# NOTE: This class is auto generated by OpenAPI Generator
5+
# Ref: https://openapi-generator.tech
6+
#
7+
# Do not edit the class manually.
8+
class BalancesApi < Service
9+
attr_accessor :service, :version
10+
11+
def initialize(client, version = DEFAULT_VERSION)
12+
super(client, version, 'BalancePlatform')
13+
end
14+
15+
# Create a balance webhook setting
16+
def create_webhook_setting(request, balance_platform_id, webhook_id, balance_webhook_setting_info, headers: {})
17+
endpoint = '/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint, balance_platform_id, webhook_id)
20+
21+
action = { method: 'post', url: endpoint }
22+
@client.call_adyen_api(@service, action, request, headers, @version)
23+
end
24+
25+
# Delete a balance webhook setting by id
26+
def delete_webhook_setting(balance_platform_id, webhook_id, setting_id, headers: {})
27+
endpoint = '/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}'.gsub(/{.+?}/, '%s')
28+
endpoint = endpoint.gsub(%r{^/}, '')
29+
endpoint = format(endpoint, balance_platform_id, webhook_id, setting_id)
30+
31+
action = { method: 'delete', url: endpoint }
32+
@client.call_adyen_api(@service, action, {}, headers, @version)
33+
end
34+
35+
# Get all balance webhook settings
36+
def get_all_webhook_settings(balance_platform_id, webhook_id, headers: {})
37+
endpoint = '/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings'.gsub(/{.+?}/, '%s')
38+
endpoint = endpoint.gsub(%r{^/}, '')
39+
endpoint = format(endpoint, balance_platform_id, webhook_id)
40+
41+
action = { method: 'get', url: endpoint }
42+
@client.call_adyen_api(@service, action, {}, headers, @version)
43+
end
44+
45+
# Get a balance webhook setting by id
46+
def get_webhook_setting(balance_platform_id, webhook_id, setting_id, headers: {})
47+
endpoint = '/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}'.gsub(/{.+?}/, '%s')
48+
endpoint = endpoint.gsub(%r{^/}, '')
49+
endpoint = format(endpoint, balance_platform_id, webhook_id, setting_id)
50+
51+
action = { method: 'get', url: endpoint }
52+
@client.call_adyen_api(@service, action, {}, headers, @version)
53+
end
54+
55+
# Update a balance webhook setting by id
56+
def update_webhook_setting(request, balance_platform_id, webhook_id, setting_id, balance_webhook_setting_info_update, headers: {})
57+
endpoint = '/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}'.gsub(/{.+?}/, '%s')
58+
endpoint = endpoint.gsub(%r{^/}, '')
59+
endpoint = format(endpoint, balance_platform_id, webhook_id, setting_id)
60+
61+
action = { method: 'patch', url: endpoint }
62+
@client.call_adyen_api(@service, action, request, headers, @version)
63+
end
64+
65+
end
66+
end
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
require_relative 'sessionAuthentication/session_authentication_api'
2+
3+
module Adyen
4+
5+
# NOTE: This class is auto generated by OpenAPI Generator
6+
# Ref: https://openapi-generator.tech
7+
#
8+
# Do not edit the class manually.
9+
class SessionAuthentication
10+
attr_accessor :service, :version
11+
12+
DEFAULT_VERSION = 1
13+
def initialize(client, version = DEFAULT_VERSION)
14+
@service = 'SessionAuthentication'
15+
@client = client
16+
@version = version
17+
end
18+
19+
def session_authentication_api
20+
@session_authentication_api ||= Adyen::SessionAuthenticationApi.new(@client, @version)
21+
end
22+
23+
end
24+
end
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
require_relative '../service'
2+
module Adyen
3+
4+
# NOTE: This class is auto generated by OpenAPI Generator
5+
# Ref: https://openapi-generator.tech
6+
#
7+
# Do not edit the class manually.
8+
class SessionAuthenticationApi < Service
9+
attr_accessor :service, :version
10+
11+
def initialize(client, version = DEFAULT_VERSION)
12+
super(client, version, 'SessionAuthentication')
13+
end
14+
15+
# Create a session token
16+
def create_authentication_session(request, authentication_session_request, headers: {})
17+
endpoint = '/sessions'.gsub(/{.+?}/, '%s')
18+
endpoint = endpoint.gsub(%r{^/}, '')
19+
endpoint = format(endpoint)
20+
21+
action = { method: 'post', url: endpoint }
22+
@client.call_adyen_api(@service, action, request, headers, @version)
23+
end
24+
25+
end
26+
end

0 commit comments

Comments
 (0)