Subversion Repositories SmartDukaan

Rev

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