Subversion Repositories SmartDukaan

Rev

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