Skip to content

Commit b56f798

Browse files
false[adyen-sdk-automation] automated change (#359)
1 parent 2173475 commit b56f798

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

Adyen/services/balancePlatform/grant_accounts_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def __init__(self, client=None):
1616
def get_grant_account(self, id, idempotency_key=None, **kwargs):
1717
"""
1818
Get a grant account
19+
20+
Deprecated since Configuration API v2
21+
Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead.
1922
"""
2023
endpoint = self.baseUrl + f"/grantAccounts/{id}"
2124
method = "GET"

Adyen/services/balancePlatform/grant_offers_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def __init__(self, client=None):
1616
def get_all_available_grant_offers(self, idempotency_key=None, **kwargs):
1717
"""
1818
Get all available grant offers
19+
20+
Deprecated since Configuration API v2
21+
Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead.
1922
"""
2023
endpoint = self.baseUrl + f"/grantOffers"
2124
method = "GET"
@@ -24,6 +27,9 @@ def get_all_available_grant_offers(self, idempotency_key=None, **kwargs):
2427
def get_grant_offer(self, grantOfferId, idempotency_key=None, **kwargs):
2528
"""
2629
Get a grant offer
30+
31+
Deprecated since Configuration API v2
32+
Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead.
2733
"""
2834
endpoint = self.baseUrl + f"/grantOffers/{grantOfferId}"
2935
method = "GET"

Adyen/services/balancePlatform/manage_sca_devices_api.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ def __init__(self, client=None):
1313
self.service = "balancePlatform"
1414
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
1515

16+
def complete_association_between_sca_device_and_resource(self, request, deviceId, idempotency_key=None, **kwargs):
17+
"""
18+
Complete an association between an SCA device and a resource
19+
"""
20+
endpoint = self.baseUrl + f"/registeredDevices/{deviceId}/associations"
21+
method = "PATCH"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
1624
def complete_registration_of_sca_device(self, request, id, idempotency_key=None, **kwargs):
1725
"""
1826
Complete the registration of an SCA device
@@ -29,6 +37,14 @@ def delete_registration_of_sca_device(self, id, idempotency_key=None, **kwargs):
2937
method = "DELETE"
3038
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3139

40+
def initiate_association_between_sca_device_and_resource(self, request, deviceId, idempotency_key=None, **kwargs):
41+
"""
42+
Initiate an association between an SCA device and a resource
43+
"""
44+
endpoint = self.baseUrl + f"/registeredDevices/{deviceId}/associations"
45+
method = "POST"
46+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
47+
3248
def initiate_registration_of_sca_device(self, request, idempotency_key=None, **kwargs):
3349
"""
3450
Initiate the registration of an SCA device

Adyen/services/transfers/capital_api.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def __init__(self, client=None):
1616
def get_capital_account(self, idempotency_key=None, **kwargs):
1717
"""
1818
Get a capital account
19+
20+
Deprecated since Transfers API v4
21+
Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead.
1922
"""
2023
endpoint = self.baseUrl + f"/grants"
2124
method = "GET"
@@ -24,6 +27,9 @@ def get_capital_account(self, idempotency_key=None, **kwargs):
2427
def get_grant_reference_details(self, id, idempotency_key=None, **kwargs):
2528
"""
2629
Get grant reference details
30+
31+
Deprecated since Transfers API v4
32+
Use the `/grants/{grantId}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead.
2733
"""
2834
endpoint = self.baseUrl + f"/grants/{id}"
2935
method = "GET"
@@ -32,6 +38,9 @@ def get_grant_reference_details(self, id, idempotency_key=None, **kwargs):
3238
def request_grant_payout(self, request, idempotency_key=None, **kwargs):
3339
"""
3440
Request a grant payout
41+
42+
Deprecated since Transfers API v4
43+
Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead.
3544
"""
3645
endpoint = self.baseUrl + f"/grants"
3746
method = "POST"

0 commit comments

Comments
 (0)