Subversion Repositories SmartDukaan

Rev

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