-
Notifications
You must be signed in to change notification settings - Fork 34
BEnRegID added in registration API response #83
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
Changes from all commits
104547d
85ca627
efe5412
f30feda
25d6cbe
1e675d9
6f93e13
9ea499d
fe1908c
3602722
e37d6ba
2e2d733
35237c1
36dbe68
3498d85
681977d
f29182e
44a9c0e
4d24d28
97659e7
0987627
72e5839
b6c2e1d
3375310
8f00997
338b0ae
81c0e8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -672,15 +672,15 @@ public String registerBeneficiary(String comingRequest, String Authorization) th | |||||||
|
|
||||||||
| BeneficiaryFlowStatus obj = InputMapper.gson().fromJson(comingRequest, BeneficiaryFlowStatus.class); | ||||||||
| if (obj != null && obj.getIsMobile() != null && obj.getIsMobile()) { | ||||||||
| response1.setResponse("Beneficiary successfully registered. Beneficiary ID is : " + beneficiaryID); | ||||||||
| response1.setResponse("Beneficiary successfully registered. Beneficiary ID is : " + beneficiaryID +"and BenRegID is : "+beneficiaryRegID); | ||||||||
| } else { | ||||||||
| int i = commonBenStatusFlowServiceImpl.createBenFlowRecord(comingRequest, beneficiaryRegID, | ||||||||
| beneficiaryID); | ||||||||
|
|
||||||||
| if (i > 0) { | ||||||||
| if (i == 1) | ||||||||
| response1.setResponse( | ||||||||
| "Beneficiary successfully registered. Beneficiary ID is : " + beneficiaryID); | ||||||||
| "Beneficiary successfully registered. Beneficiary ID is : " + beneficiaryID +"and BenRegID is : "+beneficiaryRegID); | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π οΈ Refactor suggestion Avoid duplicating identical logic in both branches - response1.setResponse(
- "Beneficiary successfully registered. Beneficiary ID is : " + beneficiaryID +"and BenRegID is : "+beneficiaryRegID);
+ response1.setResponse(msg); // reuse the previously constructed msgπ Committable suggestion
Suggested change
π€ Prompt for AI Agents |
||||||||
| } else { | ||||||||
| response1.setError(5000, "Error in registration; please contact administrator"); | ||||||||
| // log error that beneficiaryID generated but flow part is not | ||||||||
|
|
||||||||
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.
π οΈ Refactor suggestion
Consolidate and clean up response message construction
The same concatenation logic is duplicated and missing spaces around
"and". Consider building the message once (e.g., viaString.format) and reusing it to avoid duplication and improve readability.Proposed diff:
π Committable suggestion
π€ Prompt for AI Agents