Subversion Repositories SmartDukaan

Rev

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