Subversion Repositories SmartDukaan

Rev

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

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