diff --git a/Adyen/services/balancePlatform/__init__.py b/Adyen/services/balancePlatform/__init__.py index 444738f7..66600a29 100644 --- a/Adyen/services/balancePlatform/__init__.py +++ b/Adyen/services/balancePlatform/__init__.py @@ -13,6 +13,8 @@ from .payment_instrument_groups_api import PaymentInstrumentGroupsApi from .payment_instruments_api import PaymentInstrumentsApi from .platform_api import PlatformApi +from .sca_association_management_api import SCAAssociationManagementApi +from .sca_device_management_api import SCADeviceManagementApi from .transaction_rules_api import TransactionRulesApi from .transfer_limits_balance_account_level_api import TransferLimitsBalanceAccountLevelApi from .transfer_limits_balance_platform_level_api import TransferLimitsBalancePlatformLevelApi @@ -42,6 +44,8 @@ def __init__(self, client=None): self.payment_instrument_groups_api = PaymentInstrumentGroupsApi(client=client) self.payment_instruments_api = PaymentInstrumentsApi(client=client) self.platform_api = PlatformApi(client=client) + self.sca_association_management_api = SCAAssociationManagementApi(client=client) + self.sca_device_management_api = SCADeviceManagementApi(client=client) self.transaction_rules_api = TransactionRulesApi(client=client) self.transfer_limits_balance_account_level_api = TransferLimitsBalanceAccountLevelApi(client=client) self.transfer_limits_balance_platform_level_api = TransferLimitsBalancePlatformLevelApi(client=client) diff --git a/Adyen/services/balancePlatform/sca_association_management_api.py b/Adyen/services/balancePlatform/sca_association_management_api.py new file mode 100644 index 00000000..52c5857c --- /dev/null +++ b/Adyen/services/balancePlatform/sca_association_management_api.py @@ -0,0 +1,39 @@ +from ..base import AdyenServiceBase + + +class SCAAssociationManagementApi(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(SCAAssociationManagementApi, self).__init__(client=client) + self.service = "balancePlatform" + self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" + + def approve_association(self, request, idempotency_key=None, **kwargs): + """ + Approve a pending approval association + """ + endpoint = self.baseUrl + f"/scaAssociations" + method = "PATCH" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + + def list_associations(self, idempotency_key=None, **kwargs): + """ + Get a list of devices associated with an entity + """ + endpoint = self.baseUrl + f"/scaAssociations" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + + def remove_association(self, request, idempotency_key=None, **kwargs): + """ + Delete association to devices + """ + endpoint = self.baseUrl + f"/scaAssociations" + method = "DELETE" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/balancePlatform/sca_device_management_api.py b/Adyen/services/balancePlatform/sca_device_management_api.py new file mode 100644 index 00000000..2f287676 --- /dev/null +++ b/Adyen/services/balancePlatform/sca_device_management_api.py @@ -0,0 +1,39 @@ +from ..base import AdyenServiceBase + + +class SCADeviceManagementApi(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(SCADeviceManagementApi, self).__init__(client=client) + self.service = "balancePlatform" + self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" + + def begin_sca_device_registration(self, request, idempotency_key=None, **kwargs): + """ + Begin SCA device registration + """ + endpoint = self.baseUrl + f"/scaDevices" + method = "POST" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + + def finish_sca_device_registration(self, request, deviceId, idempotency_key=None, **kwargs): + """ + Finish registration process for a SCA device + """ + endpoint = self.baseUrl + f"/scaDevices/{deviceId}" + method = "PATCH" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + + def submit_sca_association(self, request, deviceId, idempotency_key=None, **kwargs): + """ + Create a new SCA association for a device + """ + endpoint = self.baseUrl + f"/scaDevices/{deviceId}/scaAssociations" + method = "POST" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/capital/__init__.py b/Adyen/services/capital/__init__.py new file mode 100644 index 00000000..c6ecf3e8 --- /dev/null +++ b/Adyen/services/capital/__init__.py @@ -0,0 +1,18 @@ +from ..base import AdyenServiceBase +from .grant_accounts_api import GrantAccountsApi +from .grant_offers_api import GrantOffersApi +from .grants_api import GrantsApi + + +class AdyenCapitalApi(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(AdyenCapitalApi, self).__init__(client=client) + self.grant_accounts_api = GrantAccountsApi(client=client) + self.grant_offers_api = GrantOffersApi(client=client) + self.grants_api = GrantsApi(client=client) diff --git a/Adyen/services/capital/grant_accounts_api.py b/Adyen/services/capital/grant_accounts_api.py new file mode 100644 index 00000000..21ceb4e0 --- /dev/null +++ b/Adyen/services/capital/grant_accounts_api.py @@ -0,0 +1,23 @@ +from ..base import AdyenServiceBase + + +class GrantAccountsApi(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(GrantAccountsApi, self).__init__(client=client) + self.service = "capital" + self.baseUrl = "https://balanceplatform-api-test.adyen.com/capital/v1" + + def get_grant_account_information(self, id, idempotency_key=None, **kwargs): + """ + Get the information of your grant account + """ + endpoint = self.baseUrl + f"/grantAccounts/{id}" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/capital/grant_offers_api.py b/Adyen/services/capital/grant_offers_api.py new file mode 100644 index 00000000..89bba82b --- /dev/null +++ b/Adyen/services/capital/grant_offers_api.py @@ -0,0 +1,31 @@ +from ..base import AdyenServiceBase + + +class GrantOffersApi(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(GrantOffersApi, self).__init__(client=client) + self.service = "capital" + self.baseUrl = "https://balanceplatform-api-test.adyen.com/capital/v1" + + def get_all_grant_offers(self, idempotency_key=None, **kwargs): + """ + Get all available grant offers + """ + endpoint = self.baseUrl + f"/grantOffers" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + + def get_grant_offer(self, id, idempotency_key=None, **kwargs): + """ + Get the details of a grant offer + """ + endpoint = self.baseUrl + f"/grantOffers/{id}" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/capital/grants_api.py b/Adyen/services/capital/grants_api.py new file mode 100644 index 00000000..4c78429c --- /dev/null +++ b/Adyen/services/capital/grants_api.py @@ -0,0 +1,63 @@ +from ..base import AdyenServiceBase + + +class GrantsApi(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(GrantsApi, self).__init__(client=client) + self.service = "capital" + self.baseUrl = "https://balanceplatform-api-test.adyen.com/capital/v1" + + def get_all_grant_disbursements(self, grantId, idempotency_key=None, **kwargs): + """ + Get all the disbursements of a grant + """ + endpoint = self.baseUrl + f"/grants/{grantId}/disbursements" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + + def get_all_grants(self, idempotency_key=None, **kwargs): + """ + Get all the grants of an account holder + """ + endpoint = self.baseUrl + f"/grants" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + + def get_grant(self, grantId, idempotency_key=None, **kwargs): + """ + Get the details of a grant + """ + endpoint = self.baseUrl + f"/grants/{grantId}" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + + def get_grant_disbursement(self, grantId, disbursementId, idempotency_key=None, **kwargs): + """ + Get disbursement details + """ + endpoint = self.baseUrl + f"/grants/{grantId}/disbursements/{disbursementId}" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + + def request_grant(self, request, idempotency_key=None, **kwargs): + """ + Make a request for a grant + """ + endpoint = self.baseUrl + f"/grants" + method = "POST" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + + def update_grant_disbursement(self, request, grantId, disbursementId, idempotency_key=None, **kwargs): + """ + Update the repayment configuration of a disbursement + """ + endpoint = self.baseUrl + f"/grants/{grantId}/disbursements/{disbursementId}" + method = "PATCH" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/checkout/recurring_api.py b/Adyen/services/checkout/recurring_api.py index 873c7c5c..f6a6739e 100644 --- a/Adyen/services/checkout/recurring_api.py +++ b/Adyen/services/checkout/recurring_api.py @@ -21,6 +21,14 @@ def delete_token_for_stored_payment_details(self, storedPaymentMethodId, idempot method = "DELETE" return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + def forward(self, request, idempotency_key=None, **kwargs): + """ + Forward stored payment details + """ + endpoint = self.baseUrl + f"/forward" + method = "POST" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + def get_tokens_for_stored_payment_details(self, idempotency_key=None, **kwargs): """ Get tokens for stored payment details diff --git a/Adyen/services/legalEntityManagement/legal_entities_api.py b/Adyen/services/legalEntityManagement/legal_entities_api.py index b443f18b..7394eb66 100644 --- a/Adyen/services/legalEntityManagement/legal_entities_api.py +++ b/Adyen/services/legalEntityManagement/legal_entities_api.py @@ -53,6 +53,14 @@ def get_legal_entity(self, id, idempotency_key=None, **kwargs): method = "GET" return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + def request_periodic_review(self, id, idempotency_key=None, **kwargs): + """ + Request periodic data review. + """ + endpoint = self.baseUrl + f"/legalEntities/{id}/requestPeriodicReview" + method = "POST" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + def update_legal_entity(self, request, id, idempotency_key=None, **kwargs): """ Update a legal entity diff --git a/Adyen/services/recurring/recurring_api.py b/Adyen/services/recurring/recurring_api.py index 15de377f..0f1b4e2c 100644 --- a/Adyen/services/recurring/recurring_api.py +++ b/Adyen/services/recurring/recurring_api.py @@ -11,7 +11,7 @@ class RecurringApi(AdyenServiceBase): def __init__(self, client=None): super(RecurringApi, self).__init__(client=client) self.service = "recurring" - self.baseUrl = "https://pal-test.adyen.com/pal/servlet/Recurring/v68" + self.baseUrl = "https://paltokenization-test.adyen.com/pal/servlet/Recurring/v68" def create_permit(self, request, idempotency_key=None, **kwargs): """