Subversion Repositories SmartDukaan

Rev

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