-
Notifications
You must be signed in to change notification settings - Fork 2.3k
FINERACT-2473: Add available balance to group accounts endpoint #5468
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: develop
Are you sure you want to change the base?
FINERACT-2473: Add available balance to group accounts endpoint #5468
Conversation
Aman-Mittal
left a comment
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.
Address review comments, and please sign your commit with GPG key
| public Long getId() { | ||
| return id; | ||
| } | ||
|
|
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.
I think we can use lombok for these boilerplate code
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.
Thanks @Aman-Mittal. Do you know if the coding standards regarding getters/setters/lombok are described somewhere? I couldn't find it.
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.
hi @rhopman you can see
fineract-charge/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java
it has implementation of both getter and setter
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.
Thanks for the example, @Aman-Mittal! I'm trying to find out what the documented code standards are regarding the use of Lombok. I know that this is a much-debated topic in the Java community. I am fine either way, but I would like to adhere to the project's documented code standards.
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.
Thanks for your concern, in my opinion lomboks are better in this case as we are using simple getters and setters. As this class is simple DTO not using any complicated logic.
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.
We should use Lombok for getters setters where it makes sense
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.
@adamsaghy I'm more than happy to change it but could you point me to the documentation where this standard is documented? And if it's not yet documented, may I suggest we add it to CONTRIBUTING.md or to the coding conventions?
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.
I dont recall whether it was documented or not.
it's a good idea to include in the contributions and coding conventions. Feel free to draft something and raise it in a new PR ;)
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.
Done! #5478
|
@rhopman from Adam Monsen's email: There's a new ci action for PRs to check that new commits are signed. All committers already have PGP/GPG keys, so just make sure you're also signing commits. You can add this to your ~/.gitconfig (or equivalent) to do it automatically: [commit] Upload your public key to github to make the verified badges green. More info: FINERACT-2177, PR #5431. Hints: 1) try it locally before pushing. 2) have git run it for you: Create .git/hooks/pre-push with: #!/bin/sh Be sure to make that script executable. |
cbb4c9b to
988260d
Compare
IOhacker
left a comment
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.
LGTM
988260d to
87f2264
Compare
Description
Adds
availableBalancefield to the group accounts endpoint (/groups/{groupId}/accounts), providing visibility into withdrawable funds by distinguishing between total balance and funds on hold.Changes
New Fields Added to Savings Account Summary:
onHoldFunds- Automatic holds from loan guaranteessavingsAmountOnHold- User-initiated/lien holdsavailableBalance- Calculated as:accountBalance - onHoldFunds - savingsAmountOnHoldChecklist
Your assigned reviewer(s) will follow our guidelines for code reviews.