Subversion Repositories SmartDukaan

Rev

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