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

com.alipay.v3.model.AlipayIserviceCcmServicerecordModifyModel 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.ServiceRecordCatRequest;
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 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;

/**
 * AlipayIserviceCcmServicerecordModifyModel
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AlipayIserviceCcmServicerecordModifyModel {
  public static final String SERIALIZED_NAME_ACID = "acid";
  @SerializedName(SERIALIZED_NAME_ACID)
  private String acid;

  public static final String SERIALIZED_NAME_AID = "aid";
  @SerializedName(SERIALIZED_NAME_AID)
  private String aid;

  public static final String SERIALIZED_NAME_ANI = "ani";
  @SerializedName(SERIALIZED_NAME_ANI)
  private String ani;

  public static final String SERIALIZED_NAME_ASID = "asid";
  @SerializedName(SERIALIZED_NAME_ASID)
  private String asid;

  public static final String SERIALIZED_NAME_CATEGORY_LIST = "category_list";
  @SerializedName(SERIALIZED_NAME_CATEGORY_LIST)
  private ServiceRecordCatRequest categoryList;

  public static final String SERIALIZED_NAME_CHAT_BEGIN_TIME = "chat_begin_time";
  @SerializedName(SERIALIZED_NAME_CHAT_BEGIN_TIME)
  private String chatBeginTime;

  public static final String SERIALIZED_NAME_CHAT_END_TIME = "chat_end_time";
  @SerializedName(SERIALIZED_NAME_CHAT_END_TIME)
  private String chatEndTime;

  public static final String SERIALIZED_NAME_CITY = "city";
  @SerializedName(SERIALIZED_NAME_CITY)
  private String city;

  public static final String SERIALIZED_NAME_CREATOR_ID = "creator_id";
  @SerializedName(SERIALIZED_NAME_CREATOR_ID)
  private String creatorId;

  public static final String SERIALIZED_NAME_DISCON_SYMBOL = "discon_symbol";
  @SerializedName(SERIALIZED_NAME_DISCON_SYMBOL)
  private String disconSymbol;

  public static final String SERIALIZED_NAME_DNIS = "dnis";
  @SerializedName(SERIALIZED_NAME_DNIS)
  private String dnis;

  public static final String SERIALIZED_NAME_FILE_SIZE = "file_size";
  @SerializedName(SERIALIZED_NAME_FILE_SIZE)
  private Integer fileSize;

  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_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public static final String SERIALIZED_NAME_MEMO = "memo";
  @SerializedName(SERIALIZED_NAME_MEMO)
  private String memo;

  public static final String SERIALIZED_NAME_MODIFIER_ID = "modifier_id";
  @SerializedName(SERIALIZED_NAME_MODIFIER_ID)
  private String modifierId;

  public static final String SERIALIZED_NAME_OUTBOUND_TASK_ID = "outbound_task_id";
  @SerializedName(SERIALIZED_NAME_OUTBOUND_TASK_ID)
  private String outboundTaskId;

  public static final String SERIALIZED_NAME_SATISFACTION = "satisfaction";
  @SerializedName(SERIALIZED_NAME_SATISFACTION)
  private String satisfaction;

  public static final String SERIALIZED_NAME_SATISFACTION_MEMO = "satisfaction_memo";
  @SerializedName(SERIALIZED_NAME_SATISFACTION_MEMO)
  private String satisfactionMemo;

  public static final String SERIALIZED_NAME_SERVICE_SOURCE = "service_source";
  @SerializedName(SERIALIZED_NAME_SERVICE_SOURCE)
  private String serviceSource;

  public static final String SERIALIZED_NAME_SERVICE_TIME = "service_time";
  @SerializedName(SERIALIZED_NAME_SERVICE_TIME)
  private Integer serviceTime;

  public static final String SERIALIZED_NAME_SKILLGROUP_ID = "skillgroup_id";
  @SerializedName(SERIALIZED_NAME_SKILLGROUP_ID)
  private String skillgroupId;

  public static final String SERIALIZED_NAME_SKILLGROUP_NAME = "skillgroup_name";
  @SerializedName(SERIALIZED_NAME_SKILLGROUP_NAME)
  private String skillgroupName;

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

  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_USER_ID = "user_id";
  @SerializedName(SERIALIZED_NAME_USER_ID)
  private String userId;

  public static final String SERIALIZED_NAME_VERIFY_RESULT = "verify_result";
  @SerializedName(SERIALIZED_NAME_VERIFY_RESULT)
  private String verifyResult;

  public AlipayIserviceCcmServicerecordModifyModel() { 
  }

  public AlipayIserviceCcmServicerecordModifyModel acid(String acid) {
    
    this.acid = acid;
    return this;
  }

   /**
   * 来电唯一标识
   * @return acid
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "CCC/2459691380492662222224097452", value = "来电唯一标识")

  public String getAcid() {
    return acid;
  }


  public void setAcid(String acid) {
    this.acid = acid;
  }


  public AlipayIserviceCcmServicerecordModifyModel aid(String aid) {
    
    this.aid = aid;
    return this;
  }

   /**
   * 客服坐席号(软电话中定义的)
   * @return aid
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "20000105", value = "客服坐席号(软电话中定义的)")

  public String getAid() {
    return aid;
  }


  public void setAid(String aid) {
    this.aid = aid;
  }


  public AlipayIserviceCcmServicerecordModifyModel ani(String ani) {
    
    this.ani = ani;
    return this;
  }

   /**
   * 主叫号码
   * @return ani
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "15123090087", value = "主叫号码")

  public String getAni() {
    return ani;
  }


  public void setAni(String ani) {
    this.ani = ani;
  }


  public AlipayIserviceCcmServicerecordModifyModel asid(String asid) {
    
    this.asid = asid;
    return this;
  }

   /**
   * 恒生专用来电唯一标识
   * @return asid
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "29de02050ce1403db710a0b1f4daad6d", value = "恒生专用来电唯一标识")

  public String getAsid() {
    return asid;
  }


  public void setAsid(String asid) {
    this.asid = asid;
  }


  public AlipayIserviceCcmServicerecordModifyModel categoryList(ServiceRecordCatRequest categoryList) {
    
    this.categoryList = categoryList;
    return this;
  }

   /**
   * Get categoryList
   * @return categoryList
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public ServiceRecordCatRequest getCategoryList() {
    return categoryList;
  }


  public void setCategoryList(ServiceRecordCatRequest categoryList) {
    this.categoryList = categoryList;
  }


  public AlipayIserviceCcmServicerecordModifyModel chatBeginTime(String chatBeginTime) {
    
    this.chatBeginTime = chatBeginTime;
    return this;
  }

   /**
   * 标准时间格式:yyyy-MM-dd HH:mm:ss
   * @return chatBeginTime
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2018-11-20 11:37:26", value = "标准时间格式:yyyy-MM-dd HH:mm:ss")

  public String getChatBeginTime() {
    return chatBeginTime;
  }


  public void setChatBeginTime(String chatBeginTime) {
    this.chatBeginTime = chatBeginTime;
  }


  public AlipayIserviceCcmServicerecordModifyModel chatEndTime(String chatEndTime) {
    
    this.chatEndTime = chatEndTime;
    return this;
  }

   /**
   * 标准时间格式:yyyy-MM-dd HH:mm:ss
   * @return chatEndTime
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2018-11-20 11:38:49", value = "标准时间格式:yyyy-MM-dd HH:mm:ss")

  public String getChatEndTime() {
    return chatEndTime;
  }


  public void setChatEndTime(String chatEndTime) {
    this.chatEndTime = chatEndTime;
  }


  public AlipayIserviceCcmServicerecordModifyModel city(String city) {
    
    this.city = city;
    return this;
  }

   /**
   * 来电地址
   * @return city
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "山东", value = "来电地址")

  public String getCity() {
    return city;
  }


  public void setCity(String city) {
    this.city = city;
  }


  public AlipayIserviceCcmServicerecordModifyModel creatorId(String creatorId) {
    
    this.creatorId = creatorId;
    return this;
  }

   /**
   * 创建者ID
   * @return creatorId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2020042801917879", value = "创建者ID")

  public String getCreatorId() {
    return creatorId;
  }


  public void setCreatorId(String creatorId) {
    this.creatorId = creatorId;
  }


  public AlipayIserviceCcmServicerecordModifyModel disconSymbol(String disconSymbol) {
    
    this.disconSymbol = disconSymbol;
    return this;
  }

   /**
   * 先挂断方 AGENT:客服 CUSTOMER:客户
   * @return disconSymbol
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "AGENT", value = "先挂断方 AGENT:客服 CUSTOMER:客户")

  public String getDisconSymbol() {
    return disconSymbol;
  }


  public void setDisconSymbol(String disconSymbol) {
    this.disconSymbol = disconSymbol;
  }


  public AlipayIserviceCcmServicerecordModifyModel dnis(String dnis) {
    
    this.dnis = dnis;
    return this;
  }

   /**
   * 被叫号码
   * @return dnis
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "15925998721", value = "被叫号码")

  public String getDnis() {
    return dnis;
  }


  public void setDnis(String dnis) {
    this.dnis = dnis;
  }


  public AlipayIserviceCcmServicerecordModifyModel fileSize(Integer fileSize) {
    
    this.fileSize = fileSize;
    return this;
  }

   /**
   * 文件大小
   * @return fileSize
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "1222000", value = "文件大小")

  public Integer getFileSize() {
    return fileSize;
  }


  public void setFileSize(Integer fileSize) {
    this.fileSize = fileSize;
  }


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

   /**
   * 创建时间(yyyy-MM-dd HH:mm:ss)
   * @return gmtCreate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2010-11-11 11:11:11", value = "创建时间(yyyy-MM-dd HH:mm:ss)")

  public String getGmtCreate() {
    return gmtCreate;
  }


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


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

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

  public String getGmtModified() {
    return gmtModified;
  }


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


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

   /**
   * 云客服服务记录ID
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "202011161113010100000000739715", value = "云客服服务记录ID")

  public String getId() {
    return id;
  }


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


  public AlipayIserviceCcmServicerecordModifyModel memo(String memo) {
    
    this.memo = memo;
    return this;
  }

   /**
   * 服务记录备注信息
   * @return memo
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "亲,昨天已经寄给你了呢", value = "服务记录备注信息")

  public String getMemo() {
    return memo;
  }


  public void setMemo(String memo) {
    this.memo = memo;
  }


  public AlipayIserviceCcmServicerecordModifyModel modifierId(String modifierId) {
    
    this.modifierId = modifierId;
    return this;
  }

   /**
   * 修改人ID
   * @return modifierId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2020042801917879", value = "修改人ID")

  public String getModifierId() {
    return modifierId;
  }


  public void setModifierId(String modifierId) {
    this.modifierId = modifierId;
  }


  public AlipayIserviceCcmServicerecordModifyModel outboundTaskId(String outboundTaskId) {
    
    this.outboundTaskId = outboundTaskId;
    return this;
  }

   /**
   * 外呼任务ID
   * @return outboundTaskId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "10.253.104.12_1d5d40fd-aa5e-4f23-9247-14cd28e125f2", value = "外呼任务ID")

  public String getOutboundTaskId() {
    return outboundTaskId;
  }


  public void setOutboundTaskId(String outboundTaskId) {
    this.outboundTaskId = outboundTaskId;
  }


  public AlipayIserviceCcmServicerecordModifyModel satisfaction(String satisfaction) {
    
    this.satisfaction = satisfaction;
    return this;
  }

   /**
   * 满意度 0:非常满意 1:满意 2:一般 3:不满意 4:非常不满意
   * @return satisfaction
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "0", value = "满意度 0:非常满意 1:满意 2:一般 3:不满意 4:非常不满意")

  public String getSatisfaction() {
    return satisfaction;
  }


  public void setSatisfaction(String satisfaction) {
    this.satisfaction = satisfaction;
  }


  public AlipayIserviceCcmServicerecordModifyModel satisfactionMemo(String satisfactionMemo) {
    
    this.satisfactionMemo = satisfactionMemo;
    return this;
  }

   /**
   * 满意度补充信息
   * @return satisfactionMemo
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "其它:非常不满意,完全都是我在自问自答;", value = "满意度补充信息")

  public String getSatisfactionMemo() {
    return satisfactionMemo;
  }


  public void setSatisfactionMemo(String satisfactionMemo) {
    this.satisfactionMemo = satisfactionMemo;
  }


  public AlipayIserviceCcmServicerecordModifyModel serviceSource(String serviceSource) {
    
    this.serviceSource = serviceSource;
    return this;
  }

   /**
   * 1:客户来电 4:电话回访 5:网点服务 6:在线服务 7:外呼任务 8:手动外呼 9:在线离线留言
   * @return serviceSource
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "1", value = "1:客户来电 4:电话回访 5:网点服务 6:在线服务 7:外呼任务 8:手动外呼 9:在线离线留言")

  public String getServiceSource() {
    return serviceSource;
  }


  public void setServiceSource(String serviceSource) {
    this.serviceSource = serviceSource;
  }


  public AlipayIserviceCcmServicerecordModifyModel serviceTime(Integer serviceTime) {
    
    this.serviceTime = serviceTime;
    return this;
  }

   /**
   * 服务时长(单位:秒)
   * @return serviceTime
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "1924", value = "服务时长(单位:秒)")

  public Integer getServiceTime() {
    return serviceTime;
  }


  public void setServiceTime(Integer serviceTime) {
    this.serviceTime = serviceTime;
  }


  public AlipayIserviceCcmServicerecordModifyModel skillgroupId(String skillgroupId) {
    
    this.skillgroupId = skillgroupId;
    return this;
  }

   /**
   * 技能组ID
   * @return skillgroupId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "100000000001", value = "技能组ID")

  public String getSkillgroupId() {
    return skillgroupId;
  }


  public void setSkillgroupId(String skillgroupId) {
    this.skillgroupId = skillgroupId;
  }


  public AlipayIserviceCcmServicerecordModifyModel skillgroupName(String skillgroupName) {
    
    this.skillgroupName = skillgroupName;
    return this;
  }

   /**
   * 技能组名称(技能组ID对应的技能组名称)
   * @return skillgroupName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "融资业务还款组", value = "技能组名称(技能组ID对应的技能组名称)")

  public String getSkillgroupName() {
    return skillgroupName;
  }


  public void setSkillgroupName(String skillgroupName) {
    this.skillgroupName = skillgroupName;
  }


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

   /**
   * 1:待处理 2:暂存 3:完结 4:废除 5:无效 6:未知
   * @return status
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "1", value = "1:待处理 2:暂存 3:完结 4:废除 5:无效 6:未知")

  public String getStatus() {
    return status;
  }


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


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

   /**
   * 业务租户
   * @return tntInstId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ORGJC1CN", value = "业务租户")

  public String getTntInstId() {
    return tntInstId;
  }


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


  public AlipayIserviceCcmServicerecordModifyModel userId(String userId) {
    
    this.userId = userId;
    return this;
  }

   /**
   * 来访用户唯一标识ID
   * @return userId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "202007011113010526000000035332", value = "来访用户唯一标识ID")

  public String getUserId() {
    return userId;
  }


  public void setUserId(String userId) {
    this.userId = userId;
  }


  public AlipayIserviceCcmServicerecordModifyModel verifyResult(String verifyResult) {
    
    this.verifyResult = verifyResult;
    return this;
  }

   /**
   * IVR验证结果 ROLE_N:未定位到用户 CERTNO_Y_PWD_Y:证件号码+交易密码验证通过 CERTNO_Y_PWD_N:证件号码验证通过+交易密码不通过 CERTNO_Y_PWD_UNKNOW:证件号码验证通过 PHONE_Y_PWD_Y:来电手机+交易密码验证通过 PHONE_Y_PWD_N:来电手机+交易密码未通过 PHONE_Y_PWD_UNKNOW:来电手机账户 SEARCH_Y_PWD_Y:搜索定位用户+推屏交易密码通过 SEARCH_Y_PWD_N:搜索定位用户+推屏交易密码未通过 SEARCH_Y_PWD_UNKNOW:搜索定位用户
   * @return verifyResult
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ROLE_N", value = "IVR验证结果 ROLE_N:未定位到用户 CERTNO_Y_PWD_Y:证件号码+交易密码验证通过 CERTNO_Y_PWD_N:证件号码验证通过+交易密码不通过 CERTNO_Y_PWD_UNKNOW:证件号码验证通过 PHONE_Y_PWD_Y:来电手机+交易密码验证通过 PHONE_Y_PWD_N:来电手机+交易密码未通过 PHONE_Y_PWD_UNKNOW:来电手机账户 SEARCH_Y_PWD_Y:搜索定位用户+推屏交易密码通过 SEARCH_Y_PWD_N:搜索定位用户+推屏交易密码未通过 SEARCH_Y_PWD_UNKNOW:搜索定位用户")

  public String getVerifyResult() {
    return verifyResult;
  }


  public void setVerifyResult(String verifyResult) {
    this.verifyResult = verifyResult;
  }

  /**
   * 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 AlipayIserviceCcmServicerecordModifyModel instance itself
   */
  public AlipayIserviceCcmServicerecordModifyModel 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;
    }
    AlipayIserviceCcmServicerecordModifyModel alipayIserviceCcmServicerecordModifyModel = (AlipayIserviceCcmServicerecordModifyModel) o;
    return Objects.equals(this.acid, alipayIserviceCcmServicerecordModifyModel.acid) &&
        Objects.equals(this.aid, alipayIserviceCcmServicerecordModifyModel.aid) &&
        Objects.equals(this.ani, alipayIserviceCcmServicerecordModifyModel.ani) &&
        Objects.equals(this.asid, alipayIserviceCcmServicerecordModifyModel.asid) &&
        Objects.equals(this.categoryList, alipayIserviceCcmServicerecordModifyModel.categoryList) &&
        Objects.equals(this.chatBeginTime, alipayIserviceCcmServicerecordModifyModel.chatBeginTime) &&
        Objects.equals(this.chatEndTime, alipayIserviceCcmServicerecordModifyModel.chatEndTime) &&
        Objects.equals(this.city, alipayIserviceCcmServicerecordModifyModel.city) &&
        Objects.equals(this.creatorId, alipayIserviceCcmServicerecordModifyModel.creatorId) &&
        Objects.equals(this.disconSymbol, alipayIserviceCcmServicerecordModifyModel.disconSymbol) &&
        Objects.equals(this.dnis, alipayIserviceCcmServicerecordModifyModel.dnis) &&
        Objects.equals(this.fileSize, alipayIserviceCcmServicerecordModifyModel.fileSize) &&
        Objects.equals(this.gmtCreate, alipayIserviceCcmServicerecordModifyModel.gmtCreate) &&
        Objects.equals(this.gmtModified, alipayIserviceCcmServicerecordModifyModel.gmtModified) &&
        Objects.equals(this.id, alipayIserviceCcmServicerecordModifyModel.id) &&
        Objects.equals(this.memo, alipayIserviceCcmServicerecordModifyModel.memo) &&
        Objects.equals(this.modifierId, alipayIserviceCcmServicerecordModifyModel.modifierId) &&
        Objects.equals(this.outboundTaskId, alipayIserviceCcmServicerecordModifyModel.outboundTaskId) &&
        Objects.equals(this.satisfaction, alipayIserviceCcmServicerecordModifyModel.satisfaction) &&
        Objects.equals(this.satisfactionMemo, alipayIserviceCcmServicerecordModifyModel.satisfactionMemo) &&
        Objects.equals(this.serviceSource, alipayIserviceCcmServicerecordModifyModel.serviceSource) &&
        Objects.equals(this.serviceTime, alipayIserviceCcmServicerecordModifyModel.serviceTime) &&
        Objects.equals(this.skillgroupId, alipayIserviceCcmServicerecordModifyModel.skillgroupId) &&
        Objects.equals(this.skillgroupName, alipayIserviceCcmServicerecordModifyModel.skillgroupName) &&
        Objects.equals(this.status, alipayIserviceCcmServicerecordModifyModel.status) &&
        Objects.equals(this.tntInstId, alipayIserviceCcmServicerecordModifyModel.tntInstId) &&
        Objects.equals(this.userId, alipayIserviceCcmServicerecordModifyModel.userId) &&
        Objects.equals(this.verifyResult, alipayIserviceCcmServicerecordModifyModel.verifyResult)&&
        Objects.equals(this.additionalProperties, alipayIserviceCcmServicerecordModifyModel.additionalProperties);
  }

  @Override
  public int hashCode() {
    return Objects.hash(acid, aid, ani, asid, categoryList, chatBeginTime, chatEndTime, city, creatorId, disconSymbol, dnis, fileSize, gmtCreate, gmtModified, id, memo, modifierId, outboundTaskId, satisfaction, satisfactionMemo, serviceSource, serviceTime, skillgroupId, skillgroupName, status, tntInstId, userId, verifyResult, additionalProperties);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AlipayIserviceCcmServicerecordModifyModel {\n");
    sb.append("    acid: ").append(toIndentedString(acid)).append("\n");
    sb.append("    aid: ").append(toIndentedString(aid)).append("\n");
    sb.append("    ani: ").append(toIndentedString(ani)).append("\n");
    sb.append("    asid: ").append(toIndentedString(asid)).append("\n");
    sb.append("    categoryList: ").append(toIndentedString(categoryList)).append("\n");
    sb.append("    chatBeginTime: ").append(toIndentedString(chatBeginTime)).append("\n");
    sb.append("    chatEndTime: ").append(toIndentedString(chatEndTime)).append("\n");
    sb.append("    city: ").append(toIndentedString(city)).append("\n");
    sb.append("    creatorId: ").append(toIndentedString(creatorId)).append("\n");
    sb.append("    disconSymbol: ").append(toIndentedString(disconSymbol)).append("\n");
    sb.append("    dnis: ").append(toIndentedString(dnis)).append("\n");
    sb.append("    fileSize: ").append(toIndentedString(fileSize)).append("\n");
    sb.append("    gmtCreate: ").append(toIndentedString(gmtCreate)).append("\n");
    sb.append("    gmtModified: ").append(toIndentedString(gmtModified)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    memo: ").append(toIndentedString(memo)).append("\n");
    sb.append("    modifierId: ").append(toIndentedString(modifierId)).append("\n");
    sb.append("    outboundTaskId: ").append(toIndentedString(outboundTaskId)).append("\n");
    sb.append("    satisfaction: ").append(toIndentedString(satisfaction)).append("\n");
    sb.append("    satisfactionMemo: ").append(toIndentedString(satisfactionMemo)).append("\n");
    sb.append("    serviceSource: ").append(toIndentedString(serviceSource)).append("\n");
    sb.append("    serviceTime: ").append(toIndentedString(serviceTime)).append("\n");
    sb.append("    skillgroupId: ").append(toIndentedString(skillgroupId)).append("\n");
    sb.append("    skillgroupName: ").append(toIndentedString(skillgroupName)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    tntInstId: ").append(toIndentedString(tntInstId)).append("\n");
    sb.append("    userId: ").append(toIndentedString(userId)).append("\n");
    sb.append("    verifyResult: ").append(toIndentedString(verifyResult)).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("acid");
    openapiFields.add("aid");
    openapiFields.add("ani");
    openapiFields.add("asid");
    openapiFields.add("category_list");
    openapiFields.add("chat_begin_time");
    openapiFields.add("chat_end_time");
    openapiFields.add("city");
    openapiFields.add("creator_id");
    openapiFields.add("discon_symbol");
    openapiFields.add("dnis");
    openapiFields.add("file_size");
    openapiFields.add("gmt_create");
    openapiFields.add("gmt_modified");
    openapiFields.add("id");
    openapiFields.add("memo");
    openapiFields.add("modifier_id");
    openapiFields.add("outbound_task_id");
    openapiFields.add("satisfaction");
    openapiFields.add("satisfaction_memo");
    openapiFields.add("service_source");
    openapiFields.add("service_time");
    openapiFields.add("skillgroup_id");
    openapiFields.add("skillgroup_name");
    openapiFields.add("status");
    openapiFields.add("tnt_inst_id");
    openapiFields.add("user_id");
    openapiFields.add("verify_result");

    // 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 AlipayIserviceCcmServicerecordModifyModel
  */
  public static void validateJsonObject(JsonObject jsonObj) throws IOException {
      if (jsonObj == null) {
        if (AlipayIserviceCcmServicerecordModifyModel.openapiRequiredFields.isEmpty()) {
          return;
        } else { // has required fields
          throw new IllegalArgumentException(String.format("The required field(s) %s in AlipayIserviceCcmServicerecordModifyModel is not found in the empty JSON string", AlipayIserviceCcmServicerecordModifyModel.openapiRequiredFields.toString()));
        }
      }
      if (jsonObj.get("acid") != null && !jsonObj.get("acid").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `acid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("acid").toString()));
      }
      if (jsonObj.get("aid") != null && !jsonObj.get("aid").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `aid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("aid").toString()));
      }
      if (jsonObj.get("ani") != null && !jsonObj.get("ani").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `ani` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ani").toString()));
      }
      if (jsonObj.get("asid") != null && !jsonObj.get("asid").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `asid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("asid").toString()));
      }
      // validate the optional field `category_list`
      if (jsonObj.getAsJsonObject("category_list") != null) {
        ServiceRecordCatRequest.validateJsonObject(jsonObj.getAsJsonObject("category_list"));
      }
      if (jsonObj.get("chat_begin_time") != null && !jsonObj.get("chat_begin_time").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `chat_begin_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("chat_begin_time").toString()));
      }
      if (jsonObj.get("chat_end_time") != null && !jsonObj.get("chat_end_time").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `chat_end_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("chat_end_time").toString()));
      }
      if (jsonObj.get("city") != null && !jsonObj.get("city").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `city` to be a primitive type in the JSON string but got `%s`", jsonObj.get("city").toString()));
      }
      if (jsonObj.get("creator_id") != null && !jsonObj.get("creator_id").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `creator_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("creator_id").toString()));
      }
      if (jsonObj.get("discon_symbol") != null && !jsonObj.get("discon_symbol").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `discon_symbol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("discon_symbol").toString()));
      }
      if (jsonObj.get("dnis") != null && !jsonObj.get("dnis").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `dnis` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dnis").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("memo") != null && !jsonObj.get("memo").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `memo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memo").toString()));
      }
      if (jsonObj.get("modifier_id") != null && !jsonObj.get("modifier_id").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `modifier_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("modifier_id").toString()));
      }
      if (jsonObj.get("outbound_task_id") != null && !jsonObj.get("outbound_task_id").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `outbound_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("outbound_task_id").toString()));
      }
      if (jsonObj.get("satisfaction") != null && !jsonObj.get("satisfaction").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `satisfaction` to be a primitive type in the JSON string but got `%s`", jsonObj.get("satisfaction").toString()));
      }
      if (jsonObj.get("satisfaction_memo") != null && !jsonObj.get("satisfaction_memo").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `satisfaction_memo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("satisfaction_memo").toString()));
      }
      if (jsonObj.get("service_source") != null && !jsonObj.get("service_source").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `service_source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("service_source").toString()));
      }
      if (jsonObj.get("skillgroup_id") != null && !jsonObj.get("skillgroup_id").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `skillgroup_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("skillgroup_id").toString()));
      }
      if (jsonObj.get("skillgroup_name") != null && !jsonObj.get("skillgroup_name").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `skillgroup_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("skillgroup_name").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("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("user_id") != null && !jsonObj.get("user_id").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `user_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_id").toString()));
      }
      if (jsonObj.get("verify_result") != null && !jsonObj.get("verify_result").isJsonPrimitive()) {
        throw new IllegalArgumentException(String.format("Expected the field `verify_result` to be a primitive type in the JSON string but got `%s`", jsonObj.get("verify_result").toString()));
      }
  }

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

       return (TypeAdapter) new TypeAdapter() {
           @Override
           public void write(JsonWriter out, AlipayIserviceCcmServicerecordModifyModel 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 AlipayIserviceCcmServicerecordModifyModel read(JsonReader in) throws IOException {
             JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject();
             validateJsonObject(jsonObj);
             // store additional fields in the deserialized instance
             AlipayIserviceCcmServicerecordModifyModel 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 AlipayIserviceCcmServicerecordModifyModel given an JSON string
  *
  * @param jsonString JSON string
  * @return An instance of AlipayIserviceCcmServicerecordModifyModel
  * @throws IOException if the JSON string is invalid with respect to AlipayIserviceCcmServicerecordModifyModel
  */
  public static AlipayIserviceCcmServicerecordModifyModel fromJson(String jsonString) throws IOException {
    return JSON.getGson().fromJson(jsonString, AlipayIserviceCcmServicerecordModifyModel.class);
  }

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy