Skip to content

Commit 9d2fb9f

Browse files
DDLeEHibinarywang
authored andcommitted
完善微信支付 下载对账单 的接口 binarywang#65
1 parent 1806389 commit 9d2fb9f

File tree

5 files changed

+426
-8
lines changed

5 files changed

+426
-8
lines changed
Lines changed: 257 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,257 @@
1+
package com.github.binarywang.wxpay.bean.result;
2+
import java.io.Serializable;
3+
4+
public class WxPayBillBaseResult implements Serializable
5+
{
6+
/*
7+
* 交易时间:2017-04-06 01:00:02 公众账号ID: 商户号: 子商户号:0 设备号:WEB 微信订单号: 商户订单号:2017040519091071873216 用户标识: 交易类型:NATIVE
8+
* 交易状态:REFUND 付款银行:CFT 货币种类:CNY 总金额:0.00 企业红包金额:0.00 微信退款单号: 商户退款单号:20170406010000933 退款金额:0.01 企业红包退款金额:0.00
9+
* 退款类型:ORIGINAL 退款状态:SUCCESS 商品名称: 商户数据包: 手续费:0.00000 费率 :0.60%
10+
*/
11+
private static final long serialVersionUID = 1L;
12+
/**交易时间*/
13+
private String tradeTime;
14+
/**公众账号ID*/
15+
private String appId;
16+
/**商户号*/
17+
private String mchId;
18+
/**子商户号*/
19+
private String subMchId;
20+
/**设备号*/
21+
private String deviceInfo;
22+
/**微信订单号*/
23+
private String transationId;
24+
/**商户订单号*/
25+
private String outTradeNo;
26+
/**用户标识*/
27+
private String openId;
28+
/**交易类型*/
29+
private String tradeType;
30+
/**交易状态*/
31+
private String tradeState ;
32+
/**付款银行*/
33+
private String bankType;
34+
/**货币种类*/
35+
private String feeType;
36+
/**总金额*/
37+
private String totalFee;
38+
/**企业红包金额*/
39+
private String couponFee;
40+
/**微信退款单号*/
41+
private String refundId;
42+
/**商户退款单号*/
43+
private String outRefundNo;
44+
/**退款金额*/
45+
private String settlementRefundFee;
46+
/**企业红包退款金额*/
47+
private String couponRefundFee;
48+
/**退款类型*/
49+
private String refundChannel;
50+
/**退款状态*/
51+
private String refundState;
52+
/**商品名称*/
53+
private String body;
54+
/**商户数据包*/
55+
private String attach;
56+
/**手续费*/
57+
private String poundage;
58+
/**费率*/
59+
private String poundageRate;
60+
public String getTradeTime()
61+
{
62+
return tradeTime;
63+
}
64+
public void setTradeTime(String tradeTime)
65+
{
66+
this.tradeTime = tradeTime;
67+
}
68+
public String getAppId()
69+
{
70+
return appId;
71+
}
72+
public void setAppId(String appId)
73+
{
74+
this.appId = appId;
75+
}
76+
public String getMchId()
77+
{
78+
return mchId;
79+
}
80+
public void setMchId(String mchId)
81+
{
82+
this.mchId = mchId;
83+
}
84+
public String getSubMchId()
85+
{
86+
return subMchId;
87+
}
88+
public void setSubMchId(String subMchId)
89+
{
90+
this.subMchId = subMchId;
91+
}
92+
public String getDeviceInfo()
93+
{
94+
return deviceInfo;
95+
}
96+
public void setDeviceInfo(String deviceInfo)
97+
{
98+
this.deviceInfo = deviceInfo;
99+
}
100+
public String getTransationId()
101+
{
102+
return transationId;
103+
}
104+
public void setTransationId(String transationId)
105+
{
106+
this.transationId = transationId;
107+
}
108+
public String getOutTradeNo()
109+
{
110+
return outTradeNo;
111+
}
112+
public void setOutTradeNo(String outTradeNo)
113+
{
114+
this.outTradeNo = outTradeNo;
115+
}
116+
public String getOpenId()
117+
{
118+
return openId;
119+
}
120+
public void setOpenId(String openId)
121+
{
122+
this.openId = openId;
123+
}
124+
public String getTradeType()
125+
{
126+
return tradeType;
127+
}
128+
public void setTradeType(String tradeType)
129+
{
130+
this.tradeType = tradeType;
131+
}
132+
public String getTradeState()
133+
{
134+
return tradeState;
135+
}
136+
public void setTradeState(String tradeState)
137+
{
138+
this.tradeState = tradeState;
139+
}
140+
public String getBankType()
141+
{
142+
return bankType;
143+
}
144+
public void setBankType(String bankType)
145+
{
146+
this.bankType = bankType;
147+
}
148+
public String getFeeType()
149+
{
150+
return feeType;
151+
}
152+
public void setFeeType(String feeType)
153+
{
154+
this.feeType = feeType;
155+
}
156+
public String getTotalFee()
157+
{
158+
return totalFee;
159+
}
160+
public void setTotalFee(String totalFee)
161+
{
162+
this.totalFee = totalFee;
163+
}
164+
public String getCouponFee()
165+
{
166+
return couponFee;
167+
}
168+
public void setCouponFee(String couponFee)
169+
{
170+
this.couponFee = couponFee;
171+
}
172+
public String getRefundId()
173+
{
174+
return refundId;
175+
}
176+
public void setRefundId(String refundId)
177+
{
178+
this.refundId = refundId;
179+
}
180+
public String getOutRefundNo()
181+
{
182+
return outRefundNo;
183+
}
184+
public void setOutRefundNo(String outRefundNo)
185+
{
186+
this.outRefundNo = outRefundNo;
187+
}
188+
public String getSettlementRefundFee()
189+
{
190+
return settlementRefundFee;
191+
}
192+
public void setSettlementRefundFee(String settlementRefundFee)
193+
{
194+
this.settlementRefundFee = settlementRefundFee;
195+
}
196+
public String getCouponRefundFee()
197+
{
198+
return couponRefundFee;
199+
}
200+
public void setCouponRefundFee(String couponRefundFee)
201+
{
202+
this.couponRefundFee = couponRefundFee;
203+
}
204+
public String getRefundChannel()
205+
{
206+
return refundChannel;
207+
}
208+
public void setRefundChannel(String refundChannel)
209+
{
210+
this.refundChannel = refundChannel;
211+
}
212+
public String getRefundState()
213+
{
214+
return refundState;
215+
}
216+
public void setRefundState(String refundState)
217+
{
218+
this.refundState = refundState;
219+
}
220+
public String getBody()
221+
{
222+
return body;
223+
}
224+
public void setBody(String body)
225+
{
226+
this.body = body;
227+
}
228+
public String getAttach()
229+
{
230+
return attach;
231+
}
232+
public void setAttach(String attach)
233+
{
234+
this.attach = attach;
235+
}
236+
public String getPoundage()
237+
{
238+
return poundage;
239+
}
240+
public void setPoundage(String poundage)
241+
{
242+
this.poundage = poundage;
243+
}
244+
public String getPoundageRate()
245+
{
246+
return poundageRate;
247+
}
248+
public void setPoundageRate(String poundageRate)
249+
{
250+
this.poundageRate = poundageRate;
251+
}
252+
public static long getSerialversionuid()
253+
{
254+
return serialVersionUID;
255+
}
256+
257+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
package com.github.binarywang.wxpay.bean.result;
2+
3+
import java.util.List;
4+
5+
public class WxPayBillResult implements Serializable
6+
{
7+
/**
8+
* 对账返回对象
9+
*/
10+
private static final long serialVersionUID = 1L;
11+
12+
private List<WxPayBillBaseResult> wxPayBillBaseResultLst;
13+
/**总交易单数*/
14+
private String totalRecord;
15+
/**总交易额*/
16+
private String totalFee;
17+
/**总退款金额*/
18+
private String totalRefundFee;
19+
/**总代金券或立减优惠退款金额*/
20+
private String totalCouponFee;
21+
/**手续费总金额 */
22+
private String totalPoundageFee;
23+
24+
public List<WxPayBillBaseResult> getWxPayBillBaseResultLst()
25+
{
26+
return wxPayBillBaseResultLst;
27+
}
28+
29+
public void setWxPayBillBaseResultLst(List<WxPayBillBaseResult> wxPayBillBaseResultLst)
30+
{
31+
this.wxPayBillBaseResultLst = wxPayBillBaseResultLst;
32+
}
33+
34+
public String getTotalRecord()
35+
{
36+
return totalRecord;
37+
}
38+
39+
public void setTotalRecord(String totalRecord)
40+
{
41+
this.totalRecord = totalRecord;
42+
}
43+
44+
public String getTotalFee()
45+
{
46+
return totalFee;
47+
}
48+
49+
public void setTotalFee(String totalFee)
50+
{
51+
this.totalFee = totalFee;
52+
}
53+
54+
public String getTotalRefundFee()
55+
{
56+
return totalRefundFee;
57+
}
58+
59+
public void setTotalRefundFee(String totalRefundFee)
60+
{
61+
this.totalRefundFee = totalRefundFee;
62+
}
63+
64+
public String getTotalCouponFee()
65+
{
66+
return totalCouponFee;
67+
}
68+
69+
public void setTotalCouponFee(String totalCouponFee)
70+
{
71+
this.totalCouponFee = totalCouponFee;
72+
}
73+
74+
public String getTotalPoundageFee()
75+
{
76+
return totalPoundageFee;
77+
}
78+
79+
public void setTotalPoundageFee(String totalPoundageFee)
80+
{
81+
this.totalPoundageFee = totalPoundageFee;
82+
}
83+
84+
85+
86+
}

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri
246246
* @param deviceInfo 设备号 device_info 非必传参数,终端设备号
247247
* @return 保存到本地的临时文件
248248
*/
249-
File downloadBill(String billDate, String billType, String tarType, String deviceInfo) throws WxErrorException;
249+
WxPayBillResult downloadBill(String billDate, String billType, String tarType, String deviceInfo) throws WxErrorException;
250250

251251
/**
252252
* <pre>

0 commit comments

Comments
 (0)