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

jp.co.freee.accounting.models.PartnerResponsePartnerPartnerBankAccountAttributes Maven / Gradle / Ivy

There is a newer version: 2.29.0
Show newest version
/*
 * freee API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package jp.co.freee.accounting.models;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.openapitools.jackson.nullable.JsonNullable;

/**
 * PartnerResponsePartnerPartnerBankAccountAttributes
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PartnerResponsePartnerPartnerBankAccountAttributes {
  public static final String SERIALIZED_NAME_ACCOUNT_NAME = "account_name";
  @SerializedName(SERIALIZED_NAME_ACCOUNT_NAME)
  private String accountName;

  public static final String SERIALIZED_NAME_ACCOUNT_NUMBER = "account_number";
  @SerializedName(SERIALIZED_NAME_ACCOUNT_NUMBER)
  private String accountNumber;

  /**
   * 口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)
   */
  @JsonAdapter(AccountTypeEnum.Adapter.class)
  public enum AccountTypeEnum {
    ORDINARY("ordinary"),
    
    CHECKING("checking"),
    
    EARMARKED("earmarked"),
    
    SAVINGS("savings"),
    
    OTHER("other");

    private String value;

    AccountTypeEnum(String value) {
      this.value = value;
    }

    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    public static AccountTypeEnum fromValue(String value) {
      for (AccountTypeEnum b : AccountTypeEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      return null;
    }

    public static class Adapter extends TypeAdapter {
      @Override
      public void write(final JsonWriter jsonWriter, final AccountTypeEnum enumeration) throws IOException {
        jsonWriter.value(enumeration.getValue());
      }

      @Override
      public AccountTypeEnum read(final JsonReader jsonReader) throws IOException {
        String value =  jsonReader.nextString();
        return AccountTypeEnum.fromValue(value);
      }
    }
  }

  public static final String SERIALIZED_NAME_ACCOUNT_TYPE = "account_type";
  @SerializedName(SERIALIZED_NAME_ACCOUNT_TYPE)
  private AccountTypeEnum accountType;

  public static final String SERIALIZED_NAME_BANK_CODE = "bank_code";
  @SerializedName(SERIALIZED_NAME_BANK_CODE)
  private String bankCode;

  public static final String SERIALIZED_NAME_BANK_NAME = "bank_name";
  @SerializedName(SERIALIZED_NAME_BANK_NAME)
  private String bankName;

  public static final String SERIALIZED_NAME_BANK_NAME_KANA = "bank_name_kana";
  @SerializedName(SERIALIZED_NAME_BANK_NAME_KANA)
  private String bankNameKana;

  public static final String SERIALIZED_NAME_BRANCH_CODE = "branch_code";
  @SerializedName(SERIALIZED_NAME_BRANCH_CODE)
  private String branchCode;

  public static final String SERIALIZED_NAME_BRANCH_KANA = "branch_kana";
  @SerializedName(SERIALIZED_NAME_BRANCH_KANA)
  private String branchKana;

  public static final String SERIALIZED_NAME_BRANCH_NAME = "branch_name";
  @SerializedName(SERIALIZED_NAME_BRANCH_NAME)
  private String branchName;

  public static final String SERIALIZED_NAME_LONG_ACCOUNT_NAME = "long_account_name";
  @SerializedName(SERIALIZED_NAME_LONG_ACCOUNT_NAME)
  private String longAccountName;

  public PartnerResponsePartnerPartnerBankAccountAttributes() { 
  }

  public PartnerResponsePartnerPartnerBankAccountAttributes accountName(String accountName) {
    
    this.accountName = accountName;
    return this;
  }

   /**
   * 受取人名(カナ)
   * @return accountName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "フリータロウ", value = "受取人名(カナ)")

  public String getAccountName() {
    return accountName;
  }


  public void setAccountName(String accountName) {
    this.accountName = accountName;
  }


  public PartnerResponsePartnerPartnerBankAccountAttributes accountNumber(String accountNumber) {
    
    this.accountNumber = accountNumber;
    return this;
  }

   /**
   * 口座番号
   * @return accountNumber
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "1010101", value = "口座番号")

  public String getAccountNumber() {
    return accountNumber;
  }


  public void setAccountNumber(String accountNumber) {
    this.accountNumber = accountNumber;
  }


  public PartnerResponsePartnerPartnerBankAccountAttributes accountType(AccountTypeEnum accountType) {
    
    this.accountType = accountType;
    return this;
  }

   /**
   * 口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)
   * @return accountType
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ordinary", value = "口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)")

  public AccountTypeEnum getAccountType() {
    return accountType;
  }


  public void setAccountType(AccountTypeEnum accountType) {
    this.accountType = accountType;
  }


  public PartnerResponsePartnerPartnerBankAccountAttributes bankCode(String bankCode) {
    
    this.bankCode = bankCode;
    return this;
  }

   /**
   * 銀行コード
   * @return bankCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "0001", value = "銀行コード")

  public String getBankCode() {
    return bankCode;
  }


  public void setBankCode(String bankCode) {
    this.bankCode = bankCode;
  }


  public PartnerResponsePartnerPartnerBankAccountAttributes bankName(String bankName) {
    
    this.bankName = bankName;
    return this;
  }

   /**
   * 銀行名
   * @return bankName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "freee銀行", value = "銀行名")

  public String getBankName() {
    return bankName;
  }


  public void setBankName(String bankName) {
    this.bankName = bankName;
  }


  public PartnerResponsePartnerPartnerBankAccountAttributes bankNameKana(String bankNameKana) {
    
    this.bankNameKana = bankNameKana;
    return this;
  }

   /**
   * 銀行名(カナ)
   * @return bankNameKana
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "フリーギンコウ", value = "銀行名(カナ)")

  public String getBankNameKana() {
    return bankNameKana;
  }


  public void setBankNameKana(String bankNameKana) {
    this.bankNameKana = bankNameKana;
  }


  public PartnerResponsePartnerPartnerBankAccountAttributes branchCode(String branchCode) {
    
    this.branchCode = branchCode;
    return this;
  }

   /**
   * 支店番号
   * @return branchCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "999", value = "支店番号")

  public String getBranchCode() {
    return branchCode;
  }


  public void setBranchCode(String branchCode) {
    this.branchCode = branchCode;
  }


  public PartnerResponsePartnerPartnerBankAccountAttributes branchKana(String branchKana) {
    
    this.branchKana = branchKana;
    return this;
  }

   /**
   * 支店名(カナ)
   * @return branchKana
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ギンザシテン", value = "支店名(カナ)")

  public String getBranchKana() {
    return branchKana;
  }


  public void setBranchKana(String branchKana) {
    this.branchKana = branchKana;
  }


  public PartnerResponsePartnerPartnerBankAccountAttributes branchName(String branchName) {
    
    this.branchName = branchName;
    return this;
  }

   /**
   * 支店名
   * @return branchName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "銀座支店", value = "支店名")

  public String getBranchName() {
    return branchName;
  }


  public void setBranchName(String branchName) {
    this.branchName = branchName;
  }


  public PartnerResponsePartnerPartnerBankAccountAttributes longAccountName(String longAccountName) {
    
    this.longAccountName = longAccountName;
    return this;
  }

   /**
   * 受取人名
   * @return longAccountName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "freee太郎", value = "受取人名")

  public String getLongAccountName() {
    return longAccountName;
  }


  public void setLongAccountName(String longAccountName) {
    this.longAccountName = longAccountName;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PartnerResponsePartnerPartnerBankAccountAttributes partnerResponsePartnerPartnerBankAccountAttributes = (PartnerResponsePartnerPartnerBankAccountAttributes) o;
    return Objects.equals(this.accountName, partnerResponsePartnerPartnerBankAccountAttributes.accountName) &&
        Objects.equals(this.accountNumber, partnerResponsePartnerPartnerBankAccountAttributes.accountNumber) &&
        Objects.equals(this.accountType, partnerResponsePartnerPartnerBankAccountAttributes.accountType) &&
        Objects.equals(this.bankCode, partnerResponsePartnerPartnerBankAccountAttributes.bankCode) &&
        Objects.equals(this.bankName, partnerResponsePartnerPartnerBankAccountAttributes.bankName) &&
        Objects.equals(this.bankNameKana, partnerResponsePartnerPartnerBankAccountAttributes.bankNameKana) &&
        Objects.equals(this.branchCode, partnerResponsePartnerPartnerBankAccountAttributes.branchCode) &&
        Objects.equals(this.branchKana, partnerResponsePartnerPartnerBankAccountAttributes.branchKana) &&
        Objects.equals(this.branchName, partnerResponsePartnerPartnerBankAccountAttributes.branchName) &&
        Objects.equals(this.longAccountName, partnerResponsePartnerPartnerBankAccountAttributes.longAccountName);
  }

  private static  boolean equalsNullable(JsonNullable a, JsonNullable b) {
    return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountName, accountNumber, accountType, bankCode, bankName, bankNameKana, branchCode, branchKana, branchName, longAccountName);
  }

  private static  int hashCodeNullable(JsonNullable a) {
    if (a == null) {
      return 1;
    }
    return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PartnerResponsePartnerPartnerBankAccountAttributes {\n");
    sb.append("    accountName: ").append(toIndentedString(accountName)).append("\n");
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
    sb.append("    accountType: ").append(toIndentedString(accountType)).append("\n");
    sb.append("    bankCode: ").append(toIndentedString(bankCode)).append("\n");
    sb.append("    bankName: ").append(toIndentedString(bankName)).append("\n");
    sb.append("    bankNameKana: ").append(toIndentedString(bankNameKana)).append("\n");
    sb.append("    branchCode: ").append(toIndentedString(branchCode)).append("\n");
    sb.append("    branchKana: ").append(toIndentedString(branchKana)).append("\n");
    sb.append("    branchName: ").append(toIndentedString(branchName)).append("\n");
    sb.append("    longAccountName: ").append(toIndentedString(longAccountName)).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