Subversion Repositories SmartDukaan

Rev

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