diff --git a/Adyen/services/balanceControl.py b/Adyen/services/balanceControl.py index 32bc3a1..d999483 100644 --- a/Adyen/services/balanceControl.py +++ b/Adyen/services/balanceControl.py @@ -16,6 +16,8 @@ def __init__(self, client=None): def balance_transfer(self, request, idempotency_key=None, **kwargs): """ Start a balance transfer + + Deprecated since Adyen Balance Control API v1 """ endpoint = self.baseUrl + f"/balanceTransfer" method = "POST" diff --git a/Adyen/services/balancePlatform/__init__.py b/Adyen/services/balancePlatform/__init__.py index 85b9b8f..40883fb 100644 --- a/Adyen/services/balancePlatform/__init__.py +++ b/Adyen/services/balancePlatform/__init__.py @@ -1,6 +1,7 @@ from ..base import AdyenServiceBase from .account_holders_api import AccountHoldersApi from .balance_accounts_api import BalanceAccountsApi +from .balances_api import BalancesApi from .bank_account_validation_api import BankAccountValidationApi from .card_orders_api import CardOrdersApi from .grant_accounts_api import GrantAccountsApi @@ -26,6 +27,7 @@ def __init__(self, client=None): super(AdyenBalancePlatformApi, self).__init__(client=client) self.account_holders_api = AccountHoldersApi(client=client) self.balance_accounts_api = BalanceAccountsApi(client=client) + self.balances_api = BalancesApi(client=client) self.bank_account_validation_api = BankAccountValidationApi(client=client) self.card_orders_api = CardOrdersApi(client=client) self.grant_accounts_api = GrantAccountsApi(client=client) diff --git a/Adyen/services/balancePlatform/balances_api.py b/Adyen/services/balancePlatform/balances_api.py new file mode 100644 index 0000000..37fff7c --- /dev/null +++ b/Adyen/services/balancePlatform/balances_api.py @@ -0,0 +1,55 @@ +from ..base import AdyenServiceBase + + +class BalancesApi(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(BalancesApi, self).__init__(client=client) + self.service = "balancePlatform" + self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" + + def create_webhook_setting(self, request, balancePlatformId, webhookId, balanceWebhookSettingInfo, idempotency_key=None, **kwargs): + """ + Create a balance webhook setting + """ + 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) + + 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}" + method = "DELETE" + 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): + """ + Get all balance webhook 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) + + 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}" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + + def update_webhook_setting(self, request, balancePlatformId, webhookId, settingId, balanceWebhookSettingInfoUpdate, idempotency_key=None, **kwargs): + """ + Update a balance webhook setting by id + """ + 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) + diff --git a/Adyen/services/recurring.py b/Adyen/services/recurring.py index ff06b2e..cdbcb1b 100644 --- a/Adyen/services/recurring.py +++ b/Adyen/services/recurring.py @@ -16,6 +16,8 @@ def __init__(self, client=None): def create_permit(self, request, idempotency_key=None, **kwargs): """ Create new permits linked to a recurring contract. + + Deprecated since Adyen Recurring API v68 """ endpoint = self.baseUrl + f"/createPermit" method = "POST" @@ -24,6 +26,8 @@ def create_permit(self, request, idempotency_key=None, **kwargs): def disable(self, request, idempotency_key=None, **kwargs): """ Disable stored payment details + + Deprecated since Adyen Recurring API v68 """ endpoint = self.baseUrl + f"/disable" method = "POST" @@ -32,6 +36,8 @@ def disable(self, request, idempotency_key=None, **kwargs): def disable_permit(self, request, idempotency_key=None, **kwargs): """ Disable an existing permit. + + Deprecated since Adyen Recurring API v68 """ endpoint = self.baseUrl + f"/disablePermit" method = "POST" @@ -40,6 +46,8 @@ def disable_permit(self, request, idempotency_key=None, **kwargs): def list_recurring_details(self, request, idempotency_key=None, **kwargs): """ Get stored payment details + + Deprecated since Adyen Recurring API v68 """ endpoint = self.baseUrl + f"/listRecurringDetails" method = "POST" @@ -48,6 +56,8 @@ def list_recurring_details(self, request, idempotency_key=None, **kwargs): def notify_shopper(self, request, idempotency_key=None, **kwargs): """ Ask issuer to notify the shopper + + Deprecated since Adyen Recurring API v68 """ endpoint = self.baseUrl + f"/notifyShopper" method = "POST" @@ -56,6 +66,8 @@ def notify_shopper(self, request, idempotency_key=None, **kwargs): def schedule_account_updater(self, request, idempotency_key=None, **kwargs): """ Schedule running the Account Updater + + Deprecated since Adyen Recurring API v68 """ endpoint = self.baseUrl + f"/scheduleAccountUpdater" method = "POST" diff --git a/Adyen/services/sessionAuthentication/__init__.py b/Adyen/services/sessionAuthentication/__init__.py new file mode 100644 index 0000000..5158670 --- /dev/null +++ b/Adyen/services/sessionAuthentication/__init__.py @@ -0,0 +1,14 @@ +from ..base import AdyenServiceBase +from .session_authentication_api import SessionAuthenticationApi + + +class AdyenSessionAuthenticationApi(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(AdyenSessionAuthenticationApi, self).__init__(client=client) + self.session_authentication_api = SessionAuthenticationApi(client=client) diff --git a/Adyen/services/sessionAuthentication/session_authentication_api.py b/Adyen/services/sessionAuthentication/session_authentication_api.py new file mode 100644 index 0000000..83bb485 --- /dev/null +++ b/Adyen/services/sessionAuthentication/session_authentication_api.py @@ -0,0 +1,23 @@ +from ..base import AdyenServiceBase + + +class SessionAuthenticationApi(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(SessionAuthenticationApi, self).__init__(client=client) + self.service = "sessionAuthentication" + self.baseUrl = "https://test.adyen.com/authe/api/v1" + + def create_authentication_session(self, request, authenticationSessionRequest, idempotency_key=None, **kwargs): + """ + Create a session token + """ + endpoint = self.baseUrl + f"/sessions" + method = "POST" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) +