com.foxinmy.weixin4j.payment.mch.RefundRecord Maven / Gradle / Ivy
package com.foxinmy.weixin4j.payment.mch;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.xml.ListsuffixResult;
/**
* 退款记录
*
* @className RefundRecord
* @author jinyu([email protected])
* @date 2014年11月1日
* @since JDK 1.6
* @deprecated 迁移到子模块weixin4j-pay
*/
@Deprecated
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class RefundRecord extends MerchantTradeResult {
private static final long serialVersionUID = -2971132874939642721L;
/**
* 退款笔数
*/
@XmlElement(name = "refund_count")
@JSONField(name = "refund_count")
private int refundCount;
/**
* 退款总金额,单位为分,可以做部分退款
*/
@XmlElement(name = "refund_fee")
@JSONField(name = "refund_fee")
private int refundFee;
/**
* 退款详情
*
* @see RefundDetail
*/
@ListsuffixResult({ ".*(_\\d)$" })
private List refundList;
protected RefundRecord() {
// jaxb required
}
public int getRefundCount() {
return refundCount;
}
public int getRefundFee() {
return refundFee;
}
/**
* 调用接口获取单位为分,get方法转换为元方便使用
*
* @return 元单位
*/
@JSONField(serialize = false)
public double getFormatRefundFee() {
return refundFee / 100d;
}
public List getRefundList() {
return refundList;
}
public void setRefundList(List refundList) {
this.refundList = refundList;
}
@Override
public String toString() {
return "RefundRecord [refundCount=" + refundCount + ", refundFee="
+ refundFee + ", refundList=" + refundList + ", "
+ super.toString() + "]";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy