From d933ab43e04c65f4a221b63f08fc6c89cbc30ce1 Mon Sep 17 00:00:00 2001 From: BinaryWang Date: Sat, 8 Oct 2016 18:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E7=94=B3=E8=AF=B7=E9=80=80=E6=AC=BE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20for=20issue=20#25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mp/bean/pay/WxMpPayRefundResult.java | 159 +++++++++--------- 1 file changed, 80 insertions(+), 79 deletions(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/pay/WxMpPayRefundResult.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/pay/WxMpPayRefundResult.java index 3f917fe0..7e5d322d 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/pay/WxMpPayRefundResult.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/pay/WxMpPayRefundResult.java @@ -1,278 +1,279 @@ package me.chanjar.weixin.mp.bean.pay; -import java.io.Serializable; - import com.thoughtworks.xstream.annotations.XStreamAlias; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +import java.io.Serializable; /** + *
  * 微信支付-申请退款返回结果
  * https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_4
+ * 
* @author liukaitj * */ @XStreamAlias("xml") public class WxMpPayRefundResult implements Serializable { - private static final long serialVersionUID = 1L; @XStreamAlias("return_code") private String returnCode; - + @XStreamAlias("return_msg") private String returnMsg; - + @XStreamAlias("result_code") private String resultCode; - + @XStreamAlias("err_code") private String errCode; - + @XStreamAlias("err_code_des") private String errCodeDes; - + @XStreamAlias("appid") private String appid; - + @XStreamAlias("mch_id") private String mchId; - + @XStreamAlias("device_info") private String deviceInfo; - + @XStreamAlias("nonce_str") private String nonceStr; - + @XStreamAlias("sign") private String sign; - + @XStreamAlias("transaction_id") private String transactionId; - + @XStreamAlias("out_trade_no") private String outTradeNo; - + @XStreamAlias("out_refund_no") private String outRefundNo; - + @XStreamAlias("refund_id") private String refundId; - + @XStreamAlias("refund_channel") private String refundChannel; - + @XStreamAlias("refund_fee") private String refundFee; - + @XStreamAlias("total_fee") private String totalFee; - + @XStreamAlias("fee_type") private String feeType; - + @XStreamAlias("cash_fee") private String cashFee; - + @XStreamAlias("cash_refund_fee") - private String cashRefundfee; - + private String cashRefundFee; + @XStreamAlias("coupon_refund_fee") private String couponRefundFee; - + @XStreamAlias("coupon_refund_count") private String couponRefundCount; - + @XStreamAlias("coupon_refund_id") private String couponRefundId; public String getReturnCode() { return this.returnCode; } - + public void setReturnCode(String returnCode) { this.returnCode = returnCode; } - + public String getReturnMsg() { return this.returnMsg; } - + public void setReturnMsg(String returnMsg) { this.returnMsg = returnMsg; } - + public String getResultCode() { return this.resultCode; } - + public void setResultCode(String resultCode) { this.resultCode = resultCode; } - + public String getErrCode() { return this.errCode; } - + public void setErrCode(String errCode) { this.errCode = errCode; } - + public String getErrCodeDes() { return this.errCodeDes; } - + public void setErrCodeDes(String errCodeDes) { this.errCodeDes = errCodeDes; } - + public String getAppid() { return this.appid; } - + public void setAppid(String appid) { this.appid = appid; } - + public String getMchId() { return this.mchId; } - + public void setMchId(String mchId) { this.mchId = mchId; } - + public String getDeviceInfo() { return this.deviceInfo; } - + public void setDeviceInfo(String deviceInfo) { this.deviceInfo = deviceInfo; } - + public String getNonceStr() { return this.nonceStr; } - + public void setNonceStr(String nonceStr) { this.nonceStr = nonceStr; } - + public String getSign() { return this.sign; } - + public void setSign(String sign) { this.sign = sign; } - + public String getTransactionId() { return this.transactionId; } - + public void setTransactionId(String transactionId) { this.transactionId = transactionId; } - + public String getOutTradeNo() { return this.outTradeNo; } - + public void setOutTradeNo(String outTradeNo) { this.outTradeNo = outTradeNo; } - + public String getOutRefundNo() { return this.outRefundNo; } - + public void setOutRefundNo(String outRefundNo) { this.outRefundNo = outRefundNo; } - + public String getRefundId() { return this.refundId; } - + public void setRefundId(String refundId) { this.refundId = refundId; } - + public String getRefundChannel() { return this.refundChannel; } - + public void setRefundChannel(String refundChannel) { this.refundChannel = refundChannel; } - + public String getRefundFee() { return this.refundFee; } - + public void setRefundFee(String refundFee) { this.refundFee = refundFee; } - + public String getTotalFee() { return this.totalFee; } - + public void setTotalFee(String totalFee) { this.totalFee = totalFee; } - + public String getFeeType() { return this.feeType; } - + public void setFeeType(String feeType) { this.feeType = feeType; } - + public String getCashFee() { return this.cashFee; } - + public void setCashFee(String cashFee) { 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() { return this.couponRefundFee; } - + public void setCouponRefundFee(String couponRefundFee) { this.couponRefundFee = couponRefundFee; } - + public String getCouponRefundCount() { return this.couponRefundCount; } - + public void setCouponRefundCount(String couponRefundCount) { this.couponRefundCount = couponRefundCount; } - + public String getCouponRefundId() { return this.couponRefundId; } - + public void setCouponRefundId(String couponRefundId) { this.couponRefundId = couponRefundId; } - + @Override public String toString() { - return "[" + - "return_code:" + this.returnCode + ";" + - "return_msg" + this.returnMsg + ";"; + return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE); } }