Subversion Repositories SmartDukaan

Rev

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