me.chanjar.weixin.cp.bean.WxCpProviderToken Maven / Gradle / Ivy
package me.chanjar.weixin.cp.bean;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
/**
* 服务商凭证.
*
* @author Binary Wang
* @date 2019-11-02
*/
@Data
public class WxCpProviderToken {
/**
* 服务商的access_token,最长为512字节。
*/
@SerializedName("provider_access_token")
private String providerAccessToken;
/**
* provider_access_token有效期(秒)
*/
@SerializedName("expires_in")
private Integer expiresIn;
public static WxCpProviderToken fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpProviderToken.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy