backend-api BankAccountNewAction убрал проверку на RUB
This commit is contained in:
parent
5e11208758
commit
8e3b49220a
1 changed files with 0 additions and 18 deletions
|
|
@ -48,24 +48,6 @@ public class BankAccountNewAction implements IAction<BankAccountNewRequest> {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private Long companyId;
|
private Long companyId;
|
||||||
|
|
||||||
@Override
|
|
||||||
public Collection<EnumMessage> validate() {
|
|
||||||
List<EnumMessage> errors = new ArrayList<>();
|
|
||||||
if ("RUB".equalsIgnoreCase(this.currency) && !StringUtils.hasLength(correspondentAccount)) {
|
|
||||||
errors.add(new EnumMessage(BackEndError.ValidationError, "correspondentAccount"));
|
|
||||||
}
|
|
||||||
if ("RUB".equalsIgnoreCase(this.currency) && !StringUtils.hasLength(correspondentAccountName)) {
|
|
||||||
errors.add(new EnumMessage(BackEndError.ValidationError, "correspondentAccountName"));
|
|
||||||
}
|
|
||||||
if ("RUB".equalsIgnoreCase(this.currency) && !StringUtils.hasLength(taxpayerIdentificationNumber)) {
|
|
||||||
errors.add(new EnumMessage(BackEndError.ValidationError, "taxpayerIdentificationNumber"));
|
|
||||||
}
|
|
||||||
if ("RUB".equalsIgnoreCase(this.currency) && !StringUtils.hasLength(taxRegistrationReasonCode)) {
|
|
||||||
errors.add(new EnumMessage(BackEndError.ValidationError, "taxRegistrationReasonCode"));
|
|
||||||
}
|
|
||||||
return errors.isEmpty() ? Collections.emptyList() : errors;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BankAccountNewRequest toRequest() {
|
public BankAccountNewRequest toRequest() {
|
||||||
var req = new BankAccountNewRequest();
|
var req = new BankAccountNewRequest();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue