1 package com.foxinmy.weixin4j.pay.payment.coupon;
2
3 import com.alibaba.fastjson.annotation.JSONField;
4 import com.foxinmy.weixin4j.pay.payment.mch.MerchantResult;
5
6 import javax.xml.bind.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlElement;
9 import javax.xml.bind.annotation.XmlRootElement;
10
11
12
13
14
15
16
17
18
19
20 @XmlRootElement
21 @XmlAccessorType(XmlAccessType.FIELD)
22 public class CouponResult extends MerchantResult {
23
24 private static final long serialVersionUID = -1996967923720149124L;
25
26
27
28
29 @XmlElement(name = "coupon_stock_id")
30 @JSONField(name = "coupon_stock_id")
31 private String couponStockId;
32
33
34
35 @XmlElement(name = "resp_count")
36 @JSONField(name = "resp_count")
37 private int responseCount;
38
39
40
41 @XmlElement(name = "success_count")
42 @JSONField(name = "success_count")
43 private int successCount;
44
45
46
47 @XmlElement(name = "failed_count")
48 @JSONField(name = "failed_count")
49 private int failedCount;
50
51
52
53 @XmlElement(name = "openid")
54 @JSONField(name = "openid")
55 private String openId;
56
57
58
59 @XmlElement(name = "ret_code")
60 @JSONField(name = "ret_code")
61 private String retCode;
62
63
64
65 @XmlElement(name = "coupon_id")
66 @JSONField(name = "coupon_id")
67 private String couponId;
68
69
70
71 @XmlElement(name = "ret_msg")
72 @JSONField(name = "ret_msg")
73 private String retMsg;
74
75 public CouponResult() {
76
77 }
78
79 public String getCouponStockId() {
80 return couponStockId;
81 }
82
83 public void setCouponStockId(String couponStockId) {
84 this.couponStockId = couponStockId;
85 }
86
87 public void setOpenId(String openId) {
88 this.openId = openId;
89 }
90
91 public int getResponseCount() {
92 return responseCount;
93 }
94
95 public void setResponseCount(int responseCount) {
96 this.responseCount = responseCount;
97 }
98
99 public int getSuccessCount() {
100 return successCount;
101 }
102
103 public void setSuccessCount(int successCount) {
104 this.successCount = successCount;
105 }
106
107 public int getFailedCount() {
108 return failedCount;
109 }
110
111 public void setFailedCount(int failedCount) {
112 this.failedCount = failedCount;
113 }
114
115 public String getOpenId() {
116 return openId;
117 }
118
119 public String getRetCode() {
120 return retCode;
121 }
122
123 public void setRetCode(String retCode) {
124 this.retCode = retCode;
125 }
126
127 public String getCouponId() {
128 return couponId;
129 }
130
131 public void setCouponId(String couponId) {
132 this.couponId = couponId;
133 }
134
135 public String getRetMsg() {
136 return retMsg;
137 }
138
139 public void setRetMsg(String retMsg) {
140 this.retMsg = retMsg;
141 }
142
143 @Override
144 public String toString() {
145 return "CouponResult [couponStockId=" + couponStockId
146 + ", responseCount=" + responseCount + ", successCount="
147 + successCount + ", failedCount=" + failedCount + ", openId="
148 + openId + ", retCode=" + retCode + ", couponId=" + couponId
149 + ", retMsg=" + retMsg + "]";
150 }
151 }