Skip to content

[checkout] Code generation: update services and models - #408

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

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

Conversation

@AdyenAutomationBot

@AdyenAutomationBot AdyenAutomationBot commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the checkout service.

Adyen/adyen-openapi@2c1f3ab

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

@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 adds two new endpoints, calculate_tax and verify_shopper_tax_identification, to the UtilityApi class in the Checkout service, along with updating the SDK generation log. The review feedback points out that both of these new methods lack corresponding unit tests in spec/checkout_spec.rb and requests that tests be added following the existing codebase conventions.

end

# Calculate the tax for a transaction.
def calculate_tax(request, headers: {})

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 new calculate_tax method is added without any corresponding unit tests in spec/checkout_spec.rb. To ensure the endpoint is correctly constructed and the request is properly forwarded, please add a unit test. Follow the existing codebase conventions in tests, such as asserting both be_a Adyen::HashWithAccessors and be_a_kind_of Hash for response hashes.

References
  1. Follow existing codebase conventions in tests, such as asserting both be_a Adyen::HashWithAccessors and be_a_kind_of Hash for response hashes, even if they seem redundant.

end

# Verify the shopper's tax identification.
def verify_shopper_tax_identification(request, headers: {})

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 new verify_shopper_tax_identification method is added without any corresponding unit tests in spec/checkout_spec.rb. Please add a unit test to verify its behavior, following the existing codebase conventions in tests (asserting both be_a Adyen::HashWithAccessors and be_a_kind_of Hash for response hashes).

References
  1. Follow existing codebase conventions in tests, such as asserting both be_a Adyen::HashWithAccessors and be_a_kind_of Hash for response hashes, even if they seem redundant.

@AdyenAutomationBot
AdyenAutomationBot force-pushed the sdk-automation/checkout branch 3 times, most recently from 9a0d7bb to aa8184e Compare October 22, 2026 13:33
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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