From b56f7984bf3fe65172337a8baae32e661b8876a5 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Mon, 17 Feb 2025 15:28:53 +0100 Subject: [PATCH] false[adyen-sdk-automation] automated change (#359) --- .../balancePlatform/grant_accounts_api.py | 3 +++ .../services/balancePlatform/grant_offers_api.py | 6 ++++++ .../balancePlatform/manage_sca_devices_api.py | 16 ++++++++++++++++ Adyen/services/transfers/capital_api.py | 9 +++++++++ 4 files changed, 34 insertions(+) diff --git a/Adyen/services/balancePlatform/grant_accounts_api.py b/Adyen/services/balancePlatform/grant_accounts_api.py index 1eecce8d..a4a56ce3 100644 --- a/Adyen/services/balancePlatform/grant_accounts_api.py +++ b/Adyen/services/balancePlatform/grant_accounts_api.py @@ -16,6 +16,9 @@ def __init__(self, client=None): def get_grant_account(self, id, idempotency_key=None, **kwargs): """ Get a grant account + + Deprecated since Configuration API v2 + Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. """ endpoint = self.baseUrl + f"/grantAccounts/{id}" method = "GET" diff --git a/Adyen/services/balancePlatform/grant_offers_api.py b/Adyen/services/balancePlatform/grant_offers_api.py index b94ecae5..3257171c 100644 --- a/Adyen/services/balancePlatform/grant_offers_api.py +++ b/Adyen/services/balancePlatform/grant_offers_api.py @@ -16,6 +16,9 @@ def __init__(self, client=None): def get_all_available_grant_offers(self, idempotency_key=None, **kwargs): """ Get all available grant offers + + 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 + f"/grantOffers" method = "GET" @@ -24,6 +27,9 @@ def get_all_available_grant_offers(self, idempotency_key=None, **kwargs): def get_grant_offer(self, grantOfferId, idempotency_key=None, **kwargs): """ Get a grant offer + + Deprecated since Configuration API v2 + Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. """ endpoint = self.baseUrl + f"/grantOffers/{grantOfferId}" method = "GET" diff --git a/Adyen/services/balancePlatform/manage_sca_devices_api.py b/Adyen/services/balancePlatform/manage_sca_devices_api.py index 54a7c197..cc55ae85 100644 --- a/Adyen/services/balancePlatform/manage_sca_devices_api.py +++ b/Adyen/services/balancePlatform/manage_sca_devices_api.py @@ -13,6 +13,14 @@ 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): + """ + 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) + def complete_registration_of_sca_device(self, request, id, idempotency_key=None, **kwargs): """ Complete the registration of an SCA device @@ -29,6 +37,14 @@ def delete_registration_of_sca_device(self, id, idempotency_key=None, **kwargs): method = "DELETE" 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): + """ + 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) + def initiate_registration_of_sca_device(self, request, idempotency_key=None, **kwargs): """ Initiate the registration of an SCA device diff --git a/Adyen/services/transfers/capital_api.py b/Adyen/services/transfers/capital_api.py index b64300ce..79645a05 100644 --- a/Adyen/services/transfers/capital_api.py +++ b/Adyen/services/transfers/capital_api.py @@ -16,6 +16,9 @@ def __init__(self, client=None): def get_capital_account(self, idempotency_key=None, **kwargs): """ Get a capital account + + Deprecated since Transfers API v4 + Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. """ endpoint = self.baseUrl + f"/grants" method = "GET" @@ -24,6 +27,9 @@ def get_capital_account(self, idempotency_key=None, **kwargs): def get_grant_reference_details(self, id, idempotency_key=None, **kwargs): """ Get grant reference details + + Deprecated since Transfers API v4 + Use the `/grants/{grantId}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. """ endpoint = self.baseUrl + f"/grants/{id}" method = "GET" @@ -32,6 +38,9 @@ def get_grant_reference_details(self, id, idempotency_key=None, **kwargs): def request_grant_payout(self, request, idempotency_key=None, **kwargs): """ Request a grant payout + + Deprecated since Transfers API v4 + Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. """ endpoint = self.baseUrl + f"/grants" method = "POST"