josehernandezfintecheandomx commented on code in PR #2687:
URL: https://github.com/apache/fineract/pull/2687#discussion_r1001094706


##########
fineract-provider/src/main/java/org/apache/fineract/commands/service/CommandWrapperBuilder.java:
##########
@@ -994,6 +994,15 @@ public CommandWrapperBuilder updateLoanApplication(final 
Long loanId) {
         return this;
     }
 
+    public CommandWrapperBuilder markAsFraud(final Long loanId) {
+        this.actionName = "SETFRAUD";
+        this.entityName = "LOAN";
+        this.entityId = loanId;
+        this.loanId = loanId;
+        this.href = "/loans/" + loanId + "/flags";

Review Comment:
   done



##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoanApiConstants.java:
##########
@@ -161,7 +161,12 @@ public interface LoanApiConstants {
 
     String TRANSACTION_AMOUNT_PARAMNAME = "transactionAmount";
     String PAYMENT_TYPE_PARAMNAME = "paymentTypeId";
+    String FRAUD_FLAG_NAME = "fraud";
 
     // Commands
     String CHARGEBACK_TRANSACTION_COMMAND = "chargeback";
+    String MARK_AS_FRAUD_COMMAND = "markAsFraud";
+
+    // Data Validator names
+    String LOAN_FLAGS_DATAVALIDATOR_PREFIX = "loans.flags";

Review Comment:
   done



-- 
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]

Reply via email to