Subversion Repositories SmartDukaan

Rev

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