Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot authored Feb 17, 2025
1 parent 2173475 commit b56f798
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Adyen/services/balancePlatform/grant_accounts_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions Adyen/services/balancePlatform/grant_offers_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
16 changes: 16 additions & 0 deletions Adyen/services/balancePlatform/manage_sca_devices_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
9 changes: 9 additions & 0 deletions Adyen/services/transfers/capital_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit b56f798

Please sign in to comment.