cn.minsin.wechat.jsapi.model.JsapiOrderPayModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mutils-wechat-jsapi Show documentation
Show all versions of mutils-wechat-jsapi Show documentation
mutils组件中,提供微信jsapi(公众号)+微信支付模块。
官方文档:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_1
package cn.minsin.wechat.jsapi.model;
import cn.minsin.core.annotation.NotNull;
import cn.minsin.core.init.AbstractConfig;
import cn.minsin.wechat.jsapi.config.MutilsWechatJsapiProperties;
import cn.minsin.wechat.wechatpay.core.model.PayModel;
public class JsapiOrderPayModel extends PayModel {
/**
*
*/
private static final long serialVersionUID = -2340902354991037737L;
@NotNull("用户的openid")
private String openid;
public JsapiOrderPayModel() {
super();
this.setAppid(AbstractConfig.loadConfig(MutilsWechatJsapiProperties.class).getAppid());
this.setTrade_type("JSAPI");
}
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
}