Skip to content

Commit

Permalink
#533 微信刷卡支付请求类增加缺少的三个参数
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Apr 12, 2018
1 parent a6ee082 commit 617f861
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,33 @@ public class WxPayMicropayRequest extends BaseWxPayRequest {
@XStreamAlias("limit_pay")
private String limitPay;

/**
* <pre>
* 字段名:交易起始时间.
* 变量名:time_start
* 是否必填:否
* 类型:String(14)
* 示例值:20091225091010
* 描述:订单生成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010。其他详见时间规则
* </pre>
*/
@XStreamAlias("time_start")
private String timeStart;

/**
* <pre>
* 字段名:交易结束时间.
* 变量名:time_expire
* 是否必填:否
* 类型:String(14)
* 示例值:20091227091010
* 描述:订单失效时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010。其他详见时间规则
* 注意:最短失效时间间隔必须大于5分钟
* </pre>
*/
@XStreamAlias("time_expire")
private String timeExpire;

/**
* <pre>
* 字段名:授权码.
Expand All @@ -167,6 +194,23 @@ public class WxPayMicropayRequest extends BaseWxPayRequest {
@XStreamAlias("auth_code")
private String authCode;

/**
* <pre>
* 字段名:场景信息.
* 变量名:scene_info
* 是否必填:否
* 类型:String(256)
* 示例值:{"store_info" : {
* "id": "SZTX001",
* "name": "腾大餐厅",
* "area_code": "440305",
* "address": "科技园中一路腾讯大厦" }}
* 描述:该字段用于上报场景信息,目前支持上报实际门店信息。该字段为JSON对象数据,对象格式为{"store_info":{"id": "门店ID","name": "名称","area_code": "编码","address": "地址" }}
* </pre>
*/
@XStreamAlias("scene_info")
private String sceneInfo;

@Override
protected void checkConstraints() {
//do nothing
Expand Down

0 comments on commit 617f861

Please sign in to comment.