Skip to content

[documentcollector] Code generation: update services and models - #402

Open
AdyenAutomationBot wants to merge 1 commit into
mainfrom
sdk-automation/documentcollector
Open

AdyenAutomationBot wants to merge 1 commit into
mainfrom
sdk-automation/documentcollector

Conversation

@AdyenAutomationBot

@AdyenAutomationBot AdyenAutomationBot commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the documentcollector service.

Adyen/adyen-openapi@507d667

The commit history of this PR reflects the adyen-openapi commits that have been applied.

@AdyenAutomationBot
AdyenAutomationBot requested a review from a team as a code owner August 21, 2026 14:01

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request introduces the DocumentCollector service and its associated DocumentsApi class to support uploading cross-border invoices. A critical issue was identified in DocumentsApi where the DEFAULT_VERSION constant is referenced but not defined, which will lead to a NameError at runtime.

Comment on lines +9 to +13
attr_accessor :service, :version

def initialize(client, version = DEFAULT_VERSION)
super(client, version, 'DocumentCollector')
end

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 constant DEFAULT_VERSION is referenced as a default argument in DocumentsApi#initialize, but it is not defined within the DocumentsApi class or its parent Service class. This will result in a NameError: uninitialized constant Adyen::DocumentsApi::DEFAULT_VERSION at runtime if DocumentsApi.new is called without explicitly passing a version.

To fix this, define DEFAULT_VERSION = 1 inside the DocumentsApi class, matching the default version of the service.

    attr_accessor :service, :version

    DEFAULT_VERSION = 1

    def initialize(client, version = DEFAULT_VERSION)
      super(client, version, 'DocumentCollector')
    end

@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch 2 times, most recently from 56b8c81 to 51f2e6e Compare August 27, 2026 13:58
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch 4 times, most recently from 9ca8478 to 7c911e6 Compare September 10, 2026 20:57
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch 3 times, most recently from b3e34a6 to 4cc9c88 Compare September 22, 2026 11:36
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch from 4cc9c88 to a51d003 Compare September 22, 2026 11:51
@andrej-gajduk-adyen
andrej-gajduk-adyen removed the request for review from poojah-adyen September 22, 2026 11:54
@andrej-gajduk-adyen

Copy link
Copy Markdown

@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch 6 times, most recently from db10bad to c383001 Compare September 28, 2026 10:17
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch 2 times, most recently from 6dfea26 to 5873f66 Compare October 1, 2026 13:22
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch from 5873f66 to 2dd193f Compare October 1, 2026 14:41
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch 2 times, most recently from 68ad415 to 7b5caa0 Compare October 8, 2026 14:22
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch 14 times, most recently from c8255d5 to b45198f Compare October 21, 2026 08:42
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/documentcollector branch from b45198f to dafa7d7 Compare October 21, 2026 10:04
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants