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

me.chanjar.weixin.common.bean.ocr.WxOcrIdCardResult Maven / Gradle / Ivy

The newest version!
package me.chanjar.weixin.common.bean.ocr;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;

import java.io.Serializable;

/**
 * OCR身份证识别结果.
 *
 * @author Binary Wang
 * created on  2019-06-23
 */
@Data
public class WxOcrIdCardResult implements Serializable {
  private static final long serialVersionUID = 8184352486986729980L;

  @SerializedName("type")
  private String type;
  @SerializedName("name")
  private String name;
  @SerializedName("id")
  private String id;
  @SerializedName("addr")
  private String addr;
  @SerializedName("gender")
  private String gender;
  @SerializedName("nationality")
  private String nationality;
  @SerializedName("valid_date")
  private String validDate;

  public static WxOcrIdCardResult fromJson(String json) {
    return WxGsonBuilder.create().fromJson(json, WxOcrIdCardResult.class);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy