Subversion Repositories SmartDukaan

Rev

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