account-service Валидаторrы...
This commit is contained in:
parent
4b25a6d1e9
commit
ebe8bbb13f
1 changed files with 1 additions and 2 deletions
|
|
@ -53,8 +53,7 @@ public class BankAccountValidationConfig {
|
||||||
Company.class,
|
Company.class,
|
||||||
AccountError.RequiredFieldEmpty,
|
AccountError.RequiredFieldEmpty,
|
||||||
AccountError.CompanyNotFound,
|
AccountError.CompanyNotFound,
|
||||||
false,
|
false),
|
||||||
company -> WorkflowStatus.Active.equalsByKey(company.getWorkflowStatus()) ? null : AccountError.CompanyNotActive),
|
|
||||||
FieldRequiredRule.instance("account",
|
FieldRequiredRule.instance("account",
|
||||||
BankAccountNewRequest::getAccount,
|
BankAccountNewRequest::getAccount,
|
||||||
AccountError.RequiredFieldEmpty,
|
AccountError.RequiredFieldEmpty,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue