-
Notifications
You must be signed in to change notification settings - Fork 47
[PW-7664] Change versions in unit tests to be variables, add LEM endpoints [PW-7639] #198
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
09f3b6c
Update README.md
antolo-arch b9bd0b0
Update README.md
antolo-arch a13853c
change the template and generate LEM
antolo-arch 9f55156
add LEM endpoints
antolo-arch 828354c
Merge branch 'develop' into PW-7639
antolo-arch 3e49bf4
Update unit tests
antolo-arch 7ba3d8f
Update api.mustache
antolo-arch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
""" | ||
Legal Entity Management API | ||
|
||
The Legal Entity Management API enables you to manage legal entities that contain information required for verification. ## Authentication To connect to the Legal Entity Management API, you must use the basic authentication credentials of your web service user. If you don't have one, contact the [Adyen Support Team](https://www.adyen.help/hc/en-us/requests/new). Use the web service user credentials to authenticate your request, for example: ``` curl -U \"ws12345@Scope.BalancePlatform_YourBalancePlatform\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Legal Entity Management API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://kyc-test.adyen.com/lem/v2/legalEntities ``` ## Going live When going live, your Adyen contact will provide your API credential for the live environment. You can then use the username and password to send requests to `https://kyc-live.adyen.com/lem/v2`. # noqa: E501 | ||
|
||
The version of the OpenAPI document: 2 | ||
Contact: developer-experience@adyen.com | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
from ..base import AdyenServiceBase | ||
from .business_lines_api import BusinessLinesApi | ||
from .documents_api import DocumentsApi | ||
from .hosted_onboarding_api import HostedOnboardingApi | ||
from .legal_entities_api import LegalEntitiesApi | ||
from .terms_of_service_api import TermsOfServiceApi | ||
from .transfer_instruments_api import TransferInstrumentsApi | ||
|
||
|
||
class AdyenLegalEntityManagementApi(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(AdyenLegalEntityManagementApi, self).__init__(client=client) | ||
self.business_lines_api = BusinessLinesApi(client=client) | ||
self.documents_api = DocumentsApi(client=client) | ||
self.hosted_onboarding_api = HostedOnboardingApi(client=client) | ||
self.legal_entities_api = LegalEntitiesApi(client=client) | ||
self.terms_of_service_api = TermsOfServiceApi(client=client) | ||
self.transfer_instruments_api = TransferInstrumentsApi(client=client) |
55 changes: 55 additions & 0 deletions
55
Adyen/services/legalEntityManagement/business_lines_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
""" | ||
Legal Entity Management API | ||
|
||
The Legal Entity Management API enables you to manage legal entities that contain information required for verification. ## Authentication To connect to the Legal Entity Management API, you must use the basic authentication credentials of your web service user. If you don't have one, contact the [Adyen Support Team](https://www.adyen.help/hc/en-us/requests/new). Use the web service user credentials to authenticate your request, for example: ``` curl -U \"ws12345@Scope.BalancePlatform_YourBalancePlatform\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Legal Entity Management API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://kyc-test.adyen.com/lem/v2/legalEntities ``` ## Going live When going live, your Adyen contact will provide your API credential for the live environment. You can then use the username and password to send requests to `https://kyc-live.adyen.com/lem/v2`. # noqa: E501 | ||
|
||
The version of the OpenAPI document: 2 | ||
Contact: developer-experience@adyen.com | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
from ..base import AdyenServiceBase | ||
|
||
|
||
class BusinessLinesApi(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(BusinessLinesApi, self).__init__(client=client) | ||
self.service = "legalEntityManagement" | ||
|
||
def get_business_line(self, id, idempotency_key=None, **kwargs): | ||
""" | ||
Get a business line | ||
""" | ||
endpoint = f"/businessLines/{id}" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "GET" | ||
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def update_business_line(self, request, id, idempotency_key=None, **kwargs): | ||
""" | ||
Update a business line | ||
""" | ||
endpoint = f"/businessLines/{id}" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "PATCH" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def create_business_line(self, request, idempotency_key=None, **kwargs): | ||
""" | ||
Create a business line | ||
""" | ||
endpoint = f"/businessLines" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
|
||
|
||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
""" | ||
Legal Entity Management API | ||
|
||
The Legal Entity Management API enables you to manage legal entities that contain information required for verification. ## Authentication To connect to the Legal Entity Management API, you must use the basic authentication credentials of your web service user. If you don't have one, contact the [Adyen Support Team](https://www.adyen.help/hc/en-us/requests/new). Use the web service user credentials to authenticate your request, for example: ``` curl -U \"ws12345@Scope.BalancePlatform_YourBalancePlatform\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Legal Entity Management API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://kyc-test.adyen.com/lem/v2/legalEntities ``` ## Going live When going live, your Adyen contact will provide your API credential for the live environment. You can then use the username and password to send requests to `https://kyc-live.adyen.com/lem/v2`. # noqa: E501 | ||
|
||
The version of the OpenAPI document: 2 | ||
Contact: developer-experience@adyen.com | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
from ..base import AdyenServiceBase | ||
|
||
|
||
class DocumentsApi(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(DocumentsApi, self).__init__(client=client) | ||
self.service = "legalEntityManagement" | ||
|
||
def delete_document(self, id, idempotency_key=None, **kwargs): | ||
""" | ||
Delete a document | ||
""" | ||
endpoint = f"/documents/{id}" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "DELETE" | ||
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def get_document(self, id, idempotency_key=None, **kwargs): | ||
""" | ||
Get a document | ||
""" | ||
endpoint = f"/documents/{id}" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "GET" | ||
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def update_document(self, request, id, idempotency_key=None, **kwargs): | ||
""" | ||
Update a document | ||
""" | ||
endpoint = f"/documents/{id}" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "PATCH" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def upload_document_for_verification_checks(self, request, idempotency_key=None, **kwargs): | ||
""" | ||
Upload a document for verification checks | ||
""" | ||
endpoint = f"/documents" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
|
||
|
||
|
||
|
55 changes: 55 additions & 0 deletions
55
Adyen/services/legalEntityManagement/hosted_onboarding_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
""" | ||
Legal Entity Management API | ||
|
||
The Legal Entity Management API enables you to manage legal entities that contain information required for verification. ## Authentication To connect to the Legal Entity Management API, you must use the basic authentication credentials of your web service user. If you don't have one, contact the [Adyen Support Team](https://www.adyen.help/hc/en-us/requests/new). Use the web service user credentials to authenticate your request, for example: ``` curl -U \"ws12345@Scope.BalancePlatform_YourBalancePlatform\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Legal Entity Management API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://kyc-test.adyen.com/lem/v2/legalEntities ``` ## Going live When going live, your Adyen contact will provide your API credential for the live environment. You can then use the username and password to send requests to `https://kyc-live.adyen.com/lem/v2`. # noqa: E501 | ||
|
||
The version of the OpenAPI document: 2 | ||
Contact: developer-experience@adyen.com | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
from ..base import AdyenServiceBase | ||
|
||
|
||
class HostedOnboardingApi(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(HostedOnboardingApi, self).__init__(client=client) | ||
self.service = "legalEntityManagement" | ||
|
||
def list_hosted_onboarding_page_themes(self, idempotency_key=None, **kwargs): | ||
""" | ||
Get a list of hosted onboarding page themes | ||
""" | ||
endpoint = f"/themes" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "GET" | ||
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def get_onboarding_link_theme(self, id, idempotency_key=None, **kwargs): | ||
""" | ||
Get an onboarding link theme | ||
""" | ||
endpoint = f"/themes/{id}" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "GET" | ||
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def get_link_to_adyenhosted_onboarding_page(self, request, id, idempotency_key=None, **kwargs): | ||
""" | ||
Get a link to an Adyen-hosted onboarding page | ||
""" | ||
endpoint = f"/legalEntities/{id}/onboardingLinks" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
|
||
|
||
|
||
|
64 changes: 64 additions & 0 deletions
64
Adyen/services/legalEntityManagement/legal_entities_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
""" | ||
Legal Entity Management API | ||
|
||
The Legal Entity Management API enables you to manage legal entities that contain information required for verification. ## Authentication To connect to the Legal Entity Management API, you must use the basic authentication credentials of your web service user. If you don't have one, contact the [Adyen Support Team](https://www.adyen.help/hc/en-us/requests/new). Use the web service user credentials to authenticate your request, for example: ``` curl -U \"ws12345@Scope.BalancePlatform_YourBalancePlatform\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Legal Entity Management API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://kyc-test.adyen.com/lem/v2/legalEntities ``` ## Going live When going live, your Adyen contact will provide your API credential for the live environment. You can then use the username and password to send requests to `https://kyc-live.adyen.com/lem/v2`. # noqa: E501 | ||
|
||
The version of the OpenAPI document: 2 | ||
Contact: developer-experience@adyen.com | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
from ..base import AdyenServiceBase | ||
|
||
|
||
class LegalEntitiesApi(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(LegalEntitiesApi, self).__init__(client=client) | ||
self.service = "legalEntityManagement" | ||
|
||
def get_legal_entity(self, id, idempotency_key=None, **kwargs): | ||
""" | ||
Get a legal entity | ||
""" | ||
endpoint = f"/legalEntities/{id}" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "GET" | ||
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def get_all_business_lines_under_legal_entity(self, id, idempotency_key=None, **kwargs): | ||
""" | ||
Get all business lines under a legal entity | ||
""" | ||
endpoint = f"/legalEntities/{id}/businessLines" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "GET" | ||
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 | ||
""" | ||
endpoint = f"/legalEntities/{id}" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "PATCH" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
def create_legal_entity(self, request, idempotency_key=None, **kwargs): | ||
""" | ||
Create a legal entity | ||
""" | ||
endpoint = f"/legalEntities" | ||
endpoint = endpoint.replace('/', '', 1) | ||
method = "POST" | ||
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.