Subversion Repositories SmartDukaan

Rev

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