Skip to content

[foreignexchange] Code generation: update services and models - #406

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

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

Conversation

@AdyenAutomationBot

@AdyenAutomationBot AdyenAutomationBot commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the foreignexchange service.

Adyen/adyen-openapi@a70bc37

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 September 23, 2026 15:25

@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 ForeignExchange service and its associated RatesApi to calculate currency amounts. The review feedback highlights two critical issues: first, DEFAULT_VERSION is undefined in RatesApi, which will cause a NameError upon initialization; second, the 'ForeignExchange' service name is not yet supported in Adyen::Client#service_url_base, which will lead to an ArgumentError during API calls.

Comment on lines +11 to +13
def initialize(client, version = DEFAULT_VERSION)
super(client, version, 'ForeignExchange')
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 not defined within the RatesApi class or the Adyen module scope, which will result in a NameError: uninitialized constant Adyen::RatesApi::DEFAULT_VERSION when initializing RatesApi without explicitly passing a version. Defining DEFAULT_VERSION = 1 inside the RatesApi class resolves this issue.

    DEFAULT_VERSION = 1

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


DEFAULT_VERSION = 1
def initialize(client, version = DEFAULT_VERSION)
@service = 'ForeignExchange'

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 'ForeignExchange' is not yet supported in Adyen::Client#service_url_base (defined in lib/adyen/client.rb). Any API call to this service will raise an ArgumentError: Invalid service specified. Please ensure Adyen::Client is updated to support the 'ForeignExchange' service base URL.

@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch 6 times, most recently from 55521fb to a216f07 Compare October 1, 2026 14:41
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch 2 times, most recently from 7329c31 to 038f8fb Compare October 8, 2026 14:22
@andrej-gajduk-adyen
andrej-gajduk-adyen removed their request for review October 9, 2026 13:42
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch 9 times, most recently from de0fc92 to 7aef115 Compare October 19, 2026 15:40
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch from 7aef115 to 0aaa08f Compare October 19, 2026 15:55
@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