All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.deepdreams.worker.api.dtos.BankDTO Maven / Gradle / Ivy

There is a newer version: 0.1.1-RELEASE
Show newest version
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 tech.deepdreams.worker.api.dtos.CountryDTO;
import org.openapitools.jackson.nullable.JsonNullable;

/**
 * BankDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-14T12:54:23.701675700-04:00[America/Toronto]")
public class BankDTO   {
  @JsonProperty("id")
  private Long id;

  @JsonProperty("code")
  private String code;

  @JsonProperty("label")
  private String label;

  @JsonProperty("codeSwift")
  private String codeSwift;

  @JsonProperty("country")
  private CountryDTO country;

  @JsonProperty("headquaters")
  private String headquaters;

  @JsonProperty("webSite")
  private String webSite;

  @JsonProperty("phoneNumber")
  private String phoneNumber;

  @JsonProperty("emailAddress")
  private String emailAddress;

  public BankDTO 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 BankDTO 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 BankDTO 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 BankDTO 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 BankDTO 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 BankDTO headquaters(String headquaters) {
    this.headquaters = headquaters;
    return this;
  }

  /**
   * Get headquaters
   * @return headquaters
  */
  @ApiModelProperty(value = "")
  public String getHeadquaters() {
    return headquaters;
  }

  public void setHeadquaters(String headquaters) {
    this.headquaters = headquaters;
  }

  public BankDTO webSite(String webSite) {
    this.webSite = webSite;
    return this;
  }

  /**
   * Get webSite
   * @return webSite
  */
  @ApiModelProperty(value = "")
  public String getWebSite() {
    return webSite;
  }

  public void setWebSite(String webSite) {
    this.webSite = webSite;
  }

  public BankDTO 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 BankDTO 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;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BankDTO bank = (BankDTO) o;
    return Objects.equals(this.id, bank.id) &&
        Objects.equals(this.code, bank.code) &&
        Objects.equals(this.label, bank.label) &&
        Objects.equals(this.codeSwift, bank.codeSwift) &&
        Objects.equals(this.country, bank.country) &&
        Objects.equals(this.headquaters, bank.headquaters) &&
        Objects.equals(this.webSite, bank.webSite) &&
        Objects.equals(this.phoneNumber, bank.phoneNumber) &&
        Objects.equals(this.emailAddress, bank.emailAddress);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, code, label, codeSwift, country, headquaters, webSite, phoneNumber, emailAddress);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BankDTO {\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("    codeSwift: ").append(toIndentedString(codeSwift)).append("\n");
    sb.append("    country: ").append(toIndentedString(country)).append("\n");
    sb.append("    headquaters: ").append(toIndentedString(headquaters)).append("\n");
    sb.append("    webSite: ").append(toIndentedString(webSite)).append("\n");
    sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
    sb.append("    emailAddress: ").append(toIndentedString(emailAddress)).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    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy