From 2eafbc8267c5234a95331f5585deb7f1319d391d Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Thu, 19 Mar 2026 08:00:24 +0000 Subject: [PATCH] [balanceplatform] Automated update from Adyen/adyen-openapi@6f2bb26 --- Adyen/services/balancePlatform/__init__.py | 12 ++-- .../balancePlatform/account_holders_api.py | 35 +++++----- .../authorized_card_users_api.py | 25 ++------ .../balancePlatform/balance_accounts_api.py | 43 ++++--------- .../services/balancePlatform/balances_api.py | 64 +++++-------------- .../bank_account_validation_api.py | 7 +- .../balancePlatform/card_orders_api.py | 11 ++-- .../direct_debit_mandates_api.py | 47 ++++++++++++++ .../balancePlatform/grant_accounts_api.py | 5 +- .../balancePlatform/grant_offers_api.py | 11 ++-- .../balancePlatform/manage_card_pin_api.py | 19 ++---- .../balancePlatform/manage_sca_devices_api.py | 37 ++++------- .../balancePlatform/network_tokens_api.py | 9 +-- .../payment_instrument_groups_api.py | 19 ++---- .../payment_instruments_api.py | 41 ++++-------- .../services/balancePlatform/platform_api.py | 13 ++-- .../sca_association_management_api.py | 19 ++---- .../sca_device_management_api.py | 15 ++--- .../balancePlatform/transaction_rules_api.py | 19 ++---- ...ansfer_limits_balance_account_level_api.py | 25 ++------ ...nsfer_limits_balance_platform_level_api.py | 17 ++--- .../balancePlatform/transfer_routes_api.py | 7 +- 22 files changed, 192 insertions(+), 308 deletions(-) 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..0628dd73 100644 --- a/Adyen/services/balancePlatform/__init__.py +++ b/Adyen/services/balancePlatform/__init__.py @@ -5,10 +5,11 @@ 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 from .manage_sca_devices_api import ManageSCADevicesApi +from .manage_card_pin_api import ManageCardPINApi from .network_tokens_api import NetworkTokensApi from .payment_instrument_groups_api import PaymentInstrumentGroupsApi from .payment_instruments_api import PaymentInstrumentsApi @@ -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) @@ -47,10 +49,6 @@ def __init__(self, client=None): self.sca_association_management_api = SCAAssociationManagementApi(client=client) self.sca_device_management_api = SCADeviceManagementApi(client=client) self.transaction_rules_api = TransactionRulesApi(client=client) - self.transfer_limits_balance_account_level_api = TransferLimitsBalanceAccountLevelApi( - client=client - ) - self.transfer_limits_balance_platform_level_api = TransferLimitsBalancePlatformLevelApi( - client=client - ) + self.transfer_limits_balance_account_level_api = TransferLimitsBalanceAccountLevelApi(client=client) + self.transfer_limits_balance_platform_level_api = TransferLimitsBalancePlatformLevelApi(client=client) self.transfer_routes_api = TransferRoutesApi(client=client) diff --git a/Adyen/services/balancePlatform/account_holders_api.py b/Adyen/services/balancePlatform/account_holders_api.py index 9618d221..f9922728 100644 --- a/Adyen/services/balancePlatform/account_holders_api.py +++ b/Adyen/services/balancePlatform/account_holders_api.py @@ -17,11 +17,9 @@ def create_account_holder(self, request, idempotency_key=None, **kwargs): """ Create an account holder """ - endpoint = self.baseUrl + "/accountHolders" + endpoint = self.baseUrl + f"/accountHolders" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def get_account_holder(self, id, idempotency_key=None, **kwargs): """ @@ -29,9 +27,7 @@ def get_account_holder(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/accountHolders/{id}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_all_balance_accounts_of_account_holder(self, id, idempotency_key=None, **kwargs): """ @@ -39,9 +35,7 @@ def get_all_balance_accounts_of_account_holder(self, id, idempotency_key=None, * """ endpoint = self.baseUrl + f"/accountHolders/{id}/balanceAccounts" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_all_transaction_rules_for_account_holder(self, id, idempotency_key=None, **kwargs): """ @@ -49,9 +43,7 @@ def get_all_transaction_rules_for_account_holder(self, id, idempotency_key=None, """ endpoint = self.baseUrl + f"/accountHolders/{id}/transactionRules" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_tax_form(self, id, idempotency_key=None, **kwargs): """ @@ -59,9 +51,15 @@ def get_tax_form(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/accountHolders/{id}/taxForms" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + 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): + """ + 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): """ @@ -69,6 +67,5 @@ def update_account_holder(self, request, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/accountHolders/{id}" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/authorized_card_users_api.py b/Adyen/services/balancePlatform/authorized_card_users_api.py index b7fcd384..6fdd3775 100644 --- a/Adyen/services/balancePlatform/authorized_card_users_api.py +++ b/Adyen/services/balancePlatform/authorized_card_users_api.py @@ -13,17 +13,13 @@ def __init__(self, client=None): self.service = "balancePlatform" self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" - def create_authorised_card_users( - self, request, paymentInstrumentId, idempotency_key=None, **kwargs - ): + def create_authorised_card_users(self, request, paymentInstrumentId, idempotency_key=None, **kwargs): """ Create authorized users for a card. """ endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def delete_authorised_card_users(self, paymentInstrumentId, idempotency_key=None, **kwargs): """ @@ -31,9 +27,7 @@ def delete_authorised_card_users(self, paymentInstrumentId, idempotency_key=None """ endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers" method = "DELETE" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_all_authorised_card_users(self, paymentInstrumentId, idempotency_key=None, **kwargs): """ @@ -41,18 +35,13 @@ def get_all_authorised_card_users(self, paymentInstrumentId, idempotency_key=Non """ endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) - def update_authorised_card_users( - self, request, paymentInstrumentId, idempotency_key=None, **kwargs - ): + def update_authorised_card_users(self, request, paymentInstrumentId, idempotency_key=None, **kwargs): """ Update the authorized users for a card. """ endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/balance_accounts_api.py b/Adyen/services/balancePlatform/balance_accounts_api.py index 7dc10a56..bd2df05b 100644 --- a/Adyen/services/balancePlatform/balance_accounts_api.py +++ b/Adyen/services/balancePlatform/balance_accounts_api.py @@ -17,11 +17,9 @@ def create_balance_account(self, request, idempotency_key=None, **kwargs): """ Create a balance account """ - endpoint = self.baseUrl + "/balanceAccounts" + endpoint = self.baseUrl + f"/balanceAccounts" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def create_sweep(self, request, balanceAccountId, idempotency_key=None, **kwargs): """ @@ -29,9 +27,7 @@ def create_sweep(self, request, balanceAccountId, idempotency_key=None, **kwargs """ endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def delete_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs): """ @@ -39,9 +35,7 @@ def delete_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs """ endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}" method = "DELETE" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_all_sweeps_for_balance_account(self, balanceAccountId, idempotency_key=None, **kwargs): """ @@ -49,9 +43,7 @@ def get_all_sweeps_for_balance_account(self, balanceAccountId, idempotency_key=N """ endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_all_transaction_rules_for_balance_account(self, id, idempotency_key=None, **kwargs): """ @@ -59,9 +51,7 @@ def get_all_transaction_rules_for_balance_account(self, id, idempotency_key=None """ endpoint = self.baseUrl + f"/balanceAccounts/{id}/transactionRules" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_balance_account(self, id, idempotency_key=None, **kwargs): """ @@ -69,9 +59,7 @@ def get_balance_account(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/balanceAccounts/{id}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_payment_instruments_linked_to_balance_account(self, id, idempotency_key=None, **kwargs): """ @@ -79,9 +67,7 @@ def get_payment_instruments_linked_to_balance_account(self, id, idempotency_key= """ endpoint = self.baseUrl + f"/balanceAccounts/{id}/paymentInstruments" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs): """ @@ -89,9 +75,7 @@ def get_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def update_balance_account(self, request, id, idempotency_key=None, **kwargs): """ @@ -99,9 +83,7 @@ def update_balance_account(self, request, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/balanceAccounts/{id}" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def update_sweep(self, request, balanceAccountId, sweepId, idempotency_key=None, **kwargs): """ @@ -109,6 +91,5 @@ def update_sweep(self, request, balanceAccountId, sweepId, idempotency_key=None, """ endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/balances_api.py b/Adyen/services/balancePlatform/balances_api.py index 1b9a8d9d..a723375e 100644 --- a/Adyen/services/balancePlatform/balances_api.py +++ b/Adyen/services/balancePlatform/balances_api.py @@ -13,75 +13,43 @@ def __init__(self, client=None): self.service = "balancePlatform" self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" - def create_webhook_setting( - self, request, balancePlatformId, webhookId, idempotency_key=None, **kwargs - ): + def create_webhook_setting(self, request, balancePlatformId, webhookId, idempotency_key=None, **kwargs): """ Create a balance webhook setting """ - endpoint = ( - self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings" - ) + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) - def delete_webhook_setting( - self, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs - ): + def delete_webhook_setting(self, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs): """ Delete a balance webhook setting by id """ - endpoint = ( - self.baseUrl - + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" - ) + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" method = "DELETE" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) - def get_all_webhook_settings( - self, balancePlatformId, webhookId, idempotency_key=None, **kwargs - ): + def get_all_webhook_settings(self, balancePlatformId, webhookId, idempotency_key=None, **kwargs): """ Get all balance webhook settings """ - endpoint = ( - self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings" - ) + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) - def get_webhook_setting( - self, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs - ): + def get_webhook_setting(self, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs): """ Get a balance webhook setting by id """ - endpoint = ( - self.baseUrl - + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" - ) + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) - def update_webhook_setting( - self, request, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs - ): + def update_webhook_setting(self, request, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs): """ Update a balance webhook setting by id """ - endpoint = ( - self.baseUrl - + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" - ) + endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/bank_account_validation_api.py b/Adyen/services/balancePlatform/bank_account_validation_api.py index 24f835b9..6234e57e 100644 --- a/Adyen/services/balancePlatform/bank_account_validation_api.py +++ b/Adyen/services/balancePlatform/bank_account_validation_api.py @@ -17,8 +17,7 @@ def validate_bank_account_identification(self, request, idempotency_key=None, ** """ Validate a bank account """ - endpoint = self.baseUrl + "/validateBankAccountIdentification" + endpoint = self.baseUrl + f"/validateBankAccountIdentification" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/card_orders_api.py b/Adyen/services/balancePlatform/card_orders_api.py index 19029a9b..00b6870e 100644 --- a/Adyen/services/balancePlatform/card_orders_api.py +++ b/Adyen/services/balancePlatform/card_orders_api.py @@ -19,16 +19,13 @@ def get_card_order_items(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/cardorders/{id}/items" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def list_card_orders(self, idempotency_key=None, **kwargs): """ Get a list of card orders """ - endpoint = self.baseUrl + "/cardorders" + endpoint = self.baseUrl + f"/cardorders" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + 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..98e8f44b --- /dev/null +++ b/Adyen/services/balancePlatform/direct_debit_mandates_api.py @@ -0,0 +1,47 @@ +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 + f"/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) + diff --git a/Adyen/services/balancePlatform/grant_accounts_api.py b/Adyen/services/balancePlatform/grant_accounts_api.py index 986356f3..24478fa7 100644 --- a/Adyen/services/balancePlatform/grant_accounts_api.py +++ b/Adyen/services/balancePlatform/grant_accounts_api.py @@ -22,6 +22,5 @@ def get_grant_account(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/grantAccounts/{id}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/grant_offers_api.py b/Adyen/services/balancePlatform/grant_offers_api.py index 9c933273..9db264b6 100644 --- a/Adyen/services/balancePlatform/grant_offers_api.py +++ b/Adyen/services/balancePlatform/grant_offers_api.py @@ -20,11 +20,9 @@ def get_all_available_grant_offers(self, idempotency_key=None, **kwargs): Deprecated since Configuration API v2 Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead. """ - endpoint = self.baseUrl + "/grantOffers" + endpoint = self.baseUrl + f"/grantOffers" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_grant_offer(self, grantOfferId, idempotency_key=None, **kwargs): """ @@ -35,6 +33,5 @@ def get_grant_offer(self, grantOfferId, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/grantOffers/{grantOfferId}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/manage_card_pin_api.py b/Adyen/services/balancePlatform/manage_card_pin_api.py index 5cf5c59a..6ddee600 100644 --- a/Adyen/services/balancePlatform/manage_card_pin_api.py +++ b/Adyen/services/balancePlatform/manage_card_pin_api.py @@ -17,28 +17,23 @@ def change_card_pin(self, request, idempotency_key=None, **kwargs): """ Change a card PIN """ - endpoint = self.baseUrl + "/pins/change" + endpoint = self.baseUrl + f"/pins/change" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def public_key(self, idempotency_key=None, **kwargs): """ Get an RSA public key """ - endpoint = self.baseUrl + "/publicKey" + endpoint = self.baseUrl + f"/publicKey" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def reveal_card_pin(self, request, idempotency_key=None, **kwargs): """ Reveal a card PIN """ - endpoint = self.baseUrl + "/pins/reveal" + endpoint = self.baseUrl + f"/pins/reveal" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/manage_sca_devices_api.py b/Adyen/services/balancePlatform/manage_sca_devices_api.py index efdc90dd..d5bb3849 100644 --- a/Adyen/services/balancePlatform/manage_sca_devices_api.py +++ b/Adyen/services/balancePlatform/manage_sca_devices_api.py @@ -13,17 +13,13 @@ def __init__(self, client=None): self.service = "balancePlatform" self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" - def complete_association_between_sca_device_and_resource( - self, request, deviceId, idempotency_key=None, **kwargs - ): + def complete_association_between_sca_device_and_resource(self, request, deviceId, idempotency_key=None, **kwargs): """ Complete an association between an SCA device and a resource """ endpoint = self.baseUrl + f"/registeredDevices/{deviceId}/associations" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def complete_registration_of_sca_device(self, request, id, idempotency_key=None, **kwargs): """ @@ -31,9 +27,7 @@ def complete_registration_of_sca_device(self, request, id, idempotency_key=None, """ endpoint = self.baseUrl + f"/registeredDevices/{id}" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def delete_registration_of_sca_device(self, id, idempotency_key=None, **kwargs): """ @@ -41,38 +35,29 @@ def delete_registration_of_sca_device(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/registeredDevices/{id}" method = "DELETE" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) - def initiate_association_between_sca_device_and_resource( - self, request, deviceId, idempotency_key=None, **kwargs - ): + def initiate_association_between_sca_device_and_resource(self, request, deviceId, idempotency_key=None, **kwargs): """ Initiate an association between an SCA device and a resource """ endpoint = self.baseUrl + f"/registeredDevices/{deviceId}/associations" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def initiate_registration_of_sca_device(self, request, idempotency_key=None, **kwargs): """ Initiate the registration of an SCA device """ - endpoint = self.baseUrl + "/registeredDevices" + endpoint = self.baseUrl + f"/registeredDevices" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def list_registered_sca_devices(self, idempotency_key=None, **kwargs): """ Get a list of registered SCA devices """ - endpoint = self.baseUrl + "/registeredDevices" + endpoint = self.baseUrl + f"/registeredDevices" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/network_tokens_api.py b/Adyen/services/balancePlatform/network_tokens_api.py index cfb4dc6c..fac5413d 100644 --- a/Adyen/services/balancePlatform/network_tokens_api.py +++ b/Adyen/services/balancePlatform/network_tokens_api.py @@ -19,9 +19,7 @@ def get_network_token(self, networkTokenId, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/networkTokens/{networkTokenId}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def update_network_token(self, request, networkTokenId, idempotency_key=None, **kwargs): """ @@ -29,6 +27,5 @@ def update_network_token(self, request, networkTokenId, idempotency_key=None, ** """ endpoint = self.baseUrl + f"/networkTokens/{networkTokenId}" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/payment_instrument_groups_api.py b/Adyen/services/balancePlatform/payment_instrument_groups_api.py index 4f8a912d..5263e917 100644 --- a/Adyen/services/balancePlatform/payment_instrument_groups_api.py +++ b/Adyen/services/balancePlatform/payment_instrument_groups_api.py @@ -17,23 +17,17 @@ def create_payment_instrument_group(self, request, idempotency_key=None, **kwarg """ Create a payment instrument group """ - endpoint = self.baseUrl + "/paymentInstrumentGroups" + endpoint = self.baseUrl + f"/paymentInstrumentGroups" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) - def get_all_transaction_rules_for_payment_instrument_group( - self, id, idempotency_key=None, **kwargs - ): + def get_all_transaction_rules_for_payment_instrument_group(self, id, idempotency_key=None, **kwargs): """ Get all transaction rules for a payment instrument group """ endpoint = self.baseUrl + f"/paymentInstrumentGroups/{id}/transactionRules" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_payment_instrument_group(self, id, idempotency_key=None, **kwargs): """ @@ -41,6 +35,5 @@ def get_payment_instrument_group(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/paymentInstrumentGroups/{id}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/payment_instruments_api.py b/Adyen/services/balancePlatform/payment_instruments_api.py index 8a04e24e..4ac18b81 100644 --- a/Adyen/services/balancePlatform/payment_instruments_api.py +++ b/Adyen/services/balancePlatform/payment_instruments_api.py @@ -19,19 +19,15 @@ def create_network_token_provisioning_data(self, request, id, idempotency_key=No """ endpoint = self.baseUrl + f"/paymentInstruments/{id}/networkTokenActivationData" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def create_payment_instrument(self, request, idempotency_key=None, **kwargs): """ Create a payment instrument """ - endpoint = self.baseUrl + "/paymentInstruments" + endpoint = self.baseUrl + f"/paymentInstruments" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def get_all_transaction_rules_for_payment_instrument(self, id, idempotency_key=None, **kwargs): """ @@ -39,9 +35,7 @@ def get_all_transaction_rules_for_payment_instrument(self, id, idempotency_key=N """ endpoint = self.baseUrl + f"/paymentInstruments/{id}/transactionRules" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_network_token_activation_data(self, id, idempotency_key=None, **kwargs): """ @@ -49,9 +43,7 @@ def get_network_token_activation_data(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/paymentInstruments/{id}/networkTokenActivationData" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_pan_of_payment_instrument(self, id, idempotency_key=None, **kwargs): """ @@ -59,9 +51,7 @@ def get_pan_of_payment_instrument(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/paymentInstruments/{id}/reveal" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_payment_instrument(self, id, idempotency_key=None, **kwargs): """ @@ -69,9 +59,7 @@ def get_payment_instrument(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/paymentInstruments/{id}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def list_network_tokens(self, id, idempotency_key=None, **kwargs): """ @@ -79,19 +67,15 @@ def list_network_tokens(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/paymentInstruments/{id}/networkTokens" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def reveal_data_of_payment_instrument(self, request, idempotency_key=None, **kwargs): """ Reveal the data of a payment instrument """ - endpoint = self.baseUrl + "/paymentInstruments/reveal" + endpoint = self.baseUrl + f"/paymentInstruments/reveal" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def update_payment_instrument(self, request, id, idempotency_key=None, **kwargs): """ @@ -99,6 +83,5 @@ def update_payment_instrument(self, request, id, idempotency_key=None, **kwargs) """ endpoint = self.baseUrl + f"/paymentInstruments/{id}" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/platform_api.py b/Adyen/services/balancePlatform/platform_api.py index 2866e8df..b4e3a00f 100644 --- a/Adyen/services/balancePlatform/platform_api.py +++ b/Adyen/services/balancePlatform/platform_api.py @@ -19,9 +19,7 @@ def get_all_account_holders_under_balance_platform(self, id, idempotency_key=Non """ endpoint = self.baseUrl + f"/balancePlatforms/{id}/accountHolders" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_all_transaction_rules_for_balance_platform(self, id, idempotency_key=None, **kwargs): """ @@ -29,9 +27,7 @@ def get_all_transaction_rules_for_balance_platform(self, id, idempotency_key=Non """ endpoint = self.baseUrl + f"/balancePlatforms/{id}/transactionRules" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_balance_platform(self, id, idempotency_key=None, **kwargs): """ @@ -39,6 +35,5 @@ def get_balance_platform(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/balancePlatforms/{id}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/sca_association_management_api.py b/Adyen/services/balancePlatform/sca_association_management_api.py index 43fba870..7d7492e3 100644 --- a/Adyen/services/balancePlatform/sca_association_management_api.py +++ b/Adyen/services/balancePlatform/sca_association_management_api.py @@ -17,28 +17,23 @@ def approve_association(self, request, idempotency_key=None, **kwargs): """ Approve a pending approval association """ - endpoint = self.baseUrl + "/scaAssociations" + endpoint = self.baseUrl + f"/scaAssociations" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def list_associations(self, idempotency_key=None, **kwargs): """ Get a list of devices associated with an entity """ - endpoint = self.baseUrl + "/scaAssociations" + endpoint = self.baseUrl + f"/scaAssociations" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def remove_association(self, request, idempotency_key=None, **kwargs): """ Delete association to devices """ - endpoint = self.baseUrl + "/scaAssociations" + endpoint = self.baseUrl + f"/scaAssociations" method = "DELETE" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/sca_device_management_api.py b/Adyen/services/balancePlatform/sca_device_management_api.py index c43bd777..bb4b7922 100644 --- a/Adyen/services/balancePlatform/sca_device_management_api.py +++ b/Adyen/services/balancePlatform/sca_device_management_api.py @@ -17,11 +17,9 @@ def begin_sca_device_registration(self, request, idempotency_key=None, **kwargs) """ Begin SCA device registration """ - endpoint = self.baseUrl + "/scaDevices" + endpoint = self.baseUrl + f"/scaDevices" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def finish_sca_device_registration(self, request, deviceId, idempotency_key=None, **kwargs): """ @@ -29,9 +27,7 @@ def finish_sca_device_registration(self, request, deviceId, idempotency_key=None """ endpoint = self.baseUrl + f"/scaDevices/{deviceId}" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def submit_sca_association(self, request, deviceId, idempotency_key=None, **kwargs): """ @@ -39,6 +35,5 @@ def submit_sca_association(self, request, deviceId, idempotency_key=None, **kwar """ endpoint = self.baseUrl + f"/scaDevices/{deviceId}/scaAssociations" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/transaction_rules_api.py b/Adyen/services/balancePlatform/transaction_rules_api.py index f288330a..23ee3291 100644 --- a/Adyen/services/balancePlatform/transaction_rules_api.py +++ b/Adyen/services/balancePlatform/transaction_rules_api.py @@ -17,11 +17,9 @@ def create_transaction_rule(self, request, idempotency_key=None, **kwargs): """ Create a transaction rule """ - endpoint = self.baseUrl + "/transactionRules" + endpoint = self.baseUrl + f"/transactionRules" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def delete_transaction_rule(self, transactionRuleId, idempotency_key=None, **kwargs): """ @@ -29,9 +27,7 @@ def delete_transaction_rule(self, transactionRuleId, idempotency_key=None, **kwa """ endpoint = self.baseUrl + f"/transactionRules/{transactionRuleId}" method = "DELETE" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_transaction_rule(self, transactionRuleId, idempotency_key=None, **kwargs): """ @@ -39,9 +35,7 @@ def get_transaction_rule(self, transactionRuleId, idempotency_key=None, **kwargs """ endpoint = self.baseUrl + f"/transactionRules/{transactionRuleId}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def update_transaction_rule(self, request, transactionRuleId, idempotency_key=None, **kwargs): """ @@ -49,6 +43,5 @@ def update_transaction_rule(self, request, transactionRuleId, idempotency_key=No """ endpoint = self.baseUrl + f"/transactionRules/{transactionRuleId}" method = "PATCH" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/transfer_limits_balance_account_level_api.py b/Adyen/services/balancePlatform/transfer_limits_balance_account_level_api.py index b5776281..b0aa817e 100644 --- a/Adyen/services/balancePlatform/transfer_limits_balance_account_level_api.py +++ b/Adyen/services/balancePlatform/transfer_limits_balance_account_level_api.py @@ -19,9 +19,7 @@ def approve_pending_transfer_limits(self, request, id, idempotency_key=None, **k """ endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/approve" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def create_transfer_limit(self, request, id, idempotency_key=None, **kwargs): """ @@ -29,9 +27,7 @@ def create_transfer_limit(self, request, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def delete_pending_transfer_limit(self, id, transferLimitId, idempotency_key=None, **kwargs): """ @@ -39,9 +35,7 @@ def delete_pending_transfer_limit(self, id, transferLimitId, idempotency_key=Non """ endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/{transferLimitId}" method = "DELETE" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_current_transfer_limits(self, id, idempotency_key=None, **kwargs): """ @@ -49,9 +43,7 @@ def get_current_transfer_limits(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/current" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_specific_transfer_limit(self, id, transferLimitId, idempotency_key=None, **kwargs): """ @@ -59,9 +51,7 @@ def get_specific_transfer_limit(self, id, transferLimitId, idempotency_key=None, """ endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/{transferLimitId}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_transfer_limits(self, id, idempotency_key=None, **kwargs): """ @@ -69,6 +59,5 @@ def get_transfer_limits(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/transfer_limits_balance_platform_level_api.py b/Adyen/services/balancePlatform/transfer_limits_balance_platform_level_api.py index 6295631a..06920851 100644 --- a/Adyen/services/balancePlatform/transfer_limits_balance_platform_level_api.py +++ b/Adyen/services/balancePlatform/transfer_limits_balance_platform_level_api.py @@ -19,9 +19,7 @@ def create_transfer_limit(self, request, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) def delete_pending_transfer_limit(self, id, transferLimitId, idempotency_key=None, **kwargs): """ @@ -29,9 +27,7 @@ def delete_pending_transfer_limit(self, id, transferLimitId, idempotency_key=Non """ endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits/{transferLimitId}" method = "DELETE" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_specific_transfer_limit(self, id, transferLimitId, idempotency_key=None, **kwargs): """ @@ -39,9 +35,7 @@ def get_specific_transfer_limit(self, id, transferLimitId, idempotency_key=None, """ endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits/{transferLimitId}" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) def get_transfer_limits(self, id, idempotency_key=None, **kwargs): """ @@ -49,6 +43,5 @@ def get_transfer_limits(self, id, idempotency_key=None, **kwargs): """ endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits" method = "GET" - return self.client.call_adyen_api( - None, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/transfer_routes_api.py b/Adyen/services/balancePlatform/transfer_routes_api.py index 4c3b5aec..cad98ad0 100644 --- a/Adyen/services/balancePlatform/transfer_routes_api.py +++ b/Adyen/services/balancePlatform/transfer_routes_api.py @@ -17,8 +17,7 @@ def calculate_transfer_routes(self, request, idempotency_key=None, **kwargs): """ Calculate transfer routes """ - endpoint = self.baseUrl + "/transferRoutes/calculate" + endpoint = self.baseUrl + f"/transferRoutes/calculate" method = "POST" - return self.client.call_adyen_api( - request, self.service, method, endpoint, idempotency_key, **kwargs - ) + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) +