Skip to content

[transfers] Code generation: update services and models - #548

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

[transfers] Code generation: update services and models#548
AdyenAutomationBot wants to merge 1 commit into
mainfrom
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:06
@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 delivers an automated update to the transfers service, primarily focusing on refining and expanding its data models. The changes introduce more granular counterparty definitions, add a new model for interchange data, and enhance existing enums to support new transaction statuses and event types. These updates ensure the API accurately reflects the latest service capabilities and data structures.

Highlights

  • Model Renaming and Refactoring: The Counterparty model was renamed to GrantCounterparty and a new GrantInfoCounterparty model was introduced to provide more specific counterparty definitions within the transfers service. Existing models like CapitalGrant and CapitalGrantInfo were updated to utilize these new, more specific counterparty types.
  • New Data Model Addition: A new InterchangeData model was added, which includes fields for interchangeAmount and interchangeRateIndicator, and is identified by a type of interchangeData. This model provides detailed information about interchange fees.
  • Status and Type Enum Enhancements: The Status enum across Modification, Transfer, and TransferData models was extended to include interchangeAdjusted. Additionally, the Type enum in the TransferEvent model now includes tracing, and TransferEventEventsDataInner was updated to support the new InterchangeData type.

🧠 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/transfers/model_capital_grant.go
    • Updated the Counterparty field type from *Counterparty to *GrantCounterparty.
  • src/transfers/model_capital_grant_info.go
    • Updated the Counterparty field type from *Counterparty to *GrantInfoCounterparty.
  • src/transfers/model_counterparty.go
    • Renamed to src/transfers/model_grant_counterparty.go and all internal references to Counterparty were updated to GrantCounterparty.
  • src/transfers/model_grant_info_counterparty.go
    • Added a new model GrantInfoCounterparty with fields for BalanceAccountId and TransferInstrumentId.
  • src/transfers/model_interchange_data.go
    • Added a new model InterchangeData to represent interchange fee information, including InterchangeAmount, InterchangeRateIndicator, and Type.
  • src/transfers/model_modification.go
    • Added interchangeAdjusted to the Status enum of the Modification model.
  • src/transfers/model_transfer.go
    • Added interchangeAdjusted to the Status enum of the Transfer model.
  • src/transfers/model_transfer_data.go
    • Added interchangeAdjusted to the Status enum of the TransferData model.
  • src/transfers/model_transfer_event.go
    • Added interchangeAdjusted to the Status enum of the TransferEvent model.
    • Added tracing to the Type enum of the TransferEvent model.
  • src/transfers/model_transfer_event_events_data_inner.go
    • Added InterchangeData as a possible type within TransferEventEventsDataInner.
    • Updated JSON unmarshalling and marshalling logic to handle the new InterchangeData type.
Activity
  • This pull request was automatically generated by AdyenAutomationBot to update services and models based on the latest OpenAPI specification.
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.

@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 automated changes from code generation, updating models and services for the transfers service. The changes include renaming Counterparty to more specific types like GrantCounterparty and GrantInfoCounterparty, and adding new models such as InterchangeData. The updates appear to be consistent and correctly implemented. I've provided a few suggestions to simplify some of the newly generated helper functions for improved readability, which might be beneficial to apply to the generator templates for future updates.

Comment on lines +65 to +69
if o != nil && !common.IsNil(o.BalanceAccountId) {
return true
}

return false

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 body of this function can be simplified to a single return statement for better readability and conciseness.

	return o != nil && !common.IsNil(o.BalanceAccountId)

Comment on lines +97 to +101
if o != nil && !common.IsNil(o.TransferInstrumentId) {
return true
}

return false

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 body of this function can be simplified to a single return statement for better readability and conciseness.

	return o != nil && !common.IsNil(o.TransferInstrumentId)

Comment on lines +69 to +73
if o != nil && !common.IsNil(o.InterchangeAmount) {
return true
}

return false

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 body of this function can be simplified to a single return statement for better readability and conciseness.

	return o != nil && !common.IsNil(o.InterchangeAmount)

Comment on lines +101 to +105
if o != nil && !common.IsNil(o.InterchangeRateIndicator) {
return true
}

return false

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 body of this function can be simplified to a single return statement for better readability and conciseness.

	return o != nil && !common.IsNil(o.InterchangeRateIndicator)

@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch from 4e447cb to 52a1b50 Compare March 5, 2026 17:46
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 4 times, most recently from 885bca4 to 0b103c8 Compare April 2, 2026 09:16
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 4 times, most recently from 0fd7185 to 54eb7a2 Compare April 13, 2026 10:17
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 4 times, most recently from 31c04b4 to e5cc5c4 Compare April 20, 2026 10:47
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 2 times, most recently from b693d99 to 47c0889 Compare April 30, 2026 10:00
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 6 times, most recently from 01a9357 to 7b187ad Compare May 5, 2026 15:08
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 5 times, most recently from 207e52c to a42e694 Compare May 14, 2026 14:16
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 5 times, most recently from 7ee7d63 to 9b38ef7 Compare June 24, 2026 08:32
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 3 times, most recently from 4e71c4f to 55bfc12 Compare July 7, 2026 09:20
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 7 times, most recently from 7ed474b to 2815a72 Compare July 15, 2026 14:59
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 5 times, most recently from 691510b to 3878146 Compare July 22, 2026 11:25
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 3 times, most recently from dde91ca to f59f6f4 Compare July 27, 2026 10:29
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 3 times, most recently from 1d1d0d6 to 701ad65 Compare August 4, 2026 17:15
@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/transfers branch 2 times, most recently from 0cb31ee to e689bdf Compare August 7, 2026 15:19
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