Skip to content

[tapi] Code generation: update services and models - #2105

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

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

Conversation

@AdyenAutomationBot

@AdyenAutomationBot AdyenAutomationBot commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

This PR contains the automated changes for the tapi service.

Adyen/adyen-openapi@638b69a

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 updates the auto-generated Adyen Terminal API models, which includes deleting several classes (such as CardHolderPIN and PerformedTransaction), changing sensitive data fields from String to byte[], and converting various identifier fields from Integer to String. However, a critical issue was identified where multiple financial amount fields were changed from BigDecimal to Double, which introduces floating-point precision risks and should be reverted.


public static final String JSON_PROPERTY_REQUESTED_AMOUNT = "RequestedAmount";
private BigDecimal requestedAmount;
private Double requestedAmount;

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.

high

Using Double for representing monetary or financial amounts introduces floating-point precision issues. Financial fields should use BigDecimal to guarantee precision and avoid rounding errors during calculations. This change from BigDecimal to Double across multiple model files appears to be a regression in the OpenAPI generator configuration or type mappings.

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