tech.deepdreams.worker.api.dtos.SubscriberDTO 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.time.LocalDate;
import tech.deepdreams.worker.api.dtos.BankDTO;
import tech.deepdreams.worker.api.dtos.BranchDTO;
import tech.deepdreams.worker.api.dtos.CountryDTO;
import tech.deepdreams.worker.api.dtos.LocalityDTO;
import tech.deepdreams.worker.api.dtos.OperatorDTO;
import tech.deepdreams.worker.api.dtos.StateDTO;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* SubscriberDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-27T12:27:26.661192300-04:00[America/Toronto]")
public class SubscriberDTO {
@JsonProperty("id")
private Long id;
@JsonProperty("lastName")
private String lastName;
@JsonProperty("firstName")
private String firstName;
@JsonProperty("label")
private String label;
@JsonProperty("socialRegistrationNumber")
private String socialRegistrationNumber;
@JsonProperty("taxPayerNumber")
private String taxPayerNumber;
@JsonProperty("creationDate")
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
private LocalDate creationDate;
@JsonProperty("branch")
private BranchDTO branch;
@JsonProperty("country")
private CountryDTO country;
@JsonProperty("state")
private StateDTO state;
@JsonProperty("locality")
private LocalityDTO locality;
@JsonProperty("bank")
private BankDTO bank;
@JsonProperty("bankAgencyCode")
private String bankAgencyCode;
@JsonProperty("bankAccountNumber")
private String bankAccountNumber;
@JsonProperty("bankAccountKey")
private String bankAccountKey;
@JsonProperty("codeSwift")
private String codeSwift;
@JsonProperty("ibanCountryCode")
private String ibanCountryCode;
@JsonProperty("ibanControlKey")
private String ibanControlKey;
@JsonProperty("operator")
private OperatorDTO operator;
@JsonProperty("momoNumber")
private String momoNumber;
@JsonProperty("phoneNumber")
private String phoneNumber;
@JsonProperty("emailAddress")
private String emailAddress;
@JsonProperty("secretId")
private String secretId;
@JsonProperty("status")
private String status;
public SubscriberDTO 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 SubscriberDTO lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* Get lastName
* @return lastName
*/
@ApiModelProperty(value = "")
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public SubscriberDTO firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* Get firstName
* @return firstName
*/
@ApiModelProperty(value = "")
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public SubscriberDTO 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 SubscriberDTO socialRegistrationNumber(String socialRegistrationNumber) {
this.socialRegistrationNumber = socialRegistrationNumber;
return this;
}
/**
* Get socialRegistrationNumber
* @return socialRegistrationNumber
*/
@ApiModelProperty(value = "")
public String getSocialRegistrationNumber() {
return socialRegistrationNumber;
}
public void setSocialRegistrationNumber(String socialRegistrationNumber) {
this.socialRegistrationNumber = socialRegistrationNumber;
}
public SubscriberDTO taxPayerNumber(String taxPayerNumber) {
this.taxPayerNumber = taxPayerNumber;
return this;
}
/**
* Get taxPayerNumber
* @return taxPayerNumber
*/
@ApiModelProperty(value = "")
public String getTaxPayerNumber() {
return taxPayerNumber;
}
public void setTaxPayerNumber(String taxPayerNumber) {
this.taxPayerNumber = taxPayerNumber;
}
public SubscriberDTO creationDate(LocalDate creationDate) {
this.creationDate = creationDate;
return this;
}
/**
* Get creationDate
* @return creationDate
*/
@ApiModelProperty(value = "")
public LocalDate getCreationDate() {
return creationDate;
}
public void setCreationDate(LocalDate creationDate) {
this.creationDate = creationDate;
}
public SubscriberDTO branch(BranchDTO branch) {
this.branch = branch;
return this;
}
/**
* Get branch
* @return branch
*/
@ApiModelProperty(value = "")
public BranchDTO getBranch() {
return branch;
}
public void setBranch(BranchDTO branch) {
this.branch = branch;
}
public SubscriberDTO country(CountryDTO country) {
this.country = country;
return this;
}
/**
* Get country
* @return country
*/
@ApiModelProperty(value = "")
public CountryDTO getCountry() {
return country;
}
public void setCountry(CountryDTO country) {
this.country = country;
}
public SubscriberDTO state(StateDTO state) {
this.state = state;
return this;
}
/**
* Get state
* @return state
*/
@ApiModelProperty(value = "")
public StateDTO getState() {
return state;
}
public void setState(StateDTO state) {
this.state = state;
}
public SubscriberDTO locality(LocalityDTO locality) {
this.locality = locality;
return this;
}
/**
* Get locality
* @return locality
*/
@ApiModelProperty(value = "")
public LocalityDTO getLocality() {
return locality;
}
public void setLocality(LocalityDTO locality) {
this.locality = locality;
}
public SubscriberDTO bank(BankDTO bank) {
this.bank = bank;
return this;
}
/**
* Get bank
* @return bank
*/
@ApiModelProperty(value = "")
public BankDTO getBank() {
return bank;
}
public void setBank(BankDTO bank) {
this.bank = bank;
}
public SubscriberDTO bankAgencyCode(String bankAgencyCode) {
this.bankAgencyCode = bankAgencyCode;
return this;
}
/**
* Get bankAgencyCode
* @return bankAgencyCode
*/
@ApiModelProperty(value = "")
public String getBankAgencyCode() {
return bankAgencyCode;
}
public void setBankAgencyCode(String bankAgencyCode) {
this.bankAgencyCode = bankAgencyCode;
}
public SubscriberDTO bankAccountNumber(String bankAccountNumber) {
this.bankAccountNumber = bankAccountNumber;
return this;
}
/**
* Get bankAccountNumber
* @return bankAccountNumber
*/
@ApiModelProperty(value = "")
public String getBankAccountNumber() {
return bankAccountNumber;
}
public void setBankAccountNumber(String bankAccountNumber) {
this.bankAccountNumber = bankAccountNumber;
}
public SubscriberDTO bankAccountKey(String bankAccountKey) {
this.bankAccountKey = bankAccountKey;
return this;
}
/**
* Get bankAccountKey
* @return bankAccountKey
*/
@ApiModelProperty(value = "")
public String getBankAccountKey() {
return bankAccountKey;
}
public void setBankAccountKey(String bankAccountKey) {
this.bankAccountKey = bankAccountKey;
}
public SubscriberDTO codeSwift(String codeSwift) {
this.codeSwift = codeSwift;
return this;
}
/**
* Get codeSwift
* @return codeSwift
*/
@ApiModelProperty(value = "")
public String getCodeSwift() {
return codeSwift;
}
public void setCodeSwift(String codeSwift) {
this.codeSwift = codeSwift;
}
public SubscriberDTO ibanCountryCode(String ibanCountryCode) {
this.ibanCountryCode = ibanCountryCode;
return this;
}
/**
* Get ibanCountryCode
* @return ibanCountryCode
*/
@ApiModelProperty(value = "")
public String getIbanCountryCode() {
return ibanCountryCode;
}
public void setIbanCountryCode(String ibanCountryCode) {
this.ibanCountryCode = ibanCountryCode;
}
public SubscriberDTO ibanControlKey(String ibanControlKey) {
this.ibanControlKey = ibanControlKey;
return this;
}
/**
* Get ibanControlKey
* @return ibanControlKey
*/
@ApiModelProperty(value = "")
public String getIbanControlKey() {
return ibanControlKey;
}
public void setIbanControlKey(String ibanControlKey) {
this.ibanControlKey = ibanControlKey;
}
public SubscriberDTO operator(OperatorDTO operator) {
this.operator = operator;
return this;
}
/**
* Get operator
* @return operator
*/
@ApiModelProperty(value = "")
public OperatorDTO getOperator() {
return operator;
}
public void setOperator(OperatorDTO operator) {
this.operator = operator;
}
public SubscriberDTO momoNumber(String momoNumber) {
this.momoNumber = momoNumber;
return this;
}
/**
* Get momoNumber
* @return momoNumber
*/
@ApiModelProperty(value = "")
public String getMomoNumber() {
return momoNumber;
}
public void setMomoNumber(String momoNumber) {
this.momoNumber = momoNumber;
}
public SubscriberDTO phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* Get phoneNumber
* @return phoneNumber
*/
@ApiModelProperty(value = "")
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public SubscriberDTO emailAddress(String emailAddress) {
this.emailAddress = emailAddress;
return this;
}
/**
* Get emailAddress
* @return emailAddress
*/
@ApiModelProperty(value = "")
public String getEmailAddress() {
return emailAddress;
}
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
public SubscriberDTO secretId(String secretId) {
this.secretId = secretId;
return this;
}
/**
* Get secretId
* @return secretId
*/
@ApiModelProperty(value = "")
public String getSecretId() {
return secretId;
}
public void setSecretId(String secretId) {
this.secretId = secretId;
}
public SubscriberDTO status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
*/
@ApiModelProperty(value = "")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SubscriberDTO subscriber = (SubscriberDTO) o;
return Objects.equals(this.id, subscriber.id) &&
Objects.equals(this.lastName, subscriber.lastName) &&
Objects.equals(this.firstName, subscriber.firstName) &&
Objects.equals(this.label, subscriber.label) &&
Objects.equals(this.socialRegistrationNumber, subscriber.socialRegistrationNumber) &&
Objects.equals(this.taxPayerNumber, subscriber.taxPayerNumber) &&
Objects.equals(this.creationDate, subscriber.creationDate) &&
Objects.equals(this.branch, subscriber.branch) &&
Objects.equals(this.country, subscriber.country) &&
Objects.equals(this.state, subscriber.state) &&
Objects.equals(this.locality, subscriber.locality) &&
Objects.equals(this.bank, subscriber.bank) &&
Objects.equals(this.bankAgencyCode, subscriber.bankAgencyCode) &&
Objects.equals(this.bankAccountNumber, subscriber.bankAccountNumber) &&
Objects.equals(this.bankAccountKey, subscriber.bankAccountKey) &&
Objects.equals(this.codeSwift, subscriber.codeSwift) &&
Objects.equals(this.ibanCountryCode, subscriber.ibanCountryCode) &&
Objects.equals(this.ibanControlKey, subscriber.ibanControlKey) &&
Objects.equals(this.operator, subscriber.operator) &&
Objects.equals(this.momoNumber, subscriber.momoNumber) &&
Objects.equals(this.phoneNumber, subscriber.phoneNumber) &&
Objects.equals(this.emailAddress, subscriber.emailAddress) &&
Objects.equals(this.secretId, subscriber.secretId) &&
Objects.equals(this.status, subscriber.status);
}
@Override
public int hashCode() {
return Objects.hash(id, lastName, firstName, label, socialRegistrationNumber, taxPayerNumber, creationDate, branch, country, state, locality, bank, bankAgencyCode, bankAccountNumber, bankAccountKey, codeSwift, ibanCountryCode, ibanControlKey, operator, momoNumber, phoneNumber, emailAddress, secretId, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubscriberDTO {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
sb.append(" socialRegistrationNumber: ").append(toIndentedString(socialRegistrationNumber)).append("\n");
sb.append(" taxPayerNumber: ").append(toIndentedString(taxPayerNumber)).append("\n");
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
sb.append(" branch: ").append(toIndentedString(branch)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" locality: ").append(toIndentedString(locality)).append("\n");
sb.append(" bank: ").append(toIndentedString(bank)).append("\n");
sb.append(" bankAgencyCode: ").append(toIndentedString(bankAgencyCode)).append("\n");
sb.append(" bankAccountNumber: ").append(toIndentedString(bankAccountNumber)).append("\n");
sb.append(" bankAccountKey: ").append(toIndentedString(bankAccountKey)).append("\n");
sb.append(" codeSwift: ").append(toIndentedString(codeSwift)).append("\n");
sb.append(" ibanCountryCode: ").append(toIndentedString(ibanCountryCode)).append("\n");
sb.append(" ibanControlKey: ").append(toIndentedString(ibanControlKey)).append("\n");
sb.append(" operator: ").append(toIndentedString(operator)).append("\n");
sb.append(" momoNumber: ").append(toIndentedString(momoNumber)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
sb.append(" secretId: ").append(toIndentedString(secretId)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}