Subversion Repositories SmartDukaan

Rev

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