Subversion Repositories SmartDukaan

Rev

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