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

@AdyenAutomationBot AdyenAutomationBot commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the foreignexchange service.

Adyen/adyen-openapi@d449f09

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 6 times, most recently from 71bba5c to 28a8a3c Compare October 1, 2026 14:41
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch 2 times, most recently from 407ccd3 to e48b458 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 7 times, most recently from 61d4771 to 3f98781 Compare October 16, 2026 13:39
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch 9 times, most recently from d1d4b22 to b568fb1 Compare October 22, 2026 14:18
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch from b568fb1 to 3ae85c8 Compare October 28, 2026 13:12
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch 4 times, most recently from 0f74558 to 5a06a9e Compare November 4, 2026 15:13
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch from 5a06a9e to ffbf844 Compare November 6, 2026 10:34
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/foreignexchange branch from ffbf844 to 9abdb65 Compare November 9, 2026 15:34
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

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