Subversion Repositories SmartDukaan

Rev

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