Skip to content

Commit 30ce8f1

Browse files
authored
Merge pull request #188 from Adyen/automation/services
Update services
2 parents 7f5797f + ad9a032 commit 30ce8f1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/adyen/services/balancePlatform/account_holders_api.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ def get_all_balance_accounts_of_account_holder(id, headers: {}, query_params: {}
2525
@client.call_adyen_api(@service, action, {}, headers, @version)
2626
end
2727

28+
def get_tax_form(id, headers: {}, query_params: {})
29+
endpoint = '/accountHolders/{id}/taxForms'.gsub(/{.+?}/, '%s')
30+
endpoint = endpoint.gsub(%r{^/}, '')
31+
endpoint = format(endpoint, id)
32+
endpoint += create_query_string(query_params)
33+
action = { method: 'get', url: endpoint }
34+
@client.call_adyen_api(@service, action, {}, headers, @version)
35+
end
36+
2837
def update_account_holder(request, id, headers: {})
2938
endpoint = '/accountHolders/{id}'.gsub(/{.+?}/, '%s')
3039
endpoint = endpoint.gsub(%r{^/}, '')

0 commit comments

Comments
 (0)