Subversion Repositories SmartDukaan

Rev

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