Subversion Repositories SmartDukaan

Rev

Rev 6031 | Rev 6077 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6000 mandeep.dh 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 RechargeOrder implements org.apache.thrift.TBase<RechargeOrder, RechargeOrder._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeOrder");
25
 
6031 rajveer 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 DISPLAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("displayId", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField TOTAL_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("totalAmount", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField WALLET_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("walletAmount", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)5);
31
  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)6);
32
  private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)7);
33
  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)8);
34
  private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)9);
35
  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)10);
36
  private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)11);
37
  private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)12);
38
  private static final org.apache.thrift.protocol.TField USER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userEmailId", org.apache.thrift.protocol.TType.STRING, (short)13);
39
  private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)14);
6048 rajveer 40
  private static final org.apache.thrift.protocol.TField SPICE_TID_FIELD_DESC = new org.apache.thrift.protocol.TField("spiceTID", org.apache.thrift.protocol.TType.STRING, (short)15);
41
  private static final org.apache.thrift.protocol.TField RESPONSE_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("responseTimestamp", org.apache.thrift.protocol.TType.I64, (short)16);
6000 mandeep.dh 42
 
6031 rajveer 43
  private long id; // required
44
  private String displayId; // required
45
  private long totalAmount; // required
46
  private long walletAmount; // required
6000 mandeep.dh 47
  private long transactionId; // required
48
  private String invoiceNumber; // required
49
  private OrderType orderType; // required
50
  private long operatorId; // required
51
  private RechargeType rechargeType; // required
6031 rajveer 52
  private RechargeOrderStatus status; // required
6000 mandeep.dh 53
  private String deviceNumber; // required
6031 rajveer 54
  private long userId; // required
55
  private String userEmailId; // required
6000 mandeep.dh 56
  private long creationTimestamp; // required
6048 rajveer 57
  private String spiceTID; // required
58
  private long responseTimestamp; // required
6000 mandeep.dh 59
 
60
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
61
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
62
    ID((short)1, "id"),
6031 rajveer 63
    DISPLAY_ID((short)2, "displayId"),
64
    TOTAL_AMOUNT((short)3, "totalAmount"),
65
    WALLET_AMOUNT((short)4, "walletAmount"),
66
    TRANSACTION_ID((short)5, "transactionId"),
67
    INVOICE_NUMBER((short)6, "invoiceNumber"),
6000 mandeep.dh 68
    /**
69
     * 
70
     * @see OrderType
71
     */
6031 rajveer 72
    ORDER_TYPE((short)7, "orderType"),
73
    OPERATOR_ID((short)8, "operatorId"),
6000 mandeep.dh 74
    /**
75
     * 
76
     * @see RechargeType
77
     */
6031 rajveer 78
    RECHARGE_TYPE((short)9, "rechargeType"),
6000 mandeep.dh 79
    /**
80
     * 
81
     * @see RechargeOrderStatus
82
     */
6031 rajveer 83
    STATUS((short)10, "status"),
84
    DEVICE_NUMBER((short)11, "deviceNumber"),
85
    USER_ID((short)12, "userId"),
86
    USER_EMAIL_ID((short)13, "userEmailId"),
6048 rajveer 87
    CREATION_TIMESTAMP((short)14, "creationTimestamp"),
88
    SPICE_TID((short)15, "spiceTID"),
89
    RESPONSE_TIMESTAMP((short)16, "responseTimestamp");
6000 mandeep.dh 90
 
91
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
92
 
93
    static {
94
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
95
        byName.put(field.getFieldName(), field);
96
      }
97
    }
98
 
99
    /**
100
     * Find the _Fields constant that matches fieldId, or null if its not found.
101
     */
102
    public static _Fields findByThriftId(int fieldId) {
103
      switch(fieldId) {
104
        case 1: // ID
105
          return ID;
6031 rajveer 106
        case 2: // DISPLAY_ID
107
          return DISPLAY_ID;
108
        case 3: // TOTAL_AMOUNT
109
          return TOTAL_AMOUNT;
110
        case 4: // WALLET_AMOUNT
111
          return WALLET_AMOUNT;
112
        case 5: // TRANSACTION_ID
6000 mandeep.dh 113
          return TRANSACTION_ID;
6031 rajveer 114
        case 6: // INVOICE_NUMBER
6000 mandeep.dh 115
          return INVOICE_NUMBER;
6031 rajveer 116
        case 7: // ORDER_TYPE
6000 mandeep.dh 117
          return ORDER_TYPE;
6031 rajveer 118
        case 8: // OPERATOR_ID
6000 mandeep.dh 119
          return OPERATOR_ID;
6031 rajveer 120
        case 9: // RECHARGE_TYPE
6000 mandeep.dh 121
          return RECHARGE_TYPE;
6031 rajveer 122
        case 10: // STATUS
123
          return STATUS;
124
        case 11: // DEVICE_NUMBER
6000 mandeep.dh 125
          return DEVICE_NUMBER;
6031 rajveer 126
        case 12: // USER_ID
127
          return USER_ID;
128
        case 13: // USER_EMAIL_ID
129
          return USER_EMAIL_ID;
130
        case 14: // CREATION_TIMESTAMP
6000 mandeep.dh 131
          return CREATION_TIMESTAMP;
6048 rajveer 132
        case 15: // SPICE_TID
133
          return SPICE_TID;
134
        case 16: // RESPONSE_TIMESTAMP
135
          return RESPONSE_TIMESTAMP;
6000 mandeep.dh 136
        default:
137
          return null;
138
      }
139
    }
140
 
141
    /**
142
     * Find the _Fields constant that matches fieldId, throwing an exception
143
     * if it is not found.
144
     */
145
    public static _Fields findByThriftIdOrThrow(int fieldId) {
146
      _Fields fields = findByThriftId(fieldId);
147
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
148
      return fields;
149
    }
150
 
151
    /**
152
     * Find the _Fields constant that matches name, or null if its not found.
153
     */
154
    public static _Fields findByName(String name) {
155
      return byName.get(name);
156
    }
157
 
158
    private final short _thriftId;
159
    private final String _fieldName;
160
 
161
    _Fields(short thriftId, String fieldName) {
162
      _thriftId = thriftId;
163
      _fieldName = fieldName;
164
    }
165
 
166
    public short getThriftFieldId() {
167
      return _thriftId;
168
    }
169
 
170
    public String getFieldName() {
171
      return _fieldName;
172
    }
173
  }
174
 
175
  // isset id assignments
6031 rajveer 176
  private static final int __ID_ISSET_ID = 0;
177
  private static final int __TOTALAMOUNT_ISSET_ID = 1;
178
  private static final int __WALLETAMOUNT_ISSET_ID = 2;
179
  private static final int __TRANSACTIONID_ISSET_ID = 3;
180
  private static final int __OPERATORID_ISSET_ID = 4;
181
  private static final int __USERID_ISSET_ID = 5;
182
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 6;
6048 rajveer 183
  private static final int __RESPONSETIMESTAMP_ISSET_ID = 7;
184
  private BitSet __isset_bit_vector = new BitSet(8);
6000 mandeep.dh 185
 
186
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
187
  static {
188
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
189
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6031 rajveer 190
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
191
    tmpMap.put(_Fields.DISPLAY_ID, new org.apache.thrift.meta_data.FieldMetaData("displayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6000 mandeep.dh 192
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6031 rajveer 193
    tmpMap.put(_Fields.TOTAL_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("totalAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6000 mandeep.dh 194
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6031 rajveer 195
    tmpMap.put(_Fields.WALLET_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("walletAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
196
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6000 mandeep.dh 197
    tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
198
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
199
    tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
200
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
201
    tmpMap.put(_Fields.ORDER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("orderType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
202
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
203
    tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
205
    tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
6031 rajveer 207
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6000 mandeep.dh 208
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeOrderStatus.class)));
209
    tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
210
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6031 rajveer 211
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6000 mandeep.dh 212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6031 rajveer 213
    tmpMap.put(_Fields.USER_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("userEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6000 mandeep.dh 215
    tmpMap.put(_Fields.CREATION_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("creationTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
216
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6048 rajveer 217
    tmpMap.put(_Fields.SPICE_TID, new org.apache.thrift.meta_data.FieldMetaData("spiceTID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
218
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
219
    tmpMap.put(_Fields.RESPONSE_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("responseTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6000 mandeep.dh 221
    metaDataMap = Collections.unmodifiableMap(tmpMap);
222
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
223
  }
224
 
225
  public RechargeOrder() {
226
  }
227
 
228
  public RechargeOrder(
6031 rajveer 229
    long id,
230
    String displayId,
231
    long totalAmount,
232
    long walletAmount,
6000 mandeep.dh 233
    long transactionId,
234
    String invoiceNumber,
235
    OrderType orderType,
236
    long operatorId,
237
    RechargeType rechargeType,
6031 rajveer 238
    RechargeOrderStatus status,
6000 mandeep.dh 239
    String deviceNumber,
6031 rajveer 240
    long userId,
241
    String userEmailId,
6048 rajveer 242
    long creationTimestamp,
243
    String spiceTID,
244
    long responseTimestamp)
6000 mandeep.dh 245
  {
246
    this();
247
    this.id = id;
6031 rajveer 248
    setIdIsSet(true);
249
    this.displayId = displayId;
250
    this.totalAmount = totalAmount;
251
    setTotalAmountIsSet(true);
252
    this.walletAmount = walletAmount;
253
    setWalletAmountIsSet(true);
6000 mandeep.dh 254
    this.transactionId = transactionId;
255
    setTransactionIdIsSet(true);
256
    this.invoiceNumber = invoiceNumber;
257
    this.orderType = orderType;
258
    this.operatorId = operatorId;
259
    setOperatorIdIsSet(true);
260
    this.rechargeType = rechargeType;
6031 rajveer 261
    this.status = status;
6000 mandeep.dh 262
    this.deviceNumber = deviceNumber;
6031 rajveer 263
    this.userId = userId;
264
    setUserIdIsSet(true);
265
    this.userEmailId = userEmailId;
6000 mandeep.dh 266
    this.creationTimestamp = creationTimestamp;
267
    setCreationTimestampIsSet(true);
6048 rajveer 268
    this.spiceTID = spiceTID;
269
    this.responseTimestamp = responseTimestamp;
270
    setResponseTimestampIsSet(true);
6000 mandeep.dh 271
  }
272
 
273
  /**
274
   * Performs a deep copy on <i>other</i>.
275
   */
276
  public RechargeOrder(RechargeOrder other) {
277
    __isset_bit_vector.clear();
278
    __isset_bit_vector.or(other.__isset_bit_vector);
6031 rajveer 279
    this.id = other.id;
280
    if (other.isSetDisplayId()) {
281
      this.displayId = other.displayId;
6000 mandeep.dh 282
    }
6031 rajveer 283
    this.totalAmount = other.totalAmount;
284
    this.walletAmount = other.walletAmount;
6000 mandeep.dh 285
    this.transactionId = other.transactionId;
286
    if (other.isSetInvoiceNumber()) {
287
      this.invoiceNumber = other.invoiceNumber;
288
    }
289
    if (other.isSetOrderType()) {
290
      this.orderType = other.orderType;
291
    }
292
    this.operatorId = other.operatorId;
293
    if (other.isSetRechargeType()) {
294
      this.rechargeType = other.rechargeType;
295
    }
6031 rajveer 296
    if (other.isSetStatus()) {
297
      this.status = other.status;
6000 mandeep.dh 298
    }
299
    if (other.isSetDeviceNumber()) {
300
      this.deviceNumber = other.deviceNumber;
301
    }
6031 rajveer 302
    this.userId = other.userId;
303
    if (other.isSetUserEmailId()) {
304
      this.userEmailId = other.userEmailId;
305
    }
6000 mandeep.dh 306
    this.creationTimestamp = other.creationTimestamp;
6048 rajveer 307
    if (other.isSetSpiceTID()) {
308
      this.spiceTID = other.spiceTID;
309
    }
310
    this.responseTimestamp = other.responseTimestamp;
6000 mandeep.dh 311
  }
312
 
313
  public RechargeOrder deepCopy() {
314
    return new RechargeOrder(this);
315
  }
316
 
317
  @Override
318
  public void clear() {
6031 rajveer 319
    setIdIsSet(false);
320
    this.id = 0;
321
    this.displayId = null;
322
    setTotalAmountIsSet(false);
323
    this.totalAmount = 0;
324
    setWalletAmountIsSet(false);
325
    this.walletAmount = 0;
6000 mandeep.dh 326
    setTransactionIdIsSet(false);
327
    this.transactionId = 0;
328
    this.invoiceNumber = null;
329
    this.orderType = null;
330
    setOperatorIdIsSet(false);
331
    this.operatorId = 0;
332
    this.rechargeType = null;
6031 rajveer 333
    this.status = null;
6000 mandeep.dh 334
    this.deviceNumber = null;
6031 rajveer 335
    setUserIdIsSet(false);
336
    this.userId = 0;
337
    this.userEmailId = null;
6000 mandeep.dh 338
    setCreationTimestampIsSet(false);
339
    this.creationTimestamp = 0;
6048 rajveer 340
    this.spiceTID = null;
341
    setResponseTimestampIsSet(false);
342
    this.responseTimestamp = 0;
6000 mandeep.dh 343
  }
344
 
6031 rajveer 345
  public long getId() {
6000 mandeep.dh 346
    return this.id;
347
  }
348
 
6031 rajveer 349
  public void setId(long id) {
6000 mandeep.dh 350
    this.id = id;
6031 rajveer 351
    setIdIsSet(true);
6000 mandeep.dh 352
  }
353
 
354
  public void unsetId() {
6031 rajveer 355
    __isset_bit_vector.clear(__ID_ISSET_ID);
6000 mandeep.dh 356
  }
357
 
358
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
359
  public boolean isSetId() {
6031 rajveer 360
    return __isset_bit_vector.get(__ID_ISSET_ID);
6000 mandeep.dh 361
  }
362
 
363
  public void setIdIsSet(boolean value) {
6031 rajveer 364
    __isset_bit_vector.set(__ID_ISSET_ID, value);
365
  }
366
 
367
  public String getDisplayId() {
368
    return this.displayId;
369
  }
370
 
371
  public void setDisplayId(String displayId) {
372
    this.displayId = displayId;
373
  }
374
 
375
  public void unsetDisplayId() {
376
    this.displayId = null;
377
  }
378
 
379
  /** Returns true if field displayId is set (has been assigned a value) and false otherwise */
380
  public boolean isSetDisplayId() {
381
    return this.displayId != null;
382
  }
383
 
384
  public void setDisplayIdIsSet(boolean value) {
6000 mandeep.dh 385
    if (!value) {
6031 rajveer 386
      this.displayId = null;
6000 mandeep.dh 387
    }
388
  }
389
 
6031 rajveer 390
  public long getTotalAmount() {
391
    return this.totalAmount;
6000 mandeep.dh 392
  }
393
 
6031 rajveer 394
  public void setTotalAmount(long totalAmount) {
395
    this.totalAmount = totalAmount;
396
    setTotalAmountIsSet(true);
6000 mandeep.dh 397
  }
398
 
6031 rajveer 399
  public void unsetTotalAmount() {
400
    __isset_bit_vector.clear(__TOTALAMOUNT_ISSET_ID);
6000 mandeep.dh 401
  }
402
 
6031 rajveer 403
  /** Returns true if field totalAmount is set (has been assigned a value) and false otherwise */
404
  public boolean isSetTotalAmount() {
405
    return __isset_bit_vector.get(__TOTALAMOUNT_ISSET_ID);
6000 mandeep.dh 406
  }
407
 
6031 rajveer 408
  public void setTotalAmountIsSet(boolean value) {
409
    __isset_bit_vector.set(__TOTALAMOUNT_ISSET_ID, value);
6000 mandeep.dh 410
  }
411
 
6031 rajveer 412
  public long getWalletAmount() {
413
    return this.walletAmount;
414
  }
415
 
416
  public void setWalletAmount(long walletAmount) {
417
    this.walletAmount = walletAmount;
418
    setWalletAmountIsSet(true);
419
  }
420
 
421
  public void unsetWalletAmount() {
422
    __isset_bit_vector.clear(__WALLETAMOUNT_ISSET_ID);
423
  }
424
 
425
  /** Returns true if field walletAmount is set (has been assigned a value) and false otherwise */
426
  public boolean isSetWalletAmount() {
427
    return __isset_bit_vector.get(__WALLETAMOUNT_ISSET_ID);
428
  }
429
 
430
  public void setWalletAmountIsSet(boolean value) {
431
    __isset_bit_vector.set(__WALLETAMOUNT_ISSET_ID, value);
432
  }
433
 
6000 mandeep.dh 434
  public long getTransactionId() {
435
    return this.transactionId;
436
  }
437
 
438
  public void setTransactionId(long transactionId) {
439
    this.transactionId = transactionId;
440
    setTransactionIdIsSet(true);
441
  }
442
 
443
  public void unsetTransactionId() {
444
    __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
445
  }
446
 
447
  /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
448
  public boolean isSetTransactionId() {
449
    return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
450
  }
451
 
452
  public void setTransactionIdIsSet(boolean value) {
453
    __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
454
  }
455
 
456
  public String getInvoiceNumber() {
457
    return this.invoiceNumber;
458
  }
459
 
460
  public void setInvoiceNumber(String invoiceNumber) {
461
    this.invoiceNumber = invoiceNumber;
462
  }
463
 
464
  public void unsetInvoiceNumber() {
465
    this.invoiceNumber = null;
466
  }
467
 
468
  /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
469
  public boolean isSetInvoiceNumber() {
470
    return this.invoiceNumber != null;
471
  }
472
 
473
  public void setInvoiceNumberIsSet(boolean value) {
474
    if (!value) {
475
      this.invoiceNumber = null;
476
    }
477
  }
478
 
479
  /**
480
   * 
481
   * @see OrderType
482
   */
483
  public OrderType getOrderType() {
484
    return this.orderType;
485
  }
486
 
487
  /**
488
   * 
489
   * @see OrderType
490
   */
491
  public void setOrderType(OrderType orderType) {
492
    this.orderType = orderType;
493
  }
494
 
495
  public void unsetOrderType() {
496
    this.orderType = null;
497
  }
498
 
499
  /** Returns true if field orderType is set (has been assigned a value) and false otherwise */
500
  public boolean isSetOrderType() {
501
    return this.orderType != null;
502
  }
503
 
504
  public void setOrderTypeIsSet(boolean value) {
505
    if (!value) {
506
      this.orderType = null;
507
    }
508
  }
509
 
510
  public long getOperatorId() {
511
    return this.operatorId;
512
  }
513
 
514
  public void setOperatorId(long operatorId) {
515
    this.operatorId = operatorId;
516
    setOperatorIdIsSet(true);
517
  }
518
 
519
  public void unsetOperatorId() {
520
    __isset_bit_vector.clear(__OPERATORID_ISSET_ID);
521
  }
522
 
523
  /** Returns true if field operatorId is set (has been assigned a value) and false otherwise */
524
  public boolean isSetOperatorId() {
525
    return __isset_bit_vector.get(__OPERATORID_ISSET_ID);
526
  }
527
 
528
  public void setOperatorIdIsSet(boolean value) {
529
    __isset_bit_vector.set(__OPERATORID_ISSET_ID, value);
530
  }
531
 
532
  /**
533
   * 
534
   * @see RechargeType
535
   */
536
  public RechargeType getRechargeType() {
537
    return this.rechargeType;
538
  }
539
 
540
  /**
541
   * 
542
   * @see RechargeType
543
   */
544
  public void setRechargeType(RechargeType rechargeType) {
545
    this.rechargeType = rechargeType;
546
  }
547
 
548
  public void unsetRechargeType() {
549
    this.rechargeType = null;
550
  }
551
 
552
  /** Returns true if field rechargeType is set (has been assigned a value) and false otherwise */
553
  public boolean isSetRechargeType() {
554
    return this.rechargeType != null;
555
  }
556
 
557
  public void setRechargeTypeIsSet(boolean value) {
558
    if (!value) {
559
      this.rechargeType = null;
560
    }
561
  }
562
 
563
  /**
564
   * 
565
   * @see RechargeOrderStatus
566
   */
6031 rajveer 567
  public RechargeOrderStatus getStatus() {
568
    return this.status;
6000 mandeep.dh 569
  }
570
 
571
  /**
572
   * 
573
   * @see RechargeOrderStatus
574
   */
6031 rajveer 575
  public void setStatus(RechargeOrderStatus status) {
576
    this.status = status;
6000 mandeep.dh 577
  }
578
 
6031 rajveer 579
  public void unsetStatus() {
580
    this.status = null;
6000 mandeep.dh 581
  }
582
 
6031 rajveer 583
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
584
  public boolean isSetStatus() {
585
    return this.status != null;
6000 mandeep.dh 586
  }
587
 
6031 rajveer 588
  public void setStatusIsSet(boolean value) {
6000 mandeep.dh 589
    if (!value) {
6031 rajveer 590
      this.status = null;
6000 mandeep.dh 591
    }
592
  }
593
 
594
  public String getDeviceNumber() {
595
    return this.deviceNumber;
596
  }
597
 
598
  public void setDeviceNumber(String deviceNumber) {
599
    this.deviceNumber = deviceNumber;
600
  }
601
 
602
  public void unsetDeviceNumber() {
603
    this.deviceNumber = null;
604
  }
605
 
606
  /** Returns true if field deviceNumber is set (has been assigned a value) and false otherwise */
607
  public boolean isSetDeviceNumber() {
608
    return this.deviceNumber != null;
609
  }
610
 
611
  public void setDeviceNumberIsSet(boolean value) {
612
    if (!value) {
613
      this.deviceNumber = null;
614
    }
615
  }
616
 
6031 rajveer 617
  public long getUserId() {
618
    return this.userId;
6000 mandeep.dh 619
  }
620
 
6031 rajveer 621
  public void setUserId(long userId) {
622
    this.userId = userId;
623
    setUserIdIsSet(true);
6000 mandeep.dh 624
  }
625
 
6031 rajveer 626
  public void unsetUserId() {
627
    __isset_bit_vector.clear(__USERID_ISSET_ID);
6000 mandeep.dh 628
  }
629
 
6031 rajveer 630
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
631
  public boolean isSetUserId() {
632
    return __isset_bit_vector.get(__USERID_ISSET_ID);
6000 mandeep.dh 633
  }
634
 
6031 rajveer 635
  public void setUserIdIsSet(boolean value) {
636
    __isset_bit_vector.set(__USERID_ISSET_ID, value);
6000 mandeep.dh 637
  }
638
 
6031 rajveer 639
  public String getUserEmailId() {
640
    return this.userEmailId;
6000 mandeep.dh 641
  }
642
 
6031 rajveer 643
  public void setUserEmailId(String userEmailId) {
644
    this.userEmailId = userEmailId;
6000 mandeep.dh 645
  }
646
 
6031 rajveer 647
  public void unsetUserEmailId() {
648
    this.userEmailId = null;
6000 mandeep.dh 649
  }
650
 
6031 rajveer 651
  /** Returns true if field userEmailId is set (has been assigned a value) and false otherwise */
652
  public boolean isSetUserEmailId() {
653
    return this.userEmailId != null;
6000 mandeep.dh 654
  }
655
 
6031 rajveer 656
  public void setUserEmailIdIsSet(boolean value) {
657
    if (!value) {
658
      this.userEmailId = null;
659
    }
6000 mandeep.dh 660
  }
661
 
662
  public long getCreationTimestamp() {
663
    return this.creationTimestamp;
664
  }
665
 
666
  public void setCreationTimestamp(long creationTimestamp) {
667
    this.creationTimestamp = creationTimestamp;
668
    setCreationTimestampIsSet(true);
669
  }
670
 
671
  public void unsetCreationTimestamp() {
672
    __isset_bit_vector.clear(__CREATIONTIMESTAMP_ISSET_ID);
673
  }
674
 
675
  /** Returns true if field creationTimestamp is set (has been assigned a value) and false otherwise */
676
  public boolean isSetCreationTimestamp() {
677
    return __isset_bit_vector.get(__CREATIONTIMESTAMP_ISSET_ID);
678
  }
679
 
680
  public void setCreationTimestampIsSet(boolean value) {
681
    __isset_bit_vector.set(__CREATIONTIMESTAMP_ISSET_ID, value);
682
  }
683
 
6048 rajveer 684
  public String getSpiceTID() {
685
    return this.spiceTID;
686
  }
687
 
688
  public void setSpiceTID(String spiceTID) {
689
    this.spiceTID = spiceTID;
690
  }
691
 
692
  public void unsetSpiceTID() {
693
    this.spiceTID = null;
694
  }
695
 
696
  /** Returns true if field spiceTID is set (has been assigned a value) and false otherwise */
697
  public boolean isSetSpiceTID() {
698
    return this.spiceTID != null;
699
  }
700
 
701
  public void setSpiceTIDIsSet(boolean value) {
702
    if (!value) {
703
      this.spiceTID = null;
704
    }
705
  }
706
 
707
  public long getResponseTimestamp() {
708
    return this.responseTimestamp;
709
  }
710
 
711
  public void setResponseTimestamp(long responseTimestamp) {
712
    this.responseTimestamp = responseTimestamp;
713
    setResponseTimestampIsSet(true);
714
  }
715
 
716
  public void unsetResponseTimestamp() {
717
    __isset_bit_vector.clear(__RESPONSETIMESTAMP_ISSET_ID);
718
  }
719
 
720
  /** Returns true if field responseTimestamp is set (has been assigned a value) and false otherwise */
721
  public boolean isSetResponseTimestamp() {
722
    return __isset_bit_vector.get(__RESPONSETIMESTAMP_ISSET_ID);
723
  }
724
 
725
  public void setResponseTimestampIsSet(boolean value) {
726
    __isset_bit_vector.set(__RESPONSETIMESTAMP_ISSET_ID, value);
727
  }
728
 
6000 mandeep.dh 729
  public void setFieldValue(_Fields field, Object value) {
730
    switch (field) {
731
    case ID:
732
      if (value == null) {
733
        unsetId();
734
      } else {
6031 rajveer 735
        setId((Long)value);
6000 mandeep.dh 736
      }
737
      break;
738
 
6031 rajveer 739
    case DISPLAY_ID:
6000 mandeep.dh 740
      if (value == null) {
6031 rajveer 741
        unsetDisplayId();
6000 mandeep.dh 742
      } else {
6031 rajveer 743
        setDisplayId((String)value);
6000 mandeep.dh 744
      }
745
      break;
746
 
6031 rajveer 747
    case TOTAL_AMOUNT:
748
      if (value == null) {
749
        unsetTotalAmount();
750
      } else {
751
        setTotalAmount((Long)value);
752
      }
753
      break;
754
 
755
    case WALLET_AMOUNT:
756
      if (value == null) {
757
        unsetWalletAmount();
758
      } else {
759
        setWalletAmount((Long)value);
760
      }
761
      break;
762
 
6000 mandeep.dh 763
    case TRANSACTION_ID:
764
      if (value == null) {
765
        unsetTransactionId();
766
      } else {
767
        setTransactionId((Long)value);
768
      }
769
      break;
770
 
771
    case INVOICE_NUMBER:
772
      if (value == null) {
773
        unsetInvoiceNumber();
774
      } else {
775
        setInvoiceNumber((String)value);
776
      }
777
      break;
778
 
779
    case ORDER_TYPE:
780
      if (value == null) {
781
        unsetOrderType();
782
      } else {
783
        setOrderType((OrderType)value);
784
      }
785
      break;
786
 
787
    case OPERATOR_ID:
788
      if (value == null) {
789
        unsetOperatorId();
790
      } else {
791
        setOperatorId((Long)value);
792
      }
793
      break;
794
 
795
    case RECHARGE_TYPE:
796
      if (value == null) {
797
        unsetRechargeType();
798
      } else {
799
        setRechargeType((RechargeType)value);
800
      }
801
      break;
802
 
6031 rajveer 803
    case STATUS:
6000 mandeep.dh 804
      if (value == null) {
6031 rajveer 805
        unsetStatus();
6000 mandeep.dh 806
      } else {
6031 rajveer 807
        setStatus((RechargeOrderStatus)value);
6000 mandeep.dh 808
      }
809
      break;
810
 
811
    case DEVICE_NUMBER:
812
      if (value == null) {
813
        unsetDeviceNumber();
814
      } else {
815
        setDeviceNumber((String)value);
816
      }
817
      break;
818
 
6031 rajveer 819
    case USER_ID:
6000 mandeep.dh 820
      if (value == null) {
6031 rajveer 821
        unsetUserId();
6000 mandeep.dh 822
      } else {
6031 rajveer 823
        setUserId((Long)value);
6000 mandeep.dh 824
      }
825
      break;
826
 
6031 rajveer 827
    case USER_EMAIL_ID:
6000 mandeep.dh 828
      if (value == null) {
6031 rajveer 829
        unsetUserEmailId();
6000 mandeep.dh 830
      } else {
6031 rajveer 831
        setUserEmailId((String)value);
6000 mandeep.dh 832
      }
833
      break;
834
 
835
    case CREATION_TIMESTAMP:
836
      if (value == null) {
837
        unsetCreationTimestamp();
838
      } else {
839
        setCreationTimestamp((Long)value);
840
      }
841
      break;
842
 
6048 rajveer 843
    case SPICE_TID:
844
      if (value == null) {
845
        unsetSpiceTID();
846
      } else {
847
        setSpiceTID((String)value);
848
      }
849
      break;
850
 
851
    case RESPONSE_TIMESTAMP:
852
      if (value == null) {
853
        unsetResponseTimestamp();
854
      } else {
855
        setResponseTimestamp((Long)value);
856
      }
857
      break;
858
 
6000 mandeep.dh 859
    }
860
  }
861
 
862
  public Object getFieldValue(_Fields field) {
863
    switch (field) {
864
    case ID:
6031 rajveer 865
      return Long.valueOf(getId());
6000 mandeep.dh 866
 
6031 rajveer 867
    case DISPLAY_ID:
868
      return getDisplayId();
6000 mandeep.dh 869
 
6031 rajveer 870
    case TOTAL_AMOUNT:
871
      return Long.valueOf(getTotalAmount());
872
 
873
    case WALLET_AMOUNT:
874
      return Long.valueOf(getWalletAmount());
875
 
6000 mandeep.dh 876
    case TRANSACTION_ID:
877
      return Long.valueOf(getTransactionId());
878
 
879
    case INVOICE_NUMBER:
880
      return getInvoiceNumber();
881
 
882
    case ORDER_TYPE:
883
      return getOrderType();
884
 
885
    case OPERATOR_ID:
886
      return Long.valueOf(getOperatorId());
887
 
888
    case RECHARGE_TYPE:
889
      return getRechargeType();
890
 
6031 rajveer 891
    case STATUS:
892
      return getStatus();
6000 mandeep.dh 893
 
894
    case DEVICE_NUMBER:
895
      return getDeviceNumber();
896
 
6031 rajveer 897
    case USER_ID:
898
      return Long.valueOf(getUserId());
6000 mandeep.dh 899
 
6031 rajveer 900
    case USER_EMAIL_ID:
901
      return getUserEmailId();
6000 mandeep.dh 902
 
903
    case CREATION_TIMESTAMP:
904
      return Long.valueOf(getCreationTimestamp());
905
 
6048 rajveer 906
    case SPICE_TID:
907
      return getSpiceTID();
908
 
909
    case RESPONSE_TIMESTAMP:
910
      return Long.valueOf(getResponseTimestamp());
911
 
6000 mandeep.dh 912
    }
913
    throw new IllegalStateException();
914
  }
915
 
916
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
917
  public boolean isSet(_Fields field) {
918
    if (field == null) {
919
      throw new IllegalArgumentException();
920
    }
921
 
922
    switch (field) {
923
    case ID:
924
      return isSetId();
6031 rajveer 925
    case DISPLAY_ID:
926
      return isSetDisplayId();
927
    case TOTAL_AMOUNT:
928
      return isSetTotalAmount();
929
    case WALLET_AMOUNT:
930
      return isSetWalletAmount();
6000 mandeep.dh 931
    case TRANSACTION_ID:
932
      return isSetTransactionId();
933
    case INVOICE_NUMBER:
934
      return isSetInvoiceNumber();
935
    case ORDER_TYPE:
936
      return isSetOrderType();
937
    case OPERATOR_ID:
938
      return isSetOperatorId();
939
    case RECHARGE_TYPE:
940
      return isSetRechargeType();
6031 rajveer 941
    case STATUS:
942
      return isSetStatus();
6000 mandeep.dh 943
    case DEVICE_NUMBER:
944
      return isSetDeviceNumber();
6031 rajveer 945
    case USER_ID:
946
      return isSetUserId();
947
    case USER_EMAIL_ID:
948
      return isSetUserEmailId();
6000 mandeep.dh 949
    case CREATION_TIMESTAMP:
950
      return isSetCreationTimestamp();
6048 rajveer 951
    case SPICE_TID:
952
      return isSetSpiceTID();
953
    case RESPONSE_TIMESTAMP:
954
      return isSetResponseTimestamp();
6000 mandeep.dh 955
    }
956
    throw new IllegalStateException();
957
  }
958
 
959
  @Override
960
  public boolean equals(Object that) {
961
    if (that == null)
962
      return false;
963
    if (that instanceof RechargeOrder)
964
      return this.equals((RechargeOrder)that);
965
    return false;
966
  }
967
 
968
  public boolean equals(RechargeOrder that) {
969
    if (that == null)
970
      return false;
971
 
6031 rajveer 972
    boolean this_present_id = true;
973
    boolean that_present_id = true;
6000 mandeep.dh 974
    if (this_present_id || that_present_id) {
975
      if (!(this_present_id && that_present_id))
976
        return false;
6031 rajveer 977
      if (this.id != that.id)
6000 mandeep.dh 978
        return false;
979
    }
980
 
6031 rajveer 981
    boolean this_present_displayId = true && this.isSetDisplayId();
982
    boolean that_present_displayId = true && that.isSetDisplayId();
983
    if (this_present_displayId || that_present_displayId) {
984
      if (!(this_present_displayId && that_present_displayId))
6000 mandeep.dh 985
        return false;
6031 rajveer 986
      if (!this.displayId.equals(that.displayId))
6000 mandeep.dh 987
        return false;
988
    }
989
 
6031 rajveer 990
    boolean this_present_totalAmount = true;
991
    boolean that_present_totalAmount = true;
992
    if (this_present_totalAmount || that_present_totalAmount) {
993
      if (!(this_present_totalAmount && that_present_totalAmount))
994
        return false;
995
      if (this.totalAmount != that.totalAmount)
996
        return false;
997
    }
998
 
999
    boolean this_present_walletAmount = true;
1000
    boolean that_present_walletAmount = true;
1001
    if (this_present_walletAmount || that_present_walletAmount) {
1002
      if (!(this_present_walletAmount && that_present_walletAmount))
1003
        return false;
1004
      if (this.walletAmount != that.walletAmount)
1005
        return false;
1006
    }
1007
 
6000 mandeep.dh 1008
    boolean this_present_transactionId = true;
1009
    boolean that_present_transactionId = true;
1010
    if (this_present_transactionId || that_present_transactionId) {
1011
      if (!(this_present_transactionId && that_present_transactionId))
1012
        return false;
1013
      if (this.transactionId != that.transactionId)
1014
        return false;
1015
    }
1016
 
1017
    boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
1018
    boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
1019
    if (this_present_invoiceNumber || that_present_invoiceNumber) {
1020
      if (!(this_present_invoiceNumber && that_present_invoiceNumber))
1021
        return false;
1022
      if (!this.invoiceNumber.equals(that.invoiceNumber))
1023
        return false;
1024
    }
1025
 
1026
    boolean this_present_orderType = true && this.isSetOrderType();
1027
    boolean that_present_orderType = true && that.isSetOrderType();
1028
    if (this_present_orderType || that_present_orderType) {
1029
      if (!(this_present_orderType && that_present_orderType))
1030
        return false;
1031
      if (!this.orderType.equals(that.orderType))
1032
        return false;
1033
    }
1034
 
1035
    boolean this_present_operatorId = true;
1036
    boolean that_present_operatorId = true;
1037
    if (this_present_operatorId || that_present_operatorId) {
1038
      if (!(this_present_operatorId && that_present_operatorId))
1039
        return false;
1040
      if (this.operatorId != that.operatorId)
1041
        return false;
1042
    }
1043
 
1044
    boolean this_present_rechargeType = true && this.isSetRechargeType();
1045
    boolean that_present_rechargeType = true && that.isSetRechargeType();
1046
    if (this_present_rechargeType || that_present_rechargeType) {
1047
      if (!(this_present_rechargeType && that_present_rechargeType))
1048
        return false;
1049
      if (!this.rechargeType.equals(that.rechargeType))
1050
        return false;
1051
    }
1052
 
6031 rajveer 1053
    boolean this_present_status = true && this.isSetStatus();
1054
    boolean that_present_status = true && that.isSetStatus();
1055
    if (this_present_status || that_present_status) {
1056
      if (!(this_present_status && that_present_status))
6000 mandeep.dh 1057
        return false;
6031 rajveer 1058
      if (!this.status.equals(that.status))
6000 mandeep.dh 1059
        return false;
1060
    }
1061
 
1062
    boolean this_present_deviceNumber = true && this.isSetDeviceNumber();
1063
    boolean that_present_deviceNumber = true && that.isSetDeviceNumber();
1064
    if (this_present_deviceNumber || that_present_deviceNumber) {
1065
      if (!(this_present_deviceNumber && that_present_deviceNumber))
1066
        return false;
1067
      if (!this.deviceNumber.equals(that.deviceNumber))
1068
        return false;
1069
    }
1070
 
6031 rajveer 1071
    boolean this_present_userId = true;
1072
    boolean that_present_userId = true;
1073
    if (this_present_userId || that_present_userId) {
1074
      if (!(this_present_userId && that_present_userId))
6000 mandeep.dh 1075
        return false;
6031 rajveer 1076
      if (this.userId != that.userId)
6000 mandeep.dh 1077
        return false;
1078
    }
1079
 
6031 rajveer 1080
    boolean this_present_userEmailId = true && this.isSetUserEmailId();
1081
    boolean that_present_userEmailId = true && that.isSetUserEmailId();
1082
    if (this_present_userEmailId || that_present_userEmailId) {
1083
      if (!(this_present_userEmailId && that_present_userEmailId))
6000 mandeep.dh 1084
        return false;
6031 rajveer 1085
      if (!this.userEmailId.equals(that.userEmailId))
6000 mandeep.dh 1086
        return false;
1087
    }
1088
 
1089
    boolean this_present_creationTimestamp = true;
1090
    boolean that_present_creationTimestamp = true;
1091
    if (this_present_creationTimestamp || that_present_creationTimestamp) {
1092
      if (!(this_present_creationTimestamp && that_present_creationTimestamp))
1093
        return false;
1094
      if (this.creationTimestamp != that.creationTimestamp)
1095
        return false;
1096
    }
1097
 
6048 rajveer 1098
    boolean this_present_spiceTID = true && this.isSetSpiceTID();
1099
    boolean that_present_spiceTID = true && that.isSetSpiceTID();
1100
    if (this_present_spiceTID || that_present_spiceTID) {
1101
      if (!(this_present_spiceTID && that_present_spiceTID))
1102
        return false;
1103
      if (!this.spiceTID.equals(that.spiceTID))
1104
        return false;
1105
    }
1106
 
1107
    boolean this_present_responseTimestamp = true;
1108
    boolean that_present_responseTimestamp = true;
1109
    if (this_present_responseTimestamp || that_present_responseTimestamp) {
1110
      if (!(this_present_responseTimestamp && that_present_responseTimestamp))
1111
        return false;
1112
      if (this.responseTimestamp != that.responseTimestamp)
1113
        return false;
1114
    }
1115
 
6000 mandeep.dh 1116
    return true;
1117
  }
1118
 
1119
  @Override
1120
  public int hashCode() {
1121
    return 0;
1122
  }
1123
 
1124
  public int compareTo(RechargeOrder other) {
1125
    if (!getClass().equals(other.getClass())) {
1126
      return getClass().getName().compareTo(other.getClass().getName());
1127
    }
1128
 
1129
    int lastComparison = 0;
1130
    RechargeOrder typedOther = (RechargeOrder)other;
1131
 
1132
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1133
    if (lastComparison != 0) {
1134
      return lastComparison;
1135
    }
1136
    if (isSetId()) {
1137
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1138
      if (lastComparison != 0) {
1139
        return lastComparison;
1140
      }
1141
    }
6031 rajveer 1142
    lastComparison = Boolean.valueOf(isSetDisplayId()).compareTo(typedOther.isSetDisplayId());
6000 mandeep.dh 1143
    if (lastComparison != 0) {
1144
      return lastComparison;
1145
    }
6031 rajveer 1146
    if (isSetDisplayId()) {
1147
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayId, typedOther.displayId);
6000 mandeep.dh 1148
      if (lastComparison != 0) {
1149
        return lastComparison;
1150
      }
1151
    }
6031 rajveer 1152
    lastComparison = Boolean.valueOf(isSetTotalAmount()).compareTo(typedOther.isSetTotalAmount());
1153
    if (lastComparison != 0) {
1154
      return lastComparison;
1155
    }
1156
    if (isSetTotalAmount()) {
1157
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalAmount, typedOther.totalAmount);
1158
      if (lastComparison != 0) {
1159
        return lastComparison;
1160
      }
1161
    }
1162
    lastComparison = Boolean.valueOf(isSetWalletAmount()).compareTo(typedOther.isSetWalletAmount());
1163
    if (lastComparison != 0) {
1164
      return lastComparison;
1165
    }
1166
    if (isSetWalletAmount()) {
1167
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.walletAmount, typedOther.walletAmount);
1168
      if (lastComparison != 0) {
1169
        return lastComparison;
1170
      }
1171
    }
6000 mandeep.dh 1172
    lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
1173
    if (lastComparison != 0) {
1174
      return lastComparison;
1175
    }
1176
    if (isSetTransactionId()) {
1177
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
1178
      if (lastComparison != 0) {
1179
        return lastComparison;
1180
      }
1181
    }
1182
    lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
1183
    if (lastComparison != 0) {
1184
      return lastComparison;
1185
    }
1186
    if (isSetInvoiceNumber()) {
1187
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
1188
      if (lastComparison != 0) {
1189
        return lastComparison;
1190
      }
1191
    }
1192
    lastComparison = Boolean.valueOf(isSetOrderType()).compareTo(typedOther.isSetOrderType());
1193
    if (lastComparison != 0) {
1194
      return lastComparison;
1195
    }
1196
    if (isSetOrderType()) {
1197
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderType, typedOther.orderType);
1198
      if (lastComparison != 0) {
1199
        return lastComparison;
1200
      }
1201
    }
1202
    lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId());
1203
    if (lastComparison != 0) {
1204
      return lastComparison;
1205
    }
1206
    if (isSetOperatorId()) {
1207
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId);
1208
      if (lastComparison != 0) {
1209
        return lastComparison;
1210
      }
1211
    }
1212
    lastComparison = Boolean.valueOf(isSetRechargeType()).compareTo(typedOther.isSetRechargeType());
1213
    if (lastComparison != 0) {
1214
      return lastComparison;
1215
    }
1216
    if (isSetRechargeType()) {
1217
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeType, typedOther.rechargeType);
1218
      if (lastComparison != 0) {
1219
        return lastComparison;
1220
      }
1221
    }
6031 rajveer 1222
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
6000 mandeep.dh 1223
    if (lastComparison != 0) {
1224
      return lastComparison;
1225
    }
6031 rajveer 1226
    if (isSetStatus()) {
1227
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
6000 mandeep.dh 1228
      if (lastComparison != 0) {
1229
        return lastComparison;
1230
      }
1231
    }
1232
    lastComparison = Boolean.valueOf(isSetDeviceNumber()).compareTo(typedOther.isSetDeviceNumber());
1233
    if (lastComparison != 0) {
1234
      return lastComparison;
1235
    }
1236
    if (isSetDeviceNumber()) {
1237
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceNumber, typedOther.deviceNumber);
1238
      if (lastComparison != 0) {
1239
        return lastComparison;
1240
      }
1241
    }
6031 rajveer 1242
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
6000 mandeep.dh 1243
    if (lastComparison != 0) {
1244
      return lastComparison;
1245
    }
6031 rajveer 1246
    if (isSetUserId()) {
1247
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
6000 mandeep.dh 1248
      if (lastComparison != 0) {
1249
        return lastComparison;
1250
      }
1251
    }
6031 rajveer 1252
    lastComparison = Boolean.valueOf(isSetUserEmailId()).compareTo(typedOther.isSetUserEmailId());
6000 mandeep.dh 1253
    if (lastComparison != 0) {
1254
      return lastComparison;
1255
    }
6031 rajveer 1256
    if (isSetUserEmailId()) {
1257
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userEmailId, typedOther.userEmailId);
6000 mandeep.dh 1258
      if (lastComparison != 0) {
1259
        return lastComparison;
1260
      }
1261
    }
1262
    lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(typedOther.isSetCreationTimestamp());
1263
    if (lastComparison != 0) {
1264
      return lastComparison;
1265
    }
1266
    if (isSetCreationTimestamp()) {
1267
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creationTimestamp, typedOther.creationTimestamp);
1268
      if (lastComparison != 0) {
1269
        return lastComparison;
1270
      }
1271
    }
6048 rajveer 1272
    lastComparison = Boolean.valueOf(isSetSpiceTID()).compareTo(typedOther.isSetSpiceTID());
1273
    if (lastComparison != 0) {
1274
      return lastComparison;
1275
    }
1276
    if (isSetSpiceTID()) {
1277
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.spiceTID, typedOther.spiceTID);
1278
      if (lastComparison != 0) {
1279
        return lastComparison;
1280
      }
1281
    }
1282
    lastComparison = Boolean.valueOf(isSetResponseTimestamp()).compareTo(typedOther.isSetResponseTimestamp());
1283
    if (lastComparison != 0) {
1284
      return lastComparison;
1285
    }
1286
    if (isSetResponseTimestamp()) {
1287
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.responseTimestamp, typedOther.responseTimestamp);
1288
      if (lastComparison != 0) {
1289
        return lastComparison;
1290
      }
1291
    }
6000 mandeep.dh 1292
    return 0;
1293
  }
1294
 
1295
  public _Fields fieldForId(int fieldId) {
1296
    return _Fields.findByThriftId(fieldId);
1297
  }
1298
 
1299
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1300
    org.apache.thrift.protocol.TField field;
1301
    iprot.readStructBegin();
1302
    while (true)
1303
    {
1304
      field = iprot.readFieldBegin();
1305
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1306
        break;
1307
      }
1308
      switch (field.id) {
1309
        case 1: // ID
6031 rajveer 1310
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1311
            this.id = iprot.readI64();
1312
            setIdIsSet(true);
1313
          } else { 
1314
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1315
          }
1316
          break;
1317
        case 2: // DISPLAY_ID
6000 mandeep.dh 1318
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
6031 rajveer 1319
            this.displayId = iprot.readString();
6000 mandeep.dh 1320
          } else { 
1321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1322
          }
1323
          break;
6031 rajveer 1324
        case 3: // TOTAL_AMOUNT
6000 mandeep.dh 1325
          if (field.type == org.apache.thrift.protocol.TType.I64) {
6031 rajveer 1326
            this.totalAmount = iprot.readI64();
1327
            setTotalAmountIsSet(true);
6000 mandeep.dh 1328
          } else { 
1329
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1330
          }
1331
          break;
6031 rajveer 1332
        case 4: // WALLET_AMOUNT
6000 mandeep.dh 1333
          if (field.type == org.apache.thrift.protocol.TType.I64) {
6031 rajveer 1334
            this.walletAmount = iprot.readI64();
1335
            setWalletAmountIsSet(true);
1336
          } else { 
1337
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1338
          }
1339
          break;
1340
        case 5: // TRANSACTION_ID
1341
          if (field.type == org.apache.thrift.protocol.TType.I64) {
6000 mandeep.dh 1342
            this.transactionId = iprot.readI64();
1343
            setTransactionIdIsSet(true);
1344
          } else { 
1345
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1346
          }
1347
          break;
6031 rajveer 1348
        case 6: // INVOICE_NUMBER
6000 mandeep.dh 1349
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1350
            this.invoiceNumber = iprot.readString();
1351
          } else { 
1352
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1353
          }
1354
          break;
6031 rajveer 1355
        case 7: // ORDER_TYPE
6000 mandeep.dh 1356
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1357
            this.orderType = OrderType.findByValue(iprot.readI32());
1358
          } else { 
1359
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1360
          }
1361
          break;
6031 rajveer 1362
        case 8: // OPERATOR_ID
6000 mandeep.dh 1363
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1364
            this.operatorId = iprot.readI64();
1365
            setOperatorIdIsSet(true);
1366
          } else { 
1367
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1368
          }
1369
          break;
6031 rajveer 1370
        case 9: // RECHARGE_TYPE
6000 mandeep.dh 1371
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1372
            this.rechargeType = RechargeType.findByValue(iprot.readI32());
1373
          } else { 
1374
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1375
          }
1376
          break;
6031 rajveer 1377
        case 10: // STATUS
6000 mandeep.dh 1378
          if (field.type == org.apache.thrift.protocol.TType.I32) {
6031 rajveer 1379
            this.status = RechargeOrderStatus.findByValue(iprot.readI32());
6000 mandeep.dh 1380
          } else { 
1381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382
          }
1383
          break;
6031 rajveer 1384
        case 11: // DEVICE_NUMBER
6000 mandeep.dh 1385
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1386
            this.deviceNumber = iprot.readString();
1387
          } else { 
1388
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1389
          }
1390
          break;
6031 rajveer 1391
        case 12: // USER_ID
6000 mandeep.dh 1392
          if (field.type == org.apache.thrift.protocol.TType.I64) {
6031 rajveer 1393
            this.userId = iprot.readI64();
1394
            setUserIdIsSet(true);
6000 mandeep.dh 1395
          } else { 
1396
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1397
          }
1398
          break;
6031 rajveer 1399
        case 13: // USER_EMAIL_ID
1400
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1401
            this.userEmailId = iprot.readString();
6000 mandeep.dh 1402
          } else { 
1403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1404
          }
1405
          break;
6031 rajveer 1406
        case 14: // CREATION_TIMESTAMP
6000 mandeep.dh 1407
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1408
            this.creationTimestamp = iprot.readI64();
1409
            setCreationTimestampIsSet(true);
1410
          } else { 
1411
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1412
          }
1413
          break;
6048 rajveer 1414
        case 15: // SPICE_TID
1415
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1416
            this.spiceTID = iprot.readString();
1417
          } else { 
1418
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1419
          }
1420
          break;
1421
        case 16: // RESPONSE_TIMESTAMP
1422
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1423
            this.responseTimestamp = iprot.readI64();
1424
            setResponseTimestampIsSet(true);
1425
          } else { 
1426
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1427
          }
1428
          break;
6000 mandeep.dh 1429
        default:
1430
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1431
      }
1432
      iprot.readFieldEnd();
1433
    }
1434
    iprot.readStructEnd();
1435
    validate();
1436
  }
1437
 
1438
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1439
    validate();
1440
 
1441
    oprot.writeStructBegin(STRUCT_DESC);
6031 rajveer 1442
    oprot.writeFieldBegin(ID_FIELD_DESC);
1443
    oprot.writeI64(this.id);
1444
    oprot.writeFieldEnd();
1445
    if (this.displayId != null) {
1446
      oprot.writeFieldBegin(DISPLAY_ID_FIELD_DESC);
1447
      oprot.writeString(this.displayId);
6000 mandeep.dh 1448
      oprot.writeFieldEnd();
1449
    }
6031 rajveer 1450
    oprot.writeFieldBegin(TOTAL_AMOUNT_FIELD_DESC);
1451
    oprot.writeI64(this.totalAmount);
6000 mandeep.dh 1452
    oprot.writeFieldEnd();
6031 rajveer 1453
    oprot.writeFieldBegin(WALLET_AMOUNT_FIELD_DESC);
1454
    oprot.writeI64(this.walletAmount);
1455
    oprot.writeFieldEnd();
6000 mandeep.dh 1456
    oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
1457
    oprot.writeI64(this.transactionId);
1458
    oprot.writeFieldEnd();
1459
    if (this.invoiceNumber != null) {
1460
      oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
1461
      oprot.writeString(this.invoiceNumber);
1462
      oprot.writeFieldEnd();
1463
    }
1464
    if (this.orderType != null) {
1465
      oprot.writeFieldBegin(ORDER_TYPE_FIELD_DESC);
1466
      oprot.writeI32(this.orderType.getValue());
1467
      oprot.writeFieldEnd();
1468
    }
1469
    oprot.writeFieldBegin(OPERATOR_ID_FIELD_DESC);
1470
    oprot.writeI64(this.operatorId);
1471
    oprot.writeFieldEnd();
1472
    if (this.rechargeType != null) {
1473
      oprot.writeFieldBegin(RECHARGE_TYPE_FIELD_DESC);
1474
      oprot.writeI32(this.rechargeType.getValue());
1475
      oprot.writeFieldEnd();
1476
    }
6031 rajveer 1477
    if (this.status != null) {
1478
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
1479
      oprot.writeI32(this.status.getValue());
6000 mandeep.dh 1480
      oprot.writeFieldEnd();
1481
    }
1482
    if (this.deviceNumber != null) {
1483
      oprot.writeFieldBegin(DEVICE_NUMBER_FIELD_DESC);
1484
      oprot.writeString(this.deviceNumber);
1485
      oprot.writeFieldEnd();
1486
    }
6031 rajveer 1487
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1488
    oprot.writeI64(this.userId);
6000 mandeep.dh 1489
    oprot.writeFieldEnd();
6031 rajveer 1490
    if (this.userEmailId != null) {
1491
      oprot.writeFieldBegin(USER_EMAIL_ID_FIELD_DESC);
1492
      oprot.writeString(this.userEmailId);
1493
      oprot.writeFieldEnd();
1494
    }
6000 mandeep.dh 1495
    oprot.writeFieldBegin(CREATION_TIMESTAMP_FIELD_DESC);
1496
    oprot.writeI64(this.creationTimestamp);
1497
    oprot.writeFieldEnd();
6048 rajveer 1498
    if (this.spiceTID != null) {
1499
      oprot.writeFieldBegin(SPICE_TID_FIELD_DESC);
1500
      oprot.writeString(this.spiceTID);
1501
      oprot.writeFieldEnd();
1502
    }
1503
    oprot.writeFieldBegin(RESPONSE_TIMESTAMP_FIELD_DESC);
1504
    oprot.writeI64(this.responseTimestamp);
1505
    oprot.writeFieldEnd();
6000 mandeep.dh 1506
    oprot.writeFieldStop();
1507
    oprot.writeStructEnd();
1508
  }
1509
 
1510
  @Override
1511
  public String toString() {
1512
    StringBuilder sb = new StringBuilder("RechargeOrder(");
1513
    boolean first = true;
1514
 
1515
    sb.append("id:");
6031 rajveer 1516
    sb.append(this.id);
1517
    first = false;
1518
    if (!first) sb.append(", ");
1519
    sb.append("displayId:");
1520
    if (this.displayId == null) {
6000 mandeep.dh 1521
      sb.append("null");
1522
    } else {
6031 rajveer 1523
      sb.append(this.displayId);
6000 mandeep.dh 1524
    }
1525
    first = false;
1526
    if (!first) sb.append(", ");
6031 rajveer 1527
    sb.append("totalAmount:");
1528
    sb.append(this.totalAmount);
6000 mandeep.dh 1529
    first = false;
1530
    if (!first) sb.append(", ");
6031 rajveer 1531
    sb.append("walletAmount:");
1532
    sb.append(this.walletAmount);
1533
    first = false;
1534
    if (!first) sb.append(", ");
6000 mandeep.dh 1535
    sb.append("transactionId:");
1536
    sb.append(this.transactionId);
1537
    first = false;
1538
    if (!first) sb.append(", ");
1539
    sb.append("invoiceNumber:");
1540
    if (this.invoiceNumber == null) {
1541
      sb.append("null");
1542
    } else {
1543
      sb.append(this.invoiceNumber);
1544
    }
1545
    first = false;
1546
    if (!first) sb.append(", ");
1547
    sb.append("orderType:");
1548
    if (this.orderType == null) {
1549
      sb.append("null");
1550
    } else {
1551
      sb.append(this.orderType);
1552
    }
1553
    first = false;
1554
    if (!first) sb.append(", ");
1555
    sb.append("operatorId:");
1556
    sb.append(this.operatorId);
1557
    first = false;
1558
    if (!first) sb.append(", ");
1559
    sb.append("rechargeType:");
1560
    if (this.rechargeType == null) {
1561
      sb.append("null");
1562
    } else {
1563
      sb.append(this.rechargeType);
1564
    }
1565
    first = false;
1566
    if (!first) sb.append(", ");
6031 rajveer 1567
    sb.append("status:");
1568
    if (this.status == null) {
6000 mandeep.dh 1569
      sb.append("null");
1570
    } else {
6031 rajveer 1571
      sb.append(this.status);
6000 mandeep.dh 1572
    }
1573
    first = false;
1574
    if (!first) sb.append(", ");
1575
    sb.append("deviceNumber:");
1576
    if (this.deviceNumber == null) {
1577
      sb.append("null");
1578
    } else {
1579
      sb.append(this.deviceNumber);
1580
    }
1581
    first = false;
1582
    if (!first) sb.append(", ");
6031 rajveer 1583
    sb.append("userId:");
1584
    sb.append(this.userId);
6000 mandeep.dh 1585
    first = false;
1586
    if (!first) sb.append(", ");
6031 rajveer 1587
    sb.append("userEmailId:");
1588
    if (this.userEmailId == null) {
1589
      sb.append("null");
1590
    } else {
1591
      sb.append(this.userEmailId);
1592
    }
6000 mandeep.dh 1593
    first = false;
1594
    if (!first) sb.append(", ");
1595
    sb.append("creationTimestamp:");
1596
    sb.append(this.creationTimestamp);
1597
    first = false;
6048 rajveer 1598
    if (!first) sb.append(", ");
1599
    sb.append("spiceTID:");
1600
    if (this.spiceTID == null) {
1601
      sb.append("null");
1602
    } else {
1603
      sb.append(this.spiceTID);
1604
    }
1605
    first = false;
1606
    if (!first) sb.append(", ");
1607
    sb.append("responseTimestamp:");
1608
    sb.append(this.responseTimestamp);
1609
    first = false;
6000 mandeep.dh 1610
    sb.append(")");
1611
    return sb.toString();
1612
  }
1613
 
1614
  public void validate() throws org.apache.thrift.TException {
1615
    // check for required fields
1616
  }
1617
 
1618
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1619
    try {
1620
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1621
    } catch (org.apache.thrift.TException te) {
1622
      throw new java.io.IOException(te);
1623
    }
1624
  }
1625
 
1626
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1627
    try {
1628
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1629
      __isset_bit_vector = new BitSet(1);
1630
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1631
    } catch (org.apache.thrift.TException te) {
1632
      throw new java.io.IOException(te);
1633
    }
1634
  }
1635
 
1636
}
1637