View Javadoc
1   package com.foxinmy.weixin4j.model.card;
2   
3   import com.alibaba.fastjson.annotation.JSONField;
4   
5   /**
6    * 已领取的礼品卡信息
7    * 用于查询用户的礼品卡信息时,作为参数或返回对象
8    *
9    * @author kit (kit@muses.cc)
10   * @date 2018-11-23
11   */
12  public class CardInfo {
13      /**
14       * 礼品卡的code
15       */
16      private String code;
17      /**
18       * 礼品卡的card_id
19       */
20      @JSONField(name = "card_id")
21      private String cardId;
22      /**
23       * 生效时间
24       */
25      @JSONField(name = "begin_time")
26      private long beginTime;
27      /**
28       * 结束时间
29       */
30      @JSONField(name = "end_time")
31      private long endTime;
32      /**
33       * 当前的余额额度
34       */
35      private int balance;
36      /**
37       * 礼品卡卡面显示的卡号,若没设置则与code相同
38       */
39      @JSONField(name = "card_number")
40      private String cardNumber;
41      /**
42       * 用于支持商家激活时针对单个礼品卡分配自定义的礼品卡背景。
43       */
44      @JSONField(name = "background_pic_url")
45      private String backgroundPicUrl;
46      /**
47       * 自定义金额消耗记录,不超过14个汉字。
48       */
49      @JSONField(name = "record_balance")
50      private String recordBalance;
51      /**
52       * 创建时字段custom_field1定义类型的最新数值,限制为4个汉字,12字节。
53       */
54      @JSONField(name = "custom_field_value1")
55      private String customFieldValue1;
56      /**
57       * 创建时字段custom_field2定义类型的最新数值,限制为4个汉字,12字节。
58       */
59      @JSONField(name = "custom_field_value2")
60      private String customFieldValue2;
61      /**
62       * 创建时字段custom_field3定义类型的最新数值,限制为4个汉字,12字节。
63       */
64      @JSONField(name = "custom_field_value3")
65      private String customFieldValue3;
66      /**
67       * 控制本次积分变动后转赠入口是否出现
68       */
69      @JSONField(name = "can_give_friend")
70      private Boolean canGiveFriend;
71      /**
72       * 该卡的价格
73       */
74      private int price;
75      /**
76       * 祝福语    
77       */
78      @JSONField(name = "default_gifting_msg")
79      private String defaultGiftingMsg;
80  
81      public String getCode() {
82          return code;
83      }
84  
85      public void setCode(String code) {
86          this.code = code;
87      }
88  
89      public String getCardId() {
90          return cardId;
91      }
92  
93      public void setCardId(String cardId) {
94          this.cardId = cardId;
95      }
96  
97      public long getBeginTime() {
98          return beginTime;
99      }
100 
101     public void setBeginTime(long beginTime) {
102         this.beginTime = beginTime;
103     }
104 
105     public long getEndTime() {
106         return endTime;
107     }
108 
109     public void setEndTime(long endTime) {
110         this.endTime = endTime;
111     }
112 
113     public int getBalance() {
114         return balance;
115     }
116 
117     public void setBalance(int balance) {
118         this.balance = balance;
119     }
120 
121     public String getCardNumber() {
122         return cardNumber;
123     }
124 
125     public void setCardNumber(String cardNumber) {
126         this.cardNumber = cardNumber;
127     }
128 
129     public String getBackgroundPicUrl() {
130         return backgroundPicUrl;
131     }
132 
133     public void setBackgroundPicUrl(String backgroundPicUrl) {
134         this.backgroundPicUrl = backgroundPicUrl;
135     }
136 
137     public String getRecordBalance() {
138         return recordBalance;
139     }
140 
141     public void setRecordBalance(String recordBalance) {
142         this.recordBalance = recordBalance;
143     }
144 
145     public String getCustomFieldValue1() {
146         return customFieldValue1;
147     }
148 
149     public void setCustomFieldValue1(String customFieldValue1) {
150         this.customFieldValue1 = customFieldValue1;
151     }
152 
153     public String getCustomFieldValue2() {
154         return customFieldValue2;
155     }
156 
157     public void setCustomFieldValue2(String customFieldValue2) {
158         this.customFieldValue2 = customFieldValue2;
159     }
160 
161     public String getCustomFieldValue3() {
162         return customFieldValue3;
163     }
164 
165     public void setCustomFieldValue3(String customFieldValue3) {
166         this.customFieldValue3 = customFieldValue3;
167     }
168 
169     public Boolean getCanGiveFriend() {
170         return canGiveFriend;
171     }
172 
173     public void setCanGiveFriend(Boolean canGiveFriend) {
174         this.canGiveFriend = canGiveFriend;
175     }
176 
177     public void CardItem(){}
178 
179     public void CardItem(String code, String cardId){
180         this.code = code;
181         this.cardId = cardId;
182     }
183 }