1 package com.foxinmy.weixin4j.model.card;
2
3 import com.alibaba.fastjson.JSONObject;
4 import com.alibaba.fastjson.annotation.JSONField;
5
6
7
8
9
10
11
12 public class MemberUpdateInfo {
13
14
15
16
17 private String code;
18
19
20
21 @JSONField(name = "card_id")
22 private String cardId;
23
24
25
26 @JSONField(name = "background_pic_url")
27 private String backgroundPicUrl;
28
29
30
31 private Integer bonus;
32
33
34
35 @JSONField(name = "add_bonus")
36 private Integer addBonus;
37
38
39
40 @JSONField(name = "record_bonus")
41 private String recordBonus;
42
43
44
45 private Integer balance;
46
47
48
49
50 @JSONField(name = "add_balance")
51 private Integer addBalance;
52
53
54
55 @JSONField(name = "record_balance")
56 private String recordBalance;
57
58
59
60 @JSONField(name = "custom_field_value1")
61 private String customFieldValue1;
62
63
64
65 @JSONField(name = "custom_field_value2")
66 private String customFieldValue2;
67
68
69
70 @JSONField(name = "custom_field_value3")
71 private String customFieldValue3;
72
73
74
75
76 @JSONField(name = "notifyOptional")
77 private JSONObject notifyOptional;
78
79
80 public String getCode() {
81 return code;
82 }
83
84 public void setCode(String code) {
85 this.code = code;
86 }
87
88 public String getCardId() {
89 return cardId;
90 }
91
92 public void setCardId(String cardId) {
93 this.cardId = cardId;
94 }
95
96 public String getBackgroundPicUrl() {
97 return backgroundPicUrl;
98 }
99
100 public void setBackgroundPicUrl(String backgroundPicUrl) {
101 this.backgroundPicUrl = backgroundPicUrl;
102 }
103
104 public Integer getBonus() {
105 return bonus;
106 }
107
108 public void setBonus(Integer bonus) {
109 this.bonus = bonus;
110 }
111
112 public Integer getAddBonus() {
113 return addBonus;
114 }
115
116 public void setAddBonus(Integer addBonus) {
117 this.addBonus = addBonus;
118 }
119
120 public String getRecordBonus() {
121 return recordBonus;
122 }
123
124 public void setRecordBonus(String recordBonus) {
125 this.recordBonus = recordBonus;
126 }
127
128 public Integer getBalance() {
129 return balance;
130 }
131
132 public void setBalance(Integer balance) {
133 this.balance = balance;
134 }
135
136 public Integer getAddBalance() {
137 return addBalance;
138 }
139
140 public void setAddBalance(Integer addBalance) {
141 this.addBalance = addBalance;
142 }
143
144 public String getRecordBalance() {
145 return recordBalance;
146 }
147
148 public void setRecordBalance(String recordBalance) {
149 this.recordBalance = recordBalance;
150 }
151
152 public String getCustomFieldValue1() {
153 return customFieldValue1;
154 }
155
156 public void setCustomFieldValue1(String customFieldValue1) {
157 this.customFieldValue1 = customFieldValue1;
158 }
159
160 public void setCustomFieldValue1(String customFieldValue1, boolean notify) {
161 this.customFieldValue1 = customFieldValue1;
162 if (notifyOptional == null) {
163 notifyOptional = new JSONObject();
164 }
165 notifyOptional.put("is_notify_custom_field1", notify);
166 }
167
168
169 public String getCustomFieldValue2() {
170 return customFieldValue2;
171 }
172
173 public void setCustomFieldValue2(String customFieldValue2) {
174 this.customFieldValue2 = customFieldValue2;
175
176 }
177
178 public void setCustomFieldValue2(String customFieldValue2, boolean notify) {
179 this.customFieldValue2 = customFieldValue2;
180 if (notifyOptional == null) {
181 notifyOptional = new JSONObject();
182 }
183 notifyOptional.put("is_notify_custom_field2", notify);
184
185 }
186
187 public String getCustomFieldValue3() {
188 return customFieldValue3;
189 }
190
191 public void setCustomFieldValue3(String customFieldValue3) {
192 this.customFieldValue3 = customFieldValue3;
193 }
194
195 public void setCustomFieldValue3(String customFieldValue3, boolean notify) {
196 this.customFieldValue3 = customFieldValue3;
197 if (notifyOptional == null) {
198 notifyOptional = new JSONObject();
199 }
200 notifyOptional.put("is_notify_custom_field3", notify);
201 }
202
203 public void setNOtify(boolean notifyBonus, boolean notifyBalance) {
204 if (notifyOptional == null) {
205 notifyOptional = new JSONObject();
206 }
207 notifyOptional.put("is_notify_bonus", notifyBonus);
208 notifyOptional.put("is_notify_balance", notifyBalance);
209 }
210 }