diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayOrderNotifyResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayOrderNotifyResult.java index bfeb98f0..a411cd2c 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayOrderNotifyResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPayOrderNotifyResult.java @@ -25,12 +25,12 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa /** *
- * 设备号 - * device_info - * 否 - * String(32) - * 013467007045764 - * 微信支付分配的终端设备号, + * 字段名:设备号 + * 变量名:device_info + * 是否必填:否 + * 类型:String(32) + * 示例值:013467007045764 + * 描述:微信支付分配的终端设备号, **/ @XStreamAlias("device_info") @@ -38,12 +38,12 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa /** *
- * 用户标识 - * openid - * 是 - * String(128) - * wxd930ea5d5a258f4f - * 用户在商户appid下的唯一标识 + * 字段名:用户标识 + * 变量名:openid + * 是否必填:是 + * 类型:String(128) + * 示例值:wxd930ea5d5a258f4f + * 描述:用户在商户appid下的唯一标识 **/ @XStreamAlias("openid") @@ -51,131 +51,139 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa /** *
- * 是否关注公众账号 - * is_subscribe - * 否 - * String(1) - * Y - * 用户是否关注公众账号,Y-关注,N-未关注,仅在公众账号类型支付有效 + * 字段名:是否关注公众账号 + * 变量名:is_subscribe + * 是否必填:否 + * 类型:String(1) + * 示例值:Y + * 描述:用户是否关注公众账号,Y-关注,N-未关注,仅在公众账号类型支付有效 **/ @XStreamAlias("is_subscribe") private String isSubscribe; - /** *
- * 交易类型 - * trade_type - * 是 - * String(16) - * JSAPI JSAPI、NATIVE、APP + * 字段名:用户子标识 + * 变量名:sub_openid + * 是否必填:是 + * 类型:String(128) + * 示例值:wxd930ea5d5a258f4f + * 描述:用户在子商户appid下的唯一标识 **/ - @XStreamAlias("trade_type") - private String tradeType; - + @XStreamAlias("sub_openid") + private String subOpenid; /** *
- * 付款银行 - * bank_type - * 是 - * String(16) - * CMC - * 银行类型,采用字符串类型的银行标识,银行类型见银行列表 + * 字段名:是否关注子公众账号 + * 变量名:sub_is_subscribe + * 是否必填:否 + * 类型:String(1) + * 示例值:Y + * 描述:用户是否关注子公众账号,Y-关注,N-未关注,仅在公众账号类型支付有效 **/ - @XStreamAlias("bank_type") - private String bankType; + @XStreamAlias("sub_is_subscribe") + private String subIsSubscribe; + /** *
- * 用户是否关注子公众账号 - * String(1) - * Y-关注,N-未关注,仅在公众账号类型支付有效 + * 字段名:交易类型 + * 变量名:trade_type + * 是否必填:是 + * 类型:String(16) + * 示例值:JSAPI + * JSA描述:PI、NATIVE、APP **/ - @XStreamAlias("sub_is_subscribe") - private String subIsSubscribe; + @XStreamAlias("trade_type") + private String tradeType; + /** *
- * 用户在子商户appid下的唯一标识 - * String(128) + * 字段名:付款银行 + * 变量名:bank_type + * 是否必填:是 + * 类型:String(16) + * 示例值:CMC + * 描述:银行类型,采用字符串类型的银行标识,银行类型见银行列表 **/ - @XStreamAlias("sub_openid") - private String subOpenId; + @XStreamAlias("bank_type") + private String bankType; /** *
- * 订单金额 - * total_fee - * 是 - * Int - * 100 - * 订单总金额,单位为分 + * 字段名:订单金额 + * 变量名:total_fee + * 是否必填:是 + * 类型:Int + * 示例值:100 + * 描述:订单总金额,单位为分 **/ @XStreamAlias("total_fee") private Integer totalFee; /** *
- * 应结订单金额 - * settlement_total_fee - * 否 - * Int - * 100 - * 应结订单金额=订单金额-非充值代金券金额,应结订单金额<=订单金额。 + * 字段名:应结订单金额 + * 变量名:settlement_total_fee + * 是否必填:否 + * 类型:Int + * 示例值:100 + * 描述:应结订单金额=订单金额-非充值代金券金额,应结订单金额<=订单金额。 **/ @XStreamAlias("settlement_total_fee") private Integer settlementTotalFee; /** *
- * 货币种类 - * fee_type - * 否 - * String(8) - * CNY - * 货币类型,符合ISO4217标准的三位字母代码,默认人民币:CNY,其他值列表详见货币类型 + * 字段名:货币种类 + * 变量名:fee_type + * 是否必填:否 + * 类型:String(8) + * 示例值:CNY + * 描述:货币类型,符合ISO4217标准的三位字母代码,默认人民币:CNY,其他值列表详见货币类型 **/ @XStreamAlias("fee_type") private String feeType; /** *
- * 现金支付金额 - * cash_fee - * 是 - * Int - * 100 - * 现金支付金额订单现金支付金额,详见支付金额 + * 字段名:现金支付金额 + * 变量名:cash_fee + * 是否必填:是 + * 类型:Int + * 示例值:100 + * 描述:现金支付金额订单现金支付金额,详见支付金额 **/ @XStreamAlias("cash_fee") private Integer cashFee; /** *
- * 现金支付货币类型 - * cash_fee_type - * 否 - * String(16) - * CNY - * 货币类型,符合ISO4217标准的三位字母代码,默认人民币:CNY,其他值列表详见货币类型 + * 字段名:现金支付货币类型 + * 变量名:cash_fee_type + * 是否必填:否 + * 类型:String(16) + * 示例值:CNY + * 描述:货币类型,符合ISO4217标准的三位字母代码,默认人民币:CNY,其他值列表详见货币类型 **/ @XStreamAlias("cash_fee_type") private String cashFeeType; /** *
- * 总代金券金额 - * coupon_fee - * 否 - * Int - * 10 - * 代金券金额<=订单金额,订单金额-代金券金额=现金支付金额,详见支付金额 + * 字段名:总代金券金额 + * 变量名:coupon_fee + * 是否必填:否 + * 类型:Int + * 示例值:10 + * 描述:代金券金额<=订单金额,订单金额-代金券金额=现金支付金额,详见支付金额 **/ @XStreamAlias("coupon_fee") @@ -183,12 +191,12 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa /** *
- * 代金券使用数量 - * coupon_count - * 否 - * Int - * 1 - * 代金券使用数量 + * 字段名:代金券使用数量 + * 变量名:coupon_count + * 是否必填:否 + * 类型:Int + * 示例值:1 + * 描述:代金券使用数量 **/ @XStreamAlias("coupon_count") @@ -198,12 +206,12 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa /** *
- * 微信支付订单号 - * transaction_id - * 是 - * String(32) - * 1217752501201407033233368018 - * 微信支付订单号 + * 字段名:微信支付订单号 + * 变量名:transaction_id + * 是否必填:是 + * 类型:String(32) + * 示例值:1217752501201407033233368018 + * 描述:微信支付订单号 **/ @XStreamAlias("transaction_id") @@ -211,36 +219,36 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa /** *
- * 商户订单号 - * out_trade_no - * 是 - * String(32) - * 1212321211201407033568112322 - * 商户系统的订单号,与请求一致。 + * 字段名:商户订单号 + * 变量名:out_trade_no + * 是否必填:是 + * 类型:String(32) + * 示例值:1212321211201407033568112322 + * 描述:商户系统的订单号,与请求一致。 **/ @XStreamAlias("out_trade_no") private String outTradeNo; /** *
- * 商家数据包 - * attach - * 否 - * String(128) - * 123456 - * 商家数据包,原样返回 + * 字段名:商家数据包 + * 变量名:attach + * 是否必填:否 + * 类型:String(128) + * 示例值:123456 + * 描述:商家数据包,原样返回 **/ @XStreamAlias("attach") private String attach; /** *
- * 支付完成时间 - * time_end - * 是 - * String(14) - * 20141030133525 - * 支付完成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010。其他详见时间规则 + * 字段名:支付完成时间 + * 变量名:time_end + * 是否必填:是 + * 类型:String(14) + * 示例值:20141030133525 + * 描述:支付完成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010。其他详见时间规则 **/ @XStreamAlias("time_end") @@ -311,22 +319,6 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa this.bankType = bankType; } - public String getSubIsSubscribe() { - return subIsSubscribe; - } - - public void setSubIsSubscribe(String subIsSubscribe) { - this.subIsSubscribe = subIsSubscribe; - } - - public String getSubOpenId() { - return subOpenId; - } - - public void setSubOpenId(String subOpenId) { - this.subOpenId = subOpenId; - } - public Integer getTotalFee() { return totalFee; } @@ -407,6 +399,22 @@ public class WxPayOrderNotifyResult extends WxPayBaseResult implements Serializa this.timeEnd = timeEnd; } + public String getSubOpenid() { + return this.subOpenid; + } + + public void setSubOpenid(String subOpenid) { + this.subOpenid = subOpenid; + } + + public String getSubIsSubscribe() { + return this.subIsSubscribe; + } + + public void setSubIsSubscribe(String subIsSubscribe) { + this.subIsSubscribe = subIsSubscribe; + } + @Override public Map