1 package com.foxinmy.weixin4j.model.card;
2
3 import com.alibaba.fastjson.annotation.JSONField;
4 import com.foxinmy.weixin4j.type.card.CardType;
5
6
7
8
9
10
11
12
13
14 public class GeneralCoupon extends CardCoupon {
15
16
17
18 @JSONField(name = "default_detail")
19 private final String explain;
20
21
22
23
24
25
26
27
28
29 public GeneralCoupon(CouponBaseInfo couponBaseInfo, String explain) {
30 super(couponBaseInfo);
31 this.explain = explain;
32 }
33
34 public String getExplain() {
35 return explain;
36 }
37
38 @JSONField(serialize = false)
39 @Override
40 public CardType getCardType() {
41 return CardType.GENERAL_COUPON;
42 }
43
44 @Override
45 public String toString() {
46 return "GrouponCoupon [explain=" + explain + ", " + super.toString()
47 + "]";
48 }
49 }