Applied validation for few fields in call

This commit is contained in:
nisha
2024-10-01 18:05:35 +05:30
parent f6de2a012e
commit 7bde0e91e7
4 changed files with 30 additions and 5 deletions

View File

@@ -30,9 +30,9 @@ public class CallValidatorServiceImpl {
.notNull(response.getAmountMax(), "amountMax")
.notNull(response.getThreshold(), "threshold")
.notNull(response.getEmail(),"email")
// .notNull(response.getAmountMin(),"amountMin")
// .notNull(response.getStartTime(),"startTime")
// .notNull(response.getEndTime(),"endTime")
.notNull(response.getAmountMin(),"amountMin")
.notNull(response.getStartTime(),"startTime")
.notNull(response.getEndTime(),"endTime")
.notNull(response.getDocumentationRequested(), "documentationRequested")
.notEmpty(response.getAimedTo(), "aimedTo")
.notEmpty(response.getCriteria(), "criteria")