Skip to content
Merged
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
15 changes: 15 additions & 0 deletions lib/adyen/services/balancePlatform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
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'
require_relative 'balancePlatform/platform_api'
require_relative 'balancePlatform/recurring_top_ups_api'
require_relative 'balancePlatform/sca_association_management_api'
require_relative 'balancePlatform/sca_device_management_api'
require_relative 'balancePlatform/transaction_rules_api'
Expand Down Expand Up @@ -60,6 +63,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 +87,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 All @@ -96,6 +107,10 @@ def platform_api
@platform_api ||= Adyen::PlatformApi.new(@client, @version)
end

def recurring_top_ups_api
@recurring_top_ups_api ||= Adyen::RecurringTopUpsApi.new(@client, @version)
end

def sca_association_management_api
@sca_association_management_api ||= Adyen::SCAAssociationManagementApi.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=AZ7fXGl3yH2VcxfBRLSG&open=AZ7fXGl3yH2VcxfBRLSG&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=AZ7fXGnbyH2VcxfBRLSH&open=AZ7fXGnbyH2VcxfBRLSH&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
48 changes: 48 additions & 0 deletions lib/adyen/services/balancePlatform/recurring_top_ups_api.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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 RecurringTopUpsApi < Service
attr_accessor :service, :version

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

# Create recurring top up
def create_recurring_top_up(request, balance_account_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/recurringTopUps', balance_account_id)

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

# Delete a recurring top up
def delete_recurring_top_up(balance_account_id, top_up_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/recurringTopUps/{topUpId}', balance_account_id, top_up_id)

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

# Get recurring top ups for a specific balanceAccountId
def get_recurring_top_ups(balance_account_id, headers: {}, query_params: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/recurringTopUps', balance_account_id)
endpoint += create_query_string(query_params)
action = { method: 'get', url: endpoint }
@client.call_adyen_api(@service, action, {}, headers, @version)
end

# Update a RecurringTopUp
def update_recurring_top_ups(request, balance_account_id, top_up_id, headers: {})
endpoint = build_endpoint('/balanceAccounts/{balanceAccountId}/recurringTopUps/{topUpId}', balance_account_id, top_up_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
Expand Up @@ -20,6 +20,14 @@ def begin_sca_device_registration(request, headers: {})
@client.call_adyen_api(@service, action, request, headers, @version)
end

# Delete an SCA device
def delete_sca_device(device_id, headers: {})
endpoint = build_endpoint('/scaDevices/{deviceId}', device_id)

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

# Finish registration process for a SCA device
def finish_sca_device_registration(request, device_id, headers: {})
endpoint = build_endpoint('/scaDevices/{deviceId}', device_id)
Expand Down
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-07-31T12:01:02Z",
"openapiCommitSha": "425d65d12163ebd4fe6fa6d2f859075817c81cba",
"automationCommitSha": "0c108bd8050cf480d2710b78b770afdfbdd89397",
"libraryCommitSha": "7f77a7b7aca2c2b22147ba4b996ada979f9decd9"
}
Loading
Loading