Subversion Repositories SmartDukaan

Rev

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