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

com.alipay.v3.model.UserInvoiceInfoOpenApiResponse Maven / Gradle / Ivy

There is a newer version: 3.1.6.ALL
Show newest version
/*
 * 支付宝开放平台API
 * 支付宝开放平台v3协议文档
 *
 * The version of the OpenAPI document: 2024-01-12
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.alipay.v3.model;

import java.util.Objects;
import java.util.Arrays;
import com.alipay.v3.model.UserMailInfoVO;
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 java.util.ArrayList;
import java.util.List;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

import com.alipay.v3.JSON;

/**
 * UserInvoiceInfoOpenApiResponse
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UserInvoiceInfoOpenApiResponse {
  public static final String SERIALIZED_NAME_ACCEPT_ELECTRONIC = "accept_electronic";
  @SerializedName(SERIALIZED_NAME_ACCEPT_ELECTRONIC)
  private Boolean acceptElectronic;

  public static final String SERIALIZED_NAME_ADDRESS = "address";
  @SerializedName(SERIALIZED_NAME_ADDRESS)
  private String address;

  public static final String SERIALIZED_NAME_AUTO = "auto";
  @SerializedName(SERIALIZED_NAME_AUTO)
  private Boolean auto;

  public static final String SERIALIZED_NAME_BANK_ACCOUNT = "bank_account";
  @SerializedName(SERIALIZED_NAME_BANK_ACCOUNT)
  private String bankAccount;

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

  public static final String SERIALIZED_NAME_BUSINESS_LICENCE_URL = "business_licence_url";
  @SerializedName(SERIALIZED_NAME_BUSINESS_LICENCE_URL)
  private String businessLicenceUrl;

  public static final String SERIALIZED_NAME_CREATOR = "creator";
  @SerializedName(SERIALIZED_NAME_CREATOR)
  private String creator;

  public static final String SERIALIZED_NAME_GMT_CREATE = "gmt_create";
  @SerializedName(SERIALIZED_NAME_GMT_CREATE)
  private String gmtCreate;

  public static final String SERIALIZED_NAME_GMT_MODIFIED = "gmt_modified";
  @SerializedName(SERIALIZED_NAME_GMT_MODIFIED)
  private String gmtModified;

  public static final String SERIALIZED_NAME_HOLD = "hold";
  @SerializedName(SERIALIZED_NAME_HOLD)
  private Boolean hold;

  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public static final String SERIALIZED_NAME_IP_ID = "ip_id";
  @SerializedName(SERIALIZED_NAME_IP_ID)
  private String ipId;

  public static final String SERIALIZED_NAME_LAST_MODIFIER = "last_modifier";
  @SerializedName(SERIALIZED_NAME_LAST_MODIFIER)
  private String lastModifier;

  public static final String SERIALIZED_NAME_OPEN_ACCOUNT_PERMIT_URL = "open_account_permit_url";
  @SerializedName(SERIALIZED_NAME_OPEN_ACCOUNT_PERMIT_URL)
  private String openAccountPermitUrl;

  public static final String SERIALIZED_NAME_OTHER_QUALIFICATION_URL = "other_qualification_url";
  @SerializedName(SERIALIZED_NAME_OTHER_QUALIFICATION_URL)
  private String otherQualificationUrl;

  public static final String SERIALIZED_NAME_STATUS = "status";
  @SerializedName(SERIALIZED_NAME_STATUS)
  private String status;

  public static final String SERIALIZED_NAME_TASK_DATE = "task_date";
  @SerializedName(SERIALIZED_NAME_TASK_DATE)
  private String taskDate;

  public static final String SERIALIZED_NAME_TAX_NO = "tax_no";
  @SerializedName(SERIALIZED_NAME_TAX_NO)
  private String taxNo;

  public static final String SERIALIZED_NAME_TAX_PAYER_QUALIFICATION = "tax_payer_qualification";
  @SerializedName(SERIALIZED_NAME_TAX_PAYER_QUALIFICATION)
  private String taxPayerQualification;

  public static final String SERIALIZED_NAME_TAX_QUALIFICATION_URL = "tax_qualification_url";
  @SerializedName(SERIALIZED_NAME_TAX_QUALIFICATION_URL)
  private String taxQualificationUrl;

  public static final String SERIALIZED_NAME_TAX_REG_CERT_URL = "tax_reg_cert_url";
  @SerializedName(SERIALIZED_NAME_TAX_REG_CERT_URL)
  private String taxRegCertUrl;

  public static final String SERIALIZED_NAME_TAXPAYER_QUALI_VALID = "taxpayer_quali_valid";
  @SerializedName(SERIALIZED_NAME_TAXPAYER_QUALI_VALID)
  private String taxpayerQualiValid;

  public static final String SERIALIZED_NAME_TELEPHONE = "telephone";
  @SerializedName(SERIALIZED_NAME_TELEPHONE)
  private String telephone;

  public static final String SERIALIZED_NAME_TITLE = "title";
  @SerializedName(SERIALIZED_NAME_TITLE)
  private String title;

  public static final String SERIALIZED_NAME_TNT_INST_ID = "tnt_inst_id";
  @SerializedName(SERIALIZED_NAME_TNT_INST_ID)
  private String tntInstId;

  public static final String SERIALIZED_NAME_TYPE = "type";
  @SerializedName(SERIALIZED_NAME_TYPE)
  private String type;

  public static final String SERIALIZED_NAME_USER_MAIL_INFO_LIST = "user_mail_info_list";
  @SerializedName(SERIALIZED_NAME_USER_MAIL_INFO_LIST)
  private List userMailInfoList = null;

  public UserInvoiceInfoOpenApiResponse() { 
  }

  public UserInvoiceInfoOpenApiResponse acceptElectronic(Boolean acceptElectronic) {
    
    this.acceptElectronic = acceptElectronic;
    return this;
  }

   /**
   * (AR开票使用)是否接受电子票 true:是,false:否
   * @return acceptElectronic
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "true", value = "(AR开票使用)是否接受电子票 true:是,false:否")

  public Boolean getAcceptElectronic() {
    return acceptElectronic;
  }


  public void setAcceptElectronic(Boolean acceptElectronic) {
    this.acceptElectronic = acceptElectronic;
  }


  public UserInvoiceInfoOpenApiResponse address(String address) {
    
    this.address = address;
    return this;
  }

   /**
   * 公司注册地址
   * @return address
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "广州市增城区新塘镇沿江大道20号1601房", value = "公司注册地址")

  public String getAddress() {
    return address;
  }


  public void setAddress(String address) {
    this.address = address;
  }


  public UserInvoiceInfoOpenApiResponse auto(Boolean auto) {
    
    this.auto = auto;
    return this;
  }

   /**
   * (AR开票使用)是否自动申请开票 true:是,false:否
   * @return auto
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "true", value = "(AR开票使用)是否自动申请开票 true:是,false:否")

  public Boolean getAuto() {
    return auto;
  }


  public void setAuto(Boolean auto) {
    this.auto = auto;
  }


  public UserInvoiceInfoOpenApiResponse bankAccount(String bankAccount) {
    
    this.bankAccount = bankAccount;
    return this;
  }

   /**
   * 银行账户
   * @return bankAccount
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "3602201309100137669", value = "银行账户")

  public String getBankAccount() {
    return bankAccount;
  }


  public void setBankAccount(String bankAccount) {
    this.bankAccount = bankAccount;
  }


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

   /**
   * 开户行
   * @return bankName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "中国工商银行广州市第二支行", value = "开户行")

  public String getBankName() {
    return bankName;
  }


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


  public UserInvoiceInfoOpenApiResponse businessLicenceUrl(String businessLicenceUrl) {
    
    this.businessLicenceUrl = businessLicenceUrl;
    return this;
  }

   /**
   * 营业执照地址
   * @return businessLicenceUrl
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "gfcenter/inv/userinvoicefile/aruserprofilepic_2088721075211978_15133031297372951.jpg", value = "营业执照地址")

  public String getBusinessLicenceUrl() {
    return businessLicenceUrl;
  }


  public void setBusinessLicenceUrl(String businessLicenceUrl) {
    this.businessLicenceUrl = businessLicenceUrl;
  }


  public UserInvoiceInfoOpenApiResponse creator(String creator) {
    
    this.creator = creator;
    return this;
  }

   /**
   * 资料创建人
   * @return creator
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "李某某", value = "资料创建人")

  public String getCreator() {
    return creator;
  }


  public void setCreator(String creator) {
    this.creator = creator;
  }


  public UserInvoiceInfoOpenApiResponse gmtCreate(String gmtCreate) {
    
    this.gmtCreate = gmtCreate;
    return this;
  }

   /**
   * 创建时间
   * @return gmtCreate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "1533039333744", value = "创建时间")

  public String getGmtCreate() {
    return gmtCreate;
  }


  public void setGmtCreate(String gmtCreate) {
    this.gmtCreate = gmtCreate;
  }


  public UserInvoiceInfoOpenApiResponse gmtModified(String gmtModified) {
    
    this.gmtModified = gmtModified;
    return this;
  }

   /**
   * 修改时间
   * @return gmtModified
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "1533039333744", value = "修改时间")

  public String getGmtModified() {
    return gmtModified;
  }


  public void setGmtModified(String gmtModified) {
    this.gmtModified = gmtModified;
  }


  public UserInvoiceInfoOpenApiResponse hold(Boolean hold) {
    
    this.hold = hold;
    return this;
  }

   /**
   * (AR开票使用)是否暂停开票  true:暂停开票,false:可开票
   * @return hold
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "true", value = "(AR开票使用)是否暂停开票  true:暂停开票,false:可开票")

  public Boolean getHold() {
    return hold;
  }


  public void setHold(Boolean hold) {
    this.hold = hold;
  }


  public UserInvoiceInfoOpenApiResponse id(String id) {
    
    this.id = id;
    return this;
  }

   /**
   * 开票资料ID
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2017061410122000544800280000000001", value = "开票资料ID")

  public String getId() {
    return id;
  }


  public void setId(String id) {
    this.id = id;
  }


  public UserInvoiceInfoOpenApiResponse ipId(String ipId) {
    
    this.ipId = ipId;
    return this;
  }

   /**
   * 商户PID,  type=01时表示OU用户,填充的是InstId机构代码,例如Z50,  type=02时表示商户MID,  type=03时表示商户PID
   * @return ipId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "10000004", value = "商户PID,  type=01时表示OU用户,填充的是InstId机构代码,例如Z50,  type=02时表示商户MID,  type=03时表示商户PID")

  public String getIpId() {
    return ipId;
  }


  public void setIpId(String ipId) {
    this.ipId = ipId;
  }


  public UserInvoiceInfoOpenApiResponse lastModifier(String lastModifier) {
    
    this.lastModifier = lastModifier;
    return this;
  }

   /**
   * 最后修改人
   * @return lastModifier
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "李某某", value = "最后修改人")

  public String getLastModifier() {
    return lastModifier;
  }


  public void setLastModifier(String lastModifier) {
    this.lastModifier = lastModifier;
  }


  public UserInvoiceInfoOpenApiResponse openAccountPermitUrl(String openAccountPermitUrl) {
    
    this.openAccountPermitUrl = openAccountPermitUrl;
    return this;
  }

   /**
   * 银行开户许可证地址
   * @return openAccountPermitUrl
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "gfcenter/inv/userinvoicefile/aruserprofilepic_2088721075211978_15133031297372951.jpg", value = "银行开户许可证地址")

  public String getOpenAccountPermitUrl() {
    return openAccountPermitUrl;
  }


  public void setOpenAccountPermitUrl(String openAccountPermitUrl) {
    this.openAccountPermitUrl = openAccountPermitUrl;
  }


  public UserInvoiceInfoOpenApiResponse otherQualificationUrl(String otherQualificationUrl) {
    
    this.otherQualificationUrl = otherQualificationUrl;
    return this;
  }

   /**
   * 其它资质证明地址
   * @return otherQualificationUrl
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "gfcenter/inv/userinvoicefile/aruserprofilepic_2088721075211978_15133031297372951.jpg", value = "其它资质证明地址")

  public String getOtherQualificationUrl() {
    return otherQualificationUrl;
  }


  public void setOtherQualificationUrl(String otherQualificationUrl) {
    this.otherQualificationUrl = otherQualificationUrl;
  }


  public UserInvoiceInfoOpenApiResponse status(String status) {
    
    this.status = status;
    return this;
  }

   /**
   * 资料状态,01:待审,02:已审(有效), 03:已作废
   * @return status
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "02", value = "资料状态,01:待审,02:已审(有效), 03:已作废")

  public String getStatus() {
    return status;
  }


  public void setStatus(String status) {
    this.status = status;
  }


  public UserInvoiceInfoOpenApiResponse taskDate(String taskDate) {
    
    this.taskDate = taskDate;
    return this;
  }

   /**
   * 上一次任务执行时间(针对自动开票场景),格式:YYYYMMDD
   * @return taskDate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "20180723", value = "上一次任务执行时间(针对自动开票场景),格式:YYYYMMDD")

  public String getTaskDate() {
    return taskDate;
  }


  public void setTaskDate(String taskDate) {
    this.taskDate = taskDate;
  }


  public UserInvoiceInfoOpenApiResponse taxNo(String taxNo) {
    
    this.taxNo = taxNo;
    return this;
  }

   /**
   * 纳税人识别号(购方税号)
   * @return taxNo
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "91440106058924978D", value = "纳税人识别号(购方税号)")

  public String getTaxNo() {
    return taxNo;
  }


  public void setTaxNo(String taxNo) {
    this.taxNo = taxNo;
  }


  public UserInvoiceInfoOpenApiResponse taxPayerQualification(String taxPayerQualification) {
    
    this.taxPayerQualification = taxPayerQualification;
    return this;
  }

   /**
   * 纳税人开票资格种类  01:一般纳税人,02:小规模纳税人
   * @return taxPayerQualification
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "01", value = "纳税人开票资格种类  01:一般纳税人,02:小规模纳税人")

  public String getTaxPayerQualification() {
    return taxPayerQualification;
  }


  public void setTaxPayerQualification(String taxPayerQualification) {
    this.taxPayerQualification = taxPayerQualification;
  }


  public UserInvoiceInfoOpenApiResponse taxQualificationUrl(String taxQualificationUrl) {
    
    this.taxQualificationUrl = taxQualificationUrl;
    return this;
  }

   /**
   * 一般纳税人资格证书地址
   * @return taxQualificationUrl
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "gfcenter/inv/userinvoicefile/aruserprofilepic_2088721075211978_15133031297372951.jpg", value = "一般纳税人资格证书地址")

  public String getTaxQualificationUrl() {
    return taxQualificationUrl;
  }


  public void setTaxQualificationUrl(String taxQualificationUrl) {
    this.taxQualificationUrl = taxQualificationUrl;
  }


  public UserInvoiceInfoOpenApiResponse taxRegCertUrl(String taxRegCertUrl) {
    
    this.taxRegCertUrl = taxRegCertUrl;
    return this;
  }

   /**
   * 税务登记证地址
   * @return taxRegCertUrl
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "gfcenter/inv/userinvoicefile/aruserprofilepic_2088721075211978_15133031297372951.jpg", value = "税务登记证地址")

  public String getTaxRegCertUrl() {
    return taxRegCertUrl;
  }


  public void setTaxRegCertUrl(String taxRegCertUrl) {
    this.taxRegCertUrl = taxRegCertUrl;
  }


  public UserInvoiceInfoOpenApiResponse taxpayerQualiValid(String taxpayerQualiValid) {
    
    this.taxpayerQualiValid = taxpayerQualiValid;
    return this;
  }

   /**
   * 纳税人资格开始时间 (时间戳)
   * @return taxpayerQualiValid
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "1533039333744", value = "纳税人资格开始时间 (时间戳)")

  public String getTaxpayerQualiValid() {
    return taxpayerQualiValid;
  }


  public void setTaxpayerQualiValid(String taxpayerQualiValid) {
    this.taxpayerQualiValid = taxpayerQualiValid;
  }


  public UserInvoiceInfoOpenApiResponse telephone(String telephone) {
    
    this.telephone = telephone;
    return this;
  }

   /**
   * 公司注册电话
   * @return telephone
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "0571-82523768", value = "公司注册电话")

  public String getTelephone() {
    return telephone;
  }


  public void setTelephone(String telephone) {
    this.telephone = telephone;
  }


  public UserInvoiceInfoOpenApiResponse title(String title) {
    
    this.title = title;
    return this;
  }

   /**
   * 发票抬头
   * @return title
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "支付宝", value = "发票抬头")

  public String getTitle() {
    return title;
  }


  public void setTitle(String title) {
    this.title = title;
  }


  public UserInvoiceInfoOpenApiResponse tntInstId(String tntInstId) {
    
    this.tntInstId = tntInstId;
    return this;
  }

   /**
   * 租户ID
   * @return tntInstId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ANTGW2CN", value = "租户ID")

  public String getTntInstId() {
    return tntInstId;
  }


  public void setTntInstId(String tntInstId) {
    this.tntInstId = tntInstId;
  }


  public UserInvoiceInfoOpenApiResponse type(String type) {
    
    this.type = type;
    return this;
  }

   /**
   * 开票资料用户类型   01:OU,02:商户,03:C用户
   * @return type
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "02", value = "开票资料用户类型   01:OU,02:商户,03:C用户")

  public String getType() {
    return type;
  }


  public void setType(String type) {
    this.type = type;
  }


  public UserInvoiceInfoOpenApiResponse userMailInfoList(List userMailInfoList) {
    
    this.userMailInfoList = userMailInfoList;
    return this;
  }

  public UserInvoiceInfoOpenApiResponse addUserMailInfoListItem(UserMailInfoVO userMailInfoListItem) {
    if (this.userMailInfoList == null) {
      this.userMailInfoList = new ArrayList<>();
    }
    this.userMailInfoList.add(userMailInfoListItem);
    return this;
  }

   /**
   * 收件人地址列表
   * @return userMailInfoList
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "收件人地址列表")

  public List getUserMailInfoList() {
    return userMailInfoList;
  }


  public void setUserMailInfoList(List userMailInfoList) {
    this.userMailInfoList = userMailInfoList;
  }

  /**
   * A container for additional, undeclared properties.
   * This is a holder for any undeclared properties as specified with
   * the 'additionalProperties' keyword in the OAS document.
   */
  private Map additionalProperties;

  /**
   * Set the additional (undeclared) property with the specified name and value.
   * If the property does not already exist, create it otherwise replace it.
   *
   * @param key name of the property
   * @param value value of the property
   * @return the UserInvoiceInfoOpenApiResponse instance itself
   */
  public UserInvoiceInfoOpenApiResponse putAdditionalProperty(String key, Object value) {
    if (this.additionalProperties == null) {
        this.additionalProperties = new HashMap();
    }
    this.additionalProperties.put(key, value);
    return this;
  }

  /**
   * Return the additional (undeclared) property.
   *
   * @return a map of objects
   */
  public Map getAdditionalProperties() {
    return additionalProperties;
  }

  /**
   * Return the additional (undeclared) property with the specified name.
   *
   * @param key name of the property
   * @return an object
   */
  public Object getAdditionalProperty(String key) {
    if (this.additionalProperties == null) {
        return null;
    }
    return this.additionalProperties.get(key);
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UserInvoiceInfoOpenApiResponse userInvoiceInfoOpenApiResponse = (UserInvoiceInfoOpenApiResponse) o;
    return Objects.equals(this.acceptElectronic, userInvoiceInfoOpenApiResponse.acceptElectronic) &&
        Objects.equals(this.address, userInvoiceInfoOpenApiResponse.address) &&
        Objects.equals(this.auto, userInvoiceInfoOpenApiResponse.auto) &&
        Objects.equals(this.bankAccount, userInvoiceInfoOpenApiResponse.bankAccount) &&
        Objects.equals(this.bankName, userInvoiceInfoOpenApiResponse.bankName) &&
        Objects.equals(this.businessLicenceUrl, userInvoiceInfoOpenApiResponse.businessLicenceUrl) &&
        Objects.equals(this.creator, userInvoiceInfoOpenApiResponse.creator) &&
        Objects.equals(this.gmtCreate, userInvoiceInfoOpenApiResponse.gmtCreate) &&
        Objects.equals(this.gmtModified, userInvoiceInfoOpenApiResponse.gmtModified) &&
        Objects.equals(this.hold, userInvoiceInfoOpenApiResponse.hold) &&
        Objects.equals(this.id, userInvoiceInfoOpenApiResponse.id) &&
        Objects.equals(this.ipId, userInvoiceInfoOpenApiResponse.ipId) &&
        Objects.equals(this.lastModifier, userInvoiceInfoOpenApiResponse.lastModifier) &&
        Objects.equals(this.openAccountPermitUrl, userInvoiceInfoOpenApiResponse.openAccountPermitUrl) &&
        Objects.equals(this.otherQualificationUrl, userInvoiceInfoOpenApiResponse.otherQualificationUrl) &&
        Objects.equals(this.status, userInvoiceInfoOpenApiResponse.status) &&
        Objects.equals(this.taskDate, userInvoiceInfoOpenApiResponse.taskDate) &&
        Objects.equals(this.taxNo, userInvoiceInfoOpenApiResponse.taxNo) &&
        Objects.equals(this.taxPayerQualification, userInvoiceInfoOpenApiResponse.taxPayerQualification) &&
        Objects.equals(this.taxQualificationUrl, userInvoiceInfoOpenApiResponse.taxQualificationUrl) &&
        Objects.equals(this.taxRegCertUrl, userInvoiceInfoOpenApiResponse.taxRegCertUrl) &&
        Objects.equals(this.taxpayerQualiValid, userInvoiceInfoOpenApiResponse.taxpayerQualiValid) &&
        Objects.equals(this.telephone, userInvoiceInfoOpenApiResponse.telephone) &&
        Objects.equals(this.title, userInvoiceInfoOpenApiResponse.title) &&
        Objects.equals(this.tntInstId, userInvoiceInfoOpenApiResponse.tntInstId) &&
        Objects.equals(this.type, userInvoiceInfoOpenApiResponse.type) &&
        Objects.equals(this.userMailInfoList, userInvoiceInfoOpenApiResponse.userMailInfoList)&&
        Objects.equals(this.additionalProperties, userInvoiceInfoOpenApiResponse.additionalProperties);
  }

  @Override
  public int hashCode() {
    return Objects.hash(acceptElectronic, address, auto, bankAccount, bankName, businessLicenceUrl, creator, gmtCreate, gmtModified, hold, id, ipId, lastModifier, openAccountPermitUrl, otherQualificationUrl, status, taskDate, taxNo, taxPayerQualification, taxQualificationUrl, taxRegCertUrl, taxpayerQualiValid, telephone, title, tntInstId, type, userMailInfoList, additionalProperties);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserInvoiceInfoOpenApiResponse {\n");
    sb.append("    acceptElectronic: ").append(toIndentedString(acceptElectronic)).append("\n");
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("    auto: ").append(toIndentedString(auto)).append("\n");
    sb.append("    bankAccount: ").append(toIndentedString(bankAccount)).append("\n");
    sb.append("    bankName: ").append(toIndentedString(bankName)).append("\n");
    sb.append("    businessLicenceUrl: ").append(toIndentedString(businessLicenceUrl)).append("\n");
    sb.append("    creator: ").append(toIndentedString(creator)).append("\n");
    sb.append("    gmtCreate: ").append(toIndentedString(gmtCreate)).append("\n");
    sb.append("    gmtModified: ").append(toIndentedString(gmtModified)).append("\n");
    sb.append("    hold: ").append(toIndentedString(hold)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    ipId: ").append(toIndentedString(ipId)).append("\n");
    sb.append("    lastModifier: ").append(toIndentedString(lastModifier)).append("\n");
    sb.append("    openAccountPermitUrl: ").append(toIndentedString(openAccountPermitUrl)).append("\n");
    sb.append("    otherQualificationUrl: ").append(toIndentedString(otherQualificationUrl)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    taskDate: ").append(toIndentedString(taskDate)).append("\n");
    sb.append("    taxNo: ").append(toIndentedString(taxNo)).append("\n");
    sb.append("    taxPayerQualification: ").append(toIndentedString(taxPayerQualification)).append("\n");
    sb.append("    taxQualificationUrl: ").append(toIndentedString(taxQualificationUrl)).append("\n");
    sb.append("    taxRegCertUrl: ").append(toIndentedString(taxRegCertUrl)).append("\n");
    sb.append("    taxpayerQualiValid: ").append(toIndentedString(taxpayerQualiValid)).append("\n");
    sb.append("    telephone: ").append(toIndentedString(telephone)).append("\n");
    sb.append("    title: ").append(toIndentedString(title)).append("\n");
    sb.append("    tntInstId: ").append(toIndentedString(tntInstId)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    userMailInfoList: ").append(toIndentedString(userMailInfoList)).append("\n");
    sb.append("    additionalProperties: ").append(toIndentedString(additionalProperties)).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    ");
  }


  public static HashSet openapiFields;
  public static HashSet openapiRequiredFields;

  static {
    // a set of all properties/fields (JSON key names)
    openapiFields = new HashSet();
    openapiFields.add("accept_electronic");
    openapiFields.add("address");
    openapiFields.add("auto");
    openapiFields.add("bank_account");
    openapiFields.add("bank_name");
    openapiFields.add("business_licence_url");
    openapiFields.add("creator");
    openapiFields.add("gmt_create");
    openapiFields.add("gmt_modified");
    openapiFields.add("hold");
    openapiFields.add("id");
    openapiFields.add("ip_id");
    openapiFields.add("last_modifier");
    openapiFields.add("open_account_permit_url");
    openapiFields.add("other_qualification_url");
    openapiFields.add("status");
    openapiFields.add("task_date");
    openapiFields.add("tax_no");
    openapiFields.add("tax_payer_qualification");
    openapiFields.add("tax_qualification_url");
    openapiFields.add("tax_reg_cert_url");
    openapiFields.add("taxpayer_quali_valid");
    openapiFields.add("telephone");
    openapiFields.add("title");
    openapiFields.add("tnt_inst_id");
    openapiFields.add("type");
    openapiFields.add("user_mail_info_list");

    // a set of required properties/fields (JSON key names)
    openapiRequiredFields = new HashSet();
  }

 /**
  * Validates the JSON Object and throws an exception if issues found
  *
  * @param jsonObj JSON Object
  * @throws IOException if the JSON Object is invalid with respect to UserInvoiceInfoOpenApiResponse
  */
  public static void validateJsonObject(JsonObject jsonObj) throws IOException {
      if (jsonObj == null) {
        if (UserInvoiceInfoOpenApiResponse.openapiRequiredFields.isEmpty()) {
          return;
        } else { // has required fields
          throw new IllegalArgumentException(String.format("The required field(s) %s in UserInvoiceInfoOpenApiResponse is not found in the empty JSON string", UserInvoiceInfoOpenApiResponse.openapiRequiredFields.toString()));
        }
      }
      if (jsonObj.get("address") != null && !jsonObj.get("address").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString()));
      }
      if (jsonObj.get("bank_account") != null && !jsonObj.get("bank_account").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `bank_account` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bank_account").toString()));
      }
      if (jsonObj.get("bank_name") != null && !jsonObj.get("bank_name").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `bank_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bank_name").toString()));
      }
      if (jsonObj.get("business_licence_url") != null && !jsonObj.get("business_licence_url").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `business_licence_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("business_licence_url").toString()));
      }
      if (jsonObj.get("creator") != null && !jsonObj.get("creator").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `creator` to be a primitive type in the JSON string but got `%s`", jsonObj.get("creator").toString()));
      }
      if (jsonObj.get("gmt_create") != null && !jsonObj.get("gmt_create").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `gmt_create` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gmt_create").toString()));
      }
      if (jsonObj.get("gmt_modified") != null && !jsonObj.get("gmt_modified").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `gmt_modified` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gmt_modified").toString()));
      }
      if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString()));
      }
      if (jsonObj.get("ip_id") != null && !jsonObj.get("ip_id").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `ip_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip_id").toString()));
      }
      if (jsonObj.get("last_modifier") != null && !jsonObj.get("last_modifier").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `last_modifier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("last_modifier").toString()));
      }
      if (jsonObj.get("open_account_permit_url") != null && !jsonObj.get("open_account_permit_url").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `open_account_permit_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("open_account_permit_url").toString()));
      }
      if (jsonObj.get("other_qualification_url") != null && !jsonObj.get("other_qualification_url").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `other_qualification_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("other_qualification_url").toString()));
      }
      if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString()));
      }
      if (jsonObj.get("task_date") != null && !jsonObj.get("task_date").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `task_date` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_date").toString()));
      }
      if (jsonObj.get("tax_no") != null && !jsonObj.get("tax_no").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `tax_no` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tax_no").toString()));
      }
      if (jsonObj.get("tax_payer_qualification") != null && !jsonObj.get("tax_payer_qualification").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `tax_payer_qualification` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tax_payer_qualification").toString()));
      }
      if (jsonObj.get("tax_qualification_url") != null && !jsonObj.get("tax_qualification_url").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `tax_qualification_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tax_qualification_url").toString()));
      }
      if (jsonObj.get("tax_reg_cert_url") != null && !jsonObj.get("tax_reg_cert_url").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `tax_reg_cert_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tax_reg_cert_url").toString()));
      }
      if (jsonObj.get("taxpayer_quali_valid") != null && !jsonObj.get("taxpayer_quali_valid").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `taxpayer_quali_valid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("taxpayer_quali_valid").toString()));
      }
      if (jsonObj.get("telephone") != null && !jsonObj.get("telephone").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `telephone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("telephone").toString()));
      }
      if (jsonObj.get("title") != null && !jsonObj.get("title").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString()));
      }
      if (jsonObj.get("tnt_inst_id") != null && !jsonObj.get("tnt_inst_id").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `tnt_inst_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tnt_inst_id").toString()));
      }
      if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString()));
      }
      JsonArray jsonArrayuserMailInfoList = jsonObj.getAsJsonArray("user_mail_info_list");
      if (jsonArrayuserMailInfoList != null) {
        // ensure the json data is an array
        if (!jsonObj.get("user_mail_info_list").isJsonArray()) {
          throw new IllegalArgumentException(String.format("Expected the field `user_mail_info_list` to be an array in the JSON string but got `%s`", jsonObj.get("user_mail_info_list").toString()));
        }

        // validate the optional field `user_mail_info_list` (array)
        for (int i = 0; i < jsonArrayuserMailInfoList.size(); i++) {
          UserMailInfoVO.validateJsonObject(jsonArrayuserMailInfoList.get(i).getAsJsonObject());
        };
      }
  }

  public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
    @SuppressWarnings("unchecked")
    @Override
    public  TypeAdapter create(Gson gson, TypeToken type) {
       if (!UserInvoiceInfoOpenApiResponse.class.isAssignableFrom(type.getRawType())) {
         return null; // this class only serializes 'UserInvoiceInfoOpenApiResponse' and its subtypes
       }
       final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
       final TypeAdapter thisAdapter
                        = gson.getDelegateAdapter(this, TypeToken.get(UserInvoiceInfoOpenApiResponse.class));

       return (TypeAdapter) new TypeAdapter() {
           @Override
           public void write(JsonWriter out, UserInvoiceInfoOpenApiResponse value) throws IOException {
             JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
             obj.remove("additionalProperties");
             // serialize additonal properties
             if (value.getAdditionalProperties() != null) {
               for (Map.Entry entry : value.getAdditionalProperties().entrySet()) {
                 if (entry.getValue() instanceof String)
                   obj.addProperty(entry.getKey(), (String) entry.getValue());
                 else if (entry.getValue() instanceof Number)
                   obj.addProperty(entry.getKey(), (Number) entry.getValue());
                 else if (entry.getValue() instanceof Boolean)
                   obj.addProperty(entry.getKey(), (Boolean) entry.getValue());
                 else if (entry.getValue() instanceof Character)
                   obj.addProperty(entry.getKey(), (Character) entry.getValue());
                 else {
                   obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject());
                 }
               }
             }
             elementAdapter.write(out, obj);
           }

           @Override
           public UserInvoiceInfoOpenApiResponse read(JsonReader in) throws IOException {
             JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject();
             validateJsonObject(jsonObj);
             // store additional fields in the deserialized instance
             UserInvoiceInfoOpenApiResponse instance = thisAdapter.fromJsonTree(jsonObj);
             for (Map.Entry entry : jsonObj.entrySet()) {
               if (!openapiFields.contains(entry.getKey())) {
                 if (entry.getValue().isJsonPrimitive()) { // primitive type
                   if (entry.getValue().getAsJsonPrimitive().isString())
                     instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString());
                   else if (entry.getValue().getAsJsonPrimitive().isNumber())
                     instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber());
                   else if (entry.getValue().getAsJsonPrimitive().isBoolean())
                     instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean());
                   else
                     throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString()));
                 } else { // non-primitive type
                   instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class));
                 }
               }
             }
             return instance;
           }

       }.nullSafe();
    }
  }

 /**
  * Create an instance of UserInvoiceInfoOpenApiResponse given an JSON string
  *
  * @param jsonString JSON string
  * @return An instance of UserInvoiceInfoOpenApiResponse
  * @throws IOException if the JSON string is invalid with respect to UserInvoiceInfoOpenApiResponse
  */
  public static UserInvoiceInfoOpenApiResponse fromJson(String jsonString) throws IOException {
    return JSON.getGson().fromJson(jsonString, UserInvoiceInfoOpenApiResponse.class);
  }

 /**
  * Convert an instance of UserInvoiceInfoOpenApiResponse to an JSON string
  *
  * @return JSON string
  */
  public String toJson() {
    return JSON.getGson().toJson(this);
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy