Subversion Repositories SmartDukaan

Rev

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