Skip to content

[transfers] Code generation: update services and models#887

Open
AdyenAutomationBot wants to merge 1 commit intomainfrom
sdk-automation/transfers
Open

[transfers] Code generation: update services and models#887
AdyenAutomationBot wants to merge 1 commit intomainfrom
sdk-automation/transfers

Conversation

@AdyenAutomationBot
Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the transfers service.

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

@AdyenAutomationBot AdyenAutomationBot requested review from a team as code owners February 16, 2026 13:09
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @AdyenAutomationBot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the Adyen Transfers API client by incorporating automated code generation changes. The primary goal is to align the client with the latest API specifications, introducing new data models and extending existing ones to support enhanced functionality related to capital grants and interchange data. These changes ensure the client can accurately represent and interact with the updated transfer service capabilities.

Highlights

  • Model Renaming and Introduction: The Counterparty model has been renamed to GrantCounterparty, and a new model GrantInfoCounterparty has been introduced to differentiate counterparty types within capital grant information.
  • New Interchange Data Model: A new InterchangeData model has been added to represent interchange fee information, including amount and rate indicators.
  • New Transfer Status: The interchangeAdjusted status has been added to Modification, Transfer, TransferData, and TransferEvent models, indicating a new state for transfer processing.
  • New Transfer Event Type: A tracing type has been added to the TransferEvent model, expanding the categories of events that can be tracked.
  • Transfer Event Data Enrichment: The TransferEventEventsDataInner model has been updated to include interchangeAmount and interchangeRateIndicator fields, providing more detailed event data.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/Adyen/Model/Transfers/CapitalGrant.php
    • Updated the type hint for the counterparty property from Counterparty to GrantCounterparty.
  • src/Adyen/Model/Transfers/CapitalGrantInfo.php
    • Updated the type hint for the counterparty property from Counterparty to GrantInfoCounterparty.
  • src/Adyen/Model/Transfers/Counterparty.php
    • Renamed the file to GrantCounterparty.php.
    • Updated the class name from Counterparty to GrantCounterparty.
    • Updated the internal openAPIModelName from Counterparty to GrantCounterparty.
    • Modified the description for accountHolderId setter.
  • src/Adyen/Model/Transfers/GrantInfoCounterparty.php
    • Added a new model GrantInfoCounterparty with properties for balanceAccountId and transferInstrumentId.
  • src/Adyen/Model/Transfers/InterchangeData.php
    • Added a new model InterchangeData with properties for interchangeAmount, interchangeRateIndicator, and type.
  • src/Adyen/Model/Transfers/Modification.php
    • Added a new constant STATUS_INTERCHANGE_ADJUSTED to the list of possible modification statuses.
  • src/Adyen/Model/Transfers/Transfer.php
    • Added a new constant STATUS_INTERCHANGE_ADJUSTED to the list of possible transfer statuses.
  • src/Adyen/Model/Transfers/TransferData.php
    • Added a new constant STATUS_INTERCHANGE_ADJUSTED to the list of possible transfer data statuses.
  • src/Adyen/Model/Transfers/TransferEvent.php
    • Added a new constant STATUS_INTERCHANGE_ADJUSTED to the list of possible transfer event statuses.
    • Added a new constant TYPE_TRACING to the list of possible transfer event types.
  • src/Adyen/Model/Transfers/TransferEventEventsDataInner.php
    • Added interchangeAmount and interchangeRateIndicator to the openAPITypes, openAPIFormats, openAPINullables, attributeMap, setters, and getters arrays.
    • Adjusted the constructor to initialize the new interchange properties.
    • Moved the captureCycleId property definition and its getter/setter methods to accommodate the new interchange properties.
Activity
  • This pull request was automatically generated by AdyenAutomationBot, indicating an update based on new OpenAPI specifications. No human activity has been recorded yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

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

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 auto-generated changes from the adyen-openapi specification, updating services and models for the transfers service. The changes include renaming Counterparty to GrantCounterparty and creating a new GrantInfoCounterparty model, adding new models like InterchangeData, and updating various enums with new statuses like INTERCHANGE_ADJUSTED and types like TRACING.

Overall, the changes are consistent with automated code generation. I have one suggestion regarding a documentation change in GrantCounterparty.php where a potentially useful detail about default behavior was removed. Please see the specific comment for details.

* Sets accountHolderId
*
* @param string|null $accountHolderId The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided.
* @param string|null $accountHolderId The identifier of the receiving account holder.
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.

medium

The documentation for the $accountHolderId parameter has been shortened, removing what appears to be a helpful detail. The previous version mentioned that the payout defaults to the primary balance account if balanceAccountId is not provided. This is valuable information for developers using the SDK. If this behavior is still valid, please restore this part of the documentation to improve clarity.

     * @param string|null $accountHolderId The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no balanceAccountId is provided.

@AdyenAutomationBot AdyenAutomationBot force-pushed the sdk-automation/transfers branch from 4b0ea5a to 02baae3 Compare March 5, 2026 17:49
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 5, 2026

@AdyenAutomationBot AdyenAutomationBot force-pushed the sdk-automation/transfers branch from 02baae3 to 2aa1711 Compare April 9, 2026 08:19
@AdyenAutomationBot AdyenAutomationBot force-pushed the sdk-automation/transfers branch from 2aa1711 to 74286c7 Compare April 10, 2026 08:27
@sonarqubecloud
Copy link
Copy Markdown

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