account-service Валидаторrы...

This commit is contained in:
AKurakin 2023-05-27 19:04:05 +03:00
parent 4b25a6d1e9
commit ebe8bbb13f

View file

@ -53,8 +53,7 @@ public class BankAccountValidationConfig {
Company.class,
AccountError.RequiredFieldEmpty,
AccountError.CompanyNotFound,
false,
company -> WorkflowStatus.Active.equalsByKey(company.getWorkflowStatus()) ? null : AccountError.CompanyNotActive),
false),
FieldRequiredRule.instance("account",
BankAccountNewRequest::getAccount,
AccountError.RequiredFieldEmpty,