Subversion Repositories SmartDukaan

Rev

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