mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 16:18:51 +08:00
#279 统一下单接口参数对象WxPayUnifiedOrderRequest增加fingerprint属性
This commit is contained in:
parent
55c71a995e
commit
687093f755
@ -299,6 +299,16 @@ public class WxPayUnifiedOrderRequest extends WxPayBaseRequest {
|
|||||||
*/
|
*/
|
||||||
@XStreamAlias("scene_info")
|
@XStreamAlias("scene_info")
|
||||||
private String sceneInfo;
|
private String sceneInfo;
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* 字段名:浏览器指纹
|
||||||
|
* 变量名:fingerprint
|
||||||
|
* 是否必填:否
|
||||||
|
* 详细参考 https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=15_7&index=6
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
@XStreamAlias("fingerprint")
|
||||||
|
private String fingerprint;
|
||||||
|
|
||||||
public WxPayUnifiedOrderRequest() {
|
public WxPayUnifiedOrderRequest() {
|
||||||
}
|
}
|
||||||
@ -328,6 +338,7 @@ public class WxPayUnifiedOrderRequest extends WxPayBaseRequest {
|
|||||||
setOpenid(builder.openid);
|
setOpenid(builder.openid);
|
||||||
setSubOpenid(builder.subOpenid);
|
setSubOpenid(builder.subOpenid);
|
||||||
setSceneInfo(builder.sceneInfo);
|
setSceneInfo(builder.sceneInfo);
|
||||||
|
fingerprint = builder.fingerprint;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Builder newBuilder() {
|
public static Builder newBuilder() {
|
||||||
@ -518,14 +529,14 @@ public class WxPayUnifiedOrderRequest extends WxPayBaseRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static final class Builder {
|
public static final class Builder {
|
||||||
private String deviceInfo;
|
|
||||||
private String appid;
|
private String appid;
|
||||||
private String body;
|
|
||||||
private String mchId;
|
private String mchId;
|
||||||
private String subAppId;
|
private String subAppId;
|
||||||
private String subMchId;
|
private String subMchId;
|
||||||
private String nonceStr;
|
private String nonceStr;
|
||||||
private String sign;
|
private String sign;
|
||||||
|
private String deviceInfo;
|
||||||
|
private String body;
|
||||||
private String detail;
|
private String detail;
|
||||||
private String attach;
|
private String attach;
|
||||||
private String outTradeNo;
|
private String outTradeNo;
|
||||||
@ -542,25 +553,16 @@ public class WxPayUnifiedOrderRequest extends WxPayBaseRequest {
|
|||||||
private String openid;
|
private String openid;
|
||||||
private String subOpenid;
|
private String subOpenid;
|
||||||
private String sceneInfo;
|
private String sceneInfo;
|
||||||
|
private String fingerprint;
|
||||||
|
|
||||||
private Builder() {
|
private Builder() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder deviceInfo(String deviceInfo) {
|
|
||||||
this.deviceInfo = deviceInfo;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder appid(String appid) {
|
public Builder appid(String appid) {
|
||||||
this.appid = appid;
|
this.appid = appid;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder body(String body) {
|
|
||||||
this.body = body;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mchId(String mchId) {
|
public Builder mchId(String mchId) {
|
||||||
this.mchId = mchId;
|
this.mchId = mchId;
|
||||||
return this;
|
return this;
|
||||||
@ -586,6 +588,16 @@ public class WxPayUnifiedOrderRequest extends WxPayBaseRequest {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder deviceInfo(String deviceInfo) {
|
||||||
|
this.deviceInfo = deviceInfo;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder body(String body) {
|
||||||
|
this.body = body;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public Builder detail(String detail) {
|
public Builder detail(String detail) {
|
||||||
this.detail = detail;
|
this.detail = detail;
|
||||||
return this;
|
return this;
|
||||||
@ -666,6 +678,11 @@ public class WxPayUnifiedOrderRequest extends WxPayBaseRequest {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder fingerprint(String fingerprint) {
|
||||||
|
this.fingerprint = fingerprint;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public WxPayUnifiedOrderRequest build() {
|
public WxPayUnifiedOrderRequest build() {
|
||||||
return new WxPayUnifiedOrderRequest(this);
|
return new WxPayUnifiedOrderRequest(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user