Skip to content
Merged
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/legalEntityManagement/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
8 changes: 8 additions & 0 deletions Adyen/services/legalEntityManagement/legal_entities_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

46 changes: 46 additions & 0 deletions Adyen/services/legalEntityManagement/pci_questionnaires_api.py
Original file line number Diff line number Diff line change
@@ -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)

8 changes: 0 additions & 8 deletions Adyen/services/legalEntityManagement/terms_of_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Adyen/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** |
Expand Down