Skip to content
Open
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
14 changes: 14 additions & 0 deletions Adyen/services/documentCollector/__init__.py
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)
24 changes: 24 additions & 0 deletions Adyen/services/documentCollector/documents_api.py
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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

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.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

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
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
)
def upload_cross_border_invoice(self, request_data, idempotency_key=None, **kwargs):
"""
Upload a document
"""
endpoint = self.baseUrl + "/crossBorderInvoices"
method = "POST"
return self.client.call_adyen_api(
request_data, self.service, method, endpoint, idempotency_key, **kwargs
)

8 changes: 8 additions & 0 deletions sdk-generation-log/documentcollector.json
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"
}
Loading