Skip to content

[capital] Code generation: update services and models#1641

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

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

Conversation

@AdyenAutomationBot
Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the capital 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 March 10, 2026 14:04
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 capital service, primarily introducing a comprehensive 'Dynamic Offers' feature. This enhancement allows for more flexible and programmatic management of financing offers, from calculation to creation. The changes encompass the addition of a new API service and a suite of supporting data models, alongside refinements to existing model descriptions and API terminology to improve clarity and align with the new functionality.

Highlights

  • New Dynamic Offers API: A new DynamicOffersApi service has been introduced, providing functionalities to calculate preliminary offers, create static offers from dynamic offers, and retrieve all available dynamic offers.
  • Refactored Bank Identification Types: The AdditionalBankIdentificationTypes enum has been removed, and its values are now integrated as a nested TypeEnum within the AdditionalBankIdentification class for better encapsulation.
  • New Data Models for Dynamic Offers: Several new data models, including CalculateGrantOfferRequest, CalculatedGrantOffer, CreateGrantOfferRequest, DynamicOffer, DynamicOfferRepayment, FinancingType, and GetDynamicOffersResponse, have been added to support the new dynamic offers functionality.
  • Terminology and Description Updates: Existing API summaries and model descriptions, particularly within GrantOffersApi, Grant, GrantInfo, GrantOffer, and GrantOffers, have been updated for clarity and consistency, often changing 'grant offer' to 'static offer' or 'offer'.
  • Model Property Enhancements: The InvalidField model was updated to include a message property and reordered its attributes, while updateDescription in DisbursementRepayment and DisbursementRepaymentInfoUpdate was marked as deprecated.

🧠 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/services/capital/dynamicOffersApi.ts
    • Added a new API service for managing dynamic offers, including endpoints for calculating preliminary offers, creating static offers, and retrieving all dynamic offers.
  • src/services/capital/grantOffersApi.ts
    • Updated API summaries to refer to 'static offers' instead of 'grant offers' for consistency.
    • Modified parameter descriptions to use 'static offer' terminology.
  • src/services/capital/index.ts
    • Imported the new DynamicOffersApi.
    • Added a getter for DynamicOffersApi to the CapitalAPI class.
  • src/typings/capital/additionalBankIdentification.ts
    • Removed the import for AdditionalBankIdentificationTypes.
    • Updated the type property to use a nested AdditionalBankIdentification.TypeEnum.
    • Added the TypeEnum with specific bank identification types within the AdditionalBankIdentification namespace.
  • src/typings/capital/additionalBankIdentificationTypes.ts
    • Removed the AdditionalBankIdentificationTypes enum file.
  • src/typings/capital/calculateGrantOfferRequest.ts
    • Added a new model CalculateGrantOfferRequest with an amount property.
  • src/typings/capital/calculatedGrantOffer.ts
    • Added a new model CalculatedGrantOffer including properties like accountHolderId, amount, contractType, expiresAt, fee, repayment, and startsAt.
  • src/typings/capital/createGrantOfferRequest.ts
    • Added a new model CreateGrantOfferRequest with an amount property.
  • src/typings/capital/disbursementRepayment.ts
    • Marked the updateDescription property as deprecated.
  • src/typings/capital/disbursementRepaymentInfoUpdate.ts
    • Marked the updateDescription property as deprecated.
  • src/typings/capital/dynamicOffer.ts
    • Added a new model DynamicOffer with details such as accountHolderId, contractType, expiresAt, financingType, id, maximumAmount, minimumAmount, repayment, and startsAt.
  • src/typings/capital/dynamicOfferRepayment.ts
    • Added a new model DynamicOfferRepayment with a term property.
  • src/typings/capital/financingType.ts
    • Added a new enum FinancingType with values 'hardwareFinancing' and 'businessFinancing'.
  • src/typings/capital/getDynamicOffersResponse.ts
    • Added a new model GetDynamicOffersResponse containing an array of dynamicOffers.
  • src/typings/capital/grant.ts
    • Updated the description for grantOfferId to refer to 'selected offer'.
  • src/typings/capital/grantInfo.ts
    • Updated the description for grantOfferId to refer to 'selected offer'.
  • src/typings/capital/grantOffer.ts
    • Updated descriptions for contractType, expiresAt, id, and startsAt properties for clarity and consistency.
  • src/typings/capital/grantOffers.ts
    • Updated the description for the grantOffers array to refer to 'available offers'.
  • src/typings/capital/invalidField.ts
    • Added a message property to describe validation errors.
    • Reordered the name, value, and message properties in the attribute type map.
  • src/typings/capital/models.ts
    • Removed the export for additionalBankIdentificationTypes.
    • Added exports for new models: calculateGrantOfferRequest, calculatedGrantOffer, createGrantOfferRequest, dynamicOffer, dynamicOfferRepayment, financingType, and getDynamicOffersResponse.
  • src/typings/capital/objectSerializer.ts
    • Removed the import for AdditionalBankIdentificationTypes.
    • Added imports for new models: CalculateGrantOfferRequest, CalculatedGrantOffer, CreateGrantOfferRequest, DynamicOffer, DynamicOfferRepayment, FinancingType, and GetDynamicOffersResponse.
    • Updated enumsMap to reflect the change in AdditionalBankIdentification.TypeEnum and added new enum types.
    • Updated typeMap to include the new models.
Activity
  • This pull request was automatically generated by AdyenAutomationBot, indicating a routine update of 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.

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 new API endpoints and models for dynamic offers within the Capital service, along with minor updates and refactorings to existing models. The changes include adding DynamicOffersApi to handle preliminary offer calculations, static offer creation, and retrieval of dynamic offers. Several new typings such as CalculateGrantOfferRequest, CalculatedGrantOffer, CreateGrantOfferRequest, DynamicOffer, DynamicOfferRepayment, FinancingType, and GetDynamicOffersResponse have been added. The AdditionalBankIdentificationTypes enum has been refactored into an inline enum within AdditionalBankIdentification for better encapsulation. JSDoc comments have been updated for clarity and consistency across various models, and some fields have been marked as deprecated. All changes appear to be consistent with OpenAPI specification updates and are well-integrated into the existing codebase.

@AdyenAutomationBot AdyenAutomationBot force-pushed the sdk-automation/capital branch 2 times, most recently from 2d25d73 to d87bde8 Compare April 1, 2026 09:31
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