From 4480bd6601ae621483b5e810f6b8ed1caf8984b2 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Mon, 23 Mar 2026 13:02:13 +0000 Subject: [PATCH] [balanceplatform] Automated update from Adyen/adyen-openapi@6f2bb26 --- Adyen/services/balancePlatform/__init__.py | 2 + .../balancePlatform/account_holders_api.py | 10 ++++ .../direct_debit_mandates_api.py | 54 +++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 Adyen/services/balancePlatform/direct_debit_mandates_api.py diff --git a/Adyen/services/balancePlatform/__init__.py b/Adyen/services/balancePlatform/__init__.py index 30276fcc..3a131648 100644 --- a/Adyen/services/balancePlatform/__init__.py +++ b/Adyen/services/balancePlatform/__init__.py @@ -5,6 +5,7 @@ from .balances_api import BalancesApi from .bank_account_validation_api import BankAccountValidationApi from .card_orders_api import CardOrdersApi +from .direct_debit_mandates_api import DirectDebitMandatesApi from .grant_accounts_api import GrantAccountsApi from .grant_offers_api import GrantOffersApi from .manage_card_pin_api import ManageCardPINApi @@ -36,6 +37,7 @@ def __init__(self, client=None): self.balances_api = BalancesApi(client=client) self.bank_account_validation_api = BankAccountValidationApi(client=client) self.card_orders_api = CardOrdersApi(client=client) + self.direct_debit_mandates_api = DirectDebitMandatesApi(client=client) self.grant_accounts_api = GrantAccountsApi(client=client) self.grant_offers_api = GrantOffersApi(client=client) self.manage_sca_devices_api = ManageSCADevicesApi(client=client) diff --git a/Adyen/services/balancePlatform/account_holders_api.py b/Adyen/services/balancePlatform/account_holders_api.py index 9618d221..a599c9ed 100644 --- a/Adyen/services/balancePlatform/account_holders_api.py +++ b/Adyen/services/balancePlatform/account_holders_api.py @@ -63,6 +63,16 @@ def get_tax_form(self, id, idempotency_key=None, **kwargs): None, self.service, method, endpoint, idempotency_key, **kwargs ) + def get_tax_form_summary(self, id, idempotency_key=None, **kwargs): + """ + 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 diff --git a/Adyen/services/balancePlatform/direct_debit_mandates_api.py b/Adyen/services/balancePlatform/direct_debit_mandates_api.py new file mode 100644 index 00000000..11f3bc56 --- /dev/null +++ b/Adyen/services/balancePlatform/direct_debit_mandates_api.py @@ -0,0 +1,54 @@ +from ..base import AdyenServiceBase + + +class DirectDebitMandatesApi(AdyenServiceBase): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, client=None): + super().__init__(client=client) + self.service = "balancePlatform" + self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" + + def cancel_mandate(self, mandateId, idempotency_key=None, **kwargs): + """ + Cancel a mandate + """ + endpoint = self.baseUrl + f"/mandates/{mandateId}/cancel" + method = "POST" + return self.client.call_adyen_api( + None, self.service, method, endpoint, idempotency_key, **kwargs + ) + + def get_list_of_mandates(self, idempotency_key=None, **kwargs): + """ + Get a list of mandates + """ + endpoint = self.baseUrl + "/mandates" + method = "GET" + return self.client.call_adyen_api( + None, self.service, method, endpoint, idempotency_key, **kwargs + ) + + def get_mandate_by_id(self, mandateId, idempotency_key=None, **kwargs): + """ + Get a specific mandate + """ + endpoint = self.baseUrl + f"/mandates/{mandateId}" + method = "GET" + return self.client.call_adyen_api( + None, self.service, method, endpoint, idempotency_key, **kwargs + ) + + def update_mandate(self, request, mandateId, idempotency_key=None, **kwargs): + """ + Amend a mandate + """ + endpoint = self.baseUrl + f"/mandates/{mandateId}" + method = "PATCH" + return self.client.call_adyen_api( + request, self.service, method, endpoint, idempotency_key, **kwargs + )