-
Notifications
You must be signed in to change notification settings - Fork 144
[transactionwebhooks] Code generation: update services and models #1645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @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 delivers an automated update to the transactionwebhooks service, ensuring its models and services align with the most recent adyen-openapi specification. The changes primarily involve reordering and adding necessary imports, alongside a significant effort to refine and expand Javadoc comments across various classes for improved code readability and understanding. A key functional enhancement is the introduction of the DCCMarkup enum value, which provides more granular categorization for platform payment types. Highlights
🧠 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. Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this 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 automatically, introduces several updates to services and models. While it includes functional improvements such as the addition of new enum members and enhanced deserialization logic for oneOf schemas, it also brings in a number of formatting regressions across multiple files. These include inconsistent indentation, single-line method bodies that reduce readability, long concatenated strings, incorrectly formatted Javadocs, and unconventional semicolon placements. I've provided specific comments on these formatting issues. It would be beneficial to review the code generation templates to prevent these style problems in future updates and ensure code quality and maintainability.
| * @return an instance of the actual schema/object | ||
| */ | ||
| @JsonValue | ||
| public Object getActualInstance() {return instance;} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better readability and to adhere to standard Java coding conventions, it's recommended to format method bodies on multiple lines, even for single-line methods. This improves maintainability and makes debugging easier. This formatting issue is present in other methods in this file and across other files in this pull request.
public Object getActualInstance() {
return instance;
}| return Objects.equals(this.currency, amount.currency) && | ||
| Objects.equals(this.value, amount.value) | ||
| ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing semicolon on a new line is unconventional and harms readability. It should be placed on the same line as the expression.
| return Objects.equals(this.currency, amount.currency) && | |
| Objects.equals(this.value, amount.value) | |
| ; | |
| return Objects.equals(this.currency, amount.currency) && | |
| Objects.equals(this.value, amount.value); |
| /** | ||
| * Convert an instance of Amount to an JSON string | ||
| * | ||
| * @return JSON string | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Javadoc for toJson is incorrectly formatted. It should start on a new line and be properly indented for readability and to follow standard Java conventions.
| /** | |
| * Convert an instance of Amount to an JSON string | |
| * | |
| * @return JSON string | |
| */ | |
| /** | |
| * Convert an instance of Amount to an JSON string | |
| * | |
| * @return JSON string | |
| */ |
| return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse) | ||
| ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing semicolon on a new line is unconventional and harms readability. It should be placed on the same line as the expression.
| return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse) | |
| ; | |
| return Objects.equals(this.notificationResponse, balancePlatformNotificationResponse.notificationResponse); |
| /** | ||
| * Convert an instance of BalancePlatformNotificationResponse to an JSON string | ||
| * | ||
| * @return JSON string | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Javadoc for toJson is incorrectly formatted. It should start on a new line and be properly indented for readability and to follow standard Java conventions.
| /** | |
| * Convert an instance of BalancePlatformNotificationResponse to an JSON string | |
| * | |
| * @return JSON string | |
| */ | |
| /** | |
| * Convert an instance of BalancePlatformNotificationResponse to an JSON string | |
| * | |
| * @return JSON string | |
| */ |
| return Objects.equals(this.acsTransactionId, threeDSecure.acsTransactionId) | ||
| ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing semicolon on a new line is unconventional and harms readability. It should be placed on the same line as the expression.
| return Objects.equals(this.acsTransactionId, threeDSecure.acsTransactionId) | |
| ; | |
| return Objects.equals(this.acsTransactionId, threeDSecure.acsTransactionId); |
| return Objects.equals(this.accountHolder, transaction.accountHolder) && | ||
| Objects.equals(this.amount, transaction.amount) && | ||
| Objects.equals(this.balanceAccount, transaction.balanceAccount) && | ||
| Objects.equals(this.balancePlatform, transaction.balancePlatform) && | ||
| Objects.equals(this.bookingDate, transaction.bookingDate) && | ||
| Objects.equals(this.creationDate, transaction.creationDate) && | ||
| Objects.equals(this.description, transaction.description) && | ||
| Objects.equals(this.id, transaction.id) && | ||
| Objects.equals(this.paymentInstrument, transaction.paymentInstrument) && | ||
| Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) && | ||
| Objects.equals(this.status, transaction.status) && | ||
| Objects.equals(this.transfer, transaction.transfer) && | ||
| Objects.equals(this.valueDate, transaction.valueDate) | ||
| ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing semicolon on a new line is unconventional and harms readability. It should be placed on the same line as the expression.
| return Objects.equals(this.accountHolder, transaction.accountHolder) && | |
| Objects.equals(this.amount, transaction.amount) && | |
| Objects.equals(this.balanceAccount, transaction.balanceAccount) && | |
| Objects.equals(this.balancePlatform, transaction.balancePlatform) && | |
| Objects.equals(this.bookingDate, transaction.bookingDate) && | |
| Objects.equals(this.creationDate, transaction.creationDate) && | |
| Objects.equals(this.description, transaction.description) && | |
| Objects.equals(this.id, transaction.id) && | |
| Objects.equals(this.paymentInstrument, transaction.paymentInstrument) && | |
| Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) && | |
| Objects.equals(this.status, transaction.status) && | |
| Objects.equals(this.transfer, transaction.transfer) && | |
| Objects.equals(this.valueDate, transaction.valueDate) | |
| ; | |
| return Objects.equals(this.accountHolder, transaction.accountHolder) && | |
| Objects.equals(this.amount, transaction.amount) && | |
| Objects.equals(this.balanceAccount, transaction.balanceAccount) && | |
| Objects.equals(this.balancePlatform, transaction.balancePlatform) && | |
| Objects.equals(this.bookingDate, transaction.bookingDate) && | |
| Objects.equals(this.creationDate, transaction.creationDate) && | |
| Objects.equals(this.description, transaction.description) && | |
| Objects.equals(this.id, transaction.id) && | |
| Objects.equals(this.paymentInstrument, transaction.paymentInstrument) && | |
| Objects.equals(this.referenceForBeneficiary, transaction.referenceForBeneficiary) && | |
| Objects.equals(this.status, transaction.status) && | |
| Objects.equals(this.transfer, transaction.transfer) && | |
| Objects.equals(this.valueDate, transaction.valueDate); |
| return Objects.equals(this.data, transactionNotificationRequestV4.data) && | ||
| Objects.equals(this.environment, transactionNotificationRequestV4.environment) && | ||
| Objects.equals(this.timestamp, transactionNotificationRequestV4.timestamp) && | ||
| Objects.equals(this.type, transactionNotificationRequestV4.type) | ||
| ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing semicolon on a new line is unconventional and harms readability. It should be placed on the same line as the expression.
| return Objects.equals(this.data, transactionNotificationRequestV4.data) && | |
| Objects.equals(this.environment, transactionNotificationRequestV4.environment) && | |
| Objects.equals(this.timestamp, transactionNotificationRequestV4.timestamp) && | |
| Objects.equals(this.type, transactionNotificationRequestV4.type) | |
| ; | |
| return Objects.equals(this.data, transactionNotificationRequestV4.data) && | |
| Objects.equals(this.environment, transactionNotificationRequestV4.environment) && | |
| Objects.equals(this.timestamp, transactionNotificationRequestV4.timestamp) && | |
| Objects.equals(this.type, transactionNotificationRequestV4.type); |
| return Objects.equals(this.result, transferNotificationValidationFact.result) && | ||
| Objects.equals(this.type, transferNotificationValidationFact.type) | ||
| ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing semicolon on a new line is unconventional and harms readability. It should be placed on the same line as the expression.
| return Objects.equals(this.result, transferNotificationValidationFact.result) && | |
| Objects.equals(this.type, transferNotificationValidationFact.type) | |
| ; | |
| return Objects.equals(this.result, transferNotificationValidationFact.result) && | |
| Objects.equals(this.type, transferNotificationValidationFact.type); |
| return Objects.equals(this.categoryData, transferView.categoryData) && | ||
| Objects.equals(this.id, transferView.id) && | ||
| Objects.equals(this.reference, transferView.reference) | ||
| ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing semicolon on a new line is unconventional and harms readability. It should be placed on the same line as the expression.
| return Objects.equals(this.categoryData, transferView.categoryData) && | |
| Objects.equals(this.id, transferView.id) && | |
| Objects.equals(this.reference, transferView.reference) | |
| ; | |
| return Objects.equals(this.categoryData, transferView.categoryData) && | |
| Objects.equals(this.id, transferView.id) && | |
| Objects.equals(this.reference, transferView.reference); |
dd5c904 to
4497cce
Compare
07cc854 to
1cf55c4
Compare
This PR contains the automated changes for the
transactionwebhooksservice.The commit history of this PR reflects the
adyen-openapicommits that have been applied.