From 617f861af51ce30730786a22bc3b405f29b3c47e Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 13 Apr 2018 00:12:03 +0800 Subject: [PATCH] =?UTF-8?q?#533=20=E5=BE=AE=E4=BF=A1=E5=88=B7=E5=8D=A1?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E8=AF=B7=E6=B1=82=E7=B1=BB=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E7=9A=84=E4=B8=89=E4=B8=AA=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bean/request/WxPayMicropayRequest.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayMicropayRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayMicropayRequest.java index daa098f9..8cec4f0b 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayMicropayRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayMicropayRequest.java @@ -153,6 +153,33 @@ public class WxPayMicropayRequest extends BaseWxPayRequest { @XStreamAlias("limit_pay") private String limitPay; + /** + *
+   * 字段名:交易起始时间.
+   * 变量名:time_start
+   * 是否必填:否
+   * 类型:String(14)
+   * 示例值:20091225091010
+   * 描述:订单生成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010。其他详见时间规则
+   * 
+ */ + @XStreamAlias("time_start") + private String timeStart; + + /** + *
+   * 字段名:交易结束时间.
+   * 变量名:time_expire
+   * 是否必填:否
+   * 类型:String(14)
+   * 示例值:20091227091010
+   * 描述:订单失效时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010。其他详见时间规则
+   * 注意:最短失效时间间隔必须大于5分钟
+   * 
+ */ + @XStreamAlias("time_expire") + private String timeExpire; + /** *
    * 字段名:授权码.
@@ -167,6 +194,23 @@ public class WxPayMicropayRequest extends BaseWxPayRequest {
   @XStreamAlias("auth_code")
   private String authCode;
 
+  /**
+   * 
+   * 字段名:场景信息.
+   * 变量名:scene_info
+   * 是否必填:否
+   * 类型:String(256)
+   * 示例值:{"store_info" : {
+   * "id": "SZTX001",
+   * "name": "腾大餐厅",
+   * "area_code": "440305",
+   * "address": "科技园中一路腾讯大厦" }}
+   * 描述:该字段用于上报场景信息,目前支持上报实际门店信息。该字段为JSON对象数据,对象格式为{"store_info":{"id": "门店ID","name": "名称","area_code": "编码","address": "地址" }}
+   * 
+ */ + @XStreamAlias("scene_info") + private String sceneInfo; + @Override protected void checkConstraints() { //do nothing