tech.deepdreams.worker.api.dtos.CountryDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worker-api Show documentation
Show all versions of worker-api Show documentation
Payroll Worker API project for Java 17
package tech.deepdreams.worker.api.dtos;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* CountryDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-14T12:54:23.701675700-04:00[America/Toronto]")
public class CountryDTO {
@JsonProperty("id")
private Long id;
@JsonProperty("code")
private String code;
@JsonProperty("label")
private String label;
@JsonProperty("phoneCode")
private Integer phoneCode;
@JsonProperty("ageOfMajority")
private Integer ageOfMajority;
@JsonProperty("minimumSalary")
private BigDecimal minimumSalary;
@JsonProperty("currency")
private String currency;
@JsonProperty("timeZone")
private String timeZone;
@JsonProperty("phoneNumberFormat")
private String phoneNumberFormat;
@JsonProperty("phoneNumberExample")
private String phoneNumberExample;
@JsonProperty("bankAccountFormat")
private String bankAccountFormat;
@JsonProperty("bankAccountExample")
private String bankAccountExample;
@JsonProperty("socialSecurityNumberFormat")
private String socialSecurityNumberFormat;
@JsonProperty("socialSecurityNumberExample")
private String socialSecurityNumberExample;
@JsonProperty("subscriberSocialRegistrationNumberFormat")
private String subscriberSocialRegistrationNumberFormat;
@JsonProperty("subscriberSocialRegistrationNumberExample")
private String subscriberSocialRegistrationNumberExample;
public CountryDTO id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
*/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public CountryDTO code(String code) {
this.code = code;
return this;
}
/**
* Get code
* @return code
*/
@ApiModelProperty(value = "")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public CountryDTO label(String label) {
this.label = label;
return this;
}
/**
* Get label
* @return label
*/
@ApiModelProperty(value = "")
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public CountryDTO phoneCode(Integer phoneCode) {
this.phoneCode = phoneCode;
return this;
}
/**
* Get phoneCode
* @return phoneCode
*/
@ApiModelProperty(value = "")
public Integer getPhoneCode() {
return phoneCode;
}
public void setPhoneCode(Integer phoneCode) {
this.phoneCode = phoneCode;
}
public CountryDTO ageOfMajority(Integer ageOfMajority) {
this.ageOfMajority = ageOfMajority;
return this;
}
/**
* Get ageOfMajority
* @return ageOfMajority
*/
@ApiModelProperty(value = "")
public Integer getAgeOfMajority() {
return ageOfMajority;
}
public void setAgeOfMajority(Integer ageOfMajority) {
this.ageOfMajority = ageOfMajority;
}
public CountryDTO minimumSalary(BigDecimal minimumSalary) {
this.minimumSalary = minimumSalary;
return this;
}
/**
* Get minimumSalary
* @return minimumSalary
*/
@ApiModelProperty(value = "")
public BigDecimal getMinimumSalary() {
return minimumSalary;
}
public void setMinimumSalary(BigDecimal minimumSalary) {
this.minimumSalary = minimumSalary;
}
public CountryDTO currency(String currency) {
this.currency = currency;
return this;
}
/**
* Get currency
* @return currency
*/
@ApiModelProperty(value = "")
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public CountryDTO timeZone(String timeZone) {
this.timeZone = timeZone;
return this;
}
/**
* Get timeZone
* @return timeZone
*/
@ApiModelProperty(value = "")
public String getTimeZone() {
return timeZone;
}
public void setTimeZone(String timeZone) {
this.timeZone = timeZone;
}
public CountryDTO phoneNumberFormat(String phoneNumberFormat) {
this.phoneNumberFormat = phoneNumberFormat;
return this;
}
/**
* Get phoneNumberFormat
* @return phoneNumberFormat
*/
@ApiModelProperty(value = "")
public String getPhoneNumberFormat() {
return phoneNumberFormat;
}
public void setPhoneNumberFormat(String phoneNumberFormat) {
this.phoneNumberFormat = phoneNumberFormat;
}
public CountryDTO phoneNumberExample(String phoneNumberExample) {
this.phoneNumberExample = phoneNumberExample;
return this;
}
/**
* Get phoneNumberExample
* @return phoneNumberExample
*/
@ApiModelProperty(value = "")
public String getPhoneNumberExample() {
return phoneNumberExample;
}
public void setPhoneNumberExample(String phoneNumberExample) {
this.phoneNumberExample = phoneNumberExample;
}
public CountryDTO bankAccountFormat(String bankAccountFormat) {
this.bankAccountFormat = bankAccountFormat;
return this;
}
/**
* Get bankAccountFormat
* @return bankAccountFormat
*/
@ApiModelProperty(value = "")
public String getBankAccountFormat() {
return bankAccountFormat;
}
public void setBankAccountFormat(String bankAccountFormat) {
this.bankAccountFormat = bankAccountFormat;
}
public CountryDTO bankAccountExample(String bankAccountExample) {
this.bankAccountExample = bankAccountExample;
return this;
}
/**
* Get bankAccountExample
* @return bankAccountExample
*/
@ApiModelProperty(value = "")
public String getBankAccountExample() {
return bankAccountExample;
}
public void setBankAccountExample(String bankAccountExample) {
this.bankAccountExample = bankAccountExample;
}
public CountryDTO socialSecurityNumberFormat(String socialSecurityNumberFormat) {
this.socialSecurityNumberFormat = socialSecurityNumberFormat;
return this;
}
/**
* Get socialSecurityNumberFormat
* @return socialSecurityNumberFormat
*/
@ApiModelProperty(value = "")
public String getSocialSecurityNumberFormat() {
return socialSecurityNumberFormat;
}
public void setSocialSecurityNumberFormat(String socialSecurityNumberFormat) {
this.socialSecurityNumberFormat = socialSecurityNumberFormat;
}
public CountryDTO socialSecurityNumberExample(String socialSecurityNumberExample) {
this.socialSecurityNumberExample = socialSecurityNumberExample;
return this;
}
/**
* Get socialSecurityNumberExample
* @return socialSecurityNumberExample
*/
@ApiModelProperty(value = "")
public String getSocialSecurityNumberExample() {
return socialSecurityNumberExample;
}
public void setSocialSecurityNumberExample(String socialSecurityNumberExample) {
this.socialSecurityNumberExample = socialSecurityNumberExample;
}
public CountryDTO subscriberSocialRegistrationNumberFormat(String subscriberSocialRegistrationNumberFormat) {
this.subscriberSocialRegistrationNumberFormat = subscriberSocialRegistrationNumberFormat;
return this;
}
/**
* Get subscriberSocialRegistrationNumberFormat
* @return subscriberSocialRegistrationNumberFormat
*/
@ApiModelProperty(value = "")
public String getSubscriberSocialRegistrationNumberFormat() {
return subscriberSocialRegistrationNumberFormat;
}
public void setSubscriberSocialRegistrationNumberFormat(String subscriberSocialRegistrationNumberFormat) {
this.subscriberSocialRegistrationNumberFormat = subscriberSocialRegistrationNumberFormat;
}
public CountryDTO subscriberSocialRegistrationNumberExample(String subscriberSocialRegistrationNumberExample) {
this.subscriberSocialRegistrationNumberExample = subscriberSocialRegistrationNumberExample;
return this;
}
/**
* Get subscriberSocialRegistrationNumberExample
* @return subscriberSocialRegistrationNumberExample
*/
@ApiModelProperty(value = "")
public String getSubscriberSocialRegistrationNumberExample() {
return subscriberSocialRegistrationNumberExample;
}
public void setSubscriberSocialRegistrationNumberExample(String subscriberSocialRegistrationNumberExample) {
this.subscriberSocialRegistrationNumberExample = subscriberSocialRegistrationNumberExample;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CountryDTO country = (CountryDTO) o;
return Objects.equals(this.id, country.id) &&
Objects.equals(this.code, country.code) &&
Objects.equals(this.label, country.label) &&
Objects.equals(this.phoneCode, country.phoneCode) &&
Objects.equals(this.ageOfMajority, country.ageOfMajority) &&
Objects.equals(this.minimumSalary, country.minimumSalary) &&
Objects.equals(this.currency, country.currency) &&
Objects.equals(this.timeZone, country.timeZone) &&
Objects.equals(this.phoneNumberFormat, country.phoneNumberFormat) &&
Objects.equals(this.phoneNumberExample, country.phoneNumberExample) &&
Objects.equals(this.bankAccountFormat, country.bankAccountFormat) &&
Objects.equals(this.bankAccountExample, country.bankAccountExample) &&
Objects.equals(this.socialSecurityNumberFormat, country.socialSecurityNumberFormat) &&
Objects.equals(this.socialSecurityNumberExample, country.socialSecurityNumberExample) &&
Objects.equals(this.subscriberSocialRegistrationNumberFormat, country.subscriberSocialRegistrationNumberFormat) &&
Objects.equals(this.subscriberSocialRegistrationNumberExample, country.subscriberSocialRegistrationNumberExample);
}
@Override
public int hashCode() {
return Objects.hash(id, code, label, phoneCode, ageOfMajority, minimumSalary, currency, timeZone, phoneNumberFormat, phoneNumberExample, bankAccountFormat, bankAccountExample, socialSecurityNumberFormat, socialSecurityNumberExample, subscriberSocialRegistrationNumberFormat, subscriberSocialRegistrationNumberExample);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CountryDTO {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
sb.append(" phoneCode: ").append(toIndentedString(phoneCode)).append("\n");
sb.append(" ageOfMajority: ").append(toIndentedString(ageOfMajority)).append("\n");
sb.append(" minimumSalary: ").append(toIndentedString(minimumSalary)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n");
sb.append(" phoneNumberFormat: ").append(toIndentedString(phoneNumberFormat)).append("\n");
sb.append(" phoneNumberExample: ").append(toIndentedString(phoneNumberExample)).append("\n");
sb.append(" bankAccountFormat: ").append(toIndentedString(bankAccountFormat)).append("\n");
sb.append(" bankAccountExample: ").append(toIndentedString(bankAccountExample)).append("\n");
sb.append(" socialSecurityNumberFormat: ").append(toIndentedString(socialSecurityNumberFormat)).append("\n");
sb.append(" socialSecurityNumberExample: ").append(toIndentedString(socialSecurityNumberExample)).append("\n");
sb.append(" subscriberSocialRegistrationNumberFormat: ").append(toIndentedString(subscriberSocialRegistrationNumberFormat)).append("\n");
sb.append(" subscriberSocialRegistrationNumberExample: ").append(toIndentedString(subscriberSocialRegistrationNumberExample)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}