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

com.wechat.pay.java.service.payrollcard.model.AuthenticationEntity Maven / Gradle / Ivy

There is a newer version: 0.2.15
Show newest version
// Copyright 2021 Tencent Inc. All rights reserved.
//
// 微工卡接口文档
//
// 服务商通过本API文档提供的接口,查询商户和微工卡的授权关系、生成预授权的token口令、核身预下单、核身结果的查询等。
//
// API version: 1.5.2

// Code generated by WechatPay APIv3 Generator based on [OpenAPI
// Generator](https://openapi-generator.tech); DO NOT EDIT.

package com.wechat.pay.java.service.payrollcard.model;

import static com.wechat.pay.java.core.util.StringUtil.toIndentedString;

import com.google.gson.annotations.SerializedName;

/** AuthenticationEntity */
public class AuthenticationEntity {
  /** 服务商商户号 说明:服务商商户号 */
  @SerializedName("mchid")
  private String mchid;

  /** 特约商户商户号 说明:特约商户商户号 */
  @SerializedName("sub_mchid")
  private String subMchid;

  /** 用户OpenID 说明:用户OpenID */
  @SerializedName("openid")
  private String openid;

  /** 核身渠道 说明:核身渠道,发起核身时的来源渠道,如通过小程序,硬件设备等 */
  @SerializedName("authenticate_scene")
  private AuthenticationScene authenticateScene;

  /** 核身渠道标识 说明:核身渠道标识,用于定位渠道具体来源,如果是扫码打卡渠道标识就是具体的小程序AppID,若是硬件设备,则是设备的序列号等 */
  @SerializedName("authenticate_source")
  private String authenticateSource;

  /** 项目名称 说明:项目名称 */
  @SerializedName("project_name")
  private String projectName;

  /** 用工企业 说明:该工人所属的用工企业,由商户核身下单时传入 */
  @SerializedName("employer_name")
  private String employerName;

  /** 核身状态 说明:核身状态 */
  @SerializedName("authenticate_state")
  private AuthenticationState authenticateState;

  /**
   * 核身时间
   * 说明:核身时间,遵循RFC3339标准格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC
   * 8小时,即北京时间)。
   */
  @SerializedName("authenticate_time")
  private String authenticateTime;

  /** 商家核身单号 说明:商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一 */
  @SerializedName("authenticate_number")
  private String authenticateNumber;

  /** 核身失败原因 说明:结果为核身失败时的原因描述,仅在失败记录返回 */
  @SerializedName("authenticate_failed_reason")
  private String authenticateFailedReason;

  /** 核身类型 说明:核身类型 */
  @SerializedName("authenticate_type")
  private AuthenticationType authenticateType;

  public String getMchid() {
    return mchid;
  }

  public void setMchid(String mchid) {
    this.mchid = mchid;
  }

  public String getSubMchid() {
    return subMchid;
  }

  public void setSubMchid(String subMchid) {
    this.subMchid = subMchid;
  }

  public String getOpenid() {
    return openid;
  }

  public void setOpenid(String openid) {
    this.openid = openid;
  }

  public AuthenticationScene getAuthenticateScene() {
    return authenticateScene;
  }

  public void setAuthenticateScene(AuthenticationScene authenticateScene) {
    this.authenticateScene = authenticateScene;
  }

  public String getAuthenticateSource() {
    return authenticateSource;
  }

  public void setAuthenticateSource(String authenticateSource) {
    this.authenticateSource = authenticateSource;
  }

  public String getProjectName() {
    return projectName;
  }

  public void setProjectName(String projectName) {
    this.projectName = projectName;
  }

  public String getEmployerName() {
    return employerName;
  }

  public void setEmployerName(String employerName) {
    this.employerName = employerName;
  }

  public AuthenticationState getAuthenticateState() {
    return authenticateState;
  }

  public void setAuthenticateState(AuthenticationState authenticateState) {
    this.authenticateState = authenticateState;
  }

  public String getAuthenticateTime() {
    return authenticateTime;
  }

  public void setAuthenticateTime(String authenticateTime) {
    this.authenticateTime = authenticateTime;
  }

  public String getAuthenticateNumber() {
    return authenticateNumber;
  }

  public void setAuthenticateNumber(String authenticateNumber) {
    this.authenticateNumber = authenticateNumber;
  }

  public String getAuthenticateFailedReason() {
    return authenticateFailedReason;
  }

  public void setAuthenticateFailedReason(String authenticateFailedReason) {
    this.authenticateFailedReason = authenticateFailedReason;
  }

  public AuthenticationType getAuthenticateType() {
    return authenticateType;
  }

  public void setAuthenticateType(AuthenticationType authenticateType) {
    this.authenticateType = authenticateType;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AuthenticationEntity {\n");
    sb.append("    mchid: ").append(toIndentedString(mchid)).append("\n");
    sb.append("    subMchid: ").append(toIndentedString(subMchid)).append("\n");
    sb.append("    openid: ").append(toIndentedString(openid)).append("\n");
    sb.append("    authenticateScene: ").append(toIndentedString(authenticateScene)).append("\n");
    sb.append("    authenticateSource: ").append(toIndentedString(authenticateSource)).append("\n");
    sb.append("    projectName: ").append(toIndentedString(projectName)).append("\n");
    sb.append("    employerName: ").append(toIndentedString(employerName)).append("\n");
    sb.append("    authenticateState: ").append(toIndentedString(authenticateState)).append("\n");
    sb.append("    authenticateTime: ").append(toIndentedString(authenticateTime)).append("\n");
    sb.append("    authenticateNumber: ").append(toIndentedString(authenticateNumber)).append("\n");
    sb.append("    authenticateFailedReason: ")
        .append(toIndentedString(authenticateFailedReason))
        .append("\n");
    sb.append("    authenticateType: ").append(toIndentedString(authenticateType)).append("\n");
    sb.append("}");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy