Subversion Repositories SmartDukaan

Rev

Rev 7080 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7073 anupam.sin 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.order;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class RechargeTransaction implements org.apache.thrift.TBase<RechargeTransaction, RechargeTransaction._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeTransaction");
25
 
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
29
  private static final org.apache.thrift.protocol.TField TRANSACTION_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionTime", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField DEVICE_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNum", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField DEVICE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceType", org.apache.thrift.protocol.TType.I32, (short)6);
32
  private static final org.apache.thrift.protocol.TField IS_FRC_FIELD_DESC = new org.apache.thrift.protocol.TField("isFrc", org.apache.thrift.protocol.TType.BOOL, (short)7);
33
  private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField DISCOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("discount", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField PAYMENT_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField PAY_METHOD_FIELD_DESC = new org.apache.thrift.protocol.TField("payMethod", org.apache.thrift.protocol.TType.I32, (short)11);
37
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)12);
38
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)13);
39
  private static final org.apache.thrift.protocol.TField CIRCLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("circleId", org.apache.thrift.protocol.TType.I64, (short)14);
40
  private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)15);
41
  private static final org.apache.thrift.protocol.TField PLAN_FIELD_DESC = new org.apache.thrift.protocol.TField("plan", org.apache.thrift.protocol.TType.STRING, (short)16);
42
  private static final org.apache.thrift.protocol.TField IP_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("ipAddress", org.apache.thrift.protocol.TType.STRING, (short)17);
43
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)18);
44
  private static final org.apache.thrift.protocol.TField CAF_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("cafNum", org.apache.thrift.protocol.TType.STRING, (short)19);
45
  private static final org.apache.thrift.protocol.TField SIM_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("simNum", org.apache.thrift.protocol.TType.STRING, (short)20);
46
 
47
  private long id; // required
48
  private long storeId; // required
49
  private double amount; // required
50
  private long transactionTime; // required
51
  private String deviceNum; // required
52
  private RechargeType deviceType; // required
53
  private boolean isFrc; // required
54
  private String email; // required
55
  private double discount; // required
56
  private double paymentAmount; // required
57
  private PayMethod payMethod; // required
58
  private RechargeOrderStatus status; // required
59
  private String invoiceNumber; // required
60
  private long circleId; // required
61
  private long operatorId; // required
62
  private String plan; // required
63
  private String ipAddress; // required
64
  private String name; // required
65
  private String cafNum; // required
66
  private String simNum; // required
67
 
68
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
69
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
70
    ID((short)1, "id"),
71
    STORE_ID((short)2, "storeId"),
72
    AMOUNT((short)3, "amount"),
73
    TRANSACTION_TIME((short)4, "transactionTime"),
74
    DEVICE_NUM((short)5, "deviceNum"),
75
    /**
76
     * 
77
     * @see RechargeType
78
     */
79
    DEVICE_TYPE((short)6, "deviceType"),
80
    IS_FRC((short)7, "isFrc"),
81
    EMAIL((short)8, "email"),
82
    DISCOUNT((short)9, "discount"),
83
    PAYMENT_AMOUNT((short)10, "paymentAmount"),
84
    /**
85
     * 
86
     * @see PayMethod
87
     */
88
    PAY_METHOD((short)11, "payMethod"),
89
    /**
90
     * 
91
     * @see RechargeOrderStatus
92
     */
93
    STATUS((short)12, "status"),
94
    INVOICE_NUMBER((short)13, "invoiceNumber"),
95
    CIRCLE_ID((short)14, "circleId"),
96
    OPERATOR_ID((short)15, "operatorId"),
97
    PLAN((short)16, "plan"),
98
    IP_ADDRESS((short)17, "ipAddress"),
99
    NAME((short)18, "name"),
100
    CAF_NUM((short)19, "cafNum"),
101
    SIM_NUM((short)20, "simNum");
102
 
103
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
104
 
105
    static {
106
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
107
        byName.put(field.getFieldName(), field);
108
      }
109
    }
110
 
111
    /**
112
     * Find the _Fields constant that matches fieldId, or null if its not found.
113
     */
114
    public static _Fields findByThriftId(int fieldId) {
115
      switch(fieldId) {
116
        case 1: // ID
117
          return ID;
118
        case 2: // STORE_ID
119
          return STORE_ID;
120
        case 3: // AMOUNT
121
          return AMOUNT;
122
        case 4: // TRANSACTION_TIME
123
          return TRANSACTION_TIME;
124
        case 5: // DEVICE_NUM
125
          return DEVICE_NUM;
126
        case 6: // DEVICE_TYPE
127
          return DEVICE_TYPE;
128
        case 7: // IS_FRC
129
          return IS_FRC;
130
        case 8: // EMAIL
131
          return EMAIL;
132
        case 9: // DISCOUNT
133
          return DISCOUNT;
134
        case 10: // PAYMENT_AMOUNT
135
          return PAYMENT_AMOUNT;
136
        case 11: // PAY_METHOD
137
          return PAY_METHOD;
138
        case 12: // STATUS
139
          return STATUS;
140
        case 13: // INVOICE_NUMBER
141
          return INVOICE_NUMBER;
142
        case 14: // CIRCLE_ID
143
          return CIRCLE_ID;
144
        case 15: // OPERATOR_ID
145
          return OPERATOR_ID;
146
        case 16: // PLAN
147
          return PLAN;
148
        case 17: // IP_ADDRESS
149
          return IP_ADDRESS;
150
        case 18: // NAME
151
          return NAME;
152
        case 19: // CAF_NUM
153
          return CAF_NUM;
154
        case 20: // SIM_NUM
155
          return SIM_NUM;
156
        default:
157
          return null;
158
      }
159
    }
160
 
161
    /**
162
     * Find the _Fields constant that matches fieldId, throwing an exception
163
     * if it is not found.
164
     */
165
    public static _Fields findByThriftIdOrThrow(int fieldId) {
166
      _Fields fields = findByThriftId(fieldId);
167
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
168
      return fields;
169
    }
170
 
171
    /**
172
     * Find the _Fields constant that matches name, or null if its not found.
173
     */
174
    public static _Fields findByName(String name) {
175
      return byName.get(name);
176
    }
177
 
178
    private final short _thriftId;
179
    private final String _fieldName;
180
 
181
    _Fields(short thriftId, String fieldName) {
182
      _thriftId = thriftId;
183
      _fieldName = fieldName;
184
    }
185
 
186
    public short getThriftFieldId() {
187
      return _thriftId;
188
    }
189
 
190
    public String getFieldName() {
191
      return _fieldName;
192
    }
193
  }
194
 
195
  // isset id assignments
196
  private static final int __ID_ISSET_ID = 0;
197
  private static final int __STOREID_ISSET_ID = 1;
198
  private static final int __AMOUNT_ISSET_ID = 2;
199
  private static final int __TRANSACTIONTIME_ISSET_ID = 3;
200
  private static final int __ISFRC_ISSET_ID = 4;
201
  private static final int __DISCOUNT_ISSET_ID = 5;
202
  private static final int __PAYMENTAMOUNT_ISSET_ID = 6;
203
  private static final int __CIRCLEID_ISSET_ID = 7;
204
  private static final int __OPERATORID_ISSET_ID = 8;
205
  private BitSet __isset_bit_vector = new BitSet(9);
206
 
207
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
208
  static {
209
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
210
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
212
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
214
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
216
    tmpMap.put(_Fields.TRANSACTION_TIME, new org.apache.thrift.meta_data.FieldMetaData("transactionTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
218
    tmpMap.put(_Fields.DEVICE_NUM, new org.apache.thrift.meta_data.FieldMetaData("deviceNum", org.apache.thrift.TFieldRequirementType.DEFAULT, 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
220
    tmpMap.put(_Fields.DEVICE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("deviceType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
222
    tmpMap.put(_Fields.IS_FRC, new org.apache.thrift.meta_data.FieldMetaData("isFrc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
223
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
224
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
225
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
226
    tmpMap.put(_Fields.DISCOUNT, new org.apache.thrift.meta_data.FieldMetaData("discount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
228
    tmpMap.put(_Fields.PAYMENT_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("paymentAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
229
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
230
    tmpMap.put(_Fields.PAY_METHOD, new org.apache.thrift.meta_data.FieldMetaData("payMethod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
231
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PayMethod.class)));
232
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeOrderStatus.class)));
234
    tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
236
    tmpMap.put(_Fields.CIRCLE_ID, new org.apache.thrift.meta_data.FieldMetaData("circleId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
237
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
238
    tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
239
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
240
    tmpMap.put(_Fields.PLAN, new org.apache.thrift.meta_data.FieldMetaData("plan", org.apache.thrift.TFieldRequirementType.DEFAULT, 
241
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
242
    tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
243
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
244
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
245
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
246
    tmpMap.put(_Fields.CAF_NUM, new org.apache.thrift.meta_data.FieldMetaData("cafNum", org.apache.thrift.TFieldRequirementType.DEFAULT, 
247
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
248
    tmpMap.put(_Fields.SIM_NUM, new org.apache.thrift.meta_data.FieldMetaData("simNum", org.apache.thrift.TFieldRequirementType.DEFAULT, 
249
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
250
    metaDataMap = Collections.unmodifiableMap(tmpMap);
251
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeTransaction.class, metaDataMap);
252
  }
253
 
254
  public RechargeTransaction() {
255
  }
256
 
257
  public RechargeTransaction(
258
    long id,
259
    long storeId,
260
    double amount,
261
    long transactionTime,
262
    String deviceNum,
263
    RechargeType deviceType,
264
    boolean isFrc,
265
    String email,
266
    double discount,
267
    double paymentAmount,
268
    PayMethod payMethod,
269
    RechargeOrderStatus status,
270
    String invoiceNumber,
271
    long circleId,
272
    long operatorId,
273
    String plan,
274
    String ipAddress,
275
    String name,
276
    String cafNum,
277
    String simNum)
278
  {
279
    this();
280
    this.id = id;
281
    setIdIsSet(true);
282
    this.storeId = storeId;
283
    setStoreIdIsSet(true);
284
    this.amount = amount;
285
    setAmountIsSet(true);
286
    this.transactionTime = transactionTime;
287
    setTransactionTimeIsSet(true);
288
    this.deviceNum = deviceNum;
289
    this.deviceType = deviceType;
290
    this.isFrc = isFrc;
291
    setIsFrcIsSet(true);
292
    this.email = email;
293
    this.discount = discount;
294
    setDiscountIsSet(true);
295
    this.paymentAmount = paymentAmount;
296
    setPaymentAmountIsSet(true);
297
    this.payMethod = payMethod;
298
    this.status = status;
299
    this.invoiceNumber = invoiceNumber;
300
    this.circleId = circleId;
301
    setCircleIdIsSet(true);
302
    this.operatorId = operatorId;
303
    setOperatorIdIsSet(true);
304
    this.plan = plan;
305
    this.ipAddress = ipAddress;
306
    this.name = name;
307
    this.cafNum = cafNum;
308
    this.simNum = simNum;
309
  }
310
 
311
  /**
312
   * Performs a deep copy on <i>other</i>.
313
   */
314
  public RechargeTransaction(RechargeTransaction other) {
315
    __isset_bit_vector.clear();
316
    __isset_bit_vector.or(other.__isset_bit_vector);
317
    this.id = other.id;
318
    this.storeId = other.storeId;
319
    this.amount = other.amount;
320
    this.transactionTime = other.transactionTime;
321
    if (other.isSetDeviceNum()) {
322
      this.deviceNum = other.deviceNum;
323
    }
324
    if (other.isSetDeviceType()) {
325
      this.deviceType = other.deviceType;
326
    }
327
    this.isFrc = other.isFrc;
328
    if (other.isSetEmail()) {
329
      this.email = other.email;
330
    }
331
    this.discount = other.discount;
332
    this.paymentAmount = other.paymentAmount;
333
    if (other.isSetPayMethod()) {
334
      this.payMethod = other.payMethod;
335
    }
336
    if (other.isSetStatus()) {
337
      this.status = other.status;
338
    }
339
    if (other.isSetInvoiceNumber()) {
340
      this.invoiceNumber = other.invoiceNumber;
341
    }
342
    this.circleId = other.circleId;
343
    this.operatorId = other.operatorId;
344
    if (other.isSetPlan()) {
345
      this.plan = other.plan;
346
    }
347
    if (other.isSetIpAddress()) {
348
      this.ipAddress = other.ipAddress;
349
    }
350
    if (other.isSetName()) {
351
      this.name = other.name;
352
    }
353
    if (other.isSetCafNum()) {
354
      this.cafNum = other.cafNum;
355
    }
356
    if (other.isSetSimNum()) {
357
      this.simNum = other.simNum;
358
    }
359
  }
360
 
361
  public RechargeTransaction deepCopy() {
362
    return new RechargeTransaction(this);
363
  }
364
 
365
  @Override
366
  public void clear() {
367
    setIdIsSet(false);
368
    this.id = 0;
369
    setStoreIdIsSet(false);
370
    this.storeId = 0;
371
    setAmountIsSet(false);
372
    this.amount = 0.0;
373
    setTransactionTimeIsSet(false);
374
    this.transactionTime = 0;
375
    this.deviceNum = null;
376
    this.deviceType = null;
377
    setIsFrcIsSet(false);
378
    this.isFrc = false;
379
    this.email = null;
380
    setDiscountIsSet(false);
381
    this.discount = 0.0;
382
    setPaymentAmountIsSet(false);
383
    this.paymentAmount = 0.0;
384
    this.payMethod = null;
385
    this.status = null;
386
    this.invoiceNumber = null;
387
    setCircleIdIsSet(false);
388
    this.circleId = 0;
389
    setOperatorIdIsSet(false);
390
    this.operatorId = 0;
391
    this.plan = null;
392
    this.ipAddress = null;
393
    this.name = null;
394
    this.cafNum = null;
395
    this.simNum = null;
396
  }
397
 
398
  public long getId() {
399
    return this.id;
400
  }
401
 
402
  public void setId(long id) {
403
    this.id = id;
404
    setIdIsSet(true);
405
  }
406
 
407
  public void unsetId() {
408
    __isset_bit_vector.clear(__ID_ISSET_ID);
409
  }
410
 
411
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
412
  public boolean isSetId() {
413
    return __isset_bit_vector.get(__ID_ISSET_ID);
414
  }
415
 
416
  public void setIdIsSet(boolean value) {
417
    __isset_bit_vector.set(__ID_ISSET_ID, value);
418
  }
419
 
420
  public long getStoreId() {
421
    return this.storeId;
422
  }
423
 
424
  public void setStoreId(long storeId) {
425
    this.storeId = storeId;
426
    setStoreIdIsSet(true);
427
  }
428
 
429
  public void unsetStoreId() {
430
    __isset_bit_vector.clear(__STOREID_ISSET_ID);
431
  }
432
 
433
  /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
434
  public boolean isSetStoreId() {
435
    return __isset_bit_vector.get(__STOREID_ISSET_ID);
436
  }
437
 
438
  public void setStoreIdIsSet(boolean value) {
439
    __isset_bit_vector.set(__STOREID_ISSET_ID, value);
440
  }
441
 
442
  public double getAmount() {
443
    return this.amount;
444
  }
445
 
446
  public void setAmount(double amount) {
447
    this.amount = amount;
448
    setAmountIsSet(true);
449
  }
450
 
451
  public void unsetAmount() {
452
    __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
453
  }
454
 
455
  /** Returns true if field amount is set (has been assigned a value) and false otherwise */
456
  public boolean isSetAmount() {
457
    return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
458
  }
459
 
460
  public void setAmountIsSet(boolean value) {
461
    __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
462
  }
463
 
464
  public long getTransactionTime() {
465
    return this.transactionTime;
466
  }
467
 
468
  public void setTransactionTime(long transactionTime) {
469
    this.transactionTime = transactionTime;
470
    setTransactionTimeIsSet(true);
471
  }
472
 
473
  public void unsetTransactionTime() {
474
    __isset_bit_vector.clear(__TRANSACTIONTIME_ISSET_ID);
475
  }
476
 
477
  /** Returns true if field transactionTime is set (has been assigned a value) and false otherwise */
478
  public boolean isSetTransactionTime() {
479
    return __isset_bit_vector.get(__TRANSACTIONTIME_ISSET_ID);
480
  }
481
 
482
  public void setTransactionTimeIsSet(boolean value) {
483
    __isset_bit_vector.set(__TRANSACTIONTIME_ISSET_ID, value);
484
  }
485
 
486
  public String getDeviceNum() {
487
    return this.deviceNum;
488
  }
489
 
490
  public void setDeviceNum(String deviceNum) {
491
    this.deviceNum = deviceNum;
492
  }
493
 
494
  public void unsetDeviceNum() {
495
    this.deviceNum = null;
496
  }
497
 
498
  /** Returns true if field deviceNum is set (has been assigned a value) and false otherwise */
499
  public boolean isSetDeviceNum() {
500
    return this.deviceNum != null;
501
  }
502
 
503
  public void setDeviceNumIsSet(boolean value) {
504
    if (!value) {
505
      this.deviceNum = null;
506
    }
507
  }
508
 
509
  /**
510
   * 
511
   * @see RechargeType
512
   */
513
  public RechargeType getDeviceType() {
514
    return this.deviceType;
515
  }
516
 
517
  /**
518
   * 
519
   * @see RechargeType
520
   */
521
  public void setDeviceType(RechargeType deviceType) {
522
    this.deviceType = deviceType;
523
  }
524
 
525
  public void unsetDeviceType() {
526
    this.deviceType = null;
527
  }
528
 
529
  /** Returns true if field deviceType is set (has been assigned a value) and false otherwise */
530
  public boolean isSetDeviceType() {
531
    return this.deviceType != null;
532
  }
533
 
534
  public void setDeviceTypeIsSet(boolean value) {
535
    if (!value) {
536
      this.deviceType = null;
537
    }
538
  }
539
 
540
  public boolean isIsFrc() {
541
    return this.isFrc;
542
  }
543
 
544
  public void setIsFrc(boolean isFrc) {
545
    this.isFrc = isFrc;
546
    setIsFrcIsSet(true);
547
  }
548
 
549
  public void unsetIsFrc() {
550
    __isset_bit_vector.clear(__ISFRC_ISSET_ID);
551
  }
552
 
553
  /** Returns true if field isFrc is set (has been assigned a value) and false otherwise */
554
  public boolean isSetIsFrc() {
555
    return __isset_bit_vector.get(__ISFRC_ISSET_ID);
556
  }
557
 
558
  public void setIsFrcIsSet(boolean value) {
559
    __isset_bit_vector.set(__ISFRC_ISSET_ID, value);
560
  }
561
 
562
  public String getEmail() {
563
    return this.email;
564
  }
565
 
566
  public void setEmail(String email) {
567
    this.email = email;
568
  }
569
 
570
  public void unsetEmail() {
571
    this.email = null;
572
  }
573
 
574
  /** Returns true if field email is set (has been assigned a value) and false otherwise */
575
  public boolean isSetEmail() {
576
    return this.email != null;
577
  }
578
 
579
  public void setEmailIsSet(boolean value) {
580
    if (!value) {
581
      this.email = null;
582
    }
583
  }
584
 
585
  public double getDiscount() {
586
    return this.discount;
587
  }
588
 
589
  public void setDiscount(double discount) {
590
    this.discount = discount;
591
    setDiscountIsSet(true);
592
  }
593
 
594
  public void unsetDiscount() {
595
    __isset_bit_vector.clear(__DISCOUNT_ISSET_ID);
596
  }
597
 
598
  /** Returns true if field discount is set (has been assigned a value) and false otherwise */
599
  public boolean isSetDiscount() {
600
    return __isset_bit_vector.get(__DISCOUNT_ISSET_ID);
601
  }
602
 
603
  public void setDiscountIsSet(boolean value) {
604
    __isset_bit_vector.set(__DISCOUNT_ISSET_ID, value);
605
  }
606
 
607
  public double getPaymentAmount() {
608
    return this.paymentAmount;
609
  }
610
 
611
  public void setPaymentAmount(double paymentAmount) {
612
    this.paymentAmount = paymentAmount;
613
    setPaymentAmountIsSet(true);
614
  }
615
 
616
  public void unsetPaymentAmount() {
617
    __isset_bit_vector.clear(__PAYMENTAMOUNT_ISSET_ID);
618
  }
619
 
620
  /** Returns true if field paymentAmount is set (has been assigned a value) and false otherwise */
621
  public boolean isSetPaymentAmount() {
622
    return __isset_bit_vector.get(__PAYMENTAMOUNT_ISSET_ID);
623
  }
624
 
625
  public void setPaymentAmountIsSet(boolean value) {
626
    __isset_bit_vector.set(__PAYMENTAMOUNT_ISSET_ID, value);
627
  }
628
 
629
  /**
630
   * 
631
   * @see PayMethod
632
   */
633
  public PayMethod getPayMethod() {
634
    return this.payMethod;
635
  }
636
 
637
  /**
638
   * 
639
   * @see PayMethod
640
   */
641
  public void setPayMethod(PayMethod payMethod) {
642
    this.payMethod = payMethod;
643
  }
644
 
645
  public void unsetPayMethod() {
646
    this.payMethod = null;
647
  }
648
 
649
  /** Returns true if field payMethod is set (has been assigned a value) and false otherwise */
650
  public boolean isSetPayMethod() {
651
    return this.payMethod != null;
652
  }
653
 
654
  public void setPayMethodIsSet(boolean value) {
655
    if (!value) {
656
      this.payMethod = null;
657
    }
658
  }
659
 
660
  /**
661
   * 
662
   * @see RechargeOrderStatus
663
   */
664
  public RechargeOrderStatus getStatus() {
665
    return this.status;
666
  }
667
 
668
  /**
669
   * 
670
   * @see RechargeOrderStatus
671
   */
672
  public void setStatus(RechargeOrderStatus status) {
673
    this.status = status;
674
  }
675
 
676
  public void unsetStatus() {
677
    this.status = null;
678
  }
679
 
680
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
681
  public boolean isSetStatus() {
682
    return this.status != null;
683
  }
684
 
685
  public void setStatusIsSet(boolean value) {
686
    if (!value) {
687
      this.status = null;
688
    }
689
  }
690
 
691
  public String getInvoiceNumber() {
692
    return this.invoiceNumber;
693
  }
694
 
695
  public void setInvoiceNumber(String invoiceNumber) {
696
    this.invoiceNumber = invoiceNumber;
697
  }
698
 
699
  public void unsetInvoiceNumber() {
700
    this.invoiceNumber = null;
701
  }
702
 
703
  /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
704
  public boolean isSetInvoiceNumber() {
705
    return this.invoiceNumber != null;
706
  }
707
 
708
  public void setInvoiceNumberIsSet(boolean value) {
709
    if (!value) {
710
      this.invoiceNumber = null;
711
    }
712
  }
713
 
714
  public long getCircleId() {
715
    return this.circleId;
716
  }
717
 
718
  public void setCircleId(long circleId) {
719
    this.circleId = circleId;
720
    setCircleIdIsSet(true);
721
  }
722
 
723
  public void unsetCircleId() {
724
    __isset_bit_vector.clear(__CIRCLEID_ISSET_ID);
725
  }
726
 
727
  /** Returns true if field circleId is set (has been assigned a value) and false otherwise */
728
  public boolean isSetCircleId() {
729
    return __isset_bit_vector.get(__CIRCLEID_ISSET_ID);
730
  }
731
 
732
  public void setCircleIdIsSet(boolean value) {
733
    __isset_bit_vector.set(__CIRCLEID_ISSET_ID, value);
734
  }
735
 
736
  public long getOperatorId() {
737
    return this.operatorId;
738
  }
739
 
740
  public void setOperatorId(long operatorId) {
741
    this.operatorId = operatorId;
742
    setOperatorIdIsSet(true);
743
  }
744
 
745
  public void unsetOperatorId() {
746
    __isset_bit_vector.clear(__OPERATORID_ISSET_ID);
747
  }
748
 
749
  /** Returns true if field operatorId is set (has been assigned a value) and false otherwise */
750
  public boolean isSetOperatorId() {
751
    return __isset_bit_vector.get(__OPERATORID_ISSET_ID);
752
  }
753
 
754
  public void setOperatorIdIsSet(boolean value) {
755
    __isset_bit_vector.set(__OPERATORID_ISSET_ID, value);
756
  }
757
 
758
  public String getPlan() {
759
    return this.plan;
760
  }
761
 
762
  public void setPlan(String plan) {
763
    this.plan = plan;
764
  }
765
 
766
  public void unsetPlan() {
767
    this.plan = null;
768
  }
769
 
770
  /** Returns true if field plan is set (has been assigned a value) and false otherwise */
771
  public boolean isSetPlan() {
772
    return this.plan != null;
773
  }
774
 
775
  public void setPlanIsSet(boolean value) {
776
    if (!value) {
777
      this.plan = null;
778
    }
779
  }
780
 
781
  public String getIpAddress() {
782
    return this.ipAddress;
783
  }
784
 
785
  public void setIpAddress(String ipAddress) {
786
    this.ipAddress = ipAddress;
787
  }
788
 
789
  public void unsetIpAddress() {
790
    this.ipAddress = null;
791
  }
792
 
793
  /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
794
  public boolean isSetIpAddress() {
795
    return this.ipAddress != null;
796
  }
797
 
798
  public void setIpAddressIsSet(boolean value) {
799
    if (!value) {
800
      this.ipAddress = null;
801
    }
802
  }
803
 
804
  public String getName() {
805
    return this.name;
806
  }
807
 
808
  public void setName(String name) {
809
    this.name = name;
810
  }
811
 
812
  public void unsetName() {
813
    this.name = null;
814
  }
815
 
816
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
817
  public boolean isSetName() {
818
    return this.name != null;
819
  }
820
 
821
  public void setNameIsSet(boolean value) {
822
    if (!value) {
823
      this.name = null;
824
    }
825
  }
826
 
827
  public String getCafNum() {
828
    return this.cafNum;
829
  }
830
 
831
  public void setCafNum(String cafNum) {
832
    this.cafNum = cafNum;
833
  }
834
 
835
  public void unsetCafNum() {
836
    this.cafNum = null;
837
  }
838
 
839
  /** Returns true if field cafNum is set (has been assigned a value) and false otherwise */
840
  public boolean isSetCafNum() {
841
    return this.cafNum != null;
842
  }
843
 
844
  public void setCafNumIsSet(boolean value) {
845
    if (!value) {
846
      this.cafNum = null;
847
    }
848
  }
849
 
850
  public String getSimNum() {
851
    return this.simNum;
852
  }
853
 
854
  public void setSimNum(String simNum) {
855
    this.simNum = simNum;
856
  }
857
 
858
  public void unsetSimNum() {
859
    this.simNum = null;
860
  }
861
 
862
  /** Returns true if field simNum is set (has been assigned a value) and false otherwise */
863
  public boolean isSetSimNum() {
864
    return this.simNum != null;
865
  }
866
 
867
  public void setSimNumIsSet(boolean value) {
868
    if (!value) {
869
      this.simNum = null;
870
    }
871
  }
872
 
873
  public void setFieldValue(_Fields field, Object value) {
874
    switch (field) {
875
    case ID:
876
      if (value == null) {
877
        unsetId();
878
      } else {
879
        setId((Long)value);
880
      }
881
      break;
882
 
883
    case STORE_ID:
884
      if (value == null) {
885
        unsetStoreId();
886
      } else {
887
        setStoreId((Long)value);
888
      }
889
      break;
890
 
891
    case AMOUNT:
892
      if (value == null) {
893
        unsetAmount();
894
      } else {
895
        setAmount((Double)value);
896
      }
897
      break;
898
 
899
    case TRANSACTION_TIME:
900
      if (value == null) {
901
        unsetTransactionTime();
902
      } else {
903
        setTransactionTime((Long)value);
904
      }
905
      break;
906
 
907
    case DEVICE_NUM:
908
      if (value == null) {
909
        unsetDeviceNum();
910
      } else {
911
        setDeviceNum((String)value);
912
      }
913
      break;
914
 
915
    case DEVICE_TYPE:
916
      if (value == null) {
917
        unsetDeviceType();
918
      } else {
919
        setDeviceType((RechargeType)value);
920
      }
921
      break;
922
 
923
    case IS_FRC:
924
      if (value == null) {
925
        unsetIsFrc();
926
      } else {
927
        setIsFrc((Boolean)value);
928
      }
929
      break;
930
 
931
    case EMAIL:
932
      if (value == null) {
933
        unsetEmail();
934
      } else {
935
        setEmail((String)value);
936
      }
937
      break;
938
 
939
    case DISCOUNT:
940
      if (value == null) {
941
        unsetDiscount();
942
      } else {
943
        setDiscount((Double)value);
944
      }
945
      break;
946
 
947
    case PAYMENT_AMOUNT:
948
      if (value == null) {
949
        unsetPaymentAmount();
950
      } else {
951
        setPaymentAmount((Double)value);
952
      }
953
      break;
954
 
955
    case PAY_METHOD:
956
      if (value == null) {
957
        unsetPayMethod();
958
      } else {
959
        setPayMethod((PayMethod)value);
960
      }
961
      break;
962
 
963
    case STATUS:
964
      if (value == null) {
965
        unsetStatus();
966
      } else {
967
        setStatus((RechargeOrderStatus)value);
968
      }
969
      break;
970
 
971
    case INVOICE_NUMBER:
972
      if (value == null) {
973
        unsetInvoiceNumber();
974
      } else {
975
        setInvoiceNumber((String)value);
976
      }
977
      break;
978
 
979
    case CIRCLE_ID:
980
      if (value == null) {
981
        unsetCircleId();
982
      } else {
983
        setCircleId((Long)value);
984
      }
985
      break;
986
 
987
    case OPERATOR_ID:
988
      if (value == null) {
989
        unsetOperatorId();
990
      } else {
991
        setOperatorId((Long)value);
992
      }
993
      break;
994
 
995
    case PLAN:
996
      if (value == null) {
997
        unsetPlan();
998
      } else {
999
        setPlan((String)value);
1000
      }
1001
      break;
1002
 
1003
    case IP_ADDRESS:
1004
      if (value == null) {
1005
        unsetIpAddress();
1006
      } else {
1007
        setIpAddress((String)value);
1008
      }
1009
      break;
1010
 
1011
    case NAME:
1012
      if (value == null) {
1013
        unsetName();
1014
      } else {
1015
        setName((String)value);
1016
      }
1017
      break;
1018
 
1019
    case CAF_NUM:
1020
      if (value == null) {
1021
        unsetCafNum();
1022
      } else {
1023
        setCafNum((String)value);
1024
      }
1025
      break;
1026
 
1027
    case SIM_NUM:
1028
      if (value == null) {
1029
        unsetSimNum();
1030
      } else {
1031
        setSimNum((String)value);
1032
      }
1033
      break;
1034
 
1035
    }
1036
  }
1037
 
1038
  public Object getFieldValue(_Fields field) {
1039
    switch (field) {
1040
    case ID:
1041
      return Long.valueOf(getId());
1042
 
1043
    case STORE_ID:
1044
      return Long.valueOf(getStoreId());
1045
 
1046
    case AMOUNT:
1047
      return Double.valueOf(getAmount());
1048
 
1049
    case TRANSACTION_TIME:
1050
      return Long.valueOf(getTransactionTime());
1051
 
1052
    case DEVICE_NUM:
1053
      return getDeviceNum();
1054
 
1055
    case DEVICE_TYPE:
1056
      return getDeviceType();
1057
 
1058
    case IS_FRC:
1059
      return Boolean.valueOf(isIsFrc());
1060
 
1061
    case EMAIL:
1062
      return getEmail();
1063
 
1064
    case DISCOUNT:
1065
      return Double.valueOf(getDiscount());
1066
 
1067
    case PAYMENT_AMOUNT:
1068
      return Double.valueOf(getPaymentAmount());
1069
 
1070
    case PAY_METHOD:
1071
      return getPayMethod();
1072
 
1073
    case STATUS:
1074
      return getStatus();
1075
 
1076
    case INVOICE_NUMBER:
1077
      return getInvoiceNumber();
1078
 
1079
    case CIRCLE_ID:
1080
      return Long.valueOf(getCircleId());
1081
 
1082
    case OPERATOR_ID:
1083
      return Long.valueOf(getOperatorId());
1084
 
1085
    case PLAN:
1086
      return getPlan();
1087
 
1088
    case IP_ADDRESS:
1089
      return getIpAddress();
1090
 
1091
    case NAME:
1092
      return getName();
1093
 
1094
    case CAF_NUM:
1095
      return getCafNum();
1096
 
1097
    case SIM_NUM:
1098
      return getSimNum();
1099
 
1100
    }
1101
    throw new IllegalStateException();
1102
  }
1103
 
1104
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1105
  public boolean isSet(_Fields field) {
1106
    if (field == null) {
1107
      throw new IllegalArgumentException();
1108
    }
1109
 
1110
    switch (field) {
1111
    case ID:
1112
      return isSetId();
1113
    case STORE_ID:
1114
      return isSetStoreId();
1115
    case AMOUNT:
1116
      return isSetAmount();
1117
    case TRANSACTION_TIME:
1118
      return isSetTransactionTime();
1119
    case DEVICE_NUM:
1120
      return isSetDeviceNum();
1121
    case DEVICE_TYPE:
1122
      return isSetDeviceType();
1123
    case IS_FRC:
1124
      return isSetIsFrc();
1125
    case EMAIL:
1126
      return isSetEmail();
1127
    case DISCOUNT:
1128
      return isSetDiscount();
1129
    case PAYMENT_AMOUNT:
1130
      return isSetPaymentAmount();
1131
    case PAY_METHOD:
1132
      return isSetPayMethod();
1133
    case STATUS:
1134
      return isSetStatus();
1135
    case INVOICE_NUMBER:
1136
      return isSetInvoiceNumber();
1137
    case CIRCLE_ID:
1138
      return isSetCircleId();
1139
    case OPERATOR_ID:
1140
      return isSetOperatorId();
1141
    case PLAN:
1142
      return isSetPlan();
1143
    case IP_ADDRESS:
1144
      return isSetIpAddress();
1145
    case NAME:
1146
      return isSetName();
1147
    case CAF_NUM:
1148
      return isSetCafNum();
1149
    case SIM_NUM:
1150
      return isSetSimNum();
1151
    }
1152
    throw new IllegalStateException();
1153
  }
1154
 
1155
  @Override
1156
  public boolean equals(Object that) {
1157
    if (that == null)
1158
      return false;
1159
    if (that instanceof RechargeTransaction)
1160
      return this.equals((RechargeTransaction)that);
1161
    return false;
1162
  }
1163
 
1164
  public boolean equals(RechargeTransaction that) {
1165
    if (that == null)
1166
      return false;
1167
 
1168
    boolean this_present_id = true;
1169
    boolean that_present_id = true;
1170
    if (this_present_id || that_present_id) {
1171
      if (!(this_present_id && that_present_id))
1172
        return false;
1173
      if (this.id != that.id)
1174
        return false;
1175
    }
1176
 
1177
    boolean this_present_storeId = true;
1178
    boolean that_present_storeId = true;
1179
    if (this_present_storeId || that_present_storeId) {
1180
      if (!(this_present_storeId && that_present_storeId))
1181
        return false;
1182
      if (this.storeId != that.storeId)
1183
        return false;
1184
    }
1185
 
1186
    boolean this_present_amount = true;
1187
    boolean that_present_amount = true;
1188
    if (this_present_amount || that_present_amount) {
1189
      if (!(this_present_amount && that_present_amount))
1190
        return false;
1191
      if (this.amount != that.amount)
1192
        return false;
1193
    }
1194
 
1195
    boolean this_present_transactionTime = true;
1196
    boolean that_present_transactionTime = true;
1197
    if (this_present_transactionTime || that_present_transactionTime) {
1198
      if (!(this_present_transactionTime && that_present_transactionTime))
1199
        return false;
1200
      if (this.transactionTime != that.transactionTime)
1201
        return false;
1202
    }
1203
 
1204
    boolean this_present_deviceNum = true && this.isSetDeviceNum();
1205
    boolean that_present_deviceNum = true && that.isSetDeviceNum();
1206
    if (this_present_deviceNum || that_present_deviceNum) {
1207
      if (!(this_present_deviceNum && that_present_deviceNum))
1208
        return false;
1209
      if (!this.deviceNum.equals(that.deviceNum))
1210
        return false;
1211
    }
1212
 
1213
    boolean this_present_deviceType = true && this.isSetDeviceType();
1214
    boolean that_present_deviceType = true && that.isSetDeviceType();
1215
    if (this_present_deviceType || that_present_deviceType) {
1216
      if (!(this_present_deviceType && that_present_deviceType))
1217
        return false;
1218
      if (!this.deviceType.equals(that.deviceType))
1219
        return false;
1220
    }
1221
 
1222
    boolean this_present_isFrc = true;
1223
    boolean that_present_isFrc = true;
1224
    if (this_present_isFrc || that_present_isFrc) {
1225
      if (!(this_present_isFrc && that_present_isFrc))
1226
        return false;
1227
      if (this.isFrc != that.isFrc)
1228
        return false;
1229
    }
1230
 
1231
    boolean this_present_email = true && this.isSetEmail();
1232
    boolean that_present_email = true && that.isSetEmail();
1233
    if (this_present_email || that_present_email) {
1234
      if (!(this_present_email && that_present_email))
1235
        return false;
1236
      if (!this.email.equals(that.email))
1237
        return false;
1238
    }
1239
 
1240
    boolean this_present_discount = true;
1241
    boolean that_present_discount = true;
1242
    if (this_present_discount || that_present_discount) {
1243
      if (!(this_present_discount && that_present_discount))
1244
        return false;
1245
      if (this.discount != that.discount)
1246
        return false;
1247
    }
1248
 
1249
    boolean this_present_paymentAmount = true;
1250
    boolean that_present_paymentAmount = true;
1251
    if (this_present_paymentAmount || that_present_paymentAmount) {
1252
      if (!(this_present_paymentAmount && that_present_paymentAmount))
1253
        return false;
1254
      if (this.paymentAmount != that.paymentAmount)
1255
        return false;
1256
    }
1257
 
1258
    boolean this_present_payMethod = true && this.isSetPayMethod();
1259
    boolean that_present_payMethod = true && that.isSetPayMethod();
1260
    if (this_present_payMethod || that_present_payMethod) {
1261
      if (!(this_present_payMethod && that_present_payMethod))
1262
        return false;
1263
      if (!this.payMethod.equals(that.payMethod))
1264
        return false;
1265
    }
1266
 
1267
    boolean this_present_status = true && this.isSetStatus();
1268
    boolean that_present_status = true && that.isSetStatus();
1269
    if (this_present_status || that_present_status) {
1270
      if (!(this_present_status && that_present_status))
1271
        return false;
1272
      if (!this.status.equals(that.status))
1273
        return false;
1274
    }
1275
 
1276
    boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
1277
    boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
1278
    if (this_present_invoiceNumber || that_present_invoiceNumber) {
1279
      if (!(this_present_invoiceNumber && that_present_invoiceNumber))
1280
        return false;
1281
      if (!this.invoiceNumber.equals(that.invoiceNumber))
1282
        return false;
1283
    }
1284
 
1285
    boolean this_present_circleId = true;
1286
    boolean that_present_circleId = true;
1287
    if (this_present_circleId || that_present_circleId) {
1288
      if (!(this_present_circleId && that_present_circleId))
1289
        return false;
1290
      if (this.circleId != that.circleId)
1291
        return false;
1292
    }
1293
 
1294
    boolean this_present_operatorId = true;
1295
    boolean that_present_operatorId = true;
1296
    if (this_present_operatorId || that_present_operatorId) {
1297
      if (!(this_present_operatorId && that_present_operatorId))
1298
        return false;
1299
      if (this.operatorId != that.operatorId)
1300
        return false;
1301
    }
1302
 
1303
    boolean this_present_plan = true && this.isSetPlan();
1304
    boolean that_present_plan = true && that.isSetPlan();
1305
    if (this_present_plan || that_present_plan) {
1306
      if (!(this_present_plan && that_present_plan))
1307
        return false;
1308
      if (!this.plan.equals(that.plan))
1309
        return false;
1310
    }
1311
 
1312
    boolean this_present_ipAddress = true && this.isSetIpAddress();
1313
    boolean that_present_ipAddress = true && that.isSetIpAddress();
1314
    if (this_present_ipAddress || that_present_ipAddress) {
1315
      if (!(this_present_ipAddress && that_present_ipAddress))
1316
        return false;
1317
      if (!this.ipAddress.equals(that.ipAddress))
1318
        return false;
1319
    }
1320
 
1321
    boolean this_present_name = true && this.isSetName();
1322
    boolean that_present_name = true && that.isSetName();
1323
    if (this_present_name || that_present_name) {
1324
      if (!(this_present_name && that_present_name))
1325
        return false;
1326
      if (!this.name.equals(that.name))
1327
        return false;
1328
    }
1329
 
1330
    boolean this_present_cafNum = true && this.isSetCafNum();
1331
    boolean that_present_cafNum = true && that.isSetCafNum();
1332
    if (this_present_cafNum || that_present_cafNum) {
1333
      if (!(this_present_cafNum && that_present_cafNum))
1334
        return false;
1335
      if (!this.cafNum.equals(that.cafNum))
1336
        return false;
1337
    }
1338
 
1339
    boolean this_present_simNum = true && this.isSetSimNum();
1340
    boolean that_present_simNum = true && that.isSetSimNum();
1341
    if (this_present_simNum || that_present_simNum) {
1342
      if (!(this_present_simNum && that_present_simNum))
1343
        return false;
1344
      if (!this.simNum.equals(that.simNum))
1345
        return false;
1346
    }
1347
 
1348
    return true;
1349
  }
1350
 
1351
  @Override
1352
  public int hashCode() {
1353
    return 0;
1354
  }
1355
 
1356
  public int compareTo(RechargeTransaction other) {
1357
    if (!getClass().equals(other.getClass())) {
1358
      return getClass().getName().compareTo(other.getClass().getName());
1359
    }
1360
 
1361
    int lastComparison = 0;
1362
    RechargeTransaction typedOther = (RechargeTransaction)other;
1363
 
1364
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1365
    if (lastComparison != 0) {
1366
      return lastComparison;
1367
    }
1368
    if (isSetId()) {
1369
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1370
      if (lastComparison != 0) {
1371
        return lastComparison;
1372
      }
1373
    }
1374
    lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
1375
    if (lastComparison != 0) {
1376
      return lastComparison;
1377
    }
1378
    if (isSetStoreId()) {
1379
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
1380
      if (lastComparison != 0) {
1381
        return lastComparison;
1382
      }
1383
    }
1384
    lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
1385
    if (lastComparison != 0) {
1386
      return lastComparison;
1387
    }
1388
    if (isSetAmount()) {
1389
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
1390
      if (lastComparison != 0) {
1391
        return lastComparison;
1392
      }
1393
    }
1394
    lastComparison = Boolean.valueOf(isSetTransactionTime()).compareTo(typedOther.isSetTransactionTime());
1395
    if (lastComparison != 0) {
1396
      return lastComparison;
1397
    }
1398
    if (isSetTransactionTime()) {
1399
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionTime, typedOther.transactionTime);
1400
      if (lastComparison != 0) {
1401
        return lastComparison;
1402
      }
1403
    }
1404
    lastComparison = Boolean.valueOf(isSetDeviceNum()).compareTo(typedOther.isSetDeviceNum());
1405
    if (lastComparison != 0) {
1406
      return lastComparison;
1407
    }
1408
    if (isSetDeviceNum()) {
1409
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceNum, typedOther.deviceNum);
1410
      if (lastComparison != 0) {
1411
        return lastComparison;
1412
      }
1413
    }
1414
    lastComparison = Boolean.valueOf(isSetDeviceType()).compareTo(typedOther.isSetDeviceType());
1415
    if (lastComparison != 0) {
1416
      return lastComparison;
1417
    }
1418
    if (isSetDeviceType()) {
1419
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceType, typedOther.deviceType);
1420
      if (lastComparison != 0) {
1421
        return lastComparison;
1422
      }
1423
    }
1424
    lastComparison = Boolean.valueOf(isSetIsFrc()).compareTo(typedOther.isSetIsFrc());
1425
    if (lastComparison != 0) {
1426
      return lastComparison;
1427
    }
1428
    if (isSetIsFrc()) {
1429
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isFrc, typedOther.isFrc);
1430
      if (lastComparison != 0) {
1431
        return lastComparison;
1432
      }
1433
    }
1434
    lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
1435
    if (lastComparison != 0) {
1436
      return lastComparison;
1437
    }
1438
    if (isSetEmail()) {
1439
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
1440
      if (lastComparison != 0) {
1441
        return lastComparison;
1442
      }
1443
    }
1444
    lastComparison = Boolean.valueOf(isSetDiscount()).compareTo(typedOther.isSetDiscount());
1445
    if (lastComparison != 0) {
1446
      return lastComparison;
1447
    }
1448
    if (isSetDiscount()) {
1449
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discount, typedOther.discount);
1450
      if (lastComparison != 0) {
1451
        return lastComparison;
1452
      }
1453
    }
1454
    lastComparison = Boolean.valueOf(isSetPaymentAmount()).compareTo(typedOther.isSetPaymentAmount());
1455
    if (lastComparison != 0) {
1456
      return lastComparison;
1457
    }
1458
    if (isSetPaymentAmount()) {
1459
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentAmount, typedOther.paymentAmount);
1460
      if (lastComparison != 0) {
1461
        return lastComparison;
1462
      }
1463
    }
1464
    lastComparison = Boolean.valueOf(isSetPayMethod()).compareTo(typedOther.isSetPayMethod());
1465
    if (lastComparison != 0) {
1466
      return lastComparison;
1467
    }
1468
    if (isSetPayMethod()) {
1469
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.payMethod, typedOther.payMethod);
1470
      if (lastComparison != 0) {
1471
        return lastComparison;
1472
      }
1473
    }
1474
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
1475
    if (lastComparison != 0) {
1476
      return lastComparison;
1477
    }
1478
    if (isSetStatus()) {
1479
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
1480
      if (lastComparison != 0) {
1481
        return lastComparison;
1482
      }
1483
    }
1484
    lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
1485
    if (lastComparison != 0) {
1486
      return lastComparison;
1487
    }
1488
    if (isSetInvoiceNumber()) {
1489
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
1490
      if (lastComparison != 0) {
1491
        return lastComparison;
1492
      }
1493
    }
1494
    lastComparison = Boolean.valueOf(isSetCircleId()).compareTo(typedOther.isSetCircleId());
1495
    if (lastComparison != 0) {
1496
      return lastComparison;
1497
    }
1498
    if (isSetCircleId()) {
1499
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.circleId, typedOther.circleId);
1500
      if (lastComparison != 0) {
1501
        return lastComparison;
1502
      }
1503
    }
1504
    lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId());
1505
    if (lastComparison != 0) {
1506
      return lastComparison;
1507
    }
1508
    if (isSetOperatorId()) {
1509
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId);
1510
      if (lastComparison != 0) {
1511
        return lastComparison;
1512
      }
1513
    }
1514
    lastComparison = Boolean.valueOf(isSetPlan()).compareTo(typedOther.isSetPlan());
1515
    if (lastComparison != 0) {
1516
      return lastComparison;
1517
    }
1518
    if (isSetPlan()) {
1519
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.plan, typedOther.plan);
1520
      if (lastComparison != 0) {
1521
        return lastComparison;
1522
      }
1523
    }
1524
    lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(typedOther.isSetIpAddress());
1525
    if (lastComparison != 0) {
1526
      return lastComparison;
1527
    }
1528
    if (isSetIpAddress()) {
1529
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, typedOther.ipAddress);
1530
      if (lastComparison != 0) {
1531
        return lastComparison;
1532
      }
1533
    }
1534
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1535
    if (lastComparison != 0) {
1536
      return lastComparison;
1537
    }
1538
    if (isSetName()) {
1539
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
1540
      if (lastComparison != 0) {
1541
        return lastComparison;
1542
      }
1543
    }
1544
    lastComparison = Boolean.valueOf(isSetCafNum()).compareTo(typedOther.isSetCafNum());
1545
    if (lastComparison != 0) {
1546
      return lastComparison;
1547
    }
1548
    if (isSetCafNum()) {
1549
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cafNum, typedOther.cafNum);
1550
      if (lastComparison != 0) {
1551
        return lastComparison;
1552
      }
1553
    }
1554
    lastComparison = Boolean.valueOf(isSetSimNum()).compareTo(typedOther.isSetSimNum());
1555
    if (lastComparison != 0) {
1556
      return lastComparison;
1557
    }
1558
    if (isSetSimNum()) {
1559
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.simNum, typedOther.simNum);
1560
      if (lastComparison != 0) {
1561
        return lastComparison;
1562
      }
1563
    }
1564
    return 0;
1565
  }
1566
 
1567
  public _Fields fieldForId(int fieldId) {
1568
    return _Fields.findByThriftId(fieldId);
1569
  }
1570
 
1571
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1572
    org.apache.thrift.protocol.TField field;
1573
    iprot.readStructBegin();
1574
    while (true)
1575
    {
1576
      field = iprot.readFieldBegin();
1577
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1578
        break;
1579
      }
1580
      switch (field.id) {
1581
        case 1: // ID
1582
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1583
            this.id = iprot.readI64();
1584
            setIdIsSet(true);
1585
          } else { 
1586
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1587
          }
1588
          break;
1589
        case 2: // STORE_ID
1590
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1591
            this.storeId = iprot.readI64();
1592
            setStoreIdIsSet(true);
1593
          } else { 
1594
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1595
          }
1596
          break;
1597
        case 3: // AMOUNT
1598
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1599
            this.amount = iprot.readDouble();
1600
            setAmountIsSet(true);
1601
          } else { 
1602
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1603
          }
1604
          break;
1605
        case 4: // TRANSACTION_TIME
1606
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1607
            this.transactionTime = iprot.readI64();
1608
            setTransactionTimeIsSet(true);
1609
          } else { 
1610
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611
          }
1612
          break;
1613
        case 5: // DEVICE_NUM
1614
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1615
            this.deviceNum = iprot.readString();
1616
          } else { 
1617
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1618
          }
1619
          break;
1620
        case 6: // DEVICE_TYPE
1621
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1622
            this.deviceType = RechargeType.findByValue(iprot.readI32());
1623
          } else { 
1624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1625
          }
1626
          break;
1627
        case 7: // IS_FRC
1628
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1629
            this.isFrc = iprot.readBool();
1630
            setIsFrcIsSet(true);
1631
          } else { 
1632
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1633
          }
1634
          break;
1635
        case 8: // EMAIL
1636
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1637
            this.email = iprot.readString();
1638
          } else { 
1639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1640
          }
1641
          break;
1642
        case 9: // DISCOUNT
1643
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1644
            this.discount = iprot.readDouble();
1645
            setDiscountIsSet(true);
1646
          } else { 
1647
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1648
          }
1649
          break;
1650
        case 10: // PAYMENT_AMOUNT
1651
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1652
            this.paymentAmount = iprot.readDouble();
1653
            setPaymentAmountIsSet(true);
1654
          } else { 
1655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1656
          }
1657
          break;
1658
        case 11: // PAY_METHOD
1659
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1660
            this.payMethod = PayMethod.findByValue(iprot.readI32());
1661
          } else { 
1662
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1663
          }
1664
          break;
1665
        case 12: // STATUS
1666
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1667
            this.status = RechargeOrderStatus.findByValue(iprot.readI32());
1668
          } else { 
1669
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1670
          }
1671
          break;
1672
        case 13: // INVOICE_NUMBER
1673
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1674
            this.invoiceNumber = iprot.readString();
1675
          } else { 
1676
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1677
          }
1678
          break;
1679
        case 14: // CIRCLE_ID
1680
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1681
            this.circleId = iprot.readI64();
1682
            setCircleIdIsSet(true);
1683
          } else { 
1684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1685
          }
1686
          break;
1687
        case 15: // OPERATOR_ID
1688
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1689
            this.operatorId = iprot.readI64();
1690
            setOperatorIdIsSet(true);
1691
          } else { 
1692
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1693
          }
1694
          break;
1695
        case 16: // PLAN
1696
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1697
            this.plan = iprot.readString();
1698
          } else { 
1699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1700
          }
1701
          break;
1702
        case 17: // IP_ADDRESS
1703
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1704
            this.ipAddress = iprot.readString();
1705
          } else { 
1706
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1707
          }
1708
          break;
1709
        case 18: // NAME
1710
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1711
            this.name = iprot.readString();
1712
          } else { 
1713
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1714
          }
1715
          break;
1716
        case 19: // CAF_NUM
1717
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1718
            this.cafNum = iprot.readString();
1719
          } else { 
1720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1721
          }
1722
          break;
1723
        case 20: // SIM_NUM
1724
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1725
            this.simNum = iprot.readString();
1726
          } else { 
1727
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1728
          }
1729
          break;
1730
        default:
1731
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1732
      }
1733
      iprot.readFieldEnd();
1734
    }
1735
    iprot.readStructEnd();
1736
    validate();
1737
  }
1738
 
1739
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1740
    validate();
1741
 
1742
    oprot.writeStructBegin(STRUCT_DESC);
1743
    oprot.writeFieldBegin(ID_FIELD_DESC);
1744
    oprot.writeI64(this.id);
1745
    oprot.writeFieldEnd();
1746
    oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
1747
    oprot.writeI64(this.storeId);
1748
    oprot.writeFieldEnd();
1749
    oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
1750
    oprot.writeDouble(this.amount);
1751
    oprot.writeFieldEnd();
1752
    oprot.writeFieldBegin(TRANSACTION_TIME_FIELD_DESC);
1753
    oprot.writeI64(this.transactionTime);
1754
    oprot.writeFieldEnd();
1755
    if (this.deviceNum != null) {
1756
      oprot.writeFieldBegin(DEVICE_NUM_FIELD_DESC);
1757
      oprot.writeString(this.deviceNum);
1758
      oprot.writeFieldEnd();
1759
    }
1760
    if (this.deviceType != null) {
1761
      oprot.writeFieldBegin(DEVICE_TYPE_FIELD_DESC);
1762
      oprot.writeI32(this.deviceType.getValue());
1763
      oprot.writeFieldEnd();
1764
    }
1765
    oprot.writeFieldBegin(IS_FRC_FIELD_DESC);
1766
    oprot.writeBool(this.isFrc);
1767
    oprot.writeFieldEnd();
1768
    if (this.email != null) {
1769
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1770
      oprot.writeString(this.email);
1771
      oprot.writeFieldEnd();
1772
    }
1773
    oprot.writeFieldBegin(DISCOUNT_FIELD_DESC);
1774
    oprot.writeDouble(this.discount);
1775
    oprot.writeFieldEnd();
1776
    oprot.writeFieldBegin(PAYMENT_AMOUNT_FIELD_DESC);
1777
    oprot.writeDouble(this.paymentAmount);
1778
    oprot.writeFieldEnd();
1779
    if (this.payMethod != null) {
1780
      oprot.writeFieldBegin(PAY_METHOD_FIELD_DESC);
1781
      oprot.writeI32(this.payMethod.getValue());
1782
      oprot.writeFieldEnd();
1783
    }
1784
    if (this.status != null) {
1785
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
1786
      oprot.writeI32(this.status.getValue());
1787
      oprot.writeFieldEnd();
1788
    }
1789
    if (this.invoiceNumber != null) {
1790
      oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
1791
      oprot.writeString(this.invoiceNumber);
1792
      oprot.writeFieldEnd();
1793
    }
1794
    oprot.writeFieldBegin(CIRCLE_ID_FIELD_DESC);
1795
    oprot.writeI64(this.circleId);
1796
    oprot.writeFieldEnd();
1797
    oprot.writeFieldBegin(OPERATOR_ID_FIELD_DESC);
1798
    oprot.writeI64(this.operatorId);
1799
    oprot.writeFieldEnd();
1800
    if (this.plan != null) {
1801
      oprot.writeFieldBegin(PLAN_FIELD_DESC);
1802
      oprot.writeString(this.plan);
1803
      oprot.writeFieldEnd();
1804
    }
1805
    if (this.ipAddress != null) {
1806
      oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
1807
      oprot.writeString(this.ipAddress);
1808
      oprot.writeFieldEnd();
1809
    }
1810
    if (this.name != null) {
1811
      oprot.writeFieldBegin(NAME_FIELD_DESC);
1812
      oprot.writeString(this.name);
1813
      oprot.writeFieldEnd();
1814
    }
1815
    if (this.cafNum != null) {
1816
      oprot.writeFieldBegin(CAF_NUM_FIELD_DESC);
1817
      oprot.writeString(this.cafNum);
1818
      oprot.writeFieldEnd();
1819
    }
1820
    if (this.simNum != null) {
1821
      oprot.writeFieldBegin(SIM_NUM_FIELD_DESC);
1822
      oprot.writeString(this.simNum);
1823
      oprot.writeFieldEnd();
1824
    }
1825
    oprot.writeFieldStop();
1826
    oprot.writeStructEnd();
1827
  }
1828
 
1829
  @Override
1830
  public String toString() {
1831
    StringBuilder sb = new StringBuilder("RechargeTransaction(");
1832
    boolean first = true;
1833
 
1834
    sb.append("id:");
1835
    sb.append(this.id);
1836
    first = false;
1837
    if (!first) sb.append(", ");
1838
    sb.append("storeId:");
1839
    sb.append(this.storeId);
1840
    first = false;
1841
    if (!first) sb.append(", ");
1842
    sb.append("amount:");
1843
    sb.append(this.amount);
1844
    first = false;
1845
    if (!first) sb.append(", ");
1846
    sb.append("transactionTime:");
1847
    sb.append(this.transactionTime);
1848
    first = false;
1849
    if (!first) sb.append(", ");
1850
    sb.append("deviceNum:");
1851
    if (this.deviceNum == null) {
1852
      sb.append("null");
1853
    } else {
1854
      sb.append(this.deviceNum);
1855
    }
1856
    first = false;
1857
    if (!first) sb.append(", ");
1858
    sb.append("deviceType:");
1859
    if (this.deviceType == null) {
1860
      sb.append("null");
1861
    } else {
1862
      sb.append(this.deviceType);
1863
    }
1864
    first = false;
1865
    if (!first) sb.append(", ");
1866
    sb.append("isFrc:");
1867
    sb.append(this.isFrc);
1868
    first = false;
1869
    if (!first) sb.append(", ");
1870
    sb.append("email:");
1871
    if (this.email == null) {
1872
      sb.append("null");
1873
    } else {
1874
      sb.append(this.email);
1875
    }
1876
    first = false;
1877
    if (!first) sb.append(", ");
1878
    sb.append("discount:");
1879
    sb.append(this.discount);
1880
    first = false;
1881
    if (!first) sb.append(", ");
1882
    sb.append("paymentAmount:");
1883
    sb.append(this.paymentAmount);
1884
    first = false;
1885
    if (!first) sb.append(", ");
1886
    sb.append("payMethod:");
1887
    if (this.payMethod == null) {
1888
      sb.append("null");
1889
    } else {
1890
      sb.append(this.payMethod);
1891
    }
1892
    first = false;
1893
    if (!first) sb.append(", ");
1894
    sb.append("status:");
1895
    if (this.status == null) {
1896
      sb.append("null");
1897
    } else {
1898
      sb.append(this.status);
1899
    }
1900
    first = false;
1901
    if (!first) sb.append(", ");
1902
    sb.append("invoiceNumber:");
1903
    if (this.invoiceNumber == null) {
1904
      sb.append("null");
1905
    } else {
1906
      sb.append(this.invoiceNumber);
1907
    }
1908
    first = false;
1909
    if (!first) sb.append(", ");
1910
    sb.append("circleId:");
1911
    sb.append(this.circleId);
1912
    first = false;
1913
    if (!first) sb.append(", ");
1914
    sb.append("operatorId:");
1915
    sb.append(this.operatorId);
1916
    first = false;
1917
    if (!first) sb.append(", ");
1918
    sb.append("plan:");
1919
    if (this.plan == null) {
1920
      sb.append("null");
1921
    } else {
1922
      sb.append(this.plan);
1923
    }
1924
    first = false;
1925
    if (!first) sb.append(", ");
1926
    sb.append("ipAddress:");
1927
    if (this.ipAddress == null) {
1928
      sb.append("null");
1929
    } else {
1930
      sb.append(this.ipAddress);
1931
    }
1932
    first = false;
1933
    if (!first) sb.append(", ");
1934
    sb.append("name:");
1935
    if (this.name == null) {
1936
      sb.append("null");
1937
    } else {
1938
      sb.append(this.name);
1939
    }
1940
    first = false;
1941
    if (!first) sb.append(", ");
1942
    sb.append("cafNum:");
1943
    if (this.cafNum == null) {
1944
      sb.append("null");
1945
    } else {
1946
      sb.append(this.cafNum);
1947
    }
1948
    first = false;
1949
    if (!first) sb.append(", ");
1950
    sb.append("simNum:");
1951
    if (this.simNum == null) {
1952
      sb.append("null");
1953
    } else {
1954
      sb.append(this.simNum);
1955
    }
1956
    first = false;
1957
    sb.append(")");
1958
    return sb.toString();
1959
  }
1960
 
1961
  public void validate() throws org.apache.thrift.TException {
1962
    // check for required fields
1963
  }
1964
 
1965
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1966
    try {
1967
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1968
    } catch (org.apache.thrift.TException te) {
1969
      throw new java.io.IOException(te);
1970
    }
1971
  }
1972
 
1973
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1974
    try {
1975
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1976
      __isset_bit_vector = new BitSet(1);
1977
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1978
    } catch (org.apache.thrift.TException te) {
1979
      throw new java.io.IOException(te);
1980
    }
1981
  }
1982
 
1983
}
1984