-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from nimble-platform/staging
Pull Request for Release MVP 17.0.4 / FMP 11.0.4
- Loading branch information
Showing
13 changed files
with
1,781 additions
and
1,299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
...ce/src/main/java/eu/nimble/core/infrastructure/identity/entity/CompanyDetailsUpdates.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
package eu.nimble.core.infrastructure.identity.entity; | ||
|
||
import eu.nimble.core.infrastructure.identity.config.NimbleConfigurationProperties; | ||
import eu.nimble.core.infrastructure.identity.entity.dto.Address; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Model to store updated fields of company details | ||
*/ | ||
public class CompanyDetailsUpdates { | ||
|
||
private Map<NimbleConfigurationProperties.LanguageID, String> brandName = null; | ||
|
||
private Map<NimbleConfigurationProperties.LanguageID, String> legalName = null; | ||
|
||
private String vatNumber = null; | ||
|
||
private String verificationInformation = null; | ||
|
||
private Address address = null; | ||
|
||
private String businessType = null; | ||
|
||
private Map<NimbleConfigurationProperties.LanguageID, String> businessKeywords = null; | ||
|
||
private Integer yearOfCompanyRegistration = null; | ||
|
||
private Map<NimbleConfigurationProperties.LanguageID, String> industrySectors = null; | ||
|
||
|
||
public CompanyDetailsUpdates() { | ||
} | ||
|
||
public Map<NimbleConfigurationProperties.LanguageID, String> getBrandName() { | ||
return brandName; | ||
} | ||
|
||
public void setBrandName(Map<NimbleConfigurationProperties.LanguageID, String> brandName) { | ||
this.brandName = brandName; | ||
} | ||
|
||
public Map<NimbleConfigurationProperties.LanguageID, String> getLegalName() { | ||
return legalName; | ||
} | ||
|
||
public void setLegalName(Map<NimbleConfigurationProperties.LanguageID, String> legalName) { | ||
this.legalName = legalName; | ||
} | ||
|
||
public String getVatNumber() { | ||
return vatNumber; | ||
} | ||
|
||
public void setVatNumber(String vatNumber) { | ||
this.vatNumber = vatNumber; | ||
} | ||
|
||
public String getVerificationInformation() { | ||
return verificationInformation; | ||
} | ||
|
||
public void setVerificationInformation(String verificationInformation) { | ||
this.verificationInformation = verificationInformation; | ||
} | ||
|
||
public Address getAddress() { | ||
return address; | ||
} | ||
|
||
public void setAddress(Address address) { | ||
this.address = address; | ||
} | ||
|
||
public String getBusinessType() { | ||
return businessType; | ||
} | ||
|
||
public void setBusinessType(String businessType) { | ||
this.businessType = businessType; | ||
} | ||
|
||
public Map<NimbleConfigurationProperties.LanguageID, String> getBusinessKeywords() { | ||
return businessKeywords; | ||
} | ||
|
||
public void setBusinessKeywords(Map<NimbleConfigurationProperties.LanguageID, String> businessKeywords) { | ||
this.businessKeywords = businessKeywords; | ||
} | ||
|
||
public Integer getYearOfCompanyRegistration() { | ||
return yearOfCompanyRegistration; | ||
} | ||
|
||
public void setYearOfCompanyRegistration(Integer yearOfCompanyRegistration) { | ||
this.yearOfCompanyRegistration = yearOfCompanyRegistration; | ||
} | ||
|
||
public Map<NimbleConfigurationProperties.LanguageID, String> getIndustrySectors() { | ||
return industrySectors; | ||
} | ||
|
||
public void setIndustrySectors(Map<NimbleConfigurationProperties.LanguageID, String> industrySectors) { | ||
this.industrySectors = industrySectors; | ||
} | ||
|
||
public boolean areCompanyDetailsUpdated() { | ||
return this.brandName != null || this.address != null || this.businessKeywords != null || this.businessType != null || this.industrySectors != null || | ||
this.legalName != null || this.vatNumber != null || this.verificationInformation != null || this.yearOfCompanyRegistration != null; | ||
} | ||
|
||
} |
222 changes: 121 additions & 101 deletions
222
...tity-service/src/main/java/eu/nimble/core/infrastructure/identity/entity/dto/Address.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,121 @@ | ||
package eu.nimble.core.infrastructure.identity.entity.dto; | ||
|
||
import io.swagger.annotations.ApiModelProperty; | ||
|
||
/** | ||
* Created by Johannes Innerbichler on 04/07/17. | ||
*/ | ||
public class Address { | ||
|
||
@ApiModelProperty(value = "Name of the street") | ||
private String streetName; | ||
@ApiModelProperty(value = "Number of the building") | ||
private String buildingNumber; | ||
@ApiModelProperty(value = "Name of the city") | ||
private String cityName; | ||
@ApiModelProperty(value = "Postal code of the city") | ||
private String postalCode; | ||
@ApiModelProperty(value = "Name of the country") | ||
private String country; | ||
@ApiModelProperty(value = "Name of the district") | ||
private String district; | ||
@ApiModelProperty(value = "Name of the region") | ||
private String region; | ||
|
||
public Address() { | ||
} | ||
|
||
public Address(String streetName, String buildingNumber, String cityName, String postalCode, String country) { | ||
this.streetName = streetName; | ||
this.buildingNumber = buildingNumber; | ||
this.cityName = cityName; | ||
this.postalCode = postalCode; | ||
this.country = country; | ||
} | ||
|
||
public Address(String streetName, String buildingNumber, String cityName, String postalCode, String country, String district, String region) { | ||
this.streetName = streetName; | ||
this.buildingNumber = buildingNumber; | ||
this.cityName = cityName; | ||
this.postalCode = postalCode; | ||
this.country = country; | ||
this.district = district; | ||
this.region = region; | ||
} | ||
|
||
public String getStreetName() { | ||
return streetName; | ||
} | ||
|
||
public void setStreetName(String streetName) { | ||
this.streetName = streetName; | ||
} | ||
|
||
public String getBuildingNumber() { | ||
return buildingNumber; | ||
} | ||
|
||
public void setBuildingNumber(String buildingNumber) { | ||
this.buildingNumber = buildingNumber; | ||
} | ||
|
||
public String getCityName() { | ||
return cityName; | ||
} | ||
|
||
public void setCityName(String cityName) { | ||
this.cityName = cityName; | ||
} | ||
|
||
public String getPostalCode() { | ||
return postalCode; | ||
} | ||
|
||
public void setPostalCode(String postalCode) { | ||
this.postalCode = postalCode; | ||
} | ||
|
||
public String getCountry() { | ||
return country; | ||
} | ||
|
||
public void setCountry(String country) { | ||
this.country = country; | ||
} | ||
|
||
public String getDistrict() { | ||
return district; | ||
} | ||
|
||
public void setDistrict(String district) { | ||
this.district = district; | ||
} | ||
|
||
public String getRegion() { | ||
return region; | ||
} | ||
|
||
public void setRegion(String region) { | ||
this.region = region; | ||
} | ||
} | ||
package eu.nimble.core.infrastructure.identity.entity.dto; | ||
|
||
import io.swagger.annotations.ApiModelProperty; | ||
|
||
import java.util.Objects; | ||
/** | ||
* Created by Johannes Innerbichler on 04/07/17. | ||
*/ | ||
public class Address { | ||
|
||
@ApiModelProperty(value = "Name of the street") | ||
private String streetName; | ||
@ApiModelProperty(value = "Number of the building") | ||
private String buildingNumber; | ||
@ApiModelProperty(value = "Name of the city") | ||
private String cityName; | ||
@ApiModelProperty(value = "Postal code of the city") | ||
private String postalCode; | ||
@ApiModelProperty(value = "Name of the country") | ||
private String country; | ||
@ApiModelProperty(value = "Name of the district") | ||
private String district; | ||
@ApiModelProperty(value = "Name of the region") | ||
private String region; | ||
|
||
public Address() { | ||
} | ||
|
||
public Address(String streetName, String buildingNumber, String cityName, String postalCode, String country) { | ||
this.streetName = streetName; | ||
this.buildingNumber = buildingNumber; | ||
this.cityName = cityName; | ||
this.postalCode = postalCode; | ||
this.country = country; | ||
} | ||
|
||
public Address(String streetName, String buildingNumber, String cityName, String postalCode, String country, String district, String region) { | ||
this.streetName = streetName; | ||
this.buildingNumber = buildingNumber; | ||
this.cityName = cityName; | ||
this.postalCode = postalCode; | ||
this.country = country; | ||
this.district = district; | ||
this.region = region; | ||
} | ||
|
||
public String getStreetName() { | ||
return streetName; | ||
} | ||
|
||
public void setStreetName(String streetName) { | ||
this.streetName = streetName; | ||
} | ||
|
||
public String getBuildingNumber() { | ||
return buildingNumber; | ||
} | ||
|
||
public void setBuildingNumber(String buildingNumber) { | ||
this.buildingNumber = buildingNumber; | ||
} | ||
|
||
public String getCityName() { | ||
return cityName; | ||
} | ||
|
||
public void setCityName(String cityName) { | ||
this.cityName = cityName; | ||
} | ||
|
||
public String getPostalCode() { | ||
return postalCode; | ||
} | ||
|
||
public void setPostalCode(String postalCode) { | ||
this.postalCode = postalCode; | ||
} | ||
|
||
public String getCountry() { | ||
return country; | ||
} | ||
|
||
public void setCountry(String country) { | ||
this.country = country; | ||
} | ||
|
||
public String getDistrict() { | ||
return district; | ||
} | ||
|
||
public void setDistrict(String district) { | ||
this.district = district; | ||
} | ||
|
||
public String getRegion() { | ||
return region; | ||
} | ||
|
||
public void setRegion(String region) { | ||
this.region = region; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
Address address = (Address) o; | ||
return Objects.equals(streetName, address.streetName) && | ||
Objects.equals(buildingNumber, address.buildingNumber) && | ||
Objects.equals(cityName, address.cityName) && | ||
Objects.equals(postalCode, address.postalCode) && | ||
Objects.equals(country, address.country) && | ||
Objects.equals(district, address.district) && | ||
Objects.equals(region, address.region); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(streetName, buildingNumber, cityName, postalCode, country, district, region); | ||
} | ||
} |
Oops, something went wrong.