Skip to content

Conversation

AdyenAutomationBot
Copy link
Collaborator

@AdyenAutomationBot AdyenAutomationBot commented Aug 4, 2025

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

@AdyenAutomationBot AdyenAutomationBot requested a review from a team as a code owner August 4, 2025 13:06
Copy link

@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 updates the generated code for Adyen services and models, specifically reflecting recent changes in the OpenAPI specification. The primary impact is the addition of a new API endpoint for validating shopper IDs.

Highlights

  • New API Endpoint: I've added a new validate_shopper_id method to the UtilityApi service, which allows for validating shopper IDs via a POST request to the /validateShopperId endpoint.
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

@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, generated from an OpenAPI specification, adds a new validate_shopper_id method to the UtilityApi. My review identifies a few issues in the new method. There's an unused parameter in the method signature which is confusing and should be removed. Additionally, the endpoint URL construction logic is unnecessarily complex for a static path and can be simplified. Finally, tests for the new validate_shopper_id endpoint are missing and should be added to ensure its correctness.

end

# Validates shopper Id
def validate_shopper_id(request, validate_shopper_id_request, headers: {})

Choose a reason for hiding this comment

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

high

The method validate_shopper_id includes an unused parameter validate_shopper_id_request. This makes the method signature confusing and should be removed to align with the other methods in this class.

    def validate_shopper_id(request, headers: {})

Comment on lines +49 to +51
endpoint = '/validateShopperId'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint)

Choose a reason for hiding this comment

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

medium

The construction of the endpoint string can be simplified. Since '/validateShopperId' is a static string with no path parameters, the calls to gsub and format are redundant.

      endpoint = 'validateShopperId'

Comment on lines +47 to +55
# Validates shopper Id
def validate_shopper_id(request, validate_shopper_id_request, headers: {})
endpoint = '/validateShopperId'.gsub(/{.+?}/, '%s')
endpoint = endpoint.gsub(%r{^/}, '')
endpoint = format(endpoint)

action = { method: 'post', url: endpoint }
@client.call_adyen_api(@service, action, request, headers, @version)
end

Choose a reason for hiding this comment

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

medium

The new validate_shopper_id method is not covered by any tests. Please add unit tests for this new functionality in spec/checkout_spec.rb to verify its behavior and prevent future regressions.

@AdyenAutomationBot AdyenAutomationBot force-pushed the sdk-automation/models branch 2 times, most recently from 05c743e to 3ee984d Compare September 23, 2025 13:23
@AdyenAutomationBot AdyenAutomationBot force-pushed the sdk-automation/models branch 2 times, most recently from 25a03e7 to 55a78dd Compare October 7, 2025 07:41
@AdyenAutomationBot AdyenAutomationBot requested a review from a team as a code owner October 7, 2025 07:41
Copy link

sonarqubecloud bot commented Oct 9, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants