Skip to content

Commit

Permalink
fix/FBR-387
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianMuhimbura committed Nov 16, 2023
1 parent e1a7008 commit f3477c1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ public void validateForCreate(final String json) {
final JsonElement element = this.fromApiJsonHelper.parse(json);

final BigDecimal balance = this.fromApiJsonHelper.extractBigDecimalWithLocaleNamed(BlacklistApiConstants.balanceParamName, element);
baseDataValidator.reset().parameter(BlacklistApiConstants.balanceParamName).value(balance).notNull().positiveAmount();
baseDataValidator.reset().parameter(BlacklistApiConstants.balanceParamName).value(balance).notNull();

final BigDecimal disbursementAmount = this.fromApiJsonHelper
.extractBigDecimalWithLocaleNamed(BlacklistApiConstants.disbursementAmountParamName, element);
baseDataValidator.reset().parameter(BlacklistApiConstants.disbursementAmountParamName).value(disbursementAmount).notNull()
.positiveAmount();
baseDataValidator.reset().parameter(BlacklistApiConstants.disbursementAmountParamName).value(disbursementAmount).notNull();

final String dpi = this.fromApiJsonHelper.extractStringNamed(BlacklistApiConstants.dpiParamName, element);
baseDataValidator.reset().parameter(BlacklistApiConstants.dpiParamName).value(dpi).notBlank();
Expand Down

0 comments on commit f3477c1

Please sign in to comment.