This commit is contained in:
parent
306d20ce0d
commit
7a403cafa0
1 changed files with 12 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ public class CompanyInfoBackendGetFields {
|
|||
@JsonProperty
|
||||
@ApiModelProperty(value = "Дата регистрации")
|
||||
private LocalDate registrationDate;
|
||||
@JsonProperty
|
||||
@ApiModelProperty(value = "Код страны резидентства")
|
||||
private String residenceCode;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
|
|
@ -223,6 +226,14 @@ public class CompanyInfoBackendGetFields {
|
|||
this.registrationDate = registrationDate;
|
||||
}
|
||||
|
||||
public String getResidenceCode() {
|
||||
return residenceCode;
|
||||
}
|
||||
|
||||
public void setResidenceCode(String residenceCode) {
|
||||
this.residenceCode = residenceCode;
|
||||
}
|
||||
|
||||
public static CompanyInfoBackendGetFields fromEntity(Company company) {
|
||||
if (company == null || company.getProfile() == null) {
|
||||
return null;
|
||||
|
|
@ -242,6 +253,7 @@ public class CompanyInfoBackendGetFields {
|
|||
fields.setFullNameEng(info.getFullNameEng());
|
||||
fields.setTaxNumber(info.getTaxNumber());
|
||||
fields.setRegistrationDate(info.getRegistrationDate());
|
||||
fields.setResidenceCode(info.getResidenceCode());
|
||||
|
||||
fields.setShortName(company.getShortName());
|
||||
fields.setFullName(company.getFullName());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue