Subversion Repositories SmartDukaan

Rev

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