Subversion Repositories SmartDukaan

Rev

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

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