Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
483 rajveer 1
/**
2
 * Autogenerated by Thrift
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.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
 
22
import org.apache.thrift.*;
23
import org.apache.thrift.meta_data.*;
24
import org.apache.thrift.protocol.*;
25
 
26
public class Order implements TBase<Order._Fields>, java.io.Serializable, Cloneable, Comparable<Order> {
27
  private static final TStruct STRUCT_DESC = new TStruct("Order");
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouse_id", TType.I64, (short)2);
31
  private static final TField LINEITEMS_FIELD_DESC = new TField("lineitems", TType.LIST, (short)3);
32
  private static final TField LOGISTICS_PROVIDER_ID_FIELD_DESC = new TField("logistics_provider_id", TType.I64, (short)4);
33
  private static final TField AIRWAYBILL_NO_FIELD_DESC = new TField("airwaybill_no", TType.STRING, (short)5);
34
  private static final TField TRACKING_ID_FIELD_DESC = new TField("tracking_id", TType.STRING, (short)6);
35
  private static final TField EXPECTED_DELIVERY_TIME_FIELD_DESC = new TField("expected_delivery_time", TType.I64, (short)7);
36
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)8);
37
  private static final TField CUSTOMER_NAME_FIELD_DESC = new TField("customer_name", TType.STRING, (short)9);
38
  private static final TField CUSTOMER_MOBILENUMBER_FIELD_DESC = new TField("customer_mobilenumber", TType.STRING, (short)10);
39
  private static final TField CUSTOMER_PINCODE_FIELD_DESC = new TField("customer_pincode", TType.STRING, (short)11);
40
  private static final TField CUSTOMER_ADDRESS_FIELD_DESC = new TField("customer_address", TType.STRING, (short)12);
41
  private static final TField CUSTOMER_EMAIL_FIELD_DESC = new TField("customer_email", TType.STRING, (short)13);
42
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)14);
43
  private static final TField STATUS_DESCRIPTION_FIELD_DESC = new TField("statusDescription", TType.STRING, (short)15);
44
  private static final TField TOTAL_AMOUNT_FIELD_DESC = new TField("total_amount", TType.DOUBLE, (short)16);
45
  private static final TField TOTAL_WEIGHT_FIELD_DESC = new TField("total_weight", TType.DOUBLE, (short)17);
46
  private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoice_number", TType.STRING, (short)18);
47
  private static final TField BILLED_BY_FIELD_DESC = new TField("billed_by", TType.STRING, (short)19);
48
  private static final TField CREATED_TIMESTAMP_FIELD_DESC = new TField("created_timestamp", TType.I64, (short)20);
49
  private static final TField ACCEPTED_TIMESTAMP_FIELD_DESC = new TField("accepted_timestamp", TType.I64, (short)21);
50
  private static final TField BILLING_TIMESTAMP_FIELD_DESC = new TField("billing_timestamp", TType.I64, (short)22);
51
  private static final TField SHIPPING_TIMESTAMP_FIELD_DESC = new TField("shipping_timestamp", TType.I64, (short)23);
52
  private static final TField DELIVERY_TIMESTAMP_FIELD_DESC = new TField("delivery_timestamp", TType.I64, (short)24);
640 chandransh 53
  private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacket_number", TType.I64, (short)25);
483 rajveer 54
 
55
  private long id;
56
  private long warehouse_id;
57
  private List<LineItem> lineitems;
58
  private long logistics_provider_id;
59
  private String airwaybill_no;
60
  private String tracking_id;
61
  private long expected_delivery_time;
62
  private long customer_id;
63
  private String customer_name;
64
  private String customer_mobilenumber;
65
  private String customer_pincode;
66
  private String customer_address;
67
  private String customer_email;
68
  private OrderStatus status;
69
  private String statusDescription;
70
  private double total_amount;
71
  private double total_weight;
72
  private String invoice_number;
73
  private String billed_by;
74
  private long created_timestamp;
75
  private long accepted_timestamp;
76
  private long billing_timestamp;
77
  private long shipping_timestamp;
78
  private long delivery_timestamp;
640 chandransh 79
  private long jacket_number;
483 rajveer 80
 
81
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
82
  public enum _Fields implements TFieldIdEnum {
83
    ID((short)1, "id"),
84
    WAREHOUSE_ID((short)2, "warehouse_id"),
85
    /**
86
     * 	item info
87
     * *
88
     */
89
    LINEITEMS((short)3, "lineitems"),
90
    /**
91
     *   logistics info
92
     * *
93
     */
94
    LOGISTICS_PROVIDER_ID((short)4, "logistics_provider_id"),
95
    AIRWAYBILL_NO((short)5, "airwaybill_no"),
96
    TRACKING_ID((short)6, "tracking_id"),
97
    EXPECTED_DELIVERY_TIME((short)7, "expected_delivery_time"),
98
    /**
99
     *   customer info
100
     * *
101
     */
102
    CUSTOMER_ID((short)8, "customer_id"),
103
    CUSTOMER_NAME((short)9, "customer_name"),
104
    CUSTOMER_MOBILENUMBER((short)10, "customer_mobilenumber"),
105
    CUSTOMER_PINCODE((short)11, "customer_pincode"),
106
    CUSTOMER_ADDRESS((short)12, "customer_address"),
107
    CUSTOMER_EMAIL((short)13, "customer_email"),
108
    /**
109
     * 	status and misc info
110
     * *
111
     * 
112
     * @see OrderStatus
113
     */
114
    STATUS((short)14, "status"),
115
    STATUS_DESCRIPTION((short)15, "statusDescription"),
116
    TOTAL_AMOUNT((short)16, "total_amount"),
117
    TOTAL_WEIGHT((short)17, "total_weight"),
118
    /**
119
     * 	billing info
120
     * *
121
     */
122
    INVOICE_NUMBER((short)18, "invoice_number"),
123
    BILLED_BY((short)19, "billed_by"),
124
    /**
125
     * 	timestamps
126
     * *
127
     */
128
    CREATED_TIMESTAMP((short)20, "created_timestamp"),
129
    ACCEPTED_TIMESTAMP((short)21, "accepted_timestamp"),
130
    BILLING_TIMESTAMP((short)22, "billing_timestamp"),
131
    SHIPPING_TIMESTAMP((short)23, "shipping_timestamp"),
640 chandransh 132
    DELIVERY_TIMESTAMP((short)24, "delivery_timestamp"),
133
    JACKET_NUMBER((short)25, "jacket_number");
483 rajveer 134
 
135
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
136
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
137
 
138
    static {
139
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
140
        byId.put((int)field._thriftId, field);
141
        byName.put(field.getFieldName(), field);
142
      }
143
    }
144
 
145
    /**
146
     * Find the _Fields constant that matches fieldId, or null if its not found.
147
     */
148
    public static _Fields findByThriftId(int fieldId) {
149
      return byId.get(fieldId);
150
    }
151
 
152
    /**
153
     * Find the _Fields constant that matches fieldId, throwing an exception
154
     * if it is not found.
155
     */
156
    public static _Fields findByThriftIdOrThrow(int fieldId) {
157
      _Fields fields = findByThriftId(fieldId);
158
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
159
      return fields;
160
    }
161
 
162
    /**
163
     * Find the _Fields constant that matches name, or null if its not found.
164
     */
165
    public static _Fields findByName(String name) {
166
      return byName.get(name);
167
    }
168
 
169
    private final short _thriftId;
170
    private final String _fieldName;
171
 
172
    _Fields(short thriftId, String fieldName) {
173
      _thriftId = thriftId;
174
      _fieldName = fieldName;
175
    }
176
 
177
    public short getThriftFieldId() {
178
      return _thriftId;
179
    }
180
 
181
    public String getFieldName() {
182
      return _fieldName;
183
    }
184
  }
185
 
186
  // isset id assignments
187
  private static final int __ID_ISSET_ID = 0;
188
  private static final int __WAREHOUSE_ID_ISSET_ID = 1;
189
  private static final int __LOGISTICS_PROVIDER_ID_ISSET_ID = 2;
190
  private static final int __EXPECTED_DELIVERY_TIME_ISSET_ID = 3;
191
  private static final int __CUSTOMER_ID_ISSET_ID = 4;
192
  private static final int __TOTAL_AMOUNT_ISSET_ID = 5;
193
  private static final int __TOTAL_WEIGHT_ISSET_ID = 6;
194
  private static final int __CREATED_TIMESTAMP_ISSET_ID = 7;
195
  private static final int __ACCEPTED_TIMESTAMP_ISSET_ID = 8;
196
  private static final int __BILLING_TIMESTAMP_ISSET_ID = 9;
197
  private static final int __SHIPPING_TIMESTAMP_ISSET_ID = 10;
198
  private static final int __DELIVERY_TIMESTAMP_ISSET_ID = 11;
640 chandransh 199
  private static final int __JACKET_NUMBER_ISSET_ID = 12;
200
  private BitSet __isset_bit_vector = new BitSet(13);
483 rajveer 201
 
202
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
203
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
204
        new FieldValueMetaData(TType.I64)));
205
    put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
206
        new FieldValueMetaData(TType.I64)));
207
    put(_Fields.LINEITEMS, new FieldMetaData("lineitems", TFieldRequirementType.DEFAULT, 
208
        new ListMetaData(TType.LIST, 
209
            new StructMetaData(TType.STRUCT, LineItem.class))));
210
    put(_Fields.LOGISTICS_PROVIDER_ID, new FieldMetaData("logistics_provider_id", TFieldRequirementType.DEFAULT, 
211
        new FieldValueMetaData(TType.I64)));
212
    put(_Fields.AIRWAYBILL_NO, new FieldMetaData("airwaybill_no", TFieldRequirementType.DEFAULT, 
213
        new FieldValueMetaData(TType.STRING)));
214
    put(_Fields.TRACKING_ID, new FieldMetaData("tracking_id", TFieldRequirementType.DEFAULT, 
215
        new FieldValueMetaData(TType.STRING)));
216
    put(_Fields.EXPECTED_DELIVERY_TIME, new FieldMetaData("expected_delivery_time", TFieldRequirementType.DEFAULT, 
217
        new FieldValueMetaData(TType.I64)));
218
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customer_id", TFieldRequirementType.DEFAULT, 
219
        new FieldValueMetaData(TType.I64)));
220
    put(_Fields.CUSTOMER_NAME, new FieldMetaData("customer_name", TFieldRequirementType.DEFAULT, 
221
        new FieldValueMetaData(TType.STRING)));
222
    put(_Fields.CUSTOMER_MOBILENUMBER, new FieldMetaData("customer_mobilenumber", TFieldRequirementType.DEFAULT, 
223
        new FieldValueMetaData(TType.STRING)));
224
    put(_Fields.CUSTOMER_PINCODE, new FieldMetaData("customer_pincode", TFieldRequirementType.DEFAULT, 
225
        new FieldValueMetaData(TType.STRING)));
226
    put(_Fields.CUSTOMER_ADDRESS, new FieldMetaData("customer_address", TFieldRequirementType.DEFAULT, 
227
        new FieldValueMetaData(TType.STRING)));
228
    put(_Fields.CUSTOMER_EMAIL, new FieldMetaData("customer_email", TFieldRequirementType.DEFAULT, 
229
        new FieldValueMetaData(TType.STRING)));
230
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
231
        new EnumMetaData(TType.ENUM, OrderStatus.class)));
232
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("statusDescription", TFieldRequirementType.DEFAULT, 
233
        new FieldValueMetaData(TType.STRING)));
234
    put(_Fields.TOTAL_AMOUNT, new FieldMetaData("total_amount", TFieldRequirementType.DEFAULT, 
235
        new FieldValueMetaData(TType.DOUBLE)));
236
    put(_Fields.TOTAL_WEIGHT, new FieldMetaData("total_weight", TFieldRequirementType.DEFAULT, 
237
        new FieldValueMetaData(TType.DOUBLE)));
238
    put(_Fields.INVOICE_NUMBER, new FieldMetaData("invoice_number", TFieldRequirementType.DEFAULT, 
239
        new FieldValueMetaData(TType.STRING)));
240
    put(_Fields.BILLED_BY, new FieldMetaData("billed_by", TFieldRequirementType.DEFAULT, 
241
        new FieldValueMetaData(TType.STRING)));
242
    put(_Fields.CREATED_TIMESTAMP, new FieldMetaData("created_timestamp", TFieldRequirementType.DEFAULT, 
243
        new FieldValueMetaData(TType.I64)));
244
    put(_Fields.ACCEPTED_TIMESTAMP, new FieldMetaData("accepted_timestamp", TFieldRequirementType.DEFAULT, 
245
        new FieldValueMetaData(TType.I64)));
246
    put(_Fields.BILLING_TIMESTAMP, new FieldMetaData("billing_timestamp", TFieldRequirementType.DEFAULT, 
247
        new FieldValueMetaData(TType.I64)));
248
    put(_Fields.SHIPPING_TIMESTAMP, new FieldMetaData("shipping_timestamp", TFieldRequirementType.DEFAULT, 
249
        new FieldValueMetaData(TType.I64)));
250
    put(_Fields.DELIVERY_TIMESTAMP, new FieldMetaData("delivery_timestamp", TFieldRequirementType.DEFAULT, 
251
        new FieldValueMetaData(TType.I64)));
640 chandransh 252
    put(_Fields.JACKET_NUMBER, new FieldMetaData("jacket_number", TFieldRequirementType.DEFAULT, 
253
        new FieldValueMetaData(TType.I64)));
483 rajveer 254
  }});
255
 
256
  static {
257
    FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
258
  }
259
 
260
  public Order() {
261
  }
262
 
263
  public Order(
264
    long id,
265
    long warehouse_id,
266
    List<LineItem> lineitems,
267
    long logistics_provider_id,
268
    String airwaybill_no,
269
    String tracking_id,
270
    long expected_delivery_time,
271
    long customer_id,
272
    String customer_name,
273
    String customer_mobilenumber,
274
    String customer_pincode,
275
    String customer_address,
276
    String customer_email,
277
    OrderStatus status,
278
    String statusDescription,
279
    double total_amount,
280
    double total_weight,
281
    String invoice_number,
282
    String billed_by,
283
    long created_timestamp,
284
    long accepted_timestamp,
285
    long billing_timestamp,
286
    long shipping_timestamp,
640 chandransh 287
    long delivery_timestamp,
288
    long jacket_number)
483 rajveer 289
  {
290
    this();
291
    this.id = id;
292
    setIdIsSet(true);
293
    this.warehouse_id = warehouse_id;
294
    setWarehouse_idIsSet(true);
295
    this.lineitems = lineitems;
296
    this.logistics_provider_id = logistics_provider_id;
297
    setLogistics_provider_idIsSet(true);
298
    this.airwaybill_no = airwaybill_no;
299
    this.tracking_id = tracking_id;
300
    this.expected_delivery_time = expected_delivery_time;
301
    setExpected_delivery_timeIsSet(true);
302
    this.customer_id = customer_id;
303
    setCustomer_idIsSet(true);
304
    this.customer_name = customer_name;
305
    this.customer_mobilenumber = customer_mobilenumber;
306
    this.customer_pincode = customer_pincode;
307
    this.customer_address = customer_address;
308
    this.customer_email = customer_email;
309
    this.status = status;
310
    this.statusDescription = statusDescription;
311
    this.total_amount = total_amount;
312
    setTotal_amountIsSet(true);
313
    this.total_weight = total_weight;
314
    setTotal_weightIsSet(true);
315
    this.invoice_number = invoice_number;
316
    this.billed_by = billed_by;
317
    this.created_timestamp = created_timestamp;
318
    setCreated_timestampIsSet(true);
319
    this.accepted_timestamp = accepted_timestamp;
320
    setAccepted_timestampIsSet(true);
321
    this.billing_timestamp = billing_timestamp;
322
    setBilling_timestampIsSet(true);
323
    this.shipping_timestamp = shipping_timestamp;
324
    setShipping_timestampIsSet(true);
325
    this.delivery_timestamp = delivery_timestamp;
326
    setDelivery_timestampIsSet(true);
640 chandransh 327
    this.jacket_number = jacket_number;
328
    setJacket_numberIsSet(true);
483 rajveer 329
  }
330
 
331
  /**
332
   * Performs a deep copy on <i>other</i>.
333
   */
334
  public Order(Order other) {
335
    __isset_bit_vector.clear();
336
    __isset_bit_vector.or(other.__isset_bit_vector);
337
    this.id = other.id;
338
    this.warehouse_id = other.warehouse_id;
339
    if (other.isSetLineitems()) {
340
      List<LineItem> __this__lineitems = new ArrayList<LineItem>();
341
      for (LineItem other_element : other.lineitems) {
342
        __this__lineitems.add(new LineItem(other_element));
343
      }
344
      this.lineitems = __this__lineitems;
345
    }
346
    this.logistics_provider_id = other.logistics_provider_id;
347
    if (other.isSetAirwaybill_no()) {
348
      this.airwaybill_no = other.airwaybill_no;
349
    }
350
    if (other.isSetTracking_id()) {
351
      this.tracking_id = other.tracking_id;
352
    }
353
    this.expected_delivery_time = other.expected_delivery_time;
354
    this.customer_id = other.customer_id;
355
    if (other.isSetCustomer_name()) {
356
      this.customer_name = other.customer_name;
357
    }
358
    if (other.isSetCustomer_mobilenumber()) {
359
      this.customer_mobilenumber = other.customer_mobilenumber;
360
    }
361
    if (other.isSetCustomer_pincode()) {
362
      this.customer_pincode = other.customer_pincode;
363
    }
364
    if (other.isSetCustomer_address()) {
365
      this.customer_address = other.customer_address;
366
    }
367
    if (other.isSetCustomer_email()) {
368
      this.customer_email = other.customer_email;
369
    }
370
    if (other.isSetStatus()) {
371
      this.status = other.status;
372
    }
373
    if (other.isSetStatusDescription()) {
374
      this.statusDescription = other.statusDescription;
375
    }
376
    this.total_amount = other.total_amount;
377
    this.total_weight = other.total_weight;
378
    if (other.isSetInvoice_number()) {
379
      this.invoice_number = other.invoice_number;
380
    }
381
    if (other.isSetBilled_by()) {
382
      this.billed_by = other.billed_by;
383
    }
384
    this.created_timestamp = other.created_timestamp;
385
    this.accepted_timestamp = other.accepted_timestamp;
386
    this.billing_timestamp = other.billing_timestamp;
387
    this.shipping_timestamp = other.shipping_timestamp;
388
    this.delivery_timestamp = other.delivery_timestamp;
640 chandransh 389
    this.jacket_number = other.jacket_number;
483 rajveer 390
  }
391
 
392
  public Order deepCopy() {
393
    return new Order(this);
394
  }
395
 
396
  @Deprecated
397
  public Order clone() {
398
    return new Order(this);
399
  }
400
 
401
  public long getId() {
402
    return this.id;
403
  }
404
 
405
  public Order setId(long id) {
406
    this.id = id;
407
    setIdIsSet(true);
408
    return this;
409
  }
410
 
411
  public void unsetId() {
412
    __isset_bit_vector.clear(__ID_ISSET_ID);
413
  }
414
 
415
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
416
  public boolean isSetId() {
417
    return __isset_bit_vector.get(__ID_ISSET_ID);
418
  }
419
 
420
  public void setIdIsSet(boolean value) {
421
    __isset_bit_vector.set(__ID_ISSET_ID, value);
422
  }
423
 
424
  public long getWarehouse_id() {
425
    return this.warehouse_id;
426
  }
427
 
428
  public Order setWarehouse_id(long warehouse_id) {
429
    this.warehouse_id = warehouse_id;
430
    setWarehouse_idIsSet(true);
431
    return this;
432
  }
433
 
434
  public void unsetWarehouse_id() {
435
    __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
436
  }
437
 
438
  /** Returns true if field warehouse_id is set (has been asigned a value) and false otherwise */
439
  public boolean isSetWarehouse_id() {
440
    return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
441
  }
442
 
443
  public void setWarehouse_idIsSet(boolean value) {
444
    __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
445
  }
446
 
447
  public int getLineitemsSize() {
448
    return (this.lineitems == null) ? 0 : this.lineitems.size();
449
  }
450
 
451
  public java.util.Iterator<LineItem> getLineitemsIterator() {
452
    return (this.lineitems == null) ? null : this.lineitems.iterator();
453
  }
454
 
455
  public void addToLineitems(LineItem elem) {
456
    if (this.lineitems == null) {
457
      this.lineitems = new ArrayList<LineItem>();
458
    }
459
    this.lineitems.add(elem);
460
  }
461
 
462
  /**
463
   * 	item info
464
   * *
465
   */
466
  public List<LineItem> getLineitems() {
467
    return this.lineitems;
468
  }
469
 
470
  /**
471
   * 	item info
472
   * *
473
   */
474
  public Order setLineitems(List<LineItem> lineitems) {
475
    this.lineitems = lineitems;
476
    return this;
477
  }
478
 
479
  public void unsetLineitems() {
480
    this.lineitems = null;
481
  }
482
 
483
  /** Returns true if field lineitems is set (has been asigned a value) and false otherwise */
484
  public boolean isSetLineitems() {
485
    return this.lineitems != null;
486
  }
487
 
488
  public void setLineitemsIsSet(boolean value) {
489
    if (!value) {
490
      this.lineitems = null;
491
    }
492
  }
493
 
494
  /**
495
   *   logistics info
496
   * *
497
   */
498
  public long getLogistics_provider_id() {
499
    return this.logistics_provider_id;
500
  }
501
 
502
  /**
503
   *   logistics info
504
   * *
505
   */
506
  public Order setLogistics_provider_id(long logistics_provider_id) {
507
    this.logistics_provider_id = logistics_provider_id;
508
    setLogistics_provider_idIsSet(true);
509
    return this;
510
  }
511
 
512
  public void unsetLogistics_provider_id() {
513
    __isset_bit_vector.clear(__LOGISTICS_PROVIDER_ID_ISSET_ID);
514
  }
515
 
516
  /** Returns true if field logistics_provider_id is set (has been asigned a value) and false otherwise */
517
  public boolean isSetLogistics_provider_id() {
518
    return __isset_bit_vector.get(__LOGISTICS_PROVIDER_ID_ISSET_ID);
519
  }
520
 
521
  public void setLogistics_provider_idIsSet(boolean value) {
522
    __isset_bit_vector.set(__LOGISTICS_PROVIDER_ID_ISSET_ID, value);
523
  }
524
 
525
  public String getAirwaybill_no() {
526
    return this.airwaybill_no;
527
  }
528
 
529
  public Order setAirwaybill_no(String airwaybill_no) {
530
    this.airwaybill_no = airwaybill_no;
531
    return this;
532
  }
533
 
534
  public void unsetAirwaybill_no() {
535
    this.airwaybill_no = null;
536
  }
537
 
538
  /** Returns true if field airwaybill_no is set (has been asigned a value) and false otherwise */
539
  public boolean isSetAirwaybill_no() {
540
    return this.airwaybill_no != null;
541
  }
542
 
543
  public void setAirwaybill_noIsSet(boolean value) {
544
    if (!value) {
545
      this.airwaybill_no = null;
546
    }
547
  }
548
 
549
  public String getTracking_id() {
550
    return this.tracking_id;
551
  }
552
 
553
  public Order setTracking_id(String tracking_id) {
554
    this.tracking_id = tracking_id;
555
    return this;
556
  }
557
 
558
  public void unsetTracking_id() {
559
    this.tracking_id = null;
560
  }
561
 
562
  /** Returns true if field tracking_id is set (has been asigned a value) and false otherwise */
563
  public boolean isSetTracking_id() {
564
    return this.tracking_id != null;
565
  }
566
 
567
  public void setTracking_idIsSet(boolean value) {
568
    if (!value) {
569
      this.tracking_id = null;
570
    }
571
  }
572
 
573
  public long getExpected_delivery_time() {
574
    return this.expected_delivery_time;
575
  }
576
 
577
  public Order setExpected_delivery_time(long expected_delivery_time) {
578
    this.expected_delivery_time = expected_delivery_time;
579
    setExpected_delivery_timeIsSet(true);
580
    return this;
581
  }
582
 
583
  public void unsetExpected_delivery_time() {
584
    __isset_bit_vector.clear(__EXPECTED_DELIVERY_TIME_ISSET_ID);
585
  }
586
 
587
  /** Returns true if field expected_delivery_time is set (has been asigned a value) and false otherwise */
588
  public boolean isSetExpected_delivery_time() {
589
    return __isset_bit_vector.get(__EXPECTED_DELIVERY_TIME_ISSET_ID);
590
  }
591
 
592
  public void setExpected_delivery_timeIsSet(boolean value) {
593
    __isset_bit_vector.set(__EXPECTED_DELIVERY_TIME_ISSET_ID, value);
594
  }
595
 
596
  /**
597
   *   customer info
598
   * *
599
   */
600
  public long getCustomer_id() {
601
    return this.customer_id;
602
  }
603
 
604
  /**
605
   *   customer info
606
   * *
607
   */
608
  public Order setCustomer_id(long customer_id) {
609
    this.customer_id = customer_id;
610
    setCustomer_idIsSet(true);
611
    return this;
612
  }
613
 
614
  public void unsetCustomer_id() {
615
    __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
616
  }
617
 
618
  /** Returns true if field customer_id is set (has been asigned a value) and false otherwise */
619
  public boolean isSetCustomer_id() {
620
    return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
621
  }
622
 
623
  public void setCustomer_idIsSet(boolean value) {
624
    __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
625
  }
626
 
627
  public String getCustomer_name() {
628
    return this.customer_name;
629
  }
630
 
631
  public Order setCustomer_name(String customer_name) {
632
    this.customer_name = customer_name;
633
    return this;
634
  }
635
 
636
  public void unsetCustomer_name() {
637
    this.customer_name = null;
638
  }
639
 
640
  /** Returns true if field customer_name is set (has been asigned a value) and false otherwise */
641
  public boolean isSetCustomer_name() {
642
    return this.customer_name != null;
643
  }
644
 
645
  public void setCustomer_nameIsSet(boolean value) {
646
    if (!value) {
647
      this.customer_name = null;
648
    }
649
  }
650
 
651
  public String getCustomer_mobilenumber() {
652
    return this.customer_mobilenumber;
653
  }
654
 
655
  public Order setCustomer_mobilenumber(String customer_mobilenumber) {
656
    this.customer_mobilenumber = customer_mobilenumber;
657
    return this;
658
  }
659
 
660
  public void unsetCustomer_mobilenumber() {
661
    this.customer_mobilenumber = null;
662
  }
663
 
664
  /** Returns true if field customer_mobilenumber is set (has been asigned a value) and false otherwise */
665
  public boolean isSetCustomer_mobilenumber() {
666
    return this.customer_mobilenumber != null;
667
  }
668
 
669
  public void setCustomer_mobilenumberIsSet(boolean value) {
670
    if (!value) {
671
      this.customer_mobilenumber = null;
672
    }
673
  }
674
 
675
  public String getCustomer_pincode() {
676
    return this.customer_pincode;
677
  }
678
 
679
  public Order setCustomer_pincode(String customer_pincode) {
680
    this.customer_pincode = customer_pincode;
681
    return this;
682
  }
683
 
684
  public void unsetCustomer_pincode() {
685
    this.customer_pincode = null;
686
  }
687
 
688
  /** Returns true if field customer_pincode is set (has been asigned a value) and false otherwise */
689
  public boolean isSetCustomer_pincode() {
690
    return this.customer_pincode != null;
691
  }
692
 
693
  public void setCustomer_pincodeIsSet(boolean value) {
694
    if (!value) {
695
      this.customer_pincode = null;
696
    }
697
  }
698
 
699
  public String getCustomer_address() {
700
    return this.customer_address;
701
  }
702
 
703
  public Order setCustomer_address(String customer_address) {
704
    this.customer_address = customer_address;
705
    return this;
706
  }
707
 
708
  public void unsetCustomer_address() {
709
    this.customer_address = null;
710
  }
711
 
712
  /** Returns true if field customer_address is set (has been asigned a value) and false otherwise */
713
  public boolean isSetCustomer_address() {
714
    return this.customer_address != null;
715
  }
716
 
717
  public void setCustomer_addressIsSet(boolean value) {
718
    if (!value) {
719
      this.customer_address = null;
720
    }
721
  }
722
 
723
  public String getCustomer_email() {
724
    return this.customer_email;
725
  }
726
 
727
  public Order setCustomer_email(String customer_email) {
728
    this.customer_email = customer_email;
729
    return this;
730
  }
731
 
732
  public void unsetCustomer_email() {
733
    this.customer_email = null;
734
  }
735
 
736
  /** Returns true if field customer_email is set (has been asigned a value) and false otherwise */
737
  public boolean isSetCustomer_email() {
738
    return this.customer_email != null;
739
  }
740
 
741
  public void setCustomer_emailIsSet(boolean value) {
742
    if (!value) {
743
      this.customer_email = null;
744
    }
745
  }
746
 
747
  /**
748
   * 	status and misc info
749
   * *
750
   * 
751
   * @see OrderStatus
752
   */
753
  public OrderStatus getStatus() {
754
    return this.status;
755
  }
756
 
757
  /**
758
   * 	status and misc info
759
   * *
760
   * 
761
   * @see OrderStatus
762
   */
763
  public Order setStatus(OrderStatus status) {
764
    this.status = status;
765
    return this;
766
  }
767
 
768
  public void unsetStatus() {
769
    this.status = null;
770
  }
771
 
772
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
773
  public boolean isSetStatus() {
774
    return this.status != null;
775
  }
776
 
777
  public void setStatusIsSet(boolean value) {
778
    if (!value) {
779
      this.status = null;
780
    }
781
  }
782
 
783
  public String getStatusDescription() {
784
    return this.statusDescription;
785
  }
786
 
787
  public Order setStatusDescription(String statusDescription) {
788
    this.statusDescription = statusDescription;
789
    return this;
790
  }
791
 
792
  public void unsetStatusDescription() {
793
    this.statusDescription = null;
794
  }
795
 
796
  /** Returns true if field statusDescription is set (has been asigned a value) and false otherwise */
797
  public boolean isSetStatusDescription() {
798
    return this.statusDescription != null;
799
  }
800
 
801
  public void setStatusDescriptionIsSet(boolean value) {
802
    if (!value) {
803
      this.statusDescription = null;
804
    }
805
  }
806
 
807
  public double getTotal_amount() {
808
    return this.total_amount;
809
  }
810
 
811
  public Order setTotal_amount(double total_amount) {
812
    this.total_amount = total_amount;
813
    setTotal_amountIsSet(true);
814
    return this;
815
  }
816
 
817
  public void unsetTotal_amount() {
818
    __isset_bit_vector.clear(__TOTAL_AMOUNT_ISSET_ID);
819
  }
820
 
821
  /** Returns true if field total_amount is set (has been asigned a value) and false otherwise */
822
  public boolean isSetTotal_amount() {
823
    return __isset_bit_vector.get(__TOTAL_AMOUNT_ISSET_ID);
824
  }
825
 
826
  public void setTotal_amountIsSet(boolean value) {
827
    __isset_bit_vector.set(__TOTAL_AMOUNT_ISSET_ID, value);
828
  }
829
 
830
  public double getTotal_weight() {
831
    return this.total_weight;
832
  }
833
 
834
  public Order setTotal_weight(double total_weight) {
835
    this.total_weight = total_weight;
836
    setTotal_weightIsSet(true);
837
    return this;
838
  }
839
 
840
  public void unsetTotal_weight() {
841
    __isset_bit_vector.clear(__TOTAL_WEIGHT_ISSET_ID);
842
  }
843
 
844
  /** Returns true if field total_weight is set (has been asigned a value) and false otherwise */
845
  public boolean isSetTotal_weight() {
846
    return __isset_bit_vector.get(__TOTAL_WEIGHT_ISSET_ID);
847
  }
848
 
849
  public void setTotal_weightIsSet(boolean value) {
850
    __isset_bit_vector.set(__TOTAL_WEIGHT_ISSET_ID, value);
851
  }
852
 
853
  /**
854
   * 	billing info
855
   * *
856
   */
857
  public String getInvoice_number() {
858
    return this.invoice_number;
859
  }
860
 
861
  /**
862
   * 	billing info
863
   * *
864
   */
865
  public Order setInvoice_number(String invoice_number) {
866
    this.invoice_number = invoice_number;
867
    return this;
868
  }
869
 
870
  public void unsetInvoice_number() {
871
    this.invoice_number = null;
872
  }
873
 
874
  /** Returns true if field invoice_number is set (has been asigned a value) and false otherwise */
875
  public boolean isSetInvoice_number() {
876
    return this.invoice_number != null;
877
  }
878
 
879
  public void setInvoice_numberIsSet(boolean value) {
880
    if (!value) {
881
      this.invoice_number = null;
882
    }
883
  }
884
 
885
  public String getBilled_by() {
886
    return this.billed_by;
887
  }
888
 
889
  public Order setBilled_by(String billed_by) {
890
    this.billed_by = billed_by;
891
    return this;
892
  }
893
 
894
  public void unsetBilled_by() {
895
    this.billed_by = null;
896
  }
897
 
898
  /** Returns true if field billed_by is set (has been asigned a value) and false otherwise */
899
  public boolean isSetBilled_by() {
900
    return this.billed_by != null;
901
  }
902
 
903
  public void setBilled_byIsSet(boolean value) {
904
    if (!value) {
905
      this.billed_by = null;
906
    }
907
  }
908
 
909
  /**
910
   * 	timestamps
911
   * *
912
   */
913
  public long getCreated_timestamp() {
914
    return this.created_timestamp;
915
  }
916
 
917
  /**
918
   * 	timestamps
919
   * *
920
   */
921
  public Order setCreated_timestamp(long created_timestamp) {
922
    this.created_timestamp = created_timestamp;
923
    setCreated_timestampIsSet(true);
924
    return this;
925
  }
926
 
927
  public void unsetCreated_timestamp() {
928
    __isset_bit_vector.clear(__CREATED_TIMESTAMP_ISSET_ID);
929
  }
930
 
931
  /** Returns true if field created_timestamp is set (has been asigned a value) and false otherwise */
932
  public boolean isSetCreated_timestamp() {
933
    return __isset_bit_vector.get(__CREATED_TIMESTAMP_ISSET_ID);
934
  }
935
 
936
  public void setCreated_timestampIsSet(boolean value) {
937
    __isset_bit_vector.set(__CREATED_TIMESTAMP_ISSET_ID, value);
938
  }
939
 
940
  public long getAccepted_timestamp() {
941
    return this.accepted_timestamp;
942
  }
943
 
944
  public Order setAccepted_timestamp(long accepted_timestamp) {
945
    this.accepted_timestamp = accepted_timestamp;
946
    setAccepted_timestampIsSet(true);
947
    return this;
948
  }
949
 
950
  public void unsetAccepted_timestamp() {
951
    __isset_bit_vector.clear(__ACCEPTED_TIMESTAMP_ISSET_ID);
952
  }
953
 
954
  /** Returns true if field accepted_timestamp is set (has been asigned a value) and false otherwise */
955
  public boolean isSetAccepted_timestamp() {
956
    return __isset_bit_vector.get(__ACCEPTED_TIMESTAMP_ISSET_ID);
957
  }
958
 
959
  public void setAccepted_timestampIsSet(boolean value) {
960
    __isset_bit_vector.set(__ACCEPTED_TIMESTAMP_ISSET_ID, value);
961
  }
962
 
963
  public long getBilling_timestamp() {
964
    return this.billing_timestamp;
965
  }
966
 
967
  public Order setBilling_timestamp(long billing_timestamp) {
968
    this.billing_timestamp = billing_timestamp;
969
    setBilling_timestampIsSet(true);
970
    return this;
971
  }
972
 
973
  public void unsetBilling_timestamp() {
974
    __isset_bit_vector.clear(__BILLING_TIMESTAMP_ISSET_ID);
975
  }
976
 
977
  /** Returns true if field billing_timestamp is set (has been asigned a value) and false otherwise */
978
  public boolean isSetBilling_timestamp() {
979
    return __isset_bit_vector.get(__BILLING_TIMESTAMP_ISSET_ID);
980
  }
981
 
982
  public void setBilling_timestampIsSet(boolean value) {
983
    __isset_bit_vector.set(__BILLING_TIMESTAMP_ISSET_ID, value);
984
  }
985
 
986
  public long getShipping_timestamp() {
987
    return this.shipping_timestamp;
988
  }
989
 
990
  public Order setShipping_timestamp(long shipping_timestamp) {
991
    this.shipping_timestamp = shipping_timestamp;
992
    setShipping_timestampIsSet(true);
993
    return this;
994
  }
995
 
996
  public void unsetShipping_timestamp() {
997
    __isset_bit_vector.clear(__SHIPPING_TIMESTAMP_ISSET_ID);
998
  }
999
 
1000
  /** Returns true if field shipping_timestamp is set (has been asigned a value) and false otherwise */
1001
  public boolean isSetShipping_timestamp() {
1002
    return __isset_bit_vector.get(__SHIPPING_TIMESTAMP_ISSET_ID);
1003
  }
1004
 
1005
  public void setShipping_timestampIsSet(boolean value) {
1006
    __isset_bit_vector.set(__SHIPPING_TIMESTAMP_ISSET_ID, value);
1007
  }
1008
 
1009
  public long getDelivery_timestamp() {
1010
    return this.delivery_timestamp;
1011
  }
1012
 
1013
  public Order setDelivery_timestamp(long delivery_timestamp) {
1014
    this.delivery_timestamp = delivery_timestamp;
1015
    setDelivery_timestampIsSet(true);
1016
    return this;
1017
  }
1018
 
1019
  public void unsetDelivery_timestamp() {
1020
    __isset_bit_vector.clear(__DELIVERY_TIMESTAMP_ISSET_ID);
1021
  }
1022
 
1023
  /** Returns true if field delivery_timestamp is set (has been asigned a value) and false otherwise */
1024
  public boolean isSetDelivery_timestamp() {
1025
    return __isset_bit_vector.get(__DELIVERY_TIMESTAMP_ISSET_ID);
1026
  }
1027
 
1028
  public void setDelivery_timestampIsSet(boolean value) {
1029
    __isset_bit_vector.set(__DELIVERY_TIMESTAMP_ISSET_ID, value);
1030
  }
1031
 
640 chandransh 1032
  public long getJacket_number() {
1033
    return this.jacket_number;
1034
  }
1035
 
1036
  public Order setJacket_number(long jacket_number) {
1037
    this.jacket_number = jacket_number;
1038
    setJacket_numberIsSet(true);
1039
    return this;
1040
  }
1041
 
1042
  public void unsetJacket_number() {
1043
    __isset_bit_vector.clear(__JACKET_NUMBER_ISSET_ID);
1044
  }
1045
 
1046
  /** Returns true if field jacket_number is set (has been asigned a value) and false otherwise */
1047
  public boolean isSetJacket_number() {
1048
    return __isset_bit_vector.get(__JACKET_NUMBER_ISSET_ID);
1049
  }
1050
 
1051
  public void setJacket_numberIsSet(boolean value) {
1052
    __isset_bit_vector.set(__JACKET_NUMBER_ISSET_ID, value);
1053
  }
1054
 
483 rajveer 1055
  public void setFieldValue(_Fields field, Object value) {
1056
    switch (field) {
1057
    case ID:
1058
      if (value == null) {
1059
        unsetId();
1060
      } else {
1061
        setId((Long)value);
1062
      }
1063
      break;
1064
 
1065
    case WAREHOUSE_ID:
1066
      if (value == null) {
1067
        unsetWarehouse_id();
1068
      } else {
1069
        setWarehouse_id((Long)value);
1070
      }
1071
      break;
1072
 
1073
    case LINEITEMS:
1074
      if (value == null) {
1075
        unsetLineitems();
1076
      } else {
1077
        setLineitems((List<LineItem>)value);
1078
      }
1079
      break;
1080
 
1081
    case LOGISTICS_PROVIDER_ID:
1082
      if (value == null) {
1083
        unsetLogistics_provider_id();
1084
      } else {
1085
        setLogistics_provider_id((Long)value);
1086
      }
1087
      break;
1088
 
1089
    case AIRWAYBILL_NO:
1090
      if (value == null) {
1091
        unsetAirwaybill_no();
1092
      } else {
1093
        setAirwaybill_no((String)value);
1094
      }
1095
      break;
1096
 
1097
    case TRACKING_ID:
1098
      if (value == null) {
1099
        unsetTracking_id();
1100
      } else {
1101
        setTracking_id((String)value);
1102
      }
1103
      break;
1104
 
1105
    case EXPECTED_DELIVERY_TIME:
1106
      if (value == null) {
1107
        unsetExpected_delivery_time();
1108
      } else {
1109
        setExpected_delivery_time((Long)value);
1110
      }
1111
      break;
1112
 
1113
    case CUSTOMER_ID:
1114
      if (value == null) {
1115
        unsetCustomer_id();
1116
      } else {
1117
        setCustomer_id((Long)value);
1118
      }
1119
      break;
1120
 
1121
    case CUSTOMER_NAME:
1122
      if (value == null) {
1123
        unsetCustomer_name();
1124
      } else {
1125
        setCustomer_name((String)value);
1126
      }
1127
      break;
1128
 
1129
    case CUSTOMER_MOBILENUMBER:
1130
      if (value == null) {
1131
        unsetCustomer_mobilenumber();
1132
      } else {
1133
        setCustomer_mobilenumber((String)value);
1134
      }
1135
      break;
1136
 
1137
    case CUSTOMER_PINCODE:
1138
      if (value == null) {
1139
        unsetCustomer_pincode();
1140
      } else {
1141
        setCustomer_pincode((String)value);
1142
      }
1143
      break;
1144
 
1145
    case CUSTOMER_ADDRESS:
1146
      if (value == null) {
1147
        unsetCustomer_address();
1148
      } else {
1149
        setCustomer_address((String)value);
1150
      }
1151
      break;
1152
 
1153
    case CUSTOMER_EMAIL:
1154
      if (value == null) {
1155
        unsetCustomer_email();
1156
      } else {
1157
        setCustomer_email((String)value);
1158
      }
1159
      break;
1160
 
1161
    case STATUS:
1162
      if (value == null) {
1163
        unsetStatus();
1164
      } else {
1165
        setStatus((OrderStatus)value);
1166
      }
1167
      break;
1168
 
1169
    case STATUS_DESCRIPTION:
1170
      if (value == null) {
1171
        unsetStatusDescription();
1172
      } else {
1173
        setStatusDescription((String)value);
1174
      }
1175
      break;
1176
 
1177
    case TOTAL_AMOUNT:
1178
      if (value == null) {
1179
        unsetTotal_amount();
1180
      } else {
1181
        setTotal_amount((Double)value);
1182
      }
1183
      break;
1184
 
1185
    case TOTAL_WEIGHT:
1186
      if (value == null) {
1187
        unsetTotal_weight();
1188
      } else {
1189
        setTotal_weight((Double)value);
1190
      }
1191
      break;
1192
 
1193
    case INVOICE_NUMBER:
1194
      if (value == null) {
1195
        unsetInvoice_number();
1196
      } else {
1197
        setInvoice_number((String)value);
1198
      }
1199
      break;
1200
 
1201
    case BILLED_BY:
1202
      if (value == null) {
1203
        unsetBilled_by();
1204
      } else {
1205
        setBilled_by((String)value);
1206
      }
1207
      break;
1208
 
1209
    case CREATED_TIMESTAMP:
1210
      if (value == null) {
1211
        unsetCreated_timestamp();
1212
      } else {
1213
        setCreated_timestamp((Long)value);
1214
      }
1215
      break;
1216
 
1217
    case ACCEPTED_TIMESTAMP:
1218
      if (value == null) {
1219
        unsetAccepted_timestamp();
1220
      } else {
1221
        setAccepted_timestamp((Long)value);
1222
      }
1223
      break;
1224
 
1225
    case BILLING_TIMESTAMP:
1226
      if (value == null) {
1227
        unsetBilling_timestamp();
1228
      } else {
1229
        setBilling_timestamp((Long)value);
1230
      }
1231
      break;
1232
 
1233
    case SHIPPING_TIMESTAMP:
1234
      if (value == null) {
1235
        unsetShipping_timestamp();
1236
      } else {
1237
        setShipping_timestamp((Long)value);
1238
      }
1239
      break;
1240
 
1241
    case DELIVERY_TIMESTAMP:
1242
      if (value == null) {
1243
        unsetDelivery_timestamp();
1244
      } else {
1245
        setDelivery_timestamp((Long)value);
1246
      }
1247
      break;
1248
 
640 chandransh 1249
    case JACKET_NUMBER:
1250
      if (value == null) {
1251
        unsetJacket_number();
1252
      } else {
1253
        setJacket_number((Long)value);
1254
      }
1255
      break;
1256
 
483 rajveer 1257
    }
1258
  }
1259
 
1260
  public void setFieldValue(int fieldID, Object value) {
1261
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1262
  }
1263
 
1264
  public Object getFieldValue(_Fields field) {
1265
    switch (field) {
1266
    case ID:
1267
      return new Long(getId());
1268
 
1269
    case WAREHOUSE_ID:
1270
      return new Long(getWarehouse_id());
1271
 
1272
    case LINEITEMS:
1273
      return getLineitems();
1274
 
1275
    case LOGISTICS_PROVIDER_ID:
1276
      return new Long(getLogistics_provider_id());
1277
 
1278
    case AIRWAYBILL_NO:
1279
      return getAirwaybill_no();
1280
 
1281
    case TRACKING_ID:
1282
      return getTracking_id();
1283
 
1284
    case EXPECTED_DELIVERY_TIME:
1285
      return new Long(getExpected_delivery_time());
1286
 
1287
    case CUSTOMER_ID:
1288
      return new Long(getCustomer_id());
1289
 
1290
    case CUSTOMER_NAME:
1291
      return getCustomer_name();
1292
 
1293
    case CUSTOMER_MOBILENUMBER:
1294
      return getCustomer_mobilenumber();
1295
 
1296
    case CUSTOMER_PINCODE:
1297
      return getCustomer_pincode();
1298
 
1299
    case CUSTOMER_ADDRESS:
1300
      return getCustomer_address();
1301
 
1302
    case CUSTOMER_EMAIL:
1303
      return getCustomer_email();
1304
 
1305
    case STATUS:
1306
      return getStatus();
1307
 
1308
    case STATUS_DESCRIPTION:
1309
      return getStatusDescription();
1310
 
1311
    case TOTAL_AMOUNT:
1312
      return new Double(getTotal_amount());
1313
 
1314
    case TOTAL_WEIGHT:
1315
      return new Double(getTotal_weight());
1316
 
1317
    case INVOICE_NUMBER:
1318
      return getInvoice_number();
1319
 
1320
    case BILLED_BY:
1321
      return getBilled_by();
1322
 
1323
    case CREATED_TIMESTAMP:
1324
      return new Long(getCreated_timestamp());
1325
 
1326
    case ACCEPTED_TIMESTAMP:
1327
      return new Long(getAccepted_timestamp());
1328
 
1329
    case BILLING_TIMESTAMP:
1330
      return new Long(getBilling_timestamp());
1331
 
1332
    case SHIPPING_TIMESTAMP:
1333
      return new Long(getShipping_timestamp());
1334
 
1335
    case DELIVERY_TIMESTAMP:
1336
      return new Long(getDelivery_timestamp());
1337
 
640 chandransh 1338
    case JACKET_NUMBER:
1339
      return new Long(getJacket_number());
1340
 
483 rajveer 1341
    }
1342
    throw new IllegalStateException();
1343
  }
1344
 
1345
  public Object getFieldValue(int fieldId) {
1346
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
1347
  }
1348
 
1349
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1350
  public boolean isSet(_Fields field) {
1351
    switch (field) {
1352
    case ID:
1353
      return isSetId();
1354
    case WAREHOUSE_ID:
1355
      return isSetWarehouse_id();
1356
    case LINEITEMS:
1357
      return isSetLineitems();
1358
    case LOGISTICS_PROVIDER_ID:
1359
      return isSetLogistics_provider_id();
1360
    case AIRWAYBILL_NO:
1361
      return isSetAirwaybill_no();
1362
    case TRACKING_ID:
1363
      return isSetTracking_id();
1364
    case EXPECTED_DELIVERY_TIME:
1365
      return isSetExpected_delivery_time();
1366
    case CUSTOMER_ID:
1367
      return isSetCustomer_id();
1368
    case CUSTOMER_NAME:
1369
      return isSetCustomer_name();
1370
    case CUSTOMER_MOBILENUMBER:
1371
      return isSetCustomer_mobilenumber();
1372
    case CUSTOMER_PINCODE:
1373
      return isSetCustomer_pincode();
1374
    case CUSTOMER_ADDRESS:
1375
      return isSetCustomer_address();
1376
    case CUSTOMER_EMAIL:
1377
      return isSetCustomer_email();
1378
    case STATUS:
1379
      return isSetStatus();
1380
    case STATUS_DESCRIPTION:
1381
      return isSetStatusDescription();
1382
    case TOTAL_AMOUNT:
1383
      return isSetTotal_amount();
1384
    case TOTAL_WEIGHT:
1385
      return isSetTotal_weight();
1386
    case INVOICE_NUMBER:
1387
      return isSetInvoice_number();
1388
    case BILLED_BY:
1389
      return isSetBilled_by();
1390
    case CREATED_TIMESTAMP:
1391
      return isSetCreated_timestamp();
1392
    case ACCEPTED_TIMESTAMP:
1393
      return isSetAccepted_timestamp();
1394
    case BILLING_TIMESTAMP:
1395
      return isSetBilling_timestamp();
1396
    case SHIPPING_TIMESTAMP:
1397
      return isSetShipping_timestamp();
1398
    case DELIVERY_TIMESTAMP:
1399
      return isSetDelivery_timestamp();
640 chandransh 1400
    case JACKET_NUMBER:
1401
      return isSetJacket_number();
483 rajveer 1402
    }
1403
    throw new IllegalStateException();
1404
  }
1405
 
1406
  public boolean isSet(int fieldID) {
1407
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
1408
  }
1409
 
1410
  @Override
1411
  public boolean equals(Object that) {
1412
    if (that == null)
1413
      return false;
1414
    if (that instanceof Order)
1415
      return this.equals((Order)that);
1416
    return false;
1417
  }
1418
 
1419
  public boolean equals(Order that) {
1420
    if (that == null)
1421
      return false;
1422
 
1423
    boolean this_present_id = true;
1424
    boolean that_present_id = true;
1425
    if (this_present_id || that_present_id) {
1426
      if (!(this_present_id && that_present_id))
1427
        return false;
1428
      if (this.id != that.id)
1429
        return false;
1430
    }
1431
 
1432
    boolean this_present_warehouse_id = true;
1433
    boolean that_present_warehouse_id = true;
1434
    if (this_present_warehouse_id || that_present_warehouse_id) {
1435
      if (!(this_present_warehouse_id && that_present_warehouse_id))
1436
        return false;
1437
      if (this.warehouse_id != that.warehouse_id)
1438
        return false;
1439
    }
1440
 
1441
    boolean this_present_lineitems = true && this.isSetLineitems();
1442
    boolean that_present_lineitems = true && that.isSetLineitems();
1443
    if (this_present_lineitems || that_present_lineitems) {
1444
      if (!(this_present_lineitems && that_present_lineitems))
1445
        return false;
1446
      if (!this.lineitems.equals(that.lineitems))
1447
        return false;
1448
    }
1449
 
1450
    boolean this_present_logistics_provider_id = true;
1451
    boolean that_present_logistics_provider_id = true;
1452
    if (this_present_logistics_provider_id || that_present_logistics_provider_id) {
1453
      if (!(this_present_logistics_provider_id && that_present_logistics_provider_id))
1454
        return false;
1455
      if (this.logistics_provider_id != that.logistics_provider_id)
1456
        return false;
1457
    }
1458
 
1459
    boolean this_present_airwaybill_no = true && this.isSetAirwaybill_no();
1460
    boolean that_present_airwaybill_no = true && that.isSetAirwaybill_no();
1461
    if (this_present_airwaybill_no || that_present_airwaybill_no) {
1462
      if (!(this_present_airwaybill_no && that_present_airwaybill_no))
1463
        return false;
1464
      if (!this.airwaybill_no.equals(that.airwaybill_no))
1465
        return false;
1466
    }
1467
 
1468
    boolean this_present_tracking_id = true && this.isSetTracking_id();
1469
    boolean that_present_tracking_id = true && that.isSetTracking_id();
1470
    if (this_present_tracking_id || that_present_tracking_id) {
1471
      if (!(this_present_tracking_id && that_present_tracking_id))
1472
        return false;
1473
      if (!this.tracking_id.equals(that.tracking_id))
1474
        return false;
1475
    }
1476
 
1477
    boolean this_present_expected_delivery_time = true;
1478
    boolean that_present_expected_delivery_time = true;
1479
    if (this_present_expected_delivery_time || that_present_expected_delivery_time) {
1480
      if (!(this_present_expected_delivery_time && that_present_expected_delivery_time))
1481
        return false;
1482
      if (this.expected_delivery_time != that.expected_delivery_time)
1483
        return false;
1484
    }
1485
 
1486
    boolean this_present_customer_id = true;
1487
    boolean that_present_customer_id = true;
1488
    if (this_present_customer_id || that_present_customer_id) {
1489
      if (!(this_present_customer_id && that_present_customer_id))
1490
        return false;
1491
      if (this.customer_id != that.customer_id)
1492
        return false;
1493
    }
1494
 
1495
    boolean this_present_customer_name = true && this.isSetCustomer_name();
1496
    boolean that_present_customer_name = true && that.isSetCustomer_name();
1497
    if (this_present_customer_name || that_present_customer_name) {
1498
      if (!(this_present_customer_name && that_present_customer_name))
1499
        return false;
1500
      if (!this.customer_name.equals(that.customer_name))
1501
        return false;
1502
    }
1503
 
1504
    boolean this_present_customer_mobilenumber = true && this.isSetCustomer_mobilenumber();
1505
    boolean that_present_customer_mobilenumber = true && that.isSetCustomer_mobilenumber();
1506
    if (this_present_customer_mobilenumber || that_present_customer_mobilenumber) {
1507
      if (!(this_present_customer_mobilenumber && that_present_customer_mobilenumber))
1508
        return false;
1509
      if (!this.customer_mobilenumber.equals(that.customer_mobilenumber))
1510
        return false;
1511
    }
1512
 
1513
    boolean this_present_customer_pincode = true && this.isSetCustomer_pincode();
1514
    boolean that_present_customer_pincode = true && that.isSetCustomer_pincode();
1515
    if (this_present_customer_pincode || that_present_customer_pincode) {
1516
      if (!(this_present_customer_pincode && that_present_customer_pincode))
1517
        return false;
1518
      if (!this.customer_pincode.equals(that.customer_pincode))
1519
        return false;
1520
    }
1521
 
1522
    boolean this_present_customer_address = true && this.isSetCustomer_address();
1523
    boolean that_present_customer_address = true && that.isSetCustomer_address();
1524
    if (this_present_customer_address || that_present_customer_address) {
1525
      if (!(this_present_customer_address && that_present_customer_address))
1526
        return false;
1527
      if (!this.customer_address.equals(that.customer_address))
1528
        return false;
1529
    }
1530
 
1531
    boolean this_present_customer_email = true && this.isSetCustomer_email();
1532
    boolean that_present_customer_email = true && that.isSetCustomer_email();
1533
    if (this_present_customer_email || that_present_customer_email) {
1534
      if (!(this_present_customer_email && that_present_customer_email))
1535
        return false;
1536
      if (!this.customer_email.equals(that.customer_email))
1537
        return false;
1538
    }
1539
 
1540
    boolean this_present_status = true && this.isSetStatus();
1541
    boolean that_present_status = true && that.isSetStatus();
1542
    if (this_present_status || that_present_status) {
1543
      if (!(this_present_status && that_present_status))
1544
        return false;
1545
      if (!this.status.equals(that.status))
1546
        return false;
1547
    }
1548
 
1549
    boolean this_present_statusDescription = true && this.isSetStatusDescription();
1550
    boolean that_present_statusDescription = true && that.isSetStatusDescription();
1551
    if (this_present_statusDescription || that_present_statusDescription) {
1552
      if (!(this_present_statusDescription && that_present_statusDescription))
1553
        return false;
1554
      if (!this.statusDescription.equals(that.statusDescription))
1555
        return false;
1556
    }
1557
 
1558
    boolean this_present_total_amount = true;
1559
    boolean that_present_total_amount = true;
1560
    if (this_present_total_amount || that_present_total_amount) {
1561
      if (!(this_present_total_amount && that_present_total_amount))
1562
        return false;
1563
      if (this.total_amount != that.total_amount)
1564
        return false;
1565
    }
1566
 
1567
    boolean this_present_total_weight = true;
1568
    boolean that_present_total_weight = true;
1569
    if (this_present_total_weight || that_present_total_weight) {
1570
      if (!(this_present_total_weight && that_present_total_weight))
1571
        return false;
1572
      if (this.total_weight != that.total_weight)
1573
        return false;
1574
    }
1575
 
1576
    boolean this_present_invoice_number = true && this.isSetInvoice_number();
1577
    boolean that_present_invoice_number = true && that.isSetInvoice_number();
1578
    if (this_present_invoice_number || that_present_invoice_number) {
1579
      if (!(this_present_invoice_number && that_present_invoice_number))
1580
        return false;
1581
      if (!this.invoice_number.equals(that.invoice_number))
1582
        return false;
1583
    }
1584
 
1585
    boolean this_present_billed_by = true && this.isSetBilled_by();
1586
    boolean that_present_billed_by = true && that.isSetBilled_by();
1587
    if (this_present_billed_by || that_present_billed_by) {
1588
      if (!(this_present_billed_by && that_present_billed_by))
1589
        return false;
1590
      if (!this.billed_by.equals(that.billed_by))
1591
        return false;
1592
    }
1593
 
1594
    boolean this_present_created_timestamp = true;
1595
    boolean that_present_created_timestamp = true;
1596
    if (this_present_created_timestamp || that_present_created_timestamp) {
1597
      if (!(this_present_created_timestamp && that_present_created_timestamp))
1598
        return false;
1599
      if (this.created_timestamp != that.created_timestamp)
1600
        return false;
1601
    }
1602
 
1603
    boolean this_present_accepted_timestamp = true;
1604
    boolean that_present_accepted_timestamp = true;
1605
    if (this_present_accepted_timestamp || that_present_accepted_timestamp) {
1606
      if (!(this_present_accepted_timestamp && that_present_accepted_timestamp))
1607
        return false;
1608
      if (this.accepted_timestamp != that.accepted_timestamp)
1609
        return false;
1610
    }
1611
 
1612
    boolean this_present_billing_timestamp = true;
1613
    boolean that_present_billing_timestamp = true;
1614
    if (this_present_billing_timestamp || that_present_billing_timestamp) {
1615
      if (!(this_present_billing_timestamp && that_present_billing_timestamp))
1616
        return false;
1617
      if (this.billing_timestamp != that.billing_timestamp)
1618
        return false;
1619
    }
1620
 
1621
    boolean this_present_shipping_timestamp = true;
1622
    boolean that_present_shipping_timestamp = true;
1623
    if (this_present_shipping_timestamp || that_present_shipping_timestamp) {
1624
      if (!(this_present_shipping_timestamp && that_present_shipping_timestamp))
1625
        return false;
1626
      if (this.shipping_timestamp != that.shipping_timestamp)
1627
        return false;
1628
    }
1629
 
1630
    boolean this_present_delivery_timestamp = true;
1631
    boolean that_present_delivery_timestamp = true;
1632
    if (this_present_delivery_timestamp || that_present_delivery_timestamp) {
1633
      if (!(this_present_delivery_timestamp && that_present_delivery_timestamp))
1634
        return false;
1635
      if (this.delivery_timestamp != that.delivery_timestamp)
1636
        return false;
1637
    }
1638
 
640 chandransh 1639
    boolean this_present_jacket_number = true;
1640
    boolean that_present_jacket_number = true;
1641
    if (this_present_jacket_number || that_present_jacket_number) {
1642
      if (!(this_present_jacket_number && that_present_jacket_number))
1643
        return false;
1644
      if (this.jacket_number != that.jacket_number)
1645
        return false;
1646
    }
1647
 
483 rajveer 1648
    return true;
1649
  }
1650
 
1651
  @Override
1652
  public int hashCode() {
1653
    return 0;
1654
  }
1655
 
1656
  public int compareTo(Order other) {
1657
    if (!getClass().equals(other.getClass())) {
1658
      return getClass().getName().compareTo(other.getClass().getName());
1659
    }
1660
 
1661
    int lastComparison = 0;
1662
    Order typedOther = (Order)other;
1663
 
1664
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
1665
    if (lastComparison != 0) {
1666
      return lastComparison;
1667
    }
1668
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
1669
    if (lastComparison != 0) {
1670
      return lastComparison;
1671
    }
1672
    lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(isSetWarehouse_id());
1673
    if (lastComparison != 0) {
1674
      return lastComparison;
1675
    }
1676
    lastComparison = TBaseHelper.compareTo(warehouse_id, typedOther.warehouse_id);
1677
    if (lastComparison != 0) {
1678
      return lastComparison;
1679
    }
1680
    lastComparison = Boolean.valueOf(isSetLineitems()).compareTo(isSetLineitems());
1681
    if (lastComparison != 0) {
1682
      return lastComparison;
1683
    }
1684
    lastComparison = TBaseHelper.compareTo(lineitems, typedOther.lineitems);
1685
    if (lastComparison != 0) {
1686
      return lastComparison;
1687
    }
1688
    lastComparison = Boolean.valueOf(isSetLogistics_provider_id()).compareTo(isSetLogistics_provider_id());
1689
    if (lastComparison != 0) {
1690
      return lastComparison;
1691
    }
1692
    lastComparison = TBaseHelper.compareTo(logistics_provider_id, typedOther.logistics_provider_id);
1693
    if (lastComparison != 0) {
1694
      return lastComparison;
1695
    }
1696
    lastComparison = Boolean.valueOf(isSetAirwaybill_no()).compareTo(isSetAirwaybill_no());
1697
    if (lastComparison != 0) {
1698
      return lastComparison;
1699
    }
1700
    lastComparison = TBaseHelper.compareTo(airwaybill_no, typedOther.airwaybill_no);
1701
    if (lastComparison != 0) {
1702
      return lastComparison;
1703
    }
1704
    lastComparison = Boolean.valueOf(isSetTracking_id()).compareTo(isSetTracking_id());
1705
    if (lastComparison != 0) {
1706
      return lastComparison;
1707
    }
1708
    lastComparison = TBaseHelper.compareTo(tracking_id, typedOther.tracking_id);
1709
    if (lastComparison != 0) {
1710
      return lastComparison;
1711
    }
1712
    lastComparison = Boolean.valueOf(isSetExpected_delivery_time()).compareTo(isSetExpected_delivery_time());
1713
    if (lastComparison != 0) {
1714
      return lastComparison;
1715
    }
1716
    lastComparison = TBaseHelper.compareTo(expected_delivery_time, typedOther.expected_delivery_time);
1717
    if (lastComparison != 0) {
1718
      return lastComparison;
1719
    }
1720
    lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(isSetCustomer_id());
1721
    if (lastComparison != 0) {
1722
      return lastComparison;
1723
    }
1724
    lastComparison = TBaseHelper.compareTo(customer_id, typedOther.customer_id);
1725
    if (lastComparison != 0) {
1726
      return lastComparison;
1727
    }
1728
    lastComparison = Boolean.valueOf(isSetCustomer_name()).compareTo(isSetCustomer_name());
1729
    if (lastComparison != 0) {
1730
      return lastComparison;
1731
    }
1732
    lastComparison = TBaseHelper.compareTo(customer_name, typedOther.customer_name);
1733
    if (lastComparison != 0) {
1734
      return lastComparison;
1735
    }
1736
    lastComparison = Boolean.valueOf(isSetCustomer_mobilenumber()).compareTo(isSetCustomer_mobilenumber());
1737
    if (lastComparison != 0) {
1738
      return lastComparison;
1739
    }
1740
    lastComparison = TBaseHelper.compareTo(customer_mobilenumber, typedOther.customer_mobilenumber);
1741
    if (lastComparison != 0) {
1742
      return lastComparison;
1743
    }
1744
    lastComparison = Boolean.valueOf(isSetCustomer_pincode()).compareTo(isSetCustomer_pincode());
1745
    if (lastComparison != 0) {
1746
      return lastComparison;
1747
    }
1748
    lastComparison = TBaseHelper.compareTo(customer_pincode, typedOther.customer_pincode);
1749
    if (lastComparison != 0) {
1750
      return lastComparison;
1751
    }
1752
    lastComparison = Boolean.valueOf(isSetCustomer_address()).compareTo(isSetCustomer_address());
1753
    if (lastComparison != 0) {
1754
      return lastComparison;
1755
    }
1756
    lastComparison = TBaseHelper.compareTo(customer_address, typedOther.customer_address);
1757
    if (lastComparison != 0) {
1758
      return lastComparison;
1759
    }
1760
    lastComparison = Boolean.valueOf(isSetCustomer_email()).compareTo(isSetCustomer_email());
1761
    if (lastComparison != 0) {
1762
      return lastComparison;
1763
    }
1764
    lastComparison = TBaseHelper.compareTo(customer_email, typedOther.customer_email);
1765
    if (lastComparison != 0) {
1766
      return lastComparison;
1767
    }
1768
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
1769
    if (lastComparison != 0) {
1770
      return lastComparison;
1771
    }
1772
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
1773
    if (lastComparison != 0) {
1774
      return lastComparison;
1775
    }
1776
    lastComparison = Boolean.valueOf(isSetStatusDescription()).compareTo(isSetStatusDescription());
1777
    if (lastComparison != 0) {
1778
      return lastComparison;
1779
    }
1780
    lastComparison = TBaseHelper.compareTo(statusDescription, typedOther.statusDescription);
1781
    if (lastComparison != 0) {
1782
      return lastComparison;
1783
    }
1784
    lastComparison = Boolean.valueOf(isSetTotal_amount()).compareTo(isSetTotal_amount());
1785
    if (lastComparison != 0) {
1786
      return lastComparison;
1787
    }
1788
    lastComparison = TBaseHelper.compareTo(total_amount, typedOther.total_amount);
1789
    if (lastComparison != 0) {
1790
      return lastComparison;
1791
    }
1792
    lastComparison = Boolean.valueOf(isSetTotal_weight()).compareTo(isSetTotal_weight());
1793
    if (lastComparison != 0) {
1794
      return lastComparison;
1795
    }
1796
    lastComparison = TBaseHelper.compareTo(total_weight, typedOther.total_weight);
1797
    if (lastComparison != 0) {
1798
      return lastComparison;
1799
    }
1800
    lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(isSetInvoice_number());
1801
    if (lastComparison != 0) {
1802
      return lastComparison;
1803
    }
1804
    lastComparison = TBaseHelper.compareTo(invoice_number, typedOther.invoice_number);
1805
    if (lastComparison != 0) {
1806
      return lastComparison;
1807
    }
1808
    lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(isSetBilled_by());
1809
    if (lastComparison != 0) {
1810
      return lastComparison;
1811
    }
1812
    lastComparison = TBaseHelper.compareTo(billed_by, typedOther.billed_by);
1813
    if (lastComparison != 0) {
1814
      return lastComparison;
1815
    }
1816
    lastComparison = Boolean.valueOf(isSetCreated_timestamp()).compareTo(isSetCreated_timestamp());
1817
    if (lastComparison != 0) {
1818
      return lastComparison;
1819
    }
1820
    lastComparison = TBaseHelper.compareTo(created_timestamp, typedOther.created_timestamp);
1821
    if (lastComparison != 0) {
1822
      return lastComparison;
1823
    }
1824
    lastComparison = Boolean.valueOf(isSetAccepted_timestamp()).compareTo(isSetAccepted_timestamp());
1825
    if (lastComparison != 0) {
1826
      return lastComparison;
1827
    }
1828
    lastComparison = TBaseHelper.compareTo(accepted_timestamp, typedOther.accepted_timestamp);
1829
    if (lastComparison != 0) {
1830
      return lastComparison;
1831
    }
1832
    lastComparison = Boolean.valueOf(isSetBilling_timestamp()).compareTo(isSetBilling_timestamp());
1833
    if (lastComparison != 0) {
1834
      return lastComparison;
1835
    }
1836
    lastComparison = TBaseHelper.compareTo(billing_timestamp, typedOther.billing_timestamp);
1837
    if (lastComparison != 0) {
1838
      return lastComparison;
1839
    }
1840
    lastComparison = Boolean.valueOf(isSetShipping_timestamp()).compareTo(isSetShipping_timestamp());
1841
    if (lastComparison != 0) {
1842
      return lastComparison;
1843
    }
1844
    lastComparison = TBaseHelper.compareTo(shipping_timestamp, typedOther.shipping_timestamp);
1845
    if (lastComparison != 0) {
1846
      return lastComparison;
1847
    }
1848
    lastComparison = Boolean.valueOf(isSetDelivery_timestamp()).compareTo(isSetDelivery_timestamp());
1849
    if (lastComparison != 0) {
1850
      return lastComparison;
1851
    }
1852
    lastComparison = TBaseHelper.compareTo(delivery_timestamp, typedOther.delivery_timestamp);
1853
    if (lastComparison != 0) {
1854
      return lastComparison;
1855
    }
640 chandransh 1856
    lastComparison = Boolean.valueOf(isSetJacket_number()).compareTo(isSetJacket_number());
1857
    if (lastComparison != 0) {
1858
      return lastComparison;
1859
    }
1860
    lastComparison = TBaseHelper.compareTo(jacket_number, typedOther.jacket_number);
1861
    if (lastComparison != 0) {
1862
      return lastComparison;
1863
    }
483 rajveer 1864
    return 0;
1865
  }
1866
 
1867
  public void read(TProtocol iprot) throws TException {
1868
    TField field;
1869
    iprot.readStructBegin();
1870
    while (true)
1871
    {
1872
      field = iprot.readFieldBegin();
1873
      if (field.type == TType.STOP) { 
1874
        break;
1875
      }
1876
      _Fields fieldId = _Fields.findByThriftId(field.id);
1877
      if (fieldId == null) {
1878
        TProtocolUtil.skip(iprot, field.type);
1879
      } else {
1880
        switch (fieldId) {
1881
          case ID:
1882
            if (field.type == TType.I64) {
1883
              this.id = iprot.readI64();
1884
              setIdIsSet(true);
1885
            } else { 
1886
              TProtocolUtil.skip(iprot, field.type);
1887
            }
1888
            break;
1889
          case WAREHOUSE_ID:
1890
            if (field.type == TType.I64) {
1891
              this.warehouse_id = iprot.readI64();
1892
              setWarehouse_idIsSet(true);
1893
            } else { 
1894
              TProtocolUtil.skip(iprot, field.type);
1895
            }
1896
            break;
1897
          case LINEITEMS:
1898
            if (field.type == TType.LIST) {
1899
              {
1900
                TList _list5 = iprot.readListBegin();
1901
                this.lineitems = new ArrayList<LineItem>(_list5.size);
1902
                for (int _i6 = 0; _i6 < _list5.size; ++_i6)
1903
                {
1904
                  LineItem _elem7;
1905
                  _elem7 = new LineItem();
1906
                  _elem7.read(iprot);
1907
                  this.lineitems.add(_elem7);
1908
                }
1909
                iprot.readListEnd();
1910
              }
1911
            } else { 
1912
              TProtocolUtil.skip(iprot, field.type);
1913
            }
1914
            break;
1915
          case LOGISTICS_PROVIDER_ID:
1916
            if (field.type == TType.I64) {
1917
              this.logistics_provider_id = iprot.readI64();
1918
              setLogistics_provider_idIsSet(true);
1919
            } else { 
1920
              TProtocolUtil.skip(iprot, field.type);
1921
            }
1922
            break;
1923
          case AIRWAYBILL_NO:
1924
            if (field.type == TType.STRING) {
1925
              this.airwaybill_no = iprot.readString();
1926
            } else { 
1927
              TProtocolUtil.skip(iprot, field.type);
1928
            }
1929
            break;
1930
          case TRACKING_ID:
1931
            if (field.type == TType.STRING) {
1932
              this.tracking_id = iprot.readString();
1933
            } else { 
1934
              TProtocolUtil.skip(iprot, field.type);
1935
            }
1936
            break;
1937
          case EXPECTED_DELIVERY_TIME:
1938
            if (field.type == TType.I64) {
1939
              this.expected_delivery_time = iprot.readI64();
1940
              setExpected_delivery_timeIsSet(true);
1941
            } else { 
1942
              TProtocolUtil.skip(iprot, field.type);
1943
            }
1944
            break;
1945
          case CUSTOMER_ID:
1946
            if (field.type == TType.I64) {
1947
              this.customer_id = iprot.readI64();
1948
              setCustomer_idIsSet(true);
1949
            } else { 
1950
              TProtocolUtil.skip(iprot, field.type);
1951
            }
1952
            break;
1953
          case CUSTOMER_NAME:
1954
            if (field.type == TType.STRING) {
1955
              this.customer_name = iprot.readString();
1956
            } else { 
1957
              TProtocolUtil.skip(iprot, field.type);
1958
            }
1959
            break;
1960
          case CUSTOMER_MOBILENUMBER:
1961
            if (field.type == TType.STRING) {
1962
              this.customer_mobilenumber = iprot.readString();
1963
            } else { 
1964
              TProtocolUtil.skip(iprot, field.type);
1965
            }
1966
            break;
1967
          case CUSTOMER_PINCODE:
1968
            if (field.type == TType.STRING) {
1969
              this.customer_pincode = iprot.readString();
1970
            } else { 
1971
              TProtocolUtil.skip(iprot, field.type);
1972
            }
1973
            break;
1974
          case CUSTOMER_ADDRESS:
1975
            if (field.type == TType.STRING) {
1976
              this.customer_address = iprot.readString();
1977
            } else { 
1978
              TProtocolUtil.skip(iprot, field.type);
1979
            }
1980
            break;
1981
          case CUSTOMER_EMAIL:
1982
            if (field.type == TType.STRING) {
1983
              this.customer_email = iprot.readString();
1984
            } else { 
1985
              TProtocolUtil.skip(iprot, field.type);
1986
            }
1987
            break;
1988
          case STATUS:
1989
            if (field.type == TType.I32) {
1990
              this.status = OrderStatus.findByValue(iprot.readI32());
1991
            } else { 
1992
              TProtocolUtil.skip(iprot, field.type);
1993
            }
1994
            break;
1995
          case STATUS_DESCRIPTION:
1996
            if (field.type == TType.STRING) {
1997
              this.statusDescription = iprot.readString();
1998
            } else { 
1999
              TProtocolUtil.skip(iprot, field.type);
2000
            }
2001
            break;
2002
          case TOTAL_AMOUNT:
2003
            if (field.type == TType.DOUBLE) {
2004
              this.total_amount = iprot.readDouble();
2005
              setTotal_amountIsSet(true);
2006
            } else { 
2007
              TProtocolUtil.skip(iprot, field.type);
2008
            }
2009
            break;
2010
          case TOTAL_WEIGHT:
2011
            if (field.type == TType.DOUBLE) {
2012
              this.total_weight = iprot.readDouble();
2013
              setTotal_weightIsSet(true);
2014
            } else { 
2015
              TProtocolUtil.skip(iprot, field.type);
2016
            }
2017
            break;
2018
          case INVOICE_NUMBER:
2019
            if (field.type == TType.STRING) {
2020
              this.invoice_number = iprot.readString();
2021
            } else { 
2022
              TProtocolUtil.skip(iprot, field.type);
2023
            }
2024
            break;
2025
          case BILLED_BY:
2026
            if (field.type == TType.STRING) {
2027
              this.billed_by = iprot.readString();
2028
            } else { 
2029
              TProtocolUtil.skip(iprot, field.type);
2030
            }
2031
            break;
2032
          case CREATED_TIMESTAMP:
2033
            if (field.type == TType.I64) {
2034
              this.created_timestamp = iprot.readI64();
2035
              setCreated_timestampIsSet(true);
2036
            } else { 
2037
              TProtocolUtil.skip(iprot, field.type);
2038
            }
2039
            break;
2040
          case ACCEPTED_TIMESTAMP:
2041
            if (field.type == TType.I64) {
2042
              this.accepted_timestamp = iprot.readI64();
2043
              setAccepted_timestampIsSet(true);
2044
            } else { 
2045
              TProtocolUtil.skip(iprot, field.type);
2046
            }
2047
            break;
2048
          case BILLING_TIMESTAMP:
2049
            if (field.type == TType.I64) {
2050
              this.billing_timestamp = iprot.readI64();
2051
              setBilling_timestampIsSet(true);
2052
            } else { 
2053
              TProtocolUtil.skip(iprot, field.type);
2054
            }
2055
            break;
2056
          case SHIPPING_TIMESTAMP:
2057
            if (field.type == TType.I64) {
2058
              this.shipping_timestamp = iprot.readI64();
2059
              setShipping_timestampIsSet(true);
2060
            } else { 
2061
              TProtocolUtil.skip(iprot, field.type);
2062
            }
2063
            break;
2064
          case DELIVERY_TIMESTAMP:
2065
            if (field.type == TType.I64) {
2066
              this.delivery_timestamp = iprot.readI64();
2067
              setDelivery_timestampIsSet(true);
2068
            } else { 
2069
              TProtocolUtil.skip(iprot, field.type);
2070
            }
2071
            break;
640 chandransh 2072
          case JACKET_NUMBER:
2073
            if (field.type == TType.I64) {
2074
              this.jacket_number = iprot.readI64();
2075
              setJacket_numberIsSet(true);
2076
            } else { 
2077
              TProtocolUtil.skip(iprot, field.type);
2078
            }
2079
            break;
483 rajveer 2080
        }
2081
        iprot.readFieldEnd();
2082
      }
2083
    }
2084
    iprot.readStructEnd();
2085
    validate();
2086
  }
2087
 
2088
  public void write(TProtocol oprot) throws TException {
2089
    validate();
2090
 
2091
    oprot.writeStructBegin(STRUCT_DESC);
2092
    oprot.writeFieldBegin(ID_FIELD_DESC);
2093
    oprot.writeI64(this.id);
2094
    oprot.writeFieldEnd();
2095
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
2096
    oprot.writeI64(this.warehouse_id);
2097
    oprot.writeFieldEnd();
2098
    if (this.lineitems != null) {
2099
      oprot.writeFieldBegin(LINEITEMS_FIELD_DESC);
2100
      {
2101
        oprot.writeListBegin(new TList(TType.STRUCT, this.lineitems.size()));
2102
        for (LineItem _iter8 : this.lineitems)
2103
        {
2104
          _iter8.write(oprot);
2105
        }
2106
        oprot.writeListEnd();
2107
      }
2108
      oprot.writeFieldEnd();
2109
    }
2110
    oprot.writeFieldBegin(LOGISTICS_PROVIDER_ID_FIELD_DESC);
2111
    oprot.writeI64(this.logistics_provider_id);
2112
    oprot.writeFieldEnd();
2113
    if (this.airwaybill_no != null) {
2114
      oprot.writeFieldBegin(AIRWAYBILL_NO_FIELD_DESC);
2115
      oprot.writeString(this.airwaybill_no);
2116
      oprot.writeFieldEnd();
2117
    }
2118
    if (this.tracking_id != null) {
2119
      oprot.writeFieldBegin(TRACKING_ID_FIELD_DESC);
2120
      oprot.writeString(this.tracking_id);
2121
      oprot.writeFieldEnd();
2122
    }
2123
    oprot.writeFieldBegin(EXPECTED_DELIVERY_TIME_FIELD_DESC);
2124
    oprot.writeI64(this.expected_delivery_time);
2125
    oprot.writeFieldEnd();
2126
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
2127
    oprot.writeI64(this.customer_id);
2128
    oprot.writeFieldEnd();
2129
    if (this.customer_name != null) {
2130
      oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);
2131
      oprot.writeString(this.customer_name);
2132
      oprot.writeFieldEnd();
2133
    }
2134
    if (this.customer_mobilenumber != null) {
2135
      oprot.writeFieldBegin(CUSTOMER_MOBILENUMBER_FIELD_DESC);
2136
      oprot.writeString(this.customer_mobilenumber);
2137
      oprot.writeFieldEnd();
2138
    }
2139
    if (this.customer_pincode != null) {
2140
      oprot.writeFieldBegin(CUSTOMER_PINCODE_FIELD_DESC);
2141
      oprot.writeString(this.customer_pincode);
2142
      oprot.writeFieldEnd();
2143
    }
2144
    if (this.customer_address != null) {
2145
      oprot.writeFieldBegin(CUSTOMER_ADDRESS_FIELD_DESC);
2146
      oprot.writeString(this.customer_address);
2147
      oprot.writeFieldEnd();
2148
    }
2149
    if (this.customer_email != null) {
2150
      oprot.writeFieldBegin(CUSTOMER_EMAIL_FIELD_DESC);
2151
      oprot.writeString(this.customer_email);
2152
      oprot.writeFieldEnd();
2153
    }
2154
    if (this.status != null) {
2155
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
2156
      oprot.writeI32(this.status.getValue());
2157
      oprot.writeFieldEnd();
2158
    }
2159
    if (this.statusDescription != null) {
2160
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
2161
      oprot.writeString(this.statusDescription);
2162
      oprot.writeFieldEnd();
2163
    }
2164
    oprot.writeFieldBegin(TOTAL_AMOUNT_FIELD_DESC);
2165
    oprot.writeDouble(this.total_amount);
2166
    oprot.writeFieldEnd();
2167
    oprot.writeFieldBegin(TOTAL_WEIGHT_FIELD_DESC);
2168
    oprot.writeDouble(this.total_weight);
2169
    oprot.writeFieldEnd();
2170
    if (this.invoice_number != null) {
2171
      oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
2172
      oprot.writeString(this.invoice_number);
2173
      oprot.writeFieldEnd();
2174
    }
2175
    if (this.billed_by != null) {
2176
      oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
2177
      oprot.writeString(this.billed_by);
2178
      oprot.writeFieldEnd();
2179
    }
2180
    oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
2181
    oprot.writeI64(this.created_timestamp);
2182
    oprot.writeFieldEnd();
2183
    oprot.writeFieldBegin(ACCEPTED_TIMESTAMP_FIELD_DESC);
2184
    oprot.writeI64(this.accepted_timestamp);
2185
    oprot.writeFieldEnd();
2186
    oprot.writeFieldBegin(BILLING_TIMESTAMP_FIELD_DESC);
2187
    oprot.writeI64(this.billing_timestamp);
2188
    oprot.writeFieldEnd();
2189
    oprot.writeFieldBegin(SHIPPING_TIMESTAMP_FIELD_DESC);
2190
    oprot.writeI64(this.shipping_timestamp);
2191
    oprot.writeFieldEnd();
2192
    oprot.writeFieldBegin(DELIVERY_TIMESTAMP_FIELD_DESC);
2193
    oprot.writeI64(this.delivery_timestamp);
2194
    oprot.writeFieldEnd();
640 chandransh 2195
    oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
2196
    oprot.writeI64(this.jacket_number);
2197
    oprot.writeFieldEnd();
483 rajveer 2198
    oprot.writeFieldStop();
2199
    oprot.writeStructEnd();
2200
  }
2201
 
2202
  @Override
2203
  public String toString() {
2204
    StringBuilder sb = new StringBuilder("Order(");
2205
    boolean first = true;
2206
 
2207
    sb.append("id:");
2208
    sb.append(this.id);
2209
    first = false;
2210
    if (!first) sb.append(", ");
2211
    sb.append("warehouse_id:");
2212
    sb.append(this.warehouse_id);
2213
    first = false;
2214
    if (!first) sb.append(", ");
2215
    sb.append("lineitems:");
2216
    if (this.lineitems == null) {
2217
      sb.append("null");
2218
    } else {
2219
      sb.append(this.lineitems);
2220
    }
2221
    first = false;
2222
    if (!first) sb.append(", ");
2223
    sb.append("logistics_provider_id:");
2224
    sb.append(this.logistics_provider_id);
2225
    first = false;
2226
    if (!first) sb.append(", ");
2227
    sb.append("airwaybill_no:");
2228
    if (this.airwaybill_no == null) {
2229
      sb.append("null");
2230
    } else {
2231
      sb.append(this.airwaybill_no);
2232
    }
2233
    first = false;
2234
    if (!first) sb.append(", ");
2235
    sb.append("tracking_id:");
2236
    if (this.tracking_id == null) {
2237
      sb.append("null");
2238
    } else {
2239
      sb.append(this.tracking_id);
2240
    }
2241
    first = false;
2242
    if (!first) sb.append(", ");
2243
    sb.append("expected_delivery_time:");
2244
    sb.append(this.expected_delivery_time);
2245
    first = false;
2246
    if (!first) sb.append(", ");
2247
    sb.append("customer_id:");
2248
    sb.append(this.customer_id);
2249
    first = false;
2250
    if (!first) sb.append(", ");
2251
    sb.append("customer_name:");
2252
    if (this.customer_name == null) {
2253
      sb.append("null");
2254
    } else {
2255
      sb.append(this.customer_name);
2256
    }
2257
    first = false;
2258
    if (!first) sb.append(", ");
2259
    sb.append("customer_mobilenumber:");
2260
    if (this.customer_mobilenumber == null) {
2261
      sb.append("null");
2262
    } else {
2263
      sb.append(this.customer_mobilenumber);
2264
    }
2265
    first = false;
2266
    if (!first) sb.append(", ");
2267
    sb.append("customer_pincode:");
2268
    if (this.customer_pincode == null) {
2269
      sb.append("null");
2270
    } else {
2271
      sb.append(this.customer_pincode);
2272
    }
2273
    first = false;
2274
    if (!first) sb.append(", ");
2275
    sb.append("customer_address:");
2276
    if (this.customer_address == null) {
2277
      sb.append("null");
2278
    } else {
2279
      sb.append(this.customer_address);
2280
    }
2281
    first = false;
2282
    if (!first) sb.append(", ");
2283
    sb.append("customer_email:");
2284
    if (this.customer_email == null) {
2285
      sb.append("null");
2286
    } else {
2287
      sb.append(this.customer_email);
2288
    }
2289
    first = false;
2290
    if (!first) sb.append(", ");
2291
    sb.append("status:");
2292
    if (this.status == null) {
2293
      sb.append("null");
2294
    } else {
2295
      String status_name = status.name();
2296
      if (status_name != null) {
2297
        sb.append(status_name);
2298
        sb.append(" (");
2299
      }
2300
      sb.append(this.status);
2301
      if (status_name != null) {
2302
        sb.append(")");
2303
      }
2304
    }
2305
    first = false;
2306
    if (!first) sb.append(", ");
2307
    sb.append("statusDescription:");
2308
    if (this.statusDescription == null) {
2309
      sb.append("null");
2310
    } else {
2311
      sb.append(this.statusDescription);
2312
    }
2313
    first = false;
2314
    if (!first) sb.append(", ");
2315
    sb.append("total_amount:");
2316
    sb.append(this.total_amount);
2317
    first = false;
2318
    if (!first) sb.append(", ");
2319
    sb.append("total_weight:");
2320
    sb.append(this.total_weight);
2321
    first = false;
2322
    if (!first) sb.append(", ");
2323
    sb.append("invoice_number:");
2324
    if (this.invoice_number == null) {
2325
      sb.append("null");
2326
    } else {
2327
      sb.append(this.invoice_number);
2328
    }
2329
    first = false;
2330
    if (!first) sb.append(", ");
2331
    sb.append("billed_by:");
2332
    if (this.billed_by == null) {
2333
      sb.append("null");
2334
    } else {
2335
      sb.append(this.billed_by);
2336
    }
2337
    first = false;
2338
    if (!first) sb.append(", ");
2339
    sb.append("created_timestamp:");
2340
    sb.append(this.created_timestamp);
2341
    first = false;
2342
    if (!first) sb.append(", ");
2343
    sb.append("accepted_timestamp:");
2344
    sb.append(this.accepted_timestamp);
2345
    first = false;
2346
    if (!first) sb.append(", ");
2347
    sb.append("billing_timestamp:");
2348
    sb.append(this.billing_timestamp);
2349
    first = false;
2350
    if (!first) sb.append(", ");
2351
    sb.append("shipping_timestamp:");
2352
    sb.append(this.shipping_timestamp);
2353
    first = false;
2354
    if (!first) sb.append(", ");
2355
    sb.append("delivery_timestamp:");
2356
    sb.append(this.delivery_timestamp);
2357
    first = false;
640 chandransh 2358
    if (!first) sb.append(", ");
2359
    sb.append("jacket_number:");
2360
    sb.append(this.jacket_number);
2361
    first = false;
483 rajveer 2362
    sb.append(")");
2363
    return sb.toString();
2364
  }
2365
 
2366
  public void validate() throws TException {
2367
    // check for required fields
2368
  }
2369
 
2370
}
2371