All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.ipokerface.weixin.proxy.refund.RefundRecord Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package cn.ipokerface.weixin.proxy.refund;

import cn.ipokerface.weixin.proxy.merchant.MerchantTradeResult;
import cn.ipokerface.weixin.xml.ListSuffixResult;
import com.alibaba.fastjson.annotation.JSONField;

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 java.util.List;

/**
 * Created by       PokerFace
 * Create Date      2019-12-28.
 * Email:           [email protected]
 * Version          1.0.0
 * 

* Description: */ @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