adamsaghy commented on code in PR #2614:
URL: https://github.com/apache/fineract/pull/2614#discussion_r984359654
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoanTransactionsApiResource.java:
##########
@@ -275,10 +275,17 @@ public String executeLoanTransaction(@PathParam("loanId")
@Parameter(description
@ApiResponse(responseCode = "200", description = "OK", content =
@Content(schema = @Schema(implementation =
LoanTransactionsApiResourceSwagger.PostLoansLoanIdTransactionsTransactionIdResponse.class)))
})
public String adjustLoanTransaction(@PathParam("loanId")
@Parameter(description = "loanId") final Long loanId,
@PathParam("transactionId") @Parameter(description =
"transactionId") final Long transactionId,
- @Parameter(hidden = true) final String apiRequestBodyAsJson) {
+ @Parameter(hidden = true) final String apiRequestBodyAsJson,
+ @QueryParam("command") @Parameter(description = "command") final
String commandParam) {
final CommandWrapperBuilder builder = new
CommandWrapperBuilder().withJson(apiRequestBodyAsJson);
- final CommandWrapper commandRequest =
builder.adjustTransaction(loanId, transactionId).build();
+
+ CommandWrapper commandRequest = null;
+ if (CommandParameterUtil.is(commandParam, "chargeback")) {
Review Comment:
Please extract "chargeback" into a static final variable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]