Skip to content

Commit

Permalink
Merge pull request #188 from Adyen/automation/services
Browse files Browse the repository at this point in the history
Update services
  • Loading branch information
Aleffio authored Oct 23, 2023
2 parents 7f5797f + ad9a032 commit 30ce8f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/adyen/services/balancePlatform/account_holders_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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{^/}, '')
Expand Down

0 comments on commit 30ce8f1

Please sign in to comment.