-
Notifications
You must be signed in to change notification settings - Fork 49
[documentcollector] Code generation: update services and models #506
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| from ..base import AdyenServiceBase | ||
| from .documents_api import DocumentsApi | ||
|
|
||
|
|
||
| class AdyenDocumentCollectorApi(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().__init__(client=client) | ||
| self.documents_api = DocumentsApi(client=client) |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||||||||||||||||||||||||||||||||||
| 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().__init__(client=client) | ||||||||||||||||||||||||||||||||||||||
| self.service = "documentCollector" | ||||||||||||||||||||||||||||||||||||||
| self.baseUrl = "https://document-collector-test.adyen.com/v1" | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| def upload_cross_border_invoice(self, idempotency_key=None, **kwargs): | ||||||||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||||||||
| Upload a document | ||||||||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||||||||
| endpoint = self.baseUrl + "/crossBorderInvoices" | ||||||||||||||||||||||||||||||||||||||
| method = "POST" | ||||||||||||||||||||||||||||||||||||||
| return self.client.call_adyen_api( | ||||||||||||||||||||||||||||||||||||||
| None, self.service, method, endpoint, idempotency_key, **kwargs | ||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+16
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The upload_cross_border_invoice method is a POST request to upload a document, but it currently passes None as the request_data to call_adyen_api. This means no request body will be sent, which will cause the API call to fail. The method should accept request_data as a parameter and pass it to call_adyen_api.
Suggested change
|
||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "service": "documentcollector", | ||
| "project": "python", | ||
| "generatedAt": "2026-08-21T14:01:37Z", | ||
| "openapiCommitSha": "bee086f2cd666ac7cb5b5ba2813a8b5dc943c2d2", | ||
| "automationCommitSha": "8d09e0f762f7b00c707748d84d0d002964410c0f", | ||
| "libraryCommitSha": "b6f49792b79c23e2674b35c04dd045aa07daf599" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The service name "documentCollector" is not registered in the version_lookup dictionary within AdyenClient._set_url_version (located in Adyen/client.py). If a user has configured any API version on the client (e.g., api_checkout_version), calling any method on this service will raise a KeyError: 'documentCollector'. Please ensure that Adyen/client.py is updated to include this service in version_lookup.