FINERACT-1724: Loan product delinquency bucket should not be mandatory

This commit is contained in:
Jose Alberto Hernandez
2023-12-14 14:39:00 +01:00
committed by Adam Saghy
parent 6526e101a1
commit 4e877451c3
2 changed files with 44 additions and 2 deletions
@@ -343,8 +343,8 @@ public final class LoanProductDataValidator {
if (this.fromApiJsonHelper.parameterExists(LoanProductConstants.DELINQUENCY_BUCKET_PARAM_NAME, element)) {
final Long delinquencyBucketId = this.fromApiJsonHelper.extractLongNamed(LoanProductConstants.DELINQUENCY_BUCKET_PARAM_NAME,
element);
baseDataValidator.reset().parameter(LoanProductConstants.DELINQUENCY_BUCKET_PARAM_NAME).value(delinquencyBucketId).notNull()
.integerGreaterThanZero();
baseDataValidator.reset().parameter(LoanProductConstants.DELINQUENCY_BUCKET_PARAM_NAME).value(delinquencyBucketId)
.ignoreIfNull().integerGreaterThanZero();
}
// grace validation