Subversion Repositories SmartDukaan

Rev

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