Skip to content

Commit d933ab4

Browse files
committed
重构微信支付申请退款接口 for issue #25
1 parent 049eb95 commit d933ab4

File tree

1 file changed

+80
-79
lines changed

1 file changed

+80
-79
lines changed
Lines changed: 80 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,278 +1,279 @@
11
package me.chanjar.weixin.mp.bean.pay;
22

3-
import java.io.Serializable;
4-
53
import com.thoughtworks.xstream.annotations.XStreamAlias;
4+
import org.apache.commons.lang3.builder.ToStringBuilder;
5+
import org.apache.commons.lang3.builder.ToStringStyle;
6+
7+
import java.io.Serializable;
68

79
/**
10+
* <pre>
811
* 微信支付-申请退款返回结果
912
* https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_4
13+
* </pre>
1014
* @author liukaitj
1115
*
1216
*/
1317
@XStreamAlias("xml")
1418
public class WxMpPayRefundResult implements Serializable {
15-
1619
private static final long serialVersionUID = 1L;
1720

1821
@XStreamAlias("return_code")
1922
private String returnCode;
20-
23+
2124
@XStreamAlias("return_msg")
2225
private String returnMsg;
23-
26+
2427
@XStreamAlias("result_code")
2528
private String resultCode;
26-
29+
2730
@XStreamAlias("err_code")
2831
private String errCode;
29-
32+
3033
@XStreamAlias("err_code_des")
3134
private String errCodeDes;
32-
35+
3336
@XStreamAlias("appid")
3437
private String appid;
35-
38+
3639
@XStreamAlias("mch_id")
3740
private String mchId;
38-
41+
3942
@XStreamAlias("device_info")
4043
private String deviceInfo;
41-
44+
4245
@XStreamAlias("nonce_str")
4346
private String nonceStr;
44-
47+
4548
@XStreamAlias("sign")
4649
private String sign;
47-
50+
4851
@XStreamAlias("transaction_id")
4952
private String transactionId;
50-
53+
5154
@XStreamAlias("out_trade_no")
5255
private String outTradeNo;
53-
56+
5457
@XStreamAlias("out_refund_no")
5558
private String outRefundNo;
56-
59+
5760
@XStreamAlias("refund_id")
5861
private String refundId;
59-
62+
6063
@XStreamAlias("refund_channel")
6164
private String refundChannel;
62-
65+
6366
@XStreamAlias("refund_fee")
6467
private String refundFee;
65-
68+
6669
@XStreamAlias("total_fee")
6770
private String totalFee;
68-
71+
6972
@XStreamAlias("fee_type")
7073
private String feeType;
71-
74+
7275
@XStreamAlias("cash_fee")
7376
private String cashFee;
74-
77+
7578
@XStreamAlias("cash_refund_fee")
76-
private String cashRefundfee;
77-
79+
private String cashRefundFee;
80+
7881
@XStreamAlias("coupon_refund_fee")
7982
private String couponRefundFee;
80-
83+
8184
@XStreamAlias("coupon_refund_count")
8285
private String couponRefundCount;
83-
86+
8487
@XStreamAlias("coupon_refund_id")
8588
private String couponRefundId;
8689

8790
public String getReturnCode() {
8891
return this.returnCode;
8992
}
90-
93+
9194
public void setReturnCode(String returnCode) {
9295
this.returnCode = returnCode;
9396
}
94-
97+
9598
public String getReturnMsg() {
9699
return this.returnMsg;
97100
}
98-
101+
99102
public void setReturnMsg(String returnMsg) {
100103
this.returnMsg = returnMsg;
101104
}
102-
105+
103106
public String getResultCode() {
104107
return this.resultCode;
105108
}
106-
109+
107110
public void setResultCode(String resultCode) {
108111
this.resultCode = resultCode;
109112
}
110-
113+
111114
public String getErrCode() {
112115
return this.errCode;
113116
}
114-
117+
115118
public void setErrCode(String errCode) {
116119
this.errCode = errCode;
117120
}
118-
121+
119122
public String getErrCodeDes() {
120123
return this.errCodeDes;
121124
}
122-
125+
123126
public void setErrCodeDes(String errCodeDes) {
124127
this.errCodeDes = errCodeDes;
125128
}
126-
129+
127130
public String getAppid() {
128131
return this.appid;
129132
}
130-
133+
131134
public void setAppid(String appid) {
132135
this.appid = appid;
133136
}
134-
137+
135138
public String getMchId() {
136139
return this.mchId;
137140
}
138-
141+
139142
public void setMchId(String mchId) {
140143
this.mchId = mchId;
141144
}
142-
145+
143146
public String getDeviceInfo() {
144147
return this.deviceInfo;
145148
}
146-
149+
147150
public void setDeviceInfo(String deviceInfo) {
148151
this.deviceInfo = deviceInfo;
149152
}
150-
153+
151154
public String getNonceStr() {
152155
return this.nonceStr;
153156
}
154-
157+
155158
public void setNonceStr(String nonceStr) {
156159
this.nonceStr = nonceStr;
157160
}
158-
161+
159162
public String getSign() {
160163
return this.sign;
161164
}
162-
165+
163166
public void setSign(String sign) {
164167
this.sign = sign;
165168
}
166-
169+
167170
public String getTransactionId() {
168171
return this.transactionId;
169172
}
170-
173+
171174
public void setTransactionId(String transactionId) {
172175
this.transactionId = transactionId;
173176
}
174-
177+
175178
public String getOutTradeNo() {
176179
return this.outTradeNo;
177180
}
178-
181+
179182
public void setOutTradeNo(String outTradeNo) {
180183
this.outTradeNo = outTradeNo;
181184
}
182-
185+
183186
public String getOutRefundNo() {
184187
return this.outRefundNo;
185188
}
186-
189+
187190
public void setOutRefundNo(String outRefundNo) {
188191
this.outRefundNo = outRefundNo;
189192
}
190-
193+
191194
public String getRefundId() {
192195
return this.refundId;
193196
}
194-
197+
195198
public void setRefundId(String refundId) {
196199
this.refundId = refundId;
197200
}
198-
201+
199202
public String getRefundChannel() {
200203
return this.refundChannel;
201204
}
202-
205+
203206
public void setRefundChannel(String refundChannel) {
204207
this.refundChannel = refundChannel;
205208
}
206-
209+
207210
public String getRefundFee() {
208211
return this.refundFee;
209212
}
210-
213+
211214
public void setRefundFee(String refundFee) {
212215
this.refundFee = refundFee;
213216
}
214-
217+
215218
public String getTotalFee() {
216219
return this.totalFee;
217220
}
218-
221+
219222
public void setTotalFee(String totalFee) {
220223
this.totalFee = totalFee;
221224
}
222-
225+
223226
public String getFeeType() {
224227
return this.feeType;
225228
}
226-
229+
227230
public void setFeeType(String feeType) {
228231
this.feeType = feeType;
229232
}
230-
233+
231234
public String getCashFee() {
232235
return this.cashFee;
233236
}
234-
237+
235238
public void setCashFee(String cashFee) {
236239
this.cashFee = cashFee;
237240
}
238-
239-
public String getCashRefundfee() {
240-
return this.cashRefundfee;
241+
242+
public String getCashRefundFee() {
243+
return this.cashRefundFee;
241244
}
242-
243-
public void setCashRefundfee(String cashRefundfee) {
244-
this.cashRefundfee = cashRefundfee;
245+
246+
public void setCashRefundFee(String cashRefundFee) {
247+
this.cashRefundFee = cashRefundFee;
245248
}
246-
249+
247250
public String getCouponRefundFee() {
248251
return this.couponRefundFee;
249252
}
250-
253+
251254
public void setCouponRefundFee(String couponRefundFee) {
252255
this.couponRefundFee = couponRefundFee;
253256
}
254-
257+
255258
public String getCouponRefundCount() {
256259
return this.couponRefundCount;
257260
}
258-
261+
259262
public void setCouponRefundCount(String couponRefundCount) {
260263
this.couponRefundCount = couponRefundCount;
261264
}
262-
265+
263266
public String getCouponRefundId() {
264267
return this.couponRefundId;
265268
}
266-
269+
267270
public void setCouponRefundId(String couponRefundId) {
268271
this.couponRefundId = couponRefundId;
269272
}
270-
273+
271274
@Override
272275
public String toString() {
273-
return "[" +
274-
"return_code:" + this.returnCode + ";" +
275-
"return_msg" + this.returnMsg + ";";
276+
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
276277
}
277278

278279
}

0 commit comments

Comments
 (0)