Skip to content

Conversation

@AdyenAutomationBot
Copy link
Collaborator

@AdyenAutomationBot AdyenAutomationBot commented Jul 29, 2025

Balance Platform API:

  • Added support for additionalbankIdentificationRequirement: auBsbCode, caRoutingNumber, gbSortCode or usRoutingNumber.


Configuration Webhooks

  • Added usage-field - Specifies how many times the card can be used: singleUse or multiUse.
  • Added transactionRulesResult (wallet, cof) in networkTokenNotificationDataV2
  • Added networkTokenRiskRuleData, networkTokenRiskRuleSource, networkTokenTransactionRulesResult and networkTokenTriggeredRiskRule
  • Added approvalExpired to sweepConfigurationV2 webhooks


Sweeps API

  • Added approvalExpired ReasonEnum to CreateSweepConfigurationV2, UpdateSweepConfigurationV2 and SweepConfigurationV2

Transfers API


  • Added approvalExpired to transfer, transferData and transferEvent
  • Added email and url to partyIdentification and ultimatePartyIdentification

Transfers Webhooks


  • Added email and url fields to partyIdentification
  • Added approvalExpired to transferData and transferEvent

OpenAPI spec files or templates have been modified on 30-07-2025 by commit.

@AdyenAutomationBot AdyenAutomationBot requested a review from a team as a code owner July 29, 2025 11:18
Copy link
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.

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 is an automated update generated from changes in the OpenAPI specification. It primarily focuses on expanding the API's data models, particularly for balance platform and network token functionalities, and standardizing error handling. It also includes minor method renames and extensive documentation improvements to reflect the latest API definitions.

Highlights

  • New Models for Balance Platform: Introduced a new model, AdditionalBankIdentificationRequirement, within the balancePlatform typings to define specific bank identification requirements for different countries (e.g., BSB code, routing number).
  • Enhanced Network Token Risk Rules: Added several new models under configurationWebhooks related to network token risk rules: NetworkTokenRiskRuleData, NetworkTokenRiskRuleSource, NetworkTokenTransactionRulesResult, and NetworkTokenTriggeredRiskRule. These provide more detailed information about transaction rule outcomes and their sources.
  • API Method Renaming: The createNetworkTokenActivationData method in PaymentInstrumentsApi has been renamed to createNetworkTokenProvisioningData for improved clarity regarding its purpose.
  • Standardized Error Handling Imports: Numerous API service files across various domains (Balance Platform, Checkout, Legal Entity Management, Management, Payment, Payout, Recurring, Stored Value, Transfers, Payments App, Session Authentication) now explicitly import RestServiceError, ServiceError, or DefaultErrorResponseEntity models, indicating a standardization of error response handling.
  • Model Property Additions: The Card and CardInfo models in both balancePlatform and configurationWebhooks now include a usage property, specifying whether a card is for single or multi-use.
  • Documentation and JSDoc Updates: Various JSDoc comments have been updated across the codebase, including corrections to example dates (e.g., from 2020 to 2025), clarifications for property descriptions (e.g., sdkInput vs sdkOutput), and updated links to Adyen documentation.
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue 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 or fill out our survey to provide feedback.

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
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 updates services and models, likely from an OpenAPI specification change. The primary change is the consistent addition of error types across services, which is a positive improvement for error handling. My review identified a critical issue in transferDataTracking.ts that will break deserialization and a medium-severity inconsistency in paymentInstrumentsApi.ts between a method name and its endpoint. The other model and documentation updates appear correct.

Comment on lines 33 to 36
static readonly discriminator: string = "type";

static readonly mapping: {[index: string]: string} | undefined = {
"confirmation": "ConfirmationTrackingData",
"estimation": "EstimationTrackingData",
"internalReview": "InternalReviewTrackingData",
};

}
static readonly mapping: {[index: string]: string} | undefined = undefined;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Removing the mapping from TransferDataTrackingClass will break polymorphic deserialization for TransferDataTracking types. The ObjectSerializer relies on this mapping to resolve the concrete type from the type discriminator field in the JSON payload. Revert this change to ensure correct deserialization.

    static readonly discriminator: string = "type";

    static readonly mapping: {[index: string]: string} | undefined = {
        "confirmation": "ConfirmationTrackingData",
        "estimation": "EstimationTrackingData",
        "internalReview": "InternalReviewTrackingData",
    };

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved by reverting: c55cada

static readonly discriminator: string = "type";

static readonly mapping: {[index: string]: string} | undefined = {
"confirmation": "ConfirmationTrackingData",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We did a manual revert before, now we do this again:

9e9cdb7

@sonarqubecloud
Copy link

@Kwok-he-Chu Kwok-he-Chu added the Feature New feature or request label Jul 30, 2025
@Kwok-he-Chu Kwok-he-Chu merged commit 85eaea6 into main Jul 30, 2025
8 checks passed
@Kwok-he-Chu Kwok-he-Chu deleted the sdk-automation/models branch July 30, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants