Skip to content

Code generation: update services and models #363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Adyen/services/balanceControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions Adyen/services/balancePlatform/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand Down
55 changes: 55 additions & 0 deletions Adyen/services/balancePlatform/balances_api.py
Original file line number Diff line number Diff line change
@@ -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)

12 changes: 12 additions & 0 deletions Adyen/services/recurring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
14 changes: 14 additions & 0 deletions Adyen/services/sessionAuthentication/__init__.py
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)