1 package com.foxinmy.weixin4j.payment.coupon;
2
3 import java.io.Serializable;
4
5 import javax.xml.bind.annotation.XmlAccessType;
6 import javax.xml.bind.annotation.XmlAccessorType;
7 import javax.xml.bind.annotation.XmlElement;
8 import javax.xml.bind.annotation.XmlRootElement;
9
10 import com.alibaba.fastjson.annotation.JSONField;
11
12
13
14
15
16
17
18
19
20
21
22 @Deprecated
23 @XmlRootElement
24 @XmlAccessorType(XmlAccessType.FIELD)
25 public class RefundCouponInfo implements Serializable {
26
27 private static final long serialVersionUID = -8744999305258786901L;
28
29
30
31
32 @XmlElement(name = "coupon_refund_batch_id")
33 @JSONField(name = "coupon_refund_batch_id")
34 private String couponBatchId;
35
36
37
38 @XmlElement(name = "coupon_refund_id")
39 @JSONField(name = "coupon_refund_id")
40 private String couponId;
41
42
43
44 @XmlElement(name = "coupon_refund_fee")
45 @JSONField(name = "coupon_refund_fee")
46 private Integer couponFee;
47
48 protected RefundCouponInfo() {
49
50 }
51
52 public String getCouponBatchId() {
53 return couponBatchId;
54 }
55
56 public String getCouponId() {
57 return couponId;
58 }
59
60 public Integer getCouponFee() {
61 return couponFee;
62 }
63
64
65
66
67
68
69 @JSONField(serialize = false)
70 public double getFormatCouponFee() {
71 return couponFee != null ? couponFee.doubleValue() / 100d : 0d;
72 }
73
74 @Override
75 public String toString() {
76 return "couponBatchId=" + couponBatchId + ", couponId=" + couponId
77 + ", couponFee=" + couponFee;
78 }
79 }