Subversion Repositories SmartDukaan

Rev

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