Subversion Repositories SmartDukaan

Rev

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