diff --git a/Adyen/services/legalEntityManagement/__init__.py b/Adyen/services/legalEntityManagement/__init__.py index ad860c4a..9ba734c7 100644 --- a/Adyen/services/legalEntityManagement/__init__.py +++ b/Adyen/services/legalEntityManagement/__init__.py @@ -3,6 +3,7 @@ from .documents_api import DocumentsApi from .hosted_onboarding_api import HostedOnboardingApi from .legal_entities_api import LegalEntitiesApi +from .pci_questionnaires_api import PCIQuestionnairesApi from .terms_of_service_api import TermsOfServiceApi from .transfer_instruments_api import TransferInstrumentsApi @@ -20,5 +21,6 @@ def __init__(self, client=None): self.documents_api = DocumentsApi(client=client) self.hosted_onboarding_api = HostedOnboardingApi(client=client) self.legal_entities_api = LegalEntitiesApi(client=client) + self.pci_questionnaires_api = PCIQuestionnairesApi(client=client) self.terms_of_service_api = TermsOfServiceApi(client=client) self.transfer_instruments_api = TransferInstrumentsApi(client=client) diff --git a/Adyen/services/legalEntityManagement/legal_entities_api.py b/Adyen/services/legalEntityManagement/legal_entities_api.py index d60fbba6..0dfcaaaf 100644 --- a/Adyen/services/legalEntityManagement/legal_entities_api.py +++ b/Adyen/services/legalEntityManagement/legal_entities_api.py @@ -44,3 +44,11 @@ def create_legal_entity(self, request, idempotency_key=None, **kwargs): method = "POST" return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + def check_legal_entitys_verification_errors(self, id, idempotency_key=None, **kwargs): + """ + Check a legal entity's verification errors + """ + endpoint = f"/legalEntities/{id}/checkVerificationErrors" + method = "POST" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/legalEntityManagement/pci_questionnaires_api.py b/Adyen/services/legalEntityManagement/pci_questionnaires_api.py new file mode 100644 index 00000000..21627a52 --- /dev/null +++ b/Adyen/services/legalEntityManagement/pci_questionnaires_api.py @@ -0,0 +1,46 @@ +from ..base import AdyenServiceBase + + +class PCIQuestionnairesApi(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(PCIQuestionnairesApi, self).__init__(client=client) + self.service = "legalEntityManagement" + + def get_pci_questionnaire_details(self, id, idempotency_key=None, **kwargs): + """ + Get PCI questionnaire details + """ + endpoint = f"/legalEntities/{id}/pciQuestionnaires" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + + def get_pci_questionnaire(self, id, pciid, idempotency_key=None, **kwargs): + """ + Get PCI questionnaire + """ + endpoint = f"/legalEntities/{id}/pciQuestionnaires/{pciid}" + method = "GET" + return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) + + def generate_pci_questionnaire(self, request, id, idempotency_key=None, **kwargs): + """ + Generate PCI questionnaire + """ + endpoint = f"/legalEntities/{id}/pciQuestionnaires/generatePciTemplates" + method = "POST" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + + def sign_pci_questionnaire(self, request, id, idempotency_key=None, **kwargs): + """ + Sign PCI questionnaire + """ + endpoint = f"/legalEntities/{id}/pciQuestionnaires/signPciTemplates" + method = "POST" + return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) + diff --git a/Adyen/services/legalEntityManagement/terms_of_service_api.py b/Adyen/services/legalEntityManagement/terms_of_service_api.py index ad4cae96..fba08559 100644 --- a/Adyen/services/legalEntityManagement/terms_of_service_api.py +++ b/Adyen/services/legalEntityManagement/terms_of_service_api.py @@ -20,14 +20,6 @@ def get_terms_of_service_information_for_legal_entity(self, id, idempotency_key= method = "GET" return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) - def get_terms_of_service_status(self, id, idempotency_key=None, **kwargs): - """ - Get Terms of Service status - """ - endpoint = f"/legalEntities/{id}/termsOfServiceStatus" - method = "GET" - return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) - def accept_terms_of_service(self, request, id, termsofservicedocumentid, idempotency_key=None, **kwargs): """ Accept Terms of Service diff --git a/Adyen/settings.py b/Adyen/settings.py index 39104537..3ec211df 100644 --- a/Adyen/settings.py +++ b/Adyen/settings.py @@ -24,6 +24,6 @@ API_TERMINAL_VERSION = "v1" LIB_VERSION = "8.0.1" API_TRANSFERS_VERSION = "v3" -API_LEGAL_ENTITY_MANAGEMENT_VERSION = "v2" +API_LEGAL_ENTITY_MANAGEMENT_VERSION = "v3" API_STORED_VALUE_VERSION = "v46" LIB_NAME = "adyen-python-api-library" diff --git a/Makefile b/Makefile index db0ed299..7b0817f2 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ payments: spec=PaymentService-v68 recurring: spec=RecurringService-v68 payouts: spec=PayoutService-v68 management: spec=ManagementService-v1 -legalEntityManagement: spec=LegalEntityService-v2 +legalEntityManagement: spec=LegalEntityService-v3 balancePlatform: spec=BalancePlatformService-v2 platformsAccount: spec=AccountService-v6 platformsFund: spec=FundService-v6 diff --git a/README.md b/README.md index 508587d3..88fbf04c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This is the officially supported Python library for using Adyen's APIs. | [Balance Platform API](https://docs.adyen.com/api-explorer/balanceplatform/1/overview) | The Balance Platform API enables you to create a platform where you can onboard your users as account holders and create balance accounts, cards, and business accounts. | balancePlatform | **v2** | | [Checkout API](https://docs.adyen.com/api-explorer/#/CheckoutService/v69/overview)| Our latest integration for accepting online payments. | checkout | **v70** | | [Data Protection API](https://docs.adyen.com/development-resources/data-protection-api) | Endpoint for requesting data erasure. | dataProtection | **v1** | -| [Legal Entity Management API](https://docs.adyen.com/api-explorer/legalentity/latest/overview) | Endpoint to manage legal entities | legalEntityManagement | **v2** | +| [Legal Entity Management API](https://docs.adyen.com/api-explorer/legalentity/latest/overview) | Endpoint to manage legal entities | legalEntityManagement | **v3** | | [Management API](https://docs.adyen.com/api-explorer/#/ManagementService/v1/overview)| Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. | management | **v1** | | [Payments API](https://docs.adyen.com/api-explorer/#/Payment/v68/overview)| Our classic integration for online payments. | payments | **v68** | | [Payouts API](https://docs.adyen.com/api-explorer/#/Payout/v68/overview)| Endpoints for sending funds to your customers. | payouts | **v68** |