Skip to content

Commit fb0460e

Browse files
authored
🆕 #2188 【微信支付】增加v3合单支付和账单相关接口
1 parent dc7bcc0 commit fb0460e

15 files changed

+2370
-113
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/CombineNotifyResult.java

Lines changed: 576 additions & 0 deletions
Large diffs are not rendered by default.

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayRefundNotifyV3Result.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static class DecryptNotifyResult implements Serializable {
105105
* SUCCESS:退款成功
106106
* CLOSE:退款关闭
107107
* ABNORMAL:退款异常,退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,可前往【商户平台—>交易中心】,手动处理此笔退款
108-
* 示例值:SUCCESS
108+
* 示例值:SUCCESS
109109
* </pre>
110110
*/
111111
@SerializedName(value = "refund_status")
@@ -158,6 +158,7 @@ public static class DecryptNotifyResult implements Serializable {
158158
@Data
159159
@NoArgsConstructor
160160
public static class Amount implements Serializable {
161+
private static final long serialVersionUID = 1L;
161162
/**
162163
* <pre>
163164
* 字段名:订单金额
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
package com.github.binarywang.wxpay.bean.request;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import lombok.Data;
5+
import lombok.NoArgsConstructor;
6+
7+
import java.io.Serializable;
8+
import java.util.List;
9+
10+
/**
11+
* <pre>
12+
* 合单支付订单只能使用此合单关单api完成关单。
13+
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_12.shtml
14+
* </pre>
15+
*
16+
* @author thinsstar
17+
*/
18+
@Data
19+
@NoArgsConstructor
20+
public class CombineCloseRequest implements Serializable {
21+
private static final long serialVersionUID = 1L;
22+
/**
23+
* <pre>
24+
* 字段名:合单商户appid
25+
* 变量名:combine_appid
26+
* 是否必填:是
27+
* 类型:string[1,32]
28+
* 描述:
29+
* 合单发起方的appid。
30+
* 示例值:wxd678efh567hg6787
31+
* </pre>
32+
*/
33+
@SerializedName(value = "combine_appid")
34+
private String combineAppid;
35+
/**
36+
* <pre>
37+
* 字段名:合单商户订单号
38+
* 变量名:combine_out_trade_no
39+
* 是否必填:是
40+
* 类型:string[1,32]
41+
* 描述:
42+
* 合单支付总订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一。
43+
* 示例值:P20150806125346
44+
* </pre>
45+
*/
46+
private transient String combineOutTradeNo;
47+
/**
48+
* <pre>
49+
* 字段名:子单信息
50+
* 变量名:sub_orders
51+
* 是否必填:是
52+
* 类型:array
53+
* 描述:
54+
* 最多支持子单条数:10
55+
* </pre>
56+
*/
57+
@SerializedName(value = "sub_orders")
58+
private List<SubOrders> subOrders;
59+
60+
@Data
61+
@NoArgsConstructor
62+
public static class SubOrders implements Serializable {
63+
private static final long serialVersionUID = 1L;
64+
/**
65+
* <pre>
66+
* 字段名:子单商户号
67+
* 变量名:mchid
68+
* 是否必填:是
69+
* 类型:string[1,32]
70+
* 描述:
71+
* 子单发起方商户号,必须与发起方appid有绑定关系。
72+
* 示例值:1900000109
73+
* </pre>
74+
*/
75+
@SerializedName(value = "mchid")
76+
private String mchid;
77+
/**
78+
* <pre>
79+
* 字段名:子单商户订单号
80+
* 变量名:out_trade_no
81+
* 是否必填:是
82+
* 类型:string[6,32]
83+
* 描述:
84+
* 商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一。
85+
* 示例值:20150806125346
86+
* </pre>
87+
*/
88+
@SerializedName(value = "out_trade_no")
89+
private String outTradeNo;
90+
}
91+
}

0 commit comments

Comments
 (0)