Skip to content

Commit 27bd9fb

Browse files
[balanceplatform] Automated update from Adyen/adyen-openapi@55ee5ca
1 parent 45d778e commit 27bd9fb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/adyen/services/balancePlatform/account_holders_api.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ def get_tax_form(id, headers: {}, query_params: {})
6262
@client.call_adyen_api(@service, action, {}, headers, @version)
6363
end
6464

65+
# Get summary of tax forms for an account holder
66+
def get_tax_form_summary(id, headers: {}, query_params: {})
67+
endpoint = '/accountHolders/{id}/taxFormSummary'.gsub(/{.+?}/, '%s')
68+
endpoint = endpoint.gsub(%r{^/}, '')
69+
endpoint = format(endpoint, id)
70+
endpoint += create_query_string(query_params)
71+
action = { method: 'get', url: endpoint }
72+
@client.call_adyen_api(@service, action, {}, headers, @version)
73+
end
74+
6575
# Update an account holder
6676
def update_account_holder(request, id, headers: {})
6777
endpoint = '/accountHolders/{id}'.gsub(/{.+?}/, '%s')

0 commit comments

Comments
 (0)