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

me.chanjar.weixin.cp.bean.WxCpProviderToken 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.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;

import java.io.Serializable;

/**
 * 服务商凭证.
 *
 * @author Binary Wang created on  2019-11-02
 */
@Data
public class WxCpProviderToken implements Serializable {
  private static final long serialVersionUID = -4301684507150486556L;

  /**
   * 服务商的access_token,最长为512字节。
   */
  @SerializedName("provider_access_token")
  private String providerAccessToken;

  /**
   * provider_access_token有效期(秒)
   */
  @SerializedName("expires_in")
  private Integer expiresIn;

  /**
   * From json wx cp provider token.
   *
   * @param json the json
   * @return the wx cp provider token
   */
  public static WxCpProviderToken fromJson(String json) {
    return WxCpGsonBuilder.create().fromJson(json, WxCpProviderToken.class);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy