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

me.chanjar.weixin.cp.bean.WxCpTpPreauthCode Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package me.chanjar.weixin.cp.bean;

import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;

/**
 * 预授权码返回
 *
 * @author yqx  created on  2020/3/19
 */
@Getter
@Setter
public class WxCpTpPreauthCode extends WxCpBaseResp {

  /**
   * The Pre auth code.
   */
  @SerializedName("pre_auth_code")
  String preAuthCode;

  /**
   * The Expires in.
   */
  @SerializedName("expires_in")
  Long expiresIn;

  /**
   * From json wx cp tp preauth code.
   *
   * @param json the json
   * @return the wx cp tp preauth code
   */
  public static WxCpTpPreauthCode fromJson(String json) {
    return WxCpGsonBuilder.create().fromJson(json, WxCpTpPreauthCode.class);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy