Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/adyen/services/balancePlatform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
require_relative 'balancePlatform/balances_api'
require_relative 'balancePlatform/bank_account_validation_api'
require_relative 'balancePlatform/card_orders_api'
require_relative 'balancePlatform/custom_payout_schedules_sweeps_api'
require_relative 'balancePlatform/direct_debit_mandates_api'
require_relative 'balancePlatform/grant_accounts_api'
require_relative 'balancePlatform/grant_offers_api'
require_relative 'balancePlatform/manage_card_pin_api'
require_relative 'balancePlatform/manage_sca_devices_api'
require_relative 'balancePlatform/managed_payout_schedules_api'
require_relative 'balancePlatform/network_tokens_api'
require_relative 'balancePlatform/payment_instrument_groups_api'
require_relative 'balancePlatform/payment_instruments_api'
Expand Down Expand Up @@ -60,6 +62,10 @@ def card_orders_api
@card_orders_api ||= Adyen::CardOrdersApi.new(@client, @version)
end

def custom_payout_schedules_sweeps_api
@custom_payout_schedules_sweeps_api ||= Adyen::CustomPayoutSchedulesSweepsApi.new(@client, @version)
end

def direct_debit_mandates_api
@direct_debit_mandates_api ||= Adyen::DirectDebitMandatesApi.new(@client, @version)
end
Expand All @@ -80,6 +86,10 @@ def manage_sca_devices_api
@manage_sca_devices_api ||= Adyen::ManageSCADevicesApi.new(@client, @version)
end

def managed_payout_schedules_api
@managed_payout_schedules_api ||= Adyen::ManagedPayoutSchedulesApi.new(@client, @version)
end

def network_tokens_api
@network_tokens_api ||= Adyen::NetworkTokensApi.new(@client, @version)
end
Expand Down
40 changes: 0 additions & 40 deletions lib/adyen/services/balancePlatform/balance_accounts_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,6 @@ def create_balance_account(request, headers: {})
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Create a sweep
def create_sweep(request, balance_account_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps', balance_account_id)

action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Delete a sweep
def delete_sweep(balance_account_id, sweep_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}', balance_account_id, sweep_id)

action = { method: 'delete', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get all sweeps for a balance account
def get_all_sweeps_for_balance_account(balance_account_id, headers: {}, query_params: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps', balance_account_id)
endpoint += create_query_string(query_params)
action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get all transaction rules for a balance account
def get_all_transaction_rules_for_balance_account(id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{id}/transactionRules', id)
Expand All @@ -68,14 +44,6 @@ def get_payment_instruments_linked_to_balance_account(id, headers: {}, query_par
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get a sweep
def get_sweep(balance_account_id, sweep_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}', balance_account_id, sweep_id)

action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Update a balance account
def update_balance_account(request, id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{id}', id)
Expand All @@ -84,13 +52,5 @@ def update_balance_account(request, id, headers: {})
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Update a sweep
def update_sweep(request, balance_account_id, sweep_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}', balance_account_id, sweep_id)

action = { method: 'patch', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
require_relative '../service'
module Adyen

# NOTE: This class is auto generated by OpenAPI Generator
# Ref: https://openapi-generator.tech
#
# Do not edit the class manually.
class CustomPayoutSchedulesSweepsApi < Service
attr_accessor :service, :version

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

# Create a sweep
def create_sweep(request, balance_account_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps', balance_account_id)

action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Delete a sweep
def delete_sweep(balance_account_id, sweep_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}', balance_account_id, sweep_id)

Check failure on line 25 in lib/adyen/services/balancePlatform/custom_payout_schedules_sweeps_api.rb

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}" 3 times.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-ruby-api-library&issues=AZ5AMP-DGbYiVIN2GZiF&open=AZ5AMP-DGbYiVIN2GZiF&pullRequest=385

action = { method: 'delete', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get all sweeps for a balance account
def get_all_sweeps_for_balance_account(balance_account_id, headers: {}, query_params: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps', balance_account_id)
endpoint += create_query_string(query_params)
action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get a sweep
def get_sweep(balance_account_id, sweep_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}', balance_account_id, sweep_id)

action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Update a sweep
def update_sweep(request, balance_account_id, sweep_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}', balance_account_id, sweep_id)

action = { method: 'patch', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
require_relative '../service'
module Adyen

# NOTE: This class is auto generated by OpenAPI Generator
# Ref: https://openapi-generator.tech
#
# Do not edit the class manually.
class ManagedPayoutSchedulesApi < Service
attr_accessor :service, :version

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

# Apply a managed payout schedule to a balance account
def apply_managed_schedule(request, balance_account_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/payoutSchedules', balance_account_id)

action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Delete a managed payout schedule on a balance account
def delete_balance_account_managed_schedule(balance_account_id, id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/payoutSchedules/{id}', balance_account_id, id)

Check failure on line 25 in lib/adyen/services/balancePlatform/managed_payout_schedules_api.rb

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "/balanceAccounts/{balanceAccountId}/payoutSchedules/{id}" 3 times.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-ruby-api-library&issues=AZ5AMQDtGbYiVIN2GZiG&open=AZ5AMQDtGbYiVIN2GZiG&pullRequest=385

action = { method: 'delete', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get a specific managed payout schedule on a balance account
def get_balance_account_managed_schedule_by_id(balance_account_id, id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/payoutSchedules/{id}', balance_account_id, id)

action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get all managed payout schedules on a balance account
def get_balance_account_managed_schedules(balance_account_id, headers: {}, query_params: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/payoutSchedules', balance_account_id)
endpoint += create_query_string(query_params)
action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get a specific managed payout schedule on your balance platform
def get_balance_platform_managed_schedule_by_id(balance_platform_id, id, headers: {})
endpoint = build_endpoint('/balancePlatforms/{balancePlatformId}/payoutSchedules/{id}', balance_platform_id, id)

action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Get all managed payout schedules on your balance platform
def get_balance_platform_managed_schedules(balance_platform_id, headers: {}, query_params: {})
endpoint = build_endpoint('/balancePlatforms/{balancePlatformId}/payoutSchedules', balance_platform_id)
endpoint += create_query_string(query_params)
action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# View executions of a managed payout schedule
def get_payout_schedule_executions(balance_account_id, id, headers: {}, query_params: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/payoutSchedules/{id}/executions', balance_account_id, id)
endpoint += create_query_string(query_params)
action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Update a managed payout schedule on a balance account
def update_balance_account_managed_schedule(request, balance_account_id, id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/payoutSchedules/{id}', balance_account_id, id)

action = { method: 'patch', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

end
end
8 changes: 4 additions & 4 deletions sdk-generation-log/balanceplatform.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"service": "balanceplatform",
"project": "ruby",
"generatedAt": "2026-04-20T13:40:00Z",
"openapiCommitSha": "3550ecd3f320efaad6bee55ffed5122cb9ba09d5",
"automationCommitSha": "4ad0c0c7e87bc0e5994a9a3350a991d0691350bb",
"libraryCommitSha": "60ccdbdbbb7069d54600a8a8cd19eea245661134"
"generatedAt": "2026-06-01T09:44:52Z",
"openapiCommitSha": "c0822241f611e20376f72b279f2b3e67dea27a43",
"automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284",
"libraryCommitSha": "c80f38ce8b02c80778053741d0e9175e8e530742"
}
Loading