Skip to content

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

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

Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the foreignexchange service.

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 auto-generated AdyenForeignExchangeApi service and its associated RatesApi with a calculate endpoint. However, the new service name "foreignExchange" is not registered in the version_lookup dictionary in Adyen/client.py, which will result in a KeyError if alternative API versions are configured. Additionally, the new service needs to be exposed and instantiated in Adyen/__init__.py.


def __init__(self, client=None):
super().__init__(client=client)
self.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 registered in AdyenClient._set_url_version's version_lookup dictionary (located in Adyen/client.py). If a user configures any other API version on the client (which makes any(versions) evaluate to True), calling calculate will result in a KeyError: 'foreignExchange' when _set_url_version is invoked. Please ensure that Adyen/client.py is updated to include "foreignExchange" in version_lookup and that Adyen/init.py is updated to expose and instantiate the new AdyenForeignExchangeApi service.

@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch from d948ea8 to 63b334e Compare September 25, 2026 11:05
@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant