Skip to content

Commit 9c04281

Browse files
false[adyen-sdk-automation] automated change
1 parent 6519b54 commit 9c04281

File tree

6 files changed

+108
-0
lines changed

6 files changed

+108
-0
lines changed

Adyen/services/balanceControl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def __init__(self, client=None):
1616
def balance_transfer(self, request, idempotency_key=None, **kwargs):
1717
"""
1818
Start a balance transfer
19+
20+
Deprecated since Adyen Balance Control API v1
1921
"""
2022
endpoint = self.baseUrl + f"/balanceTransfer"
2123
method = "POST"

Adyen/services/balancePlatform/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from ..base import AdyenServiceBase
22
from .account_holders_api import AccountHoldersApi
33
from .balance_accounts_api import BalanceAccountsApi
4+
from .balances_api import BalancesApi
45
from .bank_account_validation_api import BankAccountValidationApi
56
from .card_orders_api import CardOrdersApi
67
from .grant_accounts_api import GrantAccountsApi
@@ -26,6 +27,7 @@ def __init__(self, client=None):
2627
super(AdyenBalancePlatformApi, self).__init__(client=client)
2728
self.account_holders_api = AccountHoldersApi(client=client)
2829
self.balance_accounts_api = BalanceAccountsApi(client=client)
30+
self.balances_api = BalancesApi(client=client)
2931
self.bank_account_validation_api = BankAccountValidationApi(client=client)
3032
self.card_orders_api = CardOrdersApi(client=client)
3133
self.grant_accounts_api = GrantAccountsApi(client=client)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class BalancesApi(AdyenServiceBase):
5+
"""NOTE: This class is auto generated by OpenAPI Generator
6+
Ref: https://openapi-generator.tech
7+
8+
Do not edit the class manually.
9+
"""
10+
11+
def __init__(self, client=None):
12+
super(BalancesApi, self).__init__(client=client)
13+
self.service = "balancePlatform"
14+
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
15+
16+
def create_webhook_setting(self, request, balancePlatformId, webhookId, balanceWebhookSettingInfo, idempotency_key=None, **kwargs):
17+
"""
18+
Create a balance webhook setting
19+
"""
20+
endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def delete_webhook_setting(self, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs):
25+
"""
26+
Delete a balance webhook setting by id
27+
"""
28+
endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}"
29+
method = "DELETE"
30+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
31+
32+
def get_all_webhook_settings(self, balancePlatformId, webhookId, idempotency_key=None, **kwargs):
33+
"""
34+
Get all balance webhook settings
35+
"""
36+
endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings"
37+
method = "GET"
38+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
39+
40+
def get_webhook_setting(self, balancePlatformId, webhookId, settingId, idempotency_key=None, **kwargs):
41+
"""
42+
Get a balance webhook setting by id
43+
"""
44+
endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}"
45+
method = "GET"
46+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
47+
48+
def update_webhook_setting(self, request, balancePlatformId, webhookId, settingId, balanceWebhookSettingInfoUpdate, idempotency_key=None, **kwargs):
49+
"""
50+
Update a balance webhook setting by id
51+
"""
52+
endpoint = self.baseUrl + f"/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}"
53+
method = "PATCH"
54+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
55+

Adyen/services/recurring.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def __init__(self, client=None):
1616
def create_permit(self, request, idempotency_key=None, **kwargs):
1717
"""
1818
Create new permits linked to a recurring contract.
19+
20+
Deprecated since Adyen Recurring API v68
1921
"""
2022
endpoint = self.baseUrl + f"/createPermit"
2123
method = "POST"
@@ -24,6 +26,8 @@ def create_permit(self, request, idempotency_key=None, **kwargs):
2426
def disable(self, request, idempotency_key=None, **kwargs):
2527
"""
2628
Disable stored payment details
29+
30+
Deprecated since Adyen Recurring API v68
2731
"""
2832
endpoint = self.baseUrl + f"/disable"
2933
method = "POST"
@@ -32,6 +36,8 @@ def disable(self, request, idempotency_key=None, **kwargs):
3236
def disable_permit(self, request, idempotency_key=None, **kwargs):
3337
"""
3438
Disable an existing permit.
39+
40+
Deprecated since Adyen Recurring API v68
3541
"""
3642
endpoint = self.baseUrl + f"/disablePermit"
3743
method = "POST"
@@ -40,6 +46,8 @@ def disable_permit(self, request, idempotency_key=None, **kwargs):
4046
def list_recurring_details(self, request, idempotency_key=None, **kwargs):
4147
"""
4248
Get stored payment details
49+
50+
Deprecated since Adyen Recurring API v68
4351
"""
4452
endpoint = self.baseUrl + f"/listRecurringDetails"
4553
method = "POST"
@@ -48,6 +56,8 @@ def list_recurring_details(self, request, idempotency_key=None, **kwargs):
4856
def notify_shopper(self, request, idempotency_key=None, **kwargs):
4957
"""
5058
Ask issuer to notify the shopper
59+
60+
Deprecated since Adyen Recurring API v68
5161
"""
5262
endpoint = self.baseUrl + f"/notifyShopper"
5363
method = "POST"
@@ -56,6 +66,8 @@ def notify_shopper(self, request, idempotency_key=None, **kwargs):
5666
def schedule_account_updater(self, request, idempotency_key=None, **kwargs):
5767
"""
5868
Schedule running the Account Updater
69+
70+
Deprecated since Adyen Recurring API v68
5971
"""
6072
endpoint = self.baseUrl + f"/scheduleAccountUpdater"
6173
method = "POST"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from ..base import AdyenServiceBase
2+
from .session_authentication_api import SessionAuthenticationApi
3+
4+
5+
class AdyenSessionAuthenticationApi(AdyenServiceBase):
6+
"""NOTE: This class is auto generated by OpenAPI Generator
7+
Ref: https://openapi-generator.tech
8+
9+
Do not edit the class manually.
10+
"""
11+
12+
def __init__(self, client=None):
13+
super(AdyenSessionAuthenticationApi, self).__init__(client=client)
14+
self.session_authentication_api = SessionAuthenticationApi(client=client)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class SessionAuthenticationApi(AdyenServiceBase):
5+
"""NOTE: This class is auto generated by OpenAPI Generator
6+
Ref: https://openapi-generator.tech
7+
8+
Do not edit the class manually.
9+
"""
10+
11+
def __init__(self, client=None):
12+
super(SessionAuthenticationApi, self).__init__(client=client)
13+
self.service = "sessionAuthentication"
14+
self.baseUrl = "https://test.adyen.com/authe/api/v1"
15+
16+
def create_authentication_session(self, request, authenticationSessionRequest, idempotency_key=None, **kwargs):
17+
"""
18+
Create a session token
19+
"""
20+
endpoint = self.baseUrl + f"/sessions"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+

0 commit comments

Comments
 (0)