Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Adyen/services/balancePlatform/account_holders_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ def get_tax_form(self, id, idempotency_key=None, **kwargs):
method = "GET"
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)

def get_tax_form_summary(self, id, idempotency_key=None, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The parameter name id shadows the Python built-in id(). While this is consistent with other methods in this auto-generated file, it's a good practice to avoid shadowing built-ins to improve clarity and prevent potential issues. If possible, consider using a more descriptive name like account_holder_id, which might require a change in the OpenAPI generator configuration.

"""
Get summary of tax forms for an account holder
"""
endpoint = self.baseUrl + f"/accountHolders/{id}/taxFormSummary"
method = "GET"
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)

def update_account_holder(self, request, id, idempotency_key=None, **kwargs):
"""
Update an account holder
Expand Down