Subversion Repositories SmartDukaan

Rev

Rev 3061 | Rev 3553 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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