Remove unwanted comments
This commit is contained in:
+1
-3
@@ -28,9 +28,7 @@ public class LoanChargeWaiveCannotBeReversedException extends AbstractPlatformDo
|
||||
ALREADY_PAID, ALREADY_WAIVED, LOAN_INACTIVE, WAIVE_NOT_ALLOWED_FOR_CHARGE, NOT_WAIVED, ALREADY_REVERSED;
|
||||
|
||||
public String errorMessage() {
|
||||
/**
|
||||
* TODO: Recheck the error messages
|
||||
*/
|
||||
|
||||
if (name().toString().equalsIgnoreCase("ALREADY_PAID")) {
|
||||
return "This loan charge has been completely paid";
|
||||
} else if (name().toString().equalsIgnoreCase("ALREADY_WAIVED")) {
|
||||
|
||||
+2
-10
@@ -256,21 +256,13 @@ public class LoanTransactionsApiResource {
|
||||
@Parameter(hidden = true) final String apiRequestBodyAsJson) {
|
||||
|
||||
final CommandWrapperBuilder builder = new CommandWrapperBuilder().withJson(apiRequestBodyAsJson);
|
||||
CommandProcessingResult result = null;
|
||||
|
||||
final CommandWrapper commandRequest = builder.adjustTransaction(loanId, transactionId).build();
|
||||
result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);
|
||||
|
||||
final CommandProcessingResult result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);
|
||||
|
||||
return this.toApiJsonSerializer.serialize(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: Add Swagger annotations.
|
||||
*
|
||||
* @param loanId
|
||||
* @param transactionId
|
||||
* @return
|
||||
*/
|
||||
@PUT
|
||||
@Path("{transactionId}")
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
|
||||
Reference in New Issue
Block a user