Subversion Repositories SmartDukaan

Rev

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