etreschenkov 2025-06-16 16:38:32 +03:00
parent 0170de8e73
commit 2ac98d9f39

View file

@ -71,37 +71,37 @@ public class BankAccountValidationConfig {
AccountError.RequiredFieldEmpty, AccountError.RequiredFieldEmpty,
AccountError.DictionaryNotFound, AccountError.DictionaryNotFound,
false), false),
ValidateSymbolsRule.required("bankIdentificationCode", ValidateSymbolsRule.required("БИК",
BankAccountNewRequest::getBankIdentificationCode, BankAccountNewRequest::getBankIdentificationCode,
AccountError.RequiredFieldEmpty, AccountError.RequiredFieldEmpty,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.required("bankName", ValidateSymbolsRule.required("Наименование компании",
BankAccountNewRequest::getBankName, BankAccountNewRequest::getBankName,
AccountError.RequiredFieldEmpty, AccountError.RequiredFieldEmpty,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("correspondentAccount", ValidateSymbolsRule.notRequired("Корр. счет",
BankAccountNewRequest::getCorrespondentAccount, BankAccountNewRequest::getCorrespondentAccount,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("correspondentAccountName", ValidateSymbolsRule.notRequired("Наименование корр. счета",
BankAccountNewRequest::getCorrespondentAccountName, BankAccountNewRequest::getCorrespondentAccountName,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("destination", ValidateSymbolsRule.notRequired("Назначение платежа",
BankAccountNewRequest::getDestination, BankAccountNewRequest::getDestination,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.required("account", ValidateSymbolsRule.required("Счет",
BankAccountNewRequest::getAccount, BankAccountNewRequest::getAccount,
AccountError.RequiredFieldEmpty, AccountError.RequiredFieldEmpty,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("taxpayerIdentificationNumber", ValidateSymbolsRule.notRequired("ИНН",
BankAccountNewRequest::getTaxpayerIdentificationNumber, BankAccountNewRequest::getTaxpayerIdentificationNumber,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("taxRegistrationReasonCode", ValidateSymbolsRule.notRequired("КПП",
BankAccountNewRequest::getTaxRegistrationReasonCode, BankAccountNewRequest::getTaxRegistrationReasonCode,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("swiftCode", ValidateSymbolsRule.notRequired("SWIFT",
BankAccountNewRequest::getSwiftCode, BankAccountNewRequest::getSwiftCode,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("intermediarySwiftCode", ValidateSymbolsRule.notRequired("SWIFT посредника",
BankAccountNewRequest::getIntermediarySwiftCode, BankAccountNewRequest::getIntermediarySwiftCode,
AccountError.BadSymbol) AccountError.BadSymbol)
); );
@ -145,34 +145,34 @@ public class BankAccountValidationConfig {
AccountError.RequiredFieldEmpty, AccountError.RequiredFieldEmpty,
AccountError.DictionaryNotFound, AccountError.DictionaryNotFound,
false), false),
ValidateSymbolsRule.notRequired("bankIdentificationCode", ValidateSymbolsRule.notRequired("БИК",
BankAccountUpdateRequest::getBankIdentificationCode, BankAccountUpdateRequest::getBankIdentificationCode,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("bankName", ValidateSymbolsRule.notRequired("Наименование компании",
BankAccountUpdateRequest::getBankName, BankAccountUpdateRequest::getBankName,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("correspondentAccount", ValidateSymbolsRule.notRequired("Корр. счет",
BankAccountUpdateRequest::getCorrespondentAccount, BankAccountUpdateRequest::getCorrespondentAccount,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("correspondentAccountName", ValidateSymbolsRule.notRequired("Наименование корр. счета",
BankAccountUpdateRequest::getCorrespondentAccountName, BankAccountUpdateRequest::getCorrespondentAccountName,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("destination", ValidateSymbolsRule.notRequired("Назначение платежа",
BankAccountUpdateRequest::getDestination, BankAccountUpdateRequest::getDestination,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("account", ValidateSymbolsRule.notRequired("Счет",
BankAccountUpdateRequest::getAccount, BankAccountUpdateRequest::getAccount,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("taxpayerIdentificationNumber", ValidateSymbolsRule.notRequired("ИНН",
BankAccountUpdateRequest::getTaxpayerIdentificationNumber, BankAccountUpdateRequest::getTaxpayerIdentificationNumber,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("taxRegistrationReasonCode", ValidateSymbolsRule.notRequired("КПП",
BankAccountUpdateRequest::getTaxRegistrationReasonCode, BankAccountUpdateRequest::getTaxRegistrationReasonCode,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("swiftCode", ValidateSymbolsRule.notRequired("SWIFT",
BankAccountUpdateRequest::getSwiftCode, BankAccountUpdateRequest::getSwiftCode,
AccountError.BadSymbol), AccountError.BadSymbol),
ValidateSymbolsRule.notRequired("intermediarySwiftCode", ValidateSymbolsRule.notRequired("SWIFT посредника",
BankAccountUpdateRequest::getIntermediarySwiftCode, BankAccountUpdateRequest::getIntermediarySwiftCode,
AccountError.BadSymbol) AccountError.BadSymbol)
); );