Subversion Repositories SmartDukaan

Rev

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