Skip to content

Commit 8f4929c

Browse files
false[adyen-sdk-automation] automated change
1 parent 7f0ecd0 commit 8f4929c

File tree

4 files changed

+85
-0
lines changed

4 files changed

+85
-0
lines changed

lib/adyen/services/balanceControlService.rb

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def initialize(client, version = DEFAULT_VERSION)
1414
end
1515

1616
# Start a balance transfer
17+
#
18+
# Deprecated since Adyen Balance Control API v1
1719
def balance_transfer(request, headers: {})
1820
endpoint = '/balanceTransfer'.gsub(/{.+?}/, '%s')
1921
endpoint = endpoint.gsub(%r{^/}, '')

lib/adyen/services/balancePlatform.rb

+5
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
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+
# Get webhook settings
16+
def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_get(balance_platform_id, webhook_id, 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: 'get', url: endpoint }
22+
@client.call_adyen_api(@service, action, {}, headers, @version)
23+
end
24+
25+
# Create a balance webhook setting
26+
def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_post(request, balance_platform_id, webhook_id, balance_webhook_settings_request, headers: {})
27+
endpoint = '/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings'.gsub(/{.+?}/, '%s')
28+
endpoint = endpoint.gsub(%r{^/}, '')
29+
endpoint = format(endpoint, balance_platform_id, webhook_id)
30+
31+
action = { method: 'post', url: endpoint }
32+
@client.call_adyen_api(@service, action, request, headers, @version)
33+
end
34+
35+
# Delete a webhook setting
36+
def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_setting_id_delete(balance_platform_id, webhook_id, setting_id, headers: {})
37+
endpoint = '/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}'.gsub(/{.+?}/, '%s')
38+
endpoint = endpoint.gsub(%r{^/}, '')
39+
endpoint = format(endpoint, balance_platform_id, webhook_id, setting_id)
40+
41+
action = { method: 'delete', url: endpoint }
42+
@client.call_adyen_api(@service, action, {}, headers, @version)
43+
end
44+
45+
# Get a webhook setting
46+
def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_setting_id_get(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 webhook setting
56+
def balance_platforms_balance_platform_id_webhooks_webhook_id_settings_setting_id_patch(request, balance_platform_id, webhook_id, setting_id, patchable_balance_webhook_settings_request, 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

lib/adyen/services/recurring.rb

+12
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def initialize(client, version = DEFAULT_VERSION)
1414
end
1515

1616
# Create new permits linked to a recurring contract.
17+
#
18+
# Deprecated since Adyen Recurring API (deprecated) v68
1719
def create_permit(request, headers: {})
1820
endpoint = '/createPermit'.gsub(/{.+?}/, '%s')
1921
endpoint = endpoint.gsub(%r{^/}, '')
@@ -24,6 +26,8 @@ def create_permit(request, headers: {})
2426
end
2527

2628
# Disable stored payment details
29+
#
30+
# Deprecated since Adyen Recurring API (deprecated) v68
2731
def disable(request, headers: {})
2832
endpoint = '/disable'.gsub(/{.+?}/, '%s')
2933
endpoint = endpoint.gsub(%r{^/}, '')
@@ -34,6 +38,8 @@ def disable(request, headers: {})
3438
end
3539

3640
# Disable an existing permit.
41+
#
42+
# Deprecated since Adyen Recurring API (deprecated) v68
3743
def disable_permit(request, headers: {})
3844
endpoint = '/disablePermit'.gsub(/{.+?}/, '%s')
3945
endpoint = endpoint.gsub(%r{^/}, '')
@@ -44,6 +50,8 @@ def disable_permit(request, headers: {})
4450
end
4551

4652
# Get stored payment details
53+
#
54+
# Deprecated since Adyen Recurring API (deprecated) v68
4755
def list_recurring_details(request, headers: {})
4856
endpoint = '/listRecurringDetails'.gsub(/{.+?}/, '%s')
4957
endpoint = endpoint.gsub(%r{^/}, '')
@@ -54,6 +62,8 @@ def list_recurring_details(request, headers: {})
5462
end
5563

5664
# Ask issuer to notify the shopper
65+
#
66+
# Deprecated since Adyen Recurring API (deprecated) v68
5767
def notify_shopper(request, headers: {})
5868
endpoint = '/notifyShopper'.gsub(/{.+?}/, '%s')
5969
endpoint = endpoint.gsub(%r{^/}, '')
@@ -64,6 +74,8 @@ def notify_shopper(request, headers: {})
6474
end
6575

6676
# Schedule running the Account Updater
77+
#
78+
# Deprecated since Adyen Recurring API (deprecated) v68
6779
def schedule_account_updater(request, headers: {})
6880
endpoint = '/scheduleAccountUpdater'.gsub(/{.+?}/, '%s')
6981
endpoint = endpoint.gsub(%r{^/}, '')

0 commit comments

Comments
 (0)