diff --git a/lib/adyen/services/balancePlatform/account_holders_api.rb b/lib/adyen/services/balancePlatform/account_holders_api.rb index 46398df5..b7652992 100644 --- a/lib/adyen/services/balancePlatform/account_holders_api.rb +++ b/lib/adyen/services/balancePlatform/account_holders_api.rb @@ -25,6 +25,15 @@ def get_all_balance_accounts_of_account_holder(id, headers: {}, query_params: {} @client.call_adyen_api(@service, action, {}, headers, @version) end + def get_tax_form(id, headers: {}, query_params: {}) + endpoint = '/accountHolders/{id}/taxForms'.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 + def update_account_holder(request, id, headers: {}) endpoint = '/accountHolders/{id}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '')