mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-23 13:06:54 +08:00
重构微信支付申请退款接口 for issue #25
This commit is contained in:
parent
049eb957d8
commit
d933ab43e0
@ -1,278 +1,279 @@
|
|||||||
package me.chanjar.weixin.mp.bean.pay;
|
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 java.io.Serializable;
|
||||||
|
|
||||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* <pre>
|
||||||
* 微信支付-申请退款返回结果
|
* 微信支付-申请退款返回结果
|
||||||
* https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_4
|
* https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_4
|
||||||
|
* </pre>
|
||||||
* @author liukaitj
|
* @author liukaitj
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@XStreamAlias("xml")
|
@XStreamAlias("xml")
|
||||||
public class WxMpPayRefundResult implements Serializable {
|
public class WxMpPayRefundResult implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@XStreamAlias("return_code")
|
@XStreamAlias("return_code")
|
||||||
private String returnCode;
|
private String returnCode;
|
||||||
|
|
||||||
@XStreamAlias("return_msg")
|
@XStreamAlias("return_msg")
|
||||||
private String returnMsg;
|
private String returnMsg;
|
||||||
|
|
||||||
@XStreamAlias("result_code")
|
@XStreamAlias("result_code")
|
||||||
private String resultCode;
|
private String resultCode;
|
||||||
|
|
||||||
@XStreamAlias("err_code")
|
@XStreamAlias("err_code")
|
||||||
private String errCode;
|
private String errCode;
|
||||||
|
|
||||||
@XStreamAlias("err_code_des")
|
@XStreamAlias("err_code_des")
|
||||||
private String errCodeDes;
|
private String errCodeDes;
|
||||||
|
|
||||||
@XStreamAlias("appid")
|
@XStreamAlias("appid")
|
||||||
private String appid;
|
private String appid;
|
||||||
|
|
||||||
@XStreamAlias("mch_id")
|
@XStreamAlias("mch_id")
|
||||||
private String mchId;
|
private String mchId;
|
||||||
|
|
||||||
@XStreamAlias("device_info")
|
@XStreamAlias("device_info")
|
||||||
private String deviceInfo;
|
private String deviceInfo;
|
||||||
|
|
||||||
@XStreamAlias("nonce_str")
|
@XStreamAlias("nonce_str")
|
||||||
private String nonceStr;
|
private String nonceStr;
|
||||||
|
|
||||||
@XStreamAlias("sign")
|
@XStreamAlias("sign")
|
||||||
private String sign;
|
private String sign;
|
||||||
|
|
||||||
@XStreamAlias("transaction_id")
|
@XStreamAlias("transaction_id")
|
||||||
private String transactionId;
|
private String transactionId;
|
||||||
|
|
||||||
@XStreamAlias("out_trade_no")
|
@XStreamAlias("out_trade_no")
|
||||||
private String outTradeNo;
|
private String outTradeNo;
|
||||||
|
|
||||||
@XStreamAlias("out_refund_no")
|
@XStreamAlias("out_refund_no")
|
||||||
private String outRefundNo;
|
private String outRefundNo;
|
||||||
|
|
||||||
@XStreamAlias("refund_id")
|
@XStreamAlias("refund_id")
|
||||||
private String refundId;
|
private String refundId;
|
||||||
|
|
||||||
@XStreamAlias("refund_channel")
|
@XStreamAlias("refund_channel")
|
||||||
private String refundChannel;
|
private String refundChannel;
|
||||||
|
|
||||||
@XStreamAlias("refund_fee")
|
@XStreamAlias("refund_fee")
|
||||||
private String refundFee;
|
private String refundFee;
|
||||||
|
|
||||||
@XStreamAlias("total_fee")
|
@XStreamAlias("total_fee")
|
||||||
private String totalFee;
|
private String totalFee;
|
||||||
|
|
||||||
@XStreamAlias("fee_type")
|
@XStreamAlias("fee_type")
|
||||||
private String feeType;
|
private String feeType;
|
||||||
|
|
||||||
@XStreamAlias("cash_fee")
|
@XStreamAlias("cash_fee")
|
||||||
private String cashFee;
|
private String cashFee;
|
||||||
|
|
||||||
@XStreamAlias("cash_refund_fee")
|
@XStreamAlias("cash_refund_fee")
|
||||||
private String cashRefundfee;
|
private String cashRefundFee;
|
||||||
|
|
||||||
@XStreamAlias("coupon_refund_fee")
|
@XStreamAlias("coupon_refund_fee")
|
||||||
private String couponRefundFee;
|
private String couponRefundFee;
|
||||||
|
|
||||||
@XStreamAlias("coupon_refund_count")
|
@XStreamAlias("coupon_refund_count")
|
||||||
private String couponRefundCount;
|
private String couponRefundCount;
|
||||||
|
|
||||||
@XStreamAlias("coupon_refund_id")
|
@XStreamAlias("coupon_refund_id")
|
||||||
private String couponRefundId;
|
private String couponRefundId;
|
||||||
|
|
||||||
public String getReturnCode() {
|
public String getReturnCode() {
|
||||||
return this.returnCode;
|
return this.returnCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReturnCode(String returnCode) {
|
public void setReturnCode(String returnCode) {
|
||||||
this.returnCode = returnCode;
|
this.returnCode = returnCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getReturnMsg() {
|
public String getReturnMsg() {
|
||||||
return this.returnMsg;
|
return this.returnMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReturnMsg(String returnMsg) {
|
public void setReturnMsg(String returnMsg) {
|
||||||
this.returnMsg = returnMsg;
|
this.returnMsg = returnMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResultCode() {
|
public String getResultCode() {
|
||||||
return this.resultCode;
|
return this.resultCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResultCode(String resultCode) {
|
public void setResultCode(String resultCode) {
|
||||||
this.resultCode = resultCode;
|
this.resultCode = resultCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getErrCode() {
|
public String getErrCode() {
|
||||||
return this.errCode;
|
return this.errCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setErrCode(String errCode) {
|
public void setErrCode(String errCode) {
|
||||||
this.errCode = errCode;
|
this.errCode = errCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getErrCodeDes() {
|
public String getErrCodeDes() {
|
||||||
return this.errCodeDes;
|
return this.errCodeDes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setErrCodeDes(String errCodeDes) {
|
public void setErrCodeDes(String errCodeDes) {
|
||||||
this.errCodeDes = errCodeDes;
|
this.errCodeDes = errCodeDes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAppid() {
|
public String getAppid() {
|
||||||
return this.appid;
|
return this.appid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAppid(String appid) {
|
public void setAppid(String appid) {
|
||||||
this.appid = appid;
|
this.appid = appid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMchId() {
|
public String getMchId() {
|
||||||
return this.mchId;
|
return this.mchId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMchId(String mchId) {
|
public void setMchId(String mchId) {
|
||||||
this.mchId = mchId;
|
this.mchId = mchId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDeviceInfo() {
|
public String getDeviceInfo() {
|
||||||
return this.deviceInfo;
|
return this.deviceInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDeviceInfo(String deviceInfo) {
|
public void setDeviceInfo(String deviceInfo) {
|
||||||
this.deviceInfo = deviceInfo;
|
this.deviceInfo = deviceInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNonceStr() {
|
public String getNonceStr() {
|
||||||
return this.nonceStr;
|
return this.nonceStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNonceStr(String nonceStr) {
|
public void setNonceStr(String nonceStr) {
|
||||||
this.nonceStr = nonceStr;
|
this.nonceStr = nonceStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSign() {
|
public String getSign() {
|
||||||
return this.sign;
|
return this.sign;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSign(String sign) {
|
public void setSign(String sign) {
|
||||||
this.sign = sign;
|
this.sign = sign;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTransactionId() {
|
public String getTransactionId() {
|
||||||
return this.transactionId;
|
return this.transactionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTransactionId(String transactionId) {
|
public void setTransactionId(String transactionId) {
|
||||||
this.transactionId = transactionId;
|
this.transactionId = transactionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOutTradeNo() {
|
public String getOutTradeNo() {
|
||||||
return this.outTradeNo;
|
return this.outTradeNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOutTradeNo(String outTradeNo) {
|
public void setOutTradeNo(String outTradeNo) {
|
||||||
this.outTradeNo = outTradeNo;
|
this.outTradeNo = outTradeNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOutRefundNo() {
|
public String getOutRefundNo() {
|
||||||
return this.outRefundNo;
|
return this.outRefundNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOutRefundNo(String outRefundNo) {
|
public void setOutRefundNo(String outRefundNo) {
|
||||||
this.outRefundNo = outRefundNo;
|
this.outRefundNo = outRefundNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRefundId() {
|
public String getRefundId() {
|
||||||
return this.refundId;
|
return this.refundId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRefundId(String refundId) {
|
public void setRefundId(String refundId) {
|
||||||
this.refundId = refundId;
|
this.refundId = refundId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRefundChannel() {
|
public String getRefundChannel() {
|
||||||
return this.refundChannel;
|
return this.refundChannel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRefundChannel(String refundChannel) {
|
public void setRefundChannel(String refundChannel) {
|
||||||
this.refundChannel = refundChannel;
|
this.refundChannel = refundChannel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRefundFee() {
|
public String getRefundFee() {
|
||||||
return this.refundFee;
|
return this.refundFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRefundFee(String refundFee) {
|
public void setRefundFee(String refundFee) {
|
||||||
this.refundFee = refundFee;
|
this.refundFee = refundFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTotalFee() {
|
public String getTotalFee() {
|
||||||
return this.totalFee;
|
return this.totalFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTotalFee(String totalFee) {
|
public void setTotalFee(String totalFee) {
|
||||||
this.totalFee = totalFee;
|
this.totalFee = totalFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFeeType() {
|
public String getFeeType() {
|
||||||
return this.feeType;
|
return this.feeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFeeType(String feeType) {
|
public void setFeeType(String feeType) {
|
||||||
this.feeType = feeType;
|
this.feeType = feeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCashFee() {
|
public String getCashFee() {
|
||||||
return this.cashFee;
|
return this.cashFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCashFee(String cashFee) {
|
public void setCashFee(String cashFee) {
|
||||||
this.cashFee = cashFee;
|
this.cashFee = cashFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCashRefundfee() {
|
public String getCashRefundFee() {
|
||||||
return this.cashRefundfee;
|
return this.cashRefundFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCashRefundfee(String cashRefundfee) {
|
public void setCashRefundFee(String cashRefundFee) {
|
||||||
this.cashRefundfee = cashRefundfee;
|
this.cashRefundFee = cashRefundFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCouponRefundFee() {
|
public String getCouponRefundFee() {
|
||||||
return this.couponRefundFee;
|
return this.couponRefundFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCouponRefundFee(String couponRefundFee) {
|
public void setCouponRefundFee(String couponRefundFee) {
|
||||||
this.couponRefundFee = couponRefundFee;
|
this.couponRefundFee = couponRefundFee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCouponRefundCount() {
|
public String getCouponRefundCount() {
|
||||||
return this.couponRefundCount;
|
return this.couponRefundCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCouponRefundCount(String couponRefundCount) {
|
public void setCouponRefundCount(String couponRefundCount) {
|
||||||
this.couponRefundCount = couponRefundCount;
|
this.couponRefundCount = couponRefundCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCouponRefundId() {
|
public String getCouponRefundId() {
|
||||||
return this.couponRefundId;
|
return this.couponRefundId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCouponRefundId(String couponRefundId) {
|
public void setCouponRefundId(String couponRefundId) {
|
||||||
this.couponRefundId = couponRefundId;
|
this.couponRefundId = couponRefundId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "[" +
|
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
|
||||||
"return_code:" + this.returnCode + ";" +
|
|
||||||
"return_msg" + this.returnMsg + ";";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user