diff --git a/lib/adyen/services/balancePlatform.rb b/lib/adyen/services/balancePlatform.rb index 24ca6c38..79525496 100644 --- a/lib/adyen/services/balancePlatform.rb +++ b/lib/adyen/services/balancePlatform.rb @@ -4,6 +4,7 @@ require_relative 'balancePlatform/balances_api' require_relative 'balancePlatform/bank_account_validation_api' require_relative 'balancePlatform/card_orders_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' @@ -59,6 +60,10 @@ def card_orders_api @card_orders_api ||= Adyen::CardOrdersApi.new(@client, @version) end + def direct_debit_mandates_api + @direct_debit_mandates_api ||= Adyen::DirectDebitMandatesApi.new(@client, @version) + end + def grant_accounts_api @grant_accounts_api ||= Adyen::GrantAccountsApi.new(@client, @version) end diff --git a/lib/adyen/services/balancePlatform/account_holders_api.rb b/lib/adyen/services/balancePlatform/account_holders_api.rb index eebe850b..fc626d0e 100644 --- a/lib/adyen/services/balancePlatform/account_holders_api.rb +++ b/lib/adyen/services/balancePlatform/account_holders_api.rb @@ -62,6 +62,16 @@ def get_tax_form(id, headers: {}, query_params: {}) @client.call_adyen_api(@service, action, {}, headers, @version) end + # Get summary of tax forms for an account holder + def get_tax_form_summary(id, headers: {}, query_params: {}) + endpoint = '/accountHolders/{id}/taxFormSummary'.gsub(/{.+?}/, '%s') + endpoint = endpoint.gsub(%r{^/}, '') + endpoint = format(endpoint, id) + endpoint += create_query_string(query_params) + action = { method: 'get', url: endpoint } + @client.call_adyen_api(@service, action, {}, headers, @version) + end + # Update an account holder def update_account_holder(request, id, headers: {}) endpoint = '/accountHolders/{id}'.gsub(/{.+?}/, '%s') diff --git a/lib/adyen/services/balancePlatform/direct_debit_mandates_api.rb b/lib/adyen/services/balancePlatform/direct_debit_mandates_api.rb new file mode 100644 index 00000000..eb2b15ce --- /dev/null +++ b/lib/adyen/services/balancePlatform/direct_debit_mandates_api.rb @@ -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 DirectDebitMandatesApi < Service + attr_accessor :service, :version + + def initialize(client, version = DEFAULT_VERSION) + super(client, version, 'BalancePlatform') + end + + # Cancel a mandate + def cancel_mandate(mandate_id, headers: {}) + endpoint = '/mandates/{mandateId}/cancel'.gsub(/{.+?}/, '%s') + endpoint = endpoint.gsub(%r{^/}, '') + endpoint = format(endpoint, mandate_id) + + action = { method: 'post', url: endpoint } + @client.call_adyen_api(@service, action, {}, headers, @version) + end + + # Get a list of mandates + def get_list_of_mandates(headers: {}, query_params: {}) + endpoint = '/mandates'.gsub(/{.+?}/, '%s') + endpoint = endpoint.gsub(%r{^/}, '') + endpoint = format(endpoint) + endpoint += create_query_string(query_params) + action = { method: 'get', url: endpoint } + @client.call_adyen_api(@service, action, {}, headers, @version) + end + + # Get a specific mandate + def get_mandate_by_id(mandate_id, headers: {}) + endpoint = '/mandates/{mandateId}'.gsub(/{.+?}/, '%s') + endpoint = endpoint.gsub(%r{^/}, '') + endpoint = format(endpoint, mandate_id) + + action = { method: 'get', url: endpoint } + @client.call_adyen_api(@service, action, {}, headers, @version) + end + + # Amend a mandate + def update_mandate(request, mandate_id, headers: {}) + endpoint = '/mandates/{mandateId}'.gsub(/{.+?}/, '%s') + endpoint = endpoint.gsub(%r{^/}, '') + endpoint = format(endpoint, mandate_id) + + action = { method: 'patch', url: endpoint } + @client.call_adyen_api(@service, action, request, headers, @version) + end + + end +end diff --git a/sdk-generation-log/balanceplatform.json b/sdk-generation-log/balanceplatform.json new file mode 100644 index 00000000..5a0442df --- /dev/null +++ b/sdk-generation-log/balanceplatform.json @@ -0,0 +1,8 @@ +{ + "service": "balanceplatform", + "project": "ruby", + "generatedAt": "2026-04-13T10:15:50Z", + "openapiCommitSha": "ab42e887fd36d43b82acbd9ff6ea3f5957c43a2e", + "automationCommitSha": "855b6c5526cb5fae757e921687c38df66d31dc4b", + "libraryCommitSha": "ec1c835aada9f1a2fd35cd40bd3ef58f72156799" +}