etreschenkov 2026-05-26 16:40:41 +03:00
parent 1982731a0e
commit acedbcda92

View file

@ -38,7 +38,7 @@ public enum GatewayEksClientCodeValidationRule implements IValidationRule<ImdgVa
.filter(acc -> !StringUtils.hasText(acc.getAccount()) && StringUtils.hasText(acc.getEks_account()))
.toList();
for (MoneyAccountMsgRequest msg : validatedObject.getMoneyAccounts()) {
if (!StringUtils.hasText(msg.getAccount()) && StringUtils.hasText(msg.getEks_account())) {
if (!StringUtils.hasText(msg.getAccount()) && !StringUtils.hasText(msg.getEks_account())) {
return of(AccountError.RequiredFieldEmpty, "account+eks_account");
}
if (!msg.getStatus().equals("NEW")) {