重构微信支付申请退款接口 for issue #25

This commit is contained in:
BinaryWang 2016-10-08 18:26:03 +08:00
parent 049eb957d8
commit d933ab43e0

View File

@ -1,18 +1,21 @@
package me.chanjar.weixin.mp.bean.pay;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* <pre>
* 微信支付-申请退款返回结果
* https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_4
* </pre>
* @author liukaitj
*
*/
@XStreamAlias("xml")
public class WxMpPayRefundResult implements Serializable {
private static final long serialVersionUID = 1L;
@XStreamAlias("return_code")
@ -73,7 +76,7 @@ public class WxMpPayRefundResult implements Serializable {
private String cashFee;
@XStreamAlias("cash_refund_fee")
private String cashRefundfee;
private String cashRefundFee;
@XStreamAlias("coupon_refund_fee")
private String couponRefundFee;
@ -236,12 +239,12 @@ public class WxMpPayRefundResult implements Serializable {
this.cashFee = cashFee;
}
public String getCashRefundfee() {
return this.cashRefundfee;
public String getCashRefundFee() {
return this.cashRefundFee;
}
public void setCashRefundfee(String cashRefundfee) {
this.cashRefundfee = cashRefundfee;
public void setCashRefundFee(String cashRefundFee) {
this.cashRefundFee = cashRefundFee;
}
public String getCouponRefundFee() {
@ -270,9 +273,7 @@ public class WxMpPayRefundResult implements Serializable {
@Override
public String toString() {
return "[" +
"return_code:" + this.returnCode + ";" +
"return_msg" + this.returnMsg + ";";
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
}
}