Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
4496 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.purchase;
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;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class LineItem implements org.apache.thrift.TBase<LineItem, LineItem._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LineItem");
25
 
26
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField PRODUCT_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("productGroup", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField UNFULFILLED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("unfulfilledQuantity", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)11);
37
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
38
  private static final org.apache.thrift.protocol.TField FULFILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilled", org.apache.thrift.protocol.TType.BOOL, (short)13);
4754 mandeep.dh 39
  private static final org.apache.thrift.protocol.TField COD_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("codCount", org.apache.thrift.protocol.TType.I64, (short)14);
6821 amar.kumar 40
  private static final org.apache.thrift.protocol.TField AVAILABLE_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("availableQuantity", org.apache.thrift.protocol.TType.I64, (short)15);
41
  private static final org.apache.thrift.protocol.TField RESERVED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("reservedQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
42
  private static final org.apache.thrift.protocol.TField AVG_SALES_FIELD_DESC = new org.apache.thrift.protocol.TField("avgSales", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
43
  private static final org.apache.thrift.protocol.TField MIN_STOCK_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("minStockLevel", org.apache.thrift.protocol.TType.I64, (short)18);
44
  private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDaysStock", org.apache.thrift.protocol.TType.I64, (short)19);
45
  private static final org.apache.thrift.protocol.TField SUGGESTED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("suggestedQuantity", org.apache.thrift.protocol.TType.I64, (short)20);
46
  private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_IN_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDaysInStock", org.apache.thrift.protocol.TType.I64, (short)21);
8182 amar.kumar 47
  private static final org.apache.thrift.protocol.TField RTO_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("rtoOrders", org.apache.thrift.protocol.TType.I64, (short)22);
48
  private static final org.apache.thrift.protocol.TField LAST_XDAYS_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastXdaysSale", org.apache.thrift.protocol.TType.STRING, (short)23);
49
  private static final org.apache.thrift.protocol.TField PREVIOUSLY_ORDERED_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("previouslyOrderedQty", org.apache.thrift.protocol.TType.I64, (short)24);
50
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)25);
9416 amar.kumar 51
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)26);
12357 manish.sha 52
  private static final org.apache.thrift.protocol.TField NLC_P_FIELD_DESC = new org.apache.thrift.protocol.TField("nlcP", org.apache.thrift.protocol.TType.DOUBLE, (short)27);
53
  private static final org.apache.thrift.protocol.TField VAT_DIFF_FIELD_DESC = new org.apache.thrift.protocol.TField("vatDiff", org.apache.thrift.protocol.TType.DOUBLE, (short)28);
21844 amit.gupta 54
  private static final org.apache.thrift.protocol.TField IGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("igstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)29);
55
  private static final org.apache.thrift.protocol.TField CGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("cgstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)30);
56
  private static final org.apache.thrift.protocol.TField SGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("sgstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)31);
57
  private static final org.apache.thrift.protocol.TField HSN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("hsnCode", org.apache.thrift.protocol.TType.STRING, (short)32);
4496 mandeep.dh 58
 
59
  private long orderId; // required
60
  private long itemId; // required
61
  private String productGroup; // required
62
  private String brand; // required
63
  private String modelNumber; // required
64
  private String modelName; // required
65
  private String color; // required
66
  private String itemNumber; // required
67
  private double quantity; // required
68
  private double unfulfilledQuantity; // required
69
  private long createdAt; // required
70
  private double unitPrice; // required
71
  private boolean fulfilled; // required
4754 mandeep.dh 72
  private long codCount; // required
6821 amar.kumar 73
  private long availableQuantity; // required
74
  private long reservedQuantity; // required
75
  private double avgSales; // required
76
  private long minStockLevel; // required
77
  private long numberOfDaysStock; // required
78
  private long suggestedQuantity; // required
79
  private long numberOfDaysInStock; // required
8182 amar.kumar 80
  private long rtoOrders; // required
6857 amar.kumar 81
  private String lastXdaysSale; // required
6880 amar.kumar 82
  private long previouslyOrderedQty; // required
7672 rajveer 83
  private double nlc; // required
9416 amar.kumar 84
  private double mrp; // required
12357 manish.sha 85
  private double nlcP; // required
86
  private double vatDiff; // required
21844 amit.gupta 87
  private double igstRate; // required
88
  private double cgstRate; // required
89
  private double sgstRate; // required
90
  private String hsnCode; // required
4496 mandeep.dh 91
 
92
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
93
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
94
    ORDER_ID((short)1, "orderId"),
95
    ITEM_ID((short)2, "itemId"),
96
    PRODUCT_GROUP((short)3, "productGroup"),
97
    BRAND((short)4, "brand"),
98
    MODEL_NUMBER((short)5, "modelNumber"),
99
    MODEL_NAME((short)6, "modelName"),
100
    COLOR((short)7, "color"),
101
    ITEM_NUMBER((short)8, "itemNumber"),
102
    QUANTITY((short)9, "quantity"),
103
    UNFULFILLED_QUANTITY((short)10, "unfulfilledQuantity"),
104
    CREATED_AT((short)11, "createdAt"),
105
    UNIT_PRICE((short)12, "unitPrice"),
4754 mandeep.dh 106
    FULFILLED((short)13, "fulfilled"),
6821 amar.kumar 107
    COD_COUNT((short)14, "codCount"),
108
    AVAILABLE_QUANTITY((short)15, "availableQuantity"),
109
    RESERVED_QUANTITY((short)16, "reservedQuantity"),
110
    AVG_SALES((short)17, "avgSales"),
111
    MIN_STOCK_LEVEL((short)18, "minStockLevel"),
112
    NUMBER_OF_DAYS_STOCK((short)19, "numberOfDaysStock"),
113
    SUGGESTED_QUANTITY((short)20, "suggestedQuantity"),
6857 amar.kumar 114
    NUMBER_OF_DAYS_IN_STOCK((short)21, "numberOfDaysInStock"),
8182 amar.kumar 115
    RTO_ORDERS((short)22, "rtoOrders"),
116
    LAST_XDAYS_SALE((short)23, "lastXdaysSale"),
117
    PREVIOUSLY_ORDERED_QTY((short)24, "previouslyOrderedQty"),
9416 amar.kumar 118
    NLC((short)25, "nlc"),
12357 manish.sha 119
    MRP((short)26, "mrp"),
120
    NLC_P((short)27, "nlcP"),
21844 amit.gupta 121
    VAT_DIFF((short)28, "vatDiff"),
122
    IGST_RATE((short)29, "igstRate"),
123
    CGST_RATE((short)30, "cgstRate"),
124
    SGST_RATE((short)31, "sgstRate"),
125
    HSN_CODE((short)32, "hsnCode");
4496 mandeep.dh 126
 
127
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
128
 
129
    static {
130
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
131
        byName.put(field.getFieldName(), field);
132
      }
133
    }
134
 
135
    /**
136
     * Find the _Fields constant that matches fieldId, or null if its not found.
137
     */
138
    public static _Fields findByThriftId(int fieldId) {
139
      switch(fieldId) {
140
        case 1: // ORDER_ID
141
          return ORDER_ID;
142
        case 2: // ITEM_ID
143
          return ITEM_ID;
144
        case 3: // PRODUCT_GROUP
145
          return PRODUCT_GROUP;
146
        case 4: // BRAND
147
          return BRAND;
148
        case 5: // MODEL_NUMBER
149
          return MODEL_NUMBER;
150
        case 6: // MODEL_NAME
151
          return MODEL_NAME;
152
        case 7: // COLOR
153
          return COLOR;
154
        case 8: // ITEM_NUMBER
155
          return ITEM_NUMBER;
156
        case 9: // QUANTITY
157
          return QUANTITY;
158
        case 10: // UNFULFILLED_QUANTITY
159
          return UNFULFILLED_QUANTITY;
160
        case 11: // CREATED_AT
161
          return CREATED_AT;
162
        case 12: // UNIT_PRICE
163
          return UNIT_PRICE;
164
        case 13: // FULFILLED
165
          return FULFILLED;
4754 mandeep.dh 166
        case 14: // COD_COUNT
167
          return COD_COUNT;
6821 amar.kumar 168
        case 15: // AVAILABLE_QUANTITY
169
          return AVAILABLE_QUANTITY;
170
        case 16: // RESERVED_QUANTITY
171
          return RESERVED_QUANTITY;
172
        case 17: // AVG_SALES
173
          return AVG_SALES;
174
        case 18: // MIN_STOCK_LEVEL
175
          return MIN_STOCK_LEVEL;
176
        case 19: // NUMBER_OF_DAYS_STOCK
177
          return NUMBER_OF_DAYS_STOCK;
178
        case 20: // SUGGESTED_QUANTITY
179
          return SUGGESTED_QUANTITY;
180
        case 21: // NUMBER_OF_DAYS_IN_STOCK
181
          return NUMBER_OF_DAYS_IN_STOCK;
8182 amar.kumar 182
        case 22: // RTO_ORDERS
183
          return RTO_ORDERS;
184
        case 23: // LAST_XDAYS_SALE
6857 amar.kumar 185
          return LAST_XDAYS_SALE;
8182 amar.kumar 186
        case 24: // PREVIOUSLY_ORDERED_QTY
6880 amar.kumar 187
          return PREVIOUSLY_ORDERED_QTY;
8182 amar.kumar 188
        case 25: // NLC
7672 rajveer 189
          return NLC;
9416 amar.kumar 190
        case 26: // MRP
191
          return MRP;
12357 manish.sha 192
        case 27: // NLC_P
193
          return NLC_P;
194
        case 28: // VAT_DIFF
195
          return VAT_DIFF;
21844 amit.gupta 196
        case 29: // IGST_RATE
197
          return IGST_RATE;
198
        case 30: // CGST_RATE
199
          return CGST_RATE;
200
        case 31: // SGST_RATE
201
          return SGST_RATE;
202
        case 32: // HSN_CODE
203
          return HSN_CODE;
4496 mandeep.dh 204
        default:
205
          return null;
206
      }
207
    }
208
 
209
    /**
210
     * Find the _Fields constant that matches fieldId, throwing an exception
211
     * if it is not found.
212
     */
213
    public static _Fields findByThriftIdOrThrow(int fieldId) {
214
      _Fields fields = findByThriftId(fieldId);
215
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
216
      return fields;
217
    }
218
 
219
    /**
220
     * Find the _Fields constant that matches name, or null if its not found.
221
     */
222
    public static _Fields findByName(String name) {
223
      return byName.get(name);
224
    }
225
 
226
    private final short _thriftId;
227
    private final String _fieldName;
228
 
229
    _Fields(short thriftId, String fieldName) {
230
      _thriftId = thriftId;
231
      _fieldName = fieldName;
232
    }
233
 
234
    public short getThriftFieldId() {
235
      return _thriftId;
236
    }
237
 
238
    public String getFieldName() {
239
      return _fieldName;
240
    }
241
  }
242
 
243
  // isset id assignments
244
  private static final int __ORDERID_ISSET_ID = 0;
245
  private static final int __ITEMID_ISSET_ID = 1;
246
  private static final int __QUANTITY_ISSET_ID = 2;
247
  private static final int __UNFULFILLEDQUANTITY_ISSET_ID = 3;
248
  private static final int __CREATEDAT_ISSET_ID = 4;
249
  private static final int __UNITPRICE_ISSET_ID = 5;
250
  private static final int __FULFILLED_ISSET_ID = 6;
4754 mandeep.dh 251
  private static final int __CODCOUNT_ISSET_ID = 7;
6821 amar.kumar 252
  private static final int __AVAILABLEQUANTITY_ISSET_ID = 8;
253
  private static final int __RESERVEDQUANTITY_ISSET_ID = 9;
254
  private static final int __AVGSALES_ISSET_ID = 10;
255
  private static final int __MINSTOCKLEVEL_ISSET_ID = 11;
256
  private static final int __NUMBEROFDAYSSTOCK_ISSET_ID = 12;
257
  private static final int __SUGGESTEDQUANTITY_ISSET_ID = 13;
258
  private static final int __NUMBEROFDAYSINSTOCK_ISSET_ID = 14;
8182 amar.kumar 259
  private static final int __RTOORDERS_ISSET_ID = 15;
260
  private static final int __PREVIOUSLYORDEREDQTY_ISSET_ID = 16;
261
  private static final int __NLC_ISSET_ID = 17;
9416 amar.kumar 262
  private static final int __MRP_ISSET_ID = 18;
12357 manish.sha 263
  private static final int __NLCP_ISSET_ID = 19;
264
  private static final int __VATDIFF_ISSET_ID = 20;
21844 amit.gupta 265
  private static final int __IGSTRATE_ISSET_ID = 21;
266
  private static final int __CGSTRATE_ISSET_ID = 22;
267
  private static final int __SGSTRATE_ISSET_ID = 23;
268
  private BitSet __isset_bit_vector = new BitSet(24);
4496 mandeep.dh 269
 
270
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
271
  static {
272
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
273
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
274
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
275
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
276
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
277
    tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
278
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
279
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
280
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
281
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
282
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
283
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
284
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
285
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
286
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
287
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
288
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
289
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
290
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
291
    tmpMap.put(_Fields.UNFULFILLED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("unfulfilledQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
292
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
293
    tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
294
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
295
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
296
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
297
    tmpMap.put(_Fields.FULFILLED, new org.apache.thrift.meta_data.FieldMetaData("fulfilled", org.apache.thrift.TFieldRequirementType.DEFAULT, 
298
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
4754 mandeep.dh 299
    tmpMap.put(_Fields.COD_COUNT, new org.apache.thrift.meta_data.FieldMetaData("codCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
300
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6821 amar.kumar 301
    tmpMap.put(_Fields.AVAILABLE_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("availableQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
302
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
303
    tmpMap.put(_Fields.RESERVED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("reservedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
304
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
305
    tmpMap.put(_Fields.AVG_SALES, new org.apache.thrift.meta_data.FieldMetaData("avgSales", org.apache.thrift.TFieldRequirementType.DEFAULT, 
306
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
307
    tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
308
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
309
    tmpMap.put(_Fields.NUMBER_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
310
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
311
    tmpMap.put(_Fields.SUGGESTED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("suggestedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
312
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
313
    tmpMap.put(_Fields.NUMBER_OF_DAYS_IN_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysInStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
314
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8182 amar.kumar 315
    tmpMap.put(_Fields.RTO_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("rtoOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
316
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6857 amar.kumar 317
    tmpMap.put(_Fields.LAST_XDAYS_SALE, new org.apache.thrift.meta_data.FieldMetaData("lastXdaysSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
318
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6880 amar.kumar 319
    tmpMap.put(_Fields.PREVIOUSLY_ORDERED_QTY, new org.apache.thrift.meta_data.FieldMetaData("previouslyOrderedQty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
320
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7672 rajveer 321
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
322
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
9416 amar.kumar 323
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
324
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
12357 manish.sha 325
    tmpMap.put(_Fields.NLC_P, new org.apache.thrift.meta_data.FieldMetaData("nlcP", org.apache.thrift.TFieldRequirementType.DEFAULT, 
326
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
327
    tmpMap.put(_Fields.VAT_DIFF, new org.apache.thrift.meta_data.FieldMetaData("vatDiff", org.apache.thrift.TFieldRequirementType.DEFAULT, 
328
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21844 amit.gupta 329
    tmpMap.put(_Fields.IGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("igstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
330
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
331
    tmpMap.put(_Fields.CGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("cgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
332
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
333
    tmpMap.put(_Fields.SGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("sgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
334
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
335
    tmpMap.put(_Fields.HSN_CODE, new org.apache.thrift.meta_data.FieldMetaData("hsnCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
336
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4496 mandeep.dh 337
    metaDataMap = Collections.unmodifiableMap(tmpMap);
338
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
339
  }
340
 
341
  public LineItem() {
342
  }
343
 
344
  public LineItem(
345
    long orderId,
346
    long itemId,
347
    String productGroup,
348
    String brand,
349
    String modelNumber,
350
    String modelName,
351
    String color,
352
    String itemNumber,
353
    double quantity,
354
    double unfulfilledQuantity,
355
    long createdAt,
356
    double unitPrice,
4754 mandeep.dh 357
    boolean fulfilled,
6821 amar.kumar 358
    long codCount,
359
    long availableQuantity,
360
    long reservedQuantity,
361
    double avgSales,
362
    long minStockLevel,
363
    long numberOfDaysStock,
364
    long suggestedQuantity,
6857 amar.kumar 365
    long numberOfDaysInStock,
8182 amar.kumar 366
    long rtoOrders,
6880 amar.kumar 367
    String lastXdaysSale,
7672 rajveer 368
    long previouslyOrderedQty,
9416 amar.kumar 369
    double nlc,
12357 manish.sha 370
    double mrp,
371
    double nlcP,
21844 amit.gupta 372
    double vatDiff,
373
    double igstRate,
374
    double cgstRate,
375
    double sgstRate,
376
    String hsnCode)
4496 mandeep.dh 377
  {
378
    this();
379
    this.orderId = orderId;
380
    setOrderIdIsSet(true);
381
    this.itemId = itemId;
382
    setItemIdIsSet(true);
383
    this.productGroup = productGroup;
384
    this.brand = brand;
385
    this.modelNumber = modelNumber;
386
    this.modelName = modelName;
387
    this.color = color;
388
    this.itemNumber = itemNumber;
389
    this.quantity = quantity;
390
    setQuantityIsSet(true);
391
    this.unfulfilledQuantity = unfulfilledQuantity;
392
    setUnfulfilledQuantityIsSet(true);
393
    this.createdAt = createdAt;
394
    setCreatedAtIsSet(true);
395
    this.unitPrice = unitPrice;
396
    setUnitPriceIsSet(true);
397
    this.fulfilled = fulfilled;
398
    setFulfilledIsSet(true);
4754 mandeep.dh 399
    this.codCount = codCount;
400
    setCodCountIsSet(true);
6821 amar.kumar 401
    this.availableQuantity = availableQuantity;
402
    setAvailableQuantityIsSet(true);
403
    this.reservedQuantity = reservedQuantity;
404
    setReservedQuantityIsSet(true);
405
    this.avgSales = avgSales;
406
    setAvgSalesIsSet(true);
407
    this.minStockLevel = minStockLevel;
408
    setMinStockLevelIsSet(true);
409
    this.numberOfDaysStock = numberOfDaysStock;
410
    setNumberOfDaysStockIsSet(true);
411
    this.suggestedQuantity = suggestedQuantity;
412
    setSuggestedQuantityIsSet(true);
413
    this.numberOfDaysInStock = numberOfDaysInStock;
414
    setNumberOfDaysInStockIsSet(true);
8182 amar.kumar 415
    this.rtoOrders = rtoOrders;
416
    setRtoOrdersIsSet(true);
6857 amar.kumar 417
    this.lastXdaysSale = lastXdaysSale;
6880 amar.kumar 418
    this.previouslyOrderedQty = previouslyOrderedQty;
419
    setPreviouslyOrderedQtyIsSet(true);
7672 rajveer 420
    this.nlc = nlc;
421
    setNlcIsSet(true);
9416 amar.kumar 422
    this.mrp = mrp;
423
    setMrpIsSet(true);
12357 manish.sha 424
    this.nlcP = nlcP;
425
    setNlcPIsSet(true);
426
    this.vatDiff = vatDiff;
427
    setVatDiffIsSet(true);
21844 amit.gupta 428
    this.igstRate = igstRate;
429
    setIgstRateIsSet(true);
430
    this.cgstRate = cgstRate;
431
    setCgstRateIsSet(true);
432
    this.sgstRate = sgstRate;
433
    setSgstRateIsSet(true);
434
    this.hsnCode = hsnCode;
4496 mandeep.dh 435
  }
436
 
437
  /**
438
   * Performs a deep copy on <i>other</i>.
439
   */
440
  public LineItem(LineItem other) {
441
    __isset_bit_vector.clear();
442
    __isset_bit_vector.or(other.__isset_bit_vector);
443
    this.orderId = other.orderId;
444
    this.itemId = other.itemId;
445
    if (other.isSetProductGroup()) {
446
      this.productGroup = other.productGroup;
447
    }
448
    if (other.isSetBrand()) {
449
      this.brand = other.brand;
450
    }
451
    if (other.isSetModelNumber()) {
452
      this.modelNumber = other.modelNumber;
453
    }
454
    if (other.isSetModelName()) {
455
      this.modelName = other.modelName;
456
    }
457
    if (other.isSetColor()) {
458
      this.color = other.color;
459
    }
460
    if (other.isSetItemNumber()) {
461
      this.itemNumber = other.itemNumber;
462
    }
463
    this.quantity = other.quantity;
464
    this.unfulfilledQuantity = other.unfulfilledQuantity;
465
    this.createdAt = other.createdAt;
466
    this.unitPrice = other.unitPrice;
467
    this.fulfilled = other.fulfilled;
4754 mandeep.dh 468
    this.codCount = other.codCount;
6821 amar.kumar 469
    this.availableQuantity = other.availableQuantity;
470
    this.reservedQuantity = other.reservedQuantity;
471
    this.avgSales = other.avgSales;
472
    this.minStockLevel = other.minStockLevel;
473
    this.numberOfDaysStock = other.numberOfDaysStock;
474
    this.suggestedQuantity = other.suggestedQuantity;
475
    this.numberOfDaysInStock = other.numberOfDaysInStock;
8182 amar.kumar 476
    this.rtoOrders = other.rtoOrders;
6857 amar.kumar 477
    if (other.isSetLastXdaysSale()) {
478
      this.lastXdaysSale = other.lastXdaysSale;
479
    }
6880 amar.kumar 480
    this.previouslyOrderedQty = other.previouslyOrderedQty;
7672 rajveer 481
    this.nlc = other.nlc;
9416 amar.kumar 482
    this.mrp = other.mrp;
12357 manish.sha 483
    this.nlcP = other.nlcP;
484
    this.vatDiff = other.vatDiff;
21844 amit.gupta 485
    this.igstRate = other.igstRate;
486
    this.cgstRate = other.cgstRate;
487
    this.sgstRate = other.sgstRate;
488
    if (other.isSetHsnCode()) {
489
      this.hsnCode = other.hsnCode;
490
    }
4496 mandeep.dh 491
  }
492
 
493
  public LineItem deepCopy() {
494
    return new LineItem(this);
495
  }
496
 
497
  @Override
498
  public void clear() {
499
    setOrderIdIsSet(false);
500
    this.orderId = 0;
501
    setItemIdIsSet(false);
502
    this.itemId = 0;
503
    this.productGroup = null;
504
    this.brand = null;
505
    this.modelNumber = null;
506
    this.modelName = null;
507
    this.color = null;
508
    this.itemNumber = null;
509
    setQuantityIsSet(false);
510
    this.quantity = 0.0;
511
    setUnfulfilledQuantityIsSet(false);
512
    this.unfulfilledQuantity = 0.0;
513
    setCreatedAtIsSet(false);
514
    this.createdAt = 0;
515
    setUnitPriceIsSet(false);
516
    this.unitPrice = 0.0;
517
    setFulfilledIsSet(false);
518
    this.fulfilled = false;
4754 mandeep.dh 519
    setCodCountIsSet(false);
520
    this.codCount = 0;
6821 amar.kumar 521
    setAvailableQuantityIsSet(false);
522
    this.availableQuantity = 0;
523
    setReservedQuantityIsSet(false);
524
    this.reservedQuantity = 0;
525
    setAvgSalesIsSet(false);
526
    this.avgSales = 0.0;
527
    setMinStockLevelIsSet(false);
528
    this.minStockLevel = 0;
529
    setNumberOfDaysStockIsSet(false);
530
    this.numberOfDaysStock = 0;
531
    setSuggestedQuantityIsSet(false);
532
    this.suggestedQuantity = 0;
533
    setNumberOfDaysInStockIsSet(false);
534
    this.numberOfDaysInStock = 0;
8182 amar.kumar 535
    setRtoOrdersIsSet(false);
536
    this.rtoOrders = 0;
6857 amar.kumar 537
    this.lastXdaysSale = null;
6880 amar.kumar 538
    setPreviouslyOrderedQtyIsSet(false);
539
    this.previouslyOrderedQty = 0;
7672 rajveer 540
    setNlcIsSet(false);
541
    this.nlc = 0.0;
9416 amar.kumar 542
    setMrpIsSet(false);
543
    this.mrp = 0.0;
12357 manish.sha 544
    setNlcPIsSet(false);
545
    this.nlcP = 0.0;
546
    setVatDiffIsSet(false);
547
    this.vatDiff = 0.0;
21844 amit.gupta 548
    setIgstRateIsSet(false);
549
    this.igstRate = 0.0;
550
    setCgstRateIsSet(false);
551
    this.cgstRate = 0.0;
552
    setSgstRateIsSet(false);
553
    this.sgstRate = 0.0;
554
    this.hsnCode = null;
4496 mandeep.dh 555
  }
556
 
557
  public long getOrderId() {
558
    return this.orderId;
559
  }
560
 
561
  public void setOrderId(long orderId) {
562
    this.orderId = orderId;
563
    setOrderIdIsSet(true);
564
  }
565
 
566
  public void unsetOrderId() {
567
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
568
  }
569
 
570
  /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
571
  public boolean isSetOrderId() {
572
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
573
  }
574
 
575
  public void setOrderIdIsSet(boolean value) {
576
    __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
577
  }
578
 
579
  public long getItemId() {
580
    return this.itemId;
581
  }
582
 
583
  public void setItemId(long itemId) {
584
    this.itemId = itemId;
585
    setItemIdIsSet(true);
586
  }
587
 
588
  public void unsetItemId() {
589
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
590
  }
591
 
592
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
593
  public boolean isSetItemId() {
594
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
595
  }
596
 
597
  public void setItemIdIsSet(boolean value) {
598
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
599
  }
600
 
601
  public String getProductGroup() {
602
    return this.productGroup;
603
  }
604
 
605
  public void setProductGroup(String productGroup) {
606
    this.productGroup = productGroup;
607
  }
608
 
609
  public void unsetProductGroup() {
610
    this.productGroup = null;
611
  }
612
 
613
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
614
  public boolean isSetProductGroup() {
615
    return this.productGroup != null;
616
  }
617
 
618
  public void setProductGroupIsSet(boolean value) {
619
    if (!value) {
620
      this.productGroup = null;
621
    }
622
  }
623
 
624
  public String getBrand() {
625
    return this.brand;
626
  }
627
 
628
  public void setBrand(String brand) {
629
    this.brand = brand;
630
  }
631
 
632
  public void unsetBrand() {
633
    this.brand = null;
634
  }
635
 
636
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
637
  public boolean isSetBrand() {
638
    return this.brand != null;
639
  }
640
 
641
  public void setBrandIsSet(boolean value) {
642
    if (!value) {
643
      this.brand = null;
644
    }
645
  }
646
 
647
  public String getModelNumber() {
648
    return this.modelNumber;
649
  }
650
 
651
  public void setModelNumber(String modelNumber) {
652
    this.modelNumber = modelNumber;
653
  }
654
 
655
  public void unsetModelNumber() {
656
    this.modelNumber = null;
657
  }
658
 
659
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
660
  public boolean isSetModelNumber() {
661
    return this.modelNumber != null;
662
  }
663
 
664
  public void setModelNumberIsSet(boolean value) {
665
    if (!value) {
666
      this.modelNumber = null;
667
    }
668
  }
669
 
670
  public String getModelName() {
671
    return this.modelName;
672
  }
673
 
674
  public void setModelName(String modelName) {
675
    this.modelName = modelName;
676
  }
677
 
678
  public void unsetModelName() {
679
    this.modelName = null;
680
  }
681
 
682
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
683
  public boolean isSetModelName() {
684
    return this.modelName != null;
685
  }
686
 
687
  public void setModelNameIsSet(boolean value) {
688
    if (!value) {
689
      this.modelName = null;
690
    }
691
  }
692
 
693
  public String getColor() {
694
    return this.color;
695
  }
696
 
697
  public void setColor(String color) {
698
    this.color = color;
699
  }
700
 
701
  public void unsetColor() {
702
    this.color = null;
703
  }
704
 
705
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
706
  public boolean isSetColor() {
707
    return this.color != null;
708
  }
709
 
710
  public void setColorIsSet(boolean value) {
711
    if (!value) {
712
      this.color = null;
713
    }
714
  }
715
 
716
  public String getItemNumber() {
717
    return this.itemNumber;
718
  }
719
 
720
  public void setItemNumber(String itemNumber) {
721
    this.itemNumber = itemNumber;
722
  }
723
 
724
  public void unsetItemNumber() {
725
    this.itemNumber = null;
726
  }
727
 
728
  /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
729
  public boolean isSetItemNumber() {
730
    return this.itemNumber != null;
731
  }
732
 
733
  public void setItemNumberIsSet(boolean value) {
734
    if (!value) {
735
      this.itemNumber = null;
736
    }
737
  }
738
 
739
  public double getQuantity() {
740
    return this.quantity;
741
  }
742
 
743
  public void setQuantity(double quantity) {
744
    this.quantity = quantity;
745
    setQuantityIsSet(true);
746
  }
747
 
748
  public void unsetQuantity() {
749
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
750
  }
751
 
752
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
753
  public boolean isSetQuantity() {
754
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
755
  }
756
 
757
  public void setQuantityIsSet(boolean value) {
758
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
759
  }
760
 
761
  public double getUnfulfilledQuantity() {
762
    return this.unfulfilledQuantity;
763
  }
764
 
765
  public void setUnfulfilledQuantity(double unfulfilledQuantity) {
766
    this.unfulfilledQuantity = unfulfilledQuantity;
767
    setUnfulfilledQuantityIsSet(true);
768
  }
769
 
770
  public void unsetUnfulfilledQuantity() {
771
    __isset_bit_vector.clear(__UNFULFILLEDQUANTITY_ISSET_ID);
772
  }
773
 
774
  /** Returns true if field unfulfilledQuantity is set (has been assigned a value) and false otherwise */
775
  public boolean isSetUnfulfilledQuantity() {
776
    return __isset_bit_vector.get(__UNFULFILLEDQUANTITY_ISSET_ID);
777
  }
778
 
779
  public void setUnfulfilledQuantityIsSet(boolean value) {
780
    __isset_bit_vector.set(__UNFULFILLEDQUANTITY_ISSET_ID, value);
781
  }
782
 
783
  public long getCreatedAt() {
784
    return this.createdAt;
785
  }
786
 
787
  public void setCreatedAt(long createdAt) {
788
    this.createdAt = createdAt;
789
    setCreatedAtIsSet(true);
790
  }
791
 
792
  public void unsetCreatedAt() {
793
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
794
  }
795
 
796
  /** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
797
  public boolean isSetCreatedAt() {
798
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
799
  }
800
 
801
  public void setCreatedAtIsSet(boolean value) {
802
    __isset_bit_vector.set(__CREATEDAT_ISSET_ID, value);
803
  }
804
 
805
  public double getUnitPrice() {
806
    return this.unitPrice;
807
  }
808
 
809
  public void setUnitPrice(double unitPrice) {
810
    this.unitPrice = unitPrice;
811
    setUnitPriceIsSet(true);
812
  }
813
 
814
  public void unsetUnitPrice() {
815
    __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
816
  }
817
 
818
  /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
819
  public boolean isSetUnitPrice() {
820
    return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
821
  }
822
 
823
  public void setUnitPriceIsSet(boolean value) {
824
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
825
  }
826
 
827
  public boolean isFulfilled() {
828
    return this.fulfilled;
829
  }
830
 
831
  public void setFulfilled(boolean fulfilled) {
832
    this.fulfilled = fulfilled;
833
    setFulfilledIsSet(true);
834
  }
835
 
836
  public void unsetFulfilled() {
837
    __isset_bit_vector.clear(__FULFILLED_ISSET_ID);
838
  }
839
 
840
  /** Returns true if field fulfilled is set (has been assigned a value) and false otherwise */
841
  public boolean isSetFulfilled() {
842
    return __isset_bit_vector.get(__FULFILLED_ISSET_ID);
843
  }
844
 
845
  public void setFulfilledIsSet(boolean value) {
846
    __isset_bit_vector.set(__FULFILLED_ISSET_ID, value);
847
  }
848
 
4754 mandeep.dh 849
  public long getCodCount() {
850
    return this.codCount;
851
  }
852
 
853
  public void setCodCount(long codCount) {
854
    this.codCount = codCount;
855
    setCodCountIsSet(true);
856
  }
857
 
858
  public void unsetCodCount() {
859
    __isset_bit_vector.clear(__CODCOUNT_ISSET_ID);
860
  }
861
 
862
  /** Returns true if field codCount is set (has been assigned a value) and false otherwise */
863
  public boolean isSetCodCount() {
864
    return __isset_bit_vector.get(__CODCOUNT_ISSET_ID);
865
  }
866
 
867
  public void setCodCountIsSet(boolean value) {
868
    __isset_bit_vector.set(__CODCOUNT_ISSET_ID, value);
869
  }
870
 
6821 amar.kumar 871
  public long getAvailableQuantity() {
872
    return this.availableQuantity;
873
  }
874
 
875
  public void setAvailableQuantity(long availableQuantity) {
876
    this.availableQuantity = availableQuantity;
877
    setAvailableQuantityIsSet(true);
878
  }
879
 
880
  public void unsetAvailableQuantity() {
881
    __isset_bit_vector.clear(__AVAILABLEQUANTITY_ISSET_ID);
882
  }
883
 
884
  /** Returns true if field availableQuantity is set (has been assigned a value) and false otherwise */
885
  public boolean isSetAvailableQuantity() {
886
    return __isset_bit_vector.get(__AVAILABLEQUANTITY_ISSET_ID);
887
  }
888
 
889
  public void setAvailableQuantityIsSet(boolean value) {
890
    __isset_bit_vector.set(__AVAILABLEQUANTITY_ISSET_ID, value);
891
  }
892
 
893
  public long getReservedQuantity() {
894
    return this.reservedQuantity;
895
  }
896
 
897
  public void setReservedQuantity(long reservedQuantity) {
898
    this.reservedQuantity = reservedQuantity;
899
    setReservedQuantityIsSet(true);
900
  }
901
 
902
  public void unsetReservedQuantity() {
903
    __isset_bit_vector.clear(__RESERVEDQUANTITY_ISSET_ID);
904
  }
905
 
906
  /** Returns true if field reservedQuantity is set (has been assigned a value) and false otherwise */
907
  public boolean isSetReservedQuantity() {
908
    return __isset_bit_vector.get(__RESERVEDQUANTITY_ISSET_ID);
909
  }
910
 
911
  public void setReservedQuantityIsSet(boolean value) {
912
    __isset_bit_vector.set(__RESERVEDQUANTITY_ISSET_ID, value);
913
  }
914
 
915
  public double getAvgSales() {
916
    return this.avgSales;
917
  }
918
 
919
  public void setAvgSales(double avgSales) {
920
    this.avgSales = avgSales;
921
    setAvgSalesIsSet(true);
922
  }
923
 
924
  public void unsetAvgSales() {
925
    __isset_bit_vector.clear(__AVGSALES_ISSET_ID);
926
  }
927
 
928
  /** Returns true if field avgSales is set (has been assigned a value) and false otherwise */
929
  public boolean isSetAvgSales() {
930
    return __isset_bit_vector.get(__AVGSALES_ISSET_ID);
931
  }
932
 
933
  public void setAvgSalesIsSet(boolean value) {
934
    __isset_bit_vector.set(__AVGSALES_ISSET_ID, value);
935
  }
936
 
937
  public long getMinStockLevel() {
938
    return this.minStockLevel;
939
  }
940
 
941
  public void setMinStockLevel(long minStockLevel) {
942
    this.minStockLevel = minStockLevel;
943
    setMinStockLevelIsSet(true);
944
  }
945
 
946
  public void unsetMinStockLevel() {
947
    __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
948
  }
949
 
950
  /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
951
  public boolean isSetMinStockLevel() {
952
    return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
953
  }
954
 
955
  public void setMinStockLevelIsSet(boolean value) {
956
    __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
957
  }
958
 
959
  public long getNumberOfDaysStock() {
960
    return this.numberOfDaysStock;
961
  }
962
 
963
  public void setNumberOfDaysStock(long numberOfDaysStock) {
964
    this.numberOfDaysStock = numberOfDaysStock;
965
    setNumberOfDaysStockIsSet(true);
966
  }
967
 
968
  public void unsetNumberOfDaysStock() {
969
    __isset_bit_vector.clear(__NUMBEROFDAYSSTOCK_ISSET_ID);
970
  }
971
 
972
  /** Returns true if field numberOfDaysStock is set (has been assigned a value) and false otherwise */
973
  public boolean isSetNumberOfDaysStock() {
974
    return __isset_bit_vector.get(__NUMBEROFDAYSSTOCK_ISSET_ID);
975
  }
976
 
977
  public void setNumberOfDaysStockIsSet(boolean value) {
978
    __isset_bit_vector.set(__NUMBEROFDAYSSTOCK_ISSET_ID, value);
979
  }
980
 
981
  public long getSuggestedQuantity() {
982
    return this.suggestedQuantity;
983
  }
984
 
985
  public void setSuggestedQuantity(long suggestedQuantity) {
986
    this.suggestedQuantity = suggestedQuantity;
987
    setSuggestedQuantityIsSet(true);
988
  }
989
 
990
  public void unsetSuggestedQuantity() {
991
    __isset_bit_vector.clear(__SUGGESTEDQUANTITY_ISSET_ID);
992
  }
993
 
994
  /** Returns true if field suggestedQuantity is set (has been assigned a value) and false otherwise */
995
  public boolean isSetSuggestedQuantity() {
996
    return __isset_bit_vector.get(__SUGGESTEDQUANTITY_ISSET_ID);
997
  }
998
 
999
  public void setSuggestedQuantityIsSet(boolean value) {
1000
    __isset_bit_vector.set(__SUGGESTEDQUANTITY_ISSET_ID, value);
1001
  }
1002
 
1003
  public long getNumberOfDaysInStock() {
1004
    return this.numberOfDaysInStock;
1005
  }
1006
 
1007
  public void setNumberOfDaysInStock(long numberOfDaysInStock) {
1008
    this.numberOfDaysInStock = numberOfDaysInStock;
1009
    setNumberOfDaysInStockIsSet(true);
1010
  }
1011
 
1012
  public void unsetNumberOfDaysInStock() {
1013
    __isset_bit_vector.clear(__NUMBEROFDAYSINSTOCK_ISSET_ID);
1014
  }
1015
 
1016
  /** Returns true if field numberOfDaysInStock is set (has been assigned a value) and false otherwise */
1017
  public boolean isSetNumberOfDaysInStock() {
1018
    return __isset_bit_vector.get(__NUMBEROFDAYSINSTOCK_ISSET_ID);
1019
  }
1020
 
1021
  public void setNumberOfDaysInStockIsSet(boolean value) {
1022
    __isset_bit_vector.set(__NUMBEROFDAYSINSTOCK_ISSET_ID, value);
1023
  }
1024
 
8182 amar.kumar 1025
  public long getRtoOrders() {
1026
    return this.rtoOrders;
1027
  }
1028
 
1029
  public void setRtoOrders(long rtoOrders) {
1030
    this.rtoOrders = rtoOrders;
1031
    setRtoOrdersIsSet(true);
1032
  }
1033
 
1034
  public void unsetRtoOrders() {
1035
    __isset_bit_vector.clear(__RTOORDERS_ISSET_ID);
1036
  }
1037
 
1038
  /** Returns true if field rtoOrders is set (has been assigned a value) and false otherwise */
1039
  public boolean isSetRtoOrders() {
1040
    return __isset_bit_vector.get(__RTOORDERS_ISSET_ID);
1041
  }
1042
 
1043
  public void setRtoOrdersIsSet(boolean value) {
1044
    __isset_bit_vector.set(__RTOORDERS_ISSET_ID, value);
1045
  }
1046
 
6857 amar.kumar 1047
  public String getLastXdaysSale() {
1048
    return this.lastXdaysSale;
1049
  }
1050
 
1051
  public void setLastXdaysSale(String lastXdaysSale) {
1052
    this.lastXdaysSale = lastXdaysSale;
1053
  }
1054
 
1055
  public void unsetLastXdaysSale() {
1056
    this.lastXdaysSale = null;
1057
  }
1058
 
1059
  /** Returns true if field lastXdaysSale is set (has been assigned a value) and false otherwise */
1060
  public boolean isSetLastXdaysSale() {
1061
    return this.lastXdaysSale != null;
1062
  }
1063
 
1064
  public void setLastXdaysSaleIsSet(boolean value) {
1065
    if (!value) {
1066
      this.lastXdaysSale = null;
1067
    }
1068
  }
1069
 
6880 amar.kumar 1070
  public long getPreviouslyOrderedQty() {
1071
    return this.previouslyOrderedQty;
1072
  }
1073
 
1074
  public void setPreviouslyOrderedQty(long previouslyOrderedQty) {
1075
    this.previouslyOrderedQty = previouslyOrderedQty;
1076
    setPreviouslyOrderedQtyIsSet(true);
1077
  }
1078
 
1079
  public void unsetPreviouslyOrderedQty() {
1080
    __isset_bit_vector.clear(__PREVIOUSLYORDEREDQTY_ISSET_ID);
1081
  }
1082
 
1083
  /** Returns true if field previouslyOrderedQty is set (has been assigned a value) and false otherwise */
1084
  public boolean isSetPreviouslyOrderedQty() {
1085
    return __isset_bit_vector.get(__PREVIOUSLYORDEREDQTY_ISSET_ID);
1086
  }
1087
 
1088
  public void setPreviouslyOrderedQtyIsSet(boolean value) {
1089
    __isset_bit_vector.set(__PREVIOUSLYORDEREDQTY_ISSET_ID, value);
1090
  }
1091
 
7672 rajveer 1092
  public double getNlc() {
1093
    return this.nlc;
1094
  }
1095
 
1096
  public void setNlc(double nlc) {
1097
    this.nlc = nlc;
1098
    setNlcIsSet(true);
1099
  }
1100
 
1101
  public void unsetNlc() {
1102
    __isset_bit_vector.clear(__NLC_ISSET_ID);
1103
  }
1104
 
1105
  /** Returns true if field nlc is set (has been assigned a value) and false otherwise */
1106
  public boolean isSetNlc() {
1107
    return __isset_bit_vector.get(__NLC_ISSET_ID);
1108
  }
1109
 
1110
  public void setNlcIsSet(boolean value) {
1111
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
1112
  }
1113
 
9416 amar.kumar 1114
  public double getMrp() {
1115
    return this.mrp;
1116
  }
1117
 
1118
  public void setMrp(double mrp) {
1119
    this.mrp = mrp;
1120
    setMrpIsSet(true);
1121
  }
1122
 
1123
  public void unsetMrp() {
1124
    __isset_bit_vector.clear(__MRP_ISSET_ID);
1125
  }
1126
 
1127
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
1128
  public boolean isSetMrp() {
1129
    return __isset_bit_vector.get(__MRP_ISSET_ID);
1130
  }
1131
 
1132
  public void setMrpIsSet(boolean value) {
1133
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
1134
  }
1135
 
12357 manish.sha 1136
  public double getNlcP() {
1137
    return this.nlcP;
1138
  }
1139
 
1140
  public void setNlcP(double nlcP) {
1141
    this.nlcP = nlcP;
1142
    setNlcPIsSet(true);
1143
  }
1144
 
1145
  public void unsetNlcP() {
1146
    __isset_bit_vector.clear(__NLCP_ISSET_ID);
1147
  }
1148
 
1149
  /** Returns true if field nlcP is set (has been assigned a value) and false otherwise */
1150
  public boolean isSetNlcP() {
1151
    return __isset_bit_vector.get(__NLCP_ISSET_ID);
1152
  }
1153
 
1154
  public void setNlcPIsSet(boolean value) {
1155
    __isset_bit_vector.set(__NLCP_ISSET_ID, value);
1156
  }
1157
 
1158
  public double getVatDiff() {
1159
    return this.vatDiff;
1160
  }
1161
 
1162
  public void setVatDiff(double vatDiff) {
1163
    this.vatDiff = vatDiff;
1164
    setVatDiffIsSet(true);
1165
  }
1166
 
1167
  public void unsetVatDiff() {
1168
    __isset_bit_vector.clear(__VATDIFF_ISSET_ID);
1169
  }
1170
 
1171
  /** Returns true if field vatDiff is set (has been assigned a value) and false otherwise */
1172
  public boolean isSetVatDiff() {
1173
    return __isset_bit_vector.get(__VATDIFF_ISSET_ID);
1174
  }
1175
 
1176
  public void setVatDiffIsSet(boolean value) {
1177
    __isset_bit_vector.set(__VATDIFF_ISSET_ID, value);
1178
  }
1179
 
21844 amit.gupta 1180
  public double getIgstRate() {
1181
    return this.igstRate;
1182
  }
1183
 
1184
  public void setIgstRate(double igstRate) {
1185
    this.igstRate = igstRate;
1186
    setIgstRateIsSet(true);
1187
  }
1188
 
1189
  public void unsetIgstRate() {
1190
    __isset_bit_vector.clear(__IGSTRATE_ISSET_ID);
1191
  }
1192
 
1193
  /** Returns true if field igstRate is set (has been assigned a value) and false otherwise */
1194
  public boolean isSetIgstRate() {
1195
    return __isset_bit_vector.get(__IGSTRATE_ISSET_ID);
1196
  }
1197
 
1198
  public void setIgstRateIsSet(boolean value) {
1199
    __isset_bit_vector.set(__IGSTRATE_ISSET_ID, value);
1200
  }
1201
 
1202
  public double getCgstRate() {
1203
    return this.cgstRate;
1204
  }
1205
 
1206
  public void setCgstRate(double cgstRate) {
1207
    this.cgstRate = cgstRate;
1208
    setCgstRateIsSet(true);
1209
  }
1210
 
1211
  public void unsetCgstRate() {
1212
    __isset_bit_vector.clear(__CGSTRATE_ISSET_ID);
1213
  }
1214
 
1215
  /** Returns true if field cgstRate is set (has been assigned a value) and false otherwise */
1216
  public boolean isSetCgstRate() {
1217
    return __isset_bit_vector.get(__CGSTRATE_ISSET_ID);
1218
  }
1219
 
1220
  public void setCgstRateIsSet(boolean value) {
1221
    __isset_bit_vector.set(__CGSTRATE_ISSET_ID, value);
1222
  }
1223
 
1224
  public double getSgstRate() {
1225
    return this.sgstRate;
1226
  }
1227
 
1228
  public void setSgstRate(double sgstRate) {
1229
    this.sgstRate = sgstRate;
1230
    setSgstRateIsSet(true);
1231
  }
1232
 
1233
  public void unsetSgstRate() {
1234
    __isset_bit_vector.clear(__SGSTRATE_ISSET_ID);
1235
  }
1236
 
1237
  /** Returns true if field sgstRate is set (has been assigned a value) and false otherwise */
1238
  public boolean isSetSgstRate() {
1239
    return __isset_bit_vector.get(__SGSTRATE_ISSET_ID);
1240
  }
1241
 
1242
  public void setSgstRateIsSet(boolean value) {
1243
    __isset_bit_vector.set(__SGSTRATE_ISSET_ID, value);
1244
  }
1245
 
1246
  public String getHsnCode() {
1247
    return this.hsnCode;
1248
  }
1249
 
1250
  public void setHsnCode(String hsnCode) {
1251
    this.hsnCode = hsnCode;
1252
  }
1253
 
1254
  public void unsetHsnCode() {
1255
    this.hsnCode = null;
1256
  }
1257
 
1258
  /** Returns true if field hsnCode is set (has been assigned a value) and false otherwise */
1259
  public boolean isSetHsnCode() {
1260
    return this.hsnCode != null;
1261
  }
1262
 
1263
  public void setHsnCodeIsSet(boolean value) {
1264
    if (!value) {
1265
      this.hsnCode = null;
1266
    }
1267
  }
1268
 
4496 mandeep.dh 1269
  public void setFieldValue(_Fields field, Object value) {
1270
    switch (field) {
1271
    case ORDER_ID:
1272
      if (value == null) {
1273
        unsetOrderId();
1274
      } else {
1275
        setOrderId((Long)value);
1276
      }
1277
      break;
1278
 
1279
    case ITEM_ID:
1280
      if (value == null) {
1281
        unsetItemId();
1282
      } else {
1283
        setItemId((Long)value);
1284
      }
1285
      break;
1286
 
1287
    case PRODUCT_GROUP:
1288
      if (value == null) {
1289
        unsetProductGroup();
1290
      } else {
1291
        setProductGroup((String)value);
1292
      }
1293
      break;
1294
 
1295
    case BRAND:
1296
      if (value == null) {
1297
        unsetBrand();
1298
      } else {
1299
        setBrand((String)value);
1300
      }
1301
      break;
1302
 
1303
    case MODEL_NUMBER:
1304
      if (value == null) {
1305
        unsetModelNumber();
1306
      } else {
1307
        setModelNumber((String)value);
1308
      }
1309
      break;
1310
 
1311
    case MODEL_NAME:
1312
      if (value == null) {
1313
        unsetModelName();
1314
      } else {
1315
        setModelName((String)value);
1316
      }
1317
      break;
1318
 
1319
    case COLOR:
1320
      if (value == null) {
1321
        unsetColor();
1322
      } else {
1323
        setColor((String)value);
1324
      }
1325
      break;
1326
 
1327
    case ITEM_NUMBER:
1328
      if (value == null) {
1329
        unsetItemNumber();
1330
      } else {
1331
        setItemNumber((String)value);
1332
      }
1333
      break;
1334
 
1335
    case QUANTITY:
1336
      if (value == null) {
1337
        unsetQuantity();
1338
      } else {
1339
        setQuantity((Double)value);
1340
      }
1341
      break;
1342
 
1343
    case UNFULFILLED_QUANTITY:
1344
      if (value == null) {
1345
        unsetUnfulfilledQuantity();
1346
      } else {
1347
        setUnfulfilledQuantity((Double)value);
1348
      }
1349
      break;
1350
 
1351
    case CREATED_AT:
1352
      if (value == null) {
1353
        unsetCreatedAt();
1354
      } else {
1355
        setCreatedAt((Long)value);
1356
      }
1357
      break;
1358
 
1359
    case UNIT_PRICE:
1360
      if (value == null) {
1361
        unsetUnitPrice();
1362
      } else {
1363
        setUnitPrice((Double)value);
1364
      }
1365
      break;
1366
 
1367
    case FULFILLED:
1368
      if (value == null) {
1369
        unsetFulfilled();
1370
      } else {
1371
        setFulfilled((Boolean)value);
1372
      }
1373
      break;
1374
 
4754 mandeep.dh 1375
    case COD_COUNT:
1376
      if (value == null) {
1377
        unsetCodCount();
1378
      } else {
1379
        setCodCount((Long)value);
1380
      }
1381
      break;
1382
 
6821 amar.kumar 1383
    case AVAILABLE_QUANTITY:
1384
      if (value == null) {
1385
        unsetAvailableQuantity();
1386
      } else {
1387
        setAvailableQuantity((Long)value);
1388
      }
1389
      break;
1390
 
1391
    case RESERVED_QUANTITY:
1392
      if (value == null) {
1393
        unsetReservedQuantity();
1394
      } else {
1395
        setReservedQuantity((Long)value);
1396
      }
1397
      break;
1398
 
1399
    case AVG_SALES:
1400
      if (value == null) {
1401
        unsetAvgSales();
1402
      } else {
1403
        setAvgSales((Double)value);
1404
      }
1405
      break;
1406
 
1407
    case MIN_STOCK_LEVEL:
1408
      if (value == null) {
1409
        unsetMinStockLevel();
1410
      } else {
1411
        setMinStockLevel((Long)value);
1412
      }
1413
      break;
1414
 
1415
    case NUMBER_OF_DAYS_STOCK:
1416
      if (value == null) {
1417
        unsetNumberOfDaysStock();
1418
      } else {
1419
        setNumberOfDaysStock((Long)value);
1420
      }
1421
      break;
1422
 
1423
    case SUGGESTED_QUANTITY:
1424
      if (value == null) {
1425
        unsetSuggestedQuantity();
1426
      } else {
1427
        setSuggestedQuantity((Long)value);
1428
      }
1429
      break;
1430
 
1431
    case NUMBER_OF_DAYS_IN_STOCK:
1432
      if (value == null) {
1433
        unsetNumberOfDaysInStock();
1434
      } else {
1435
        setNumberOfDaysInStock((Long)value);
1436
      }
1437
      break;
1438
 
8182 amar.kumar 1439
    case RTO_ORDERS:
1440
      if (value == null) {
1441
        unsetRtoOrders();
1442
      } else {
1443
        setRtoOrders((Long)value);
1444
      }
1445
      break;
1446
 
6857 amar.kumar 1447
    case LAST_XDAYS_SALE:
1448
      if (value == null) {
1449
        unsetLastXdaysSale();
1450
      } else {
1451
        setLastXdaysSale((String)value);
1452
      }
1453
      break;
1454
 
6880 amar.kumar 1455
    case PREVIOUSLY_ORDERED_QTY:
1456
      if (value == null) {
1457
        unsetPreviouslyOrderedQty();
1458
      } else {
1459
        setPreviouslyOrderedQty((Long)value);
1460
      }
1461
      break;
1462
 
7672 rajveer 1463
    case NLC:
1464
      if (value == null) {
1465
        unsetNlc();
1466
      } else {
1467
        setNlc((Double)value);
1468
      }
1469
      break;
1470
 
9416 amar.kumar 1471
    case MRP:
1472
      if (value == null) {
1473
        unsetMrp();
1474
      } else {
1475
        setMrp((Double)value);
1476
      }
1477
      break;
1478
 
12357 manish.sha 1479
    case NLC_P:
1480
      if (value == null) {
1481
        unsetNlcP();
1482
      } else {
1483
        setNlcP((Double)value);
1484
      }
1485
      break;
1486
 
1487
    case VAT_DIFF:
1488
      if (value == null) {
1489
        unsetVatDiff();
1490
      } else {
1491
        setVatDiff((Double)value);
1492
      }
1493
      break;
1494
 
21844 amit.gupta 1495
    case IGST_RATE:
1496
      if (value == null) {
1497
        unsetIgstRate();
1498
      } else {
1499
        setIgstRate((Double)value);
1500
      }
1501
      break;
1502
 
1503
    case CGST_RATE:
1504
      if (value == null) {
1505
        unsetCgstRate();
1506
      } else {
1507
        setCgstRate((Double)value);
1508
      }
1509
      break;
1510
 
1511
    case SGST_RATE:
1512
      if (value == null) {
1513
        unsetSgstRate();
1514
      } else {
1515
        setSgstRate((Double)value);
1516
      }
1517
      break;
1518
 
1519
    case HSN_CODE:
1520
      if (value == null) {
1521
        unsetHsnCode();
1522
      } else {
1523
        setHsnCode((String)value);
1524
      }
1525
      break;
1526
 
4496 mandeep.dh 1527
    }
1528
  }
1529
 
1530
  public Object getFieldValue(_Fields field) {
1531
    switch (field) {
1532
    case ORDER_ID:
1533
      return Long.valueOf(getOrderId());
1534
 
1535
    case ITEM_ID:
1536
      return Long.valueOf(getItemId());
1537
 
1538
    case PRODUCT_GROUP:
1539
      return getProductGroup();
1540
 
1541
    case BRAND:
1542
      return getBrand();
1543
 
1544
    case MODEL_NUMBER:
1545
      return getModelNumber();
1546
 
1547
    case MODEL_NAME:
1548
      return getModelName();
1549
 
1550
    case COLOR:
1551
      return getColor();
1552
 
1553
    case ITEM_NUMBER:
1554
      return getItemNumber();
1555
 
1556
    case QUANTITY:
1557
      return Double.valueOf(getQuantity());
1558
 
1559
    case UNFULFILLED_QUANTITY:
1560
      return Double.valueOf(getUnfulfilledQuantity());
1561
 
1562
    case CREATED_AT:
1563
      return Long.valueOf(getCreatedAt());
1564
 
1565
    case UNIT_PRICE:
1566
      return Double.valueOf(getUnitPrice());
1567
 
1568
    case FULFILLED:
1569
      return Boolean.valueOf(isFulfilled());
1570
 
4754 mandeep.dh 1571
    case COD_COUNT:
1572
      return Long.valueOf(getCodCount());
1573
 
6821 amar.kumar 1574
    case AVAILABLE_QUANTITY:
1575
      return Long.valueOf(getAvailableQuantity());
1576
 
1577
    case RESERVED_QUANTITY:
1578
      return Long.valueOf(getReservedQuantity());
1579
 
1580
    case AVG_SALES:
1581
      return Double.valueOf(getAvgSales());
1582
 
1583
    case MIN_STOCK_LEVEL:
1584
      return Long.valueOf(getMinStockLevel());
1585
 
1586
    case NUMBER_OF_DAYS_STOCK:
1587
      return Long.valueOf(getNumberOfDaysStock());
1588
 
1589
    case SUGGESTED_QUANTITY:
1590
      return Long.valueOf(getSuggestedQuantity());
1591
 
1592
    case NUMBER_OF_DAYS_IN_STOCK:
1593
      return Long.valueOf(getNumberOfDaysInStock());
1594
 
8182 amar.kumar 1595
    case RTO_ORDERS:
1596
      return Long.valueOf(getRtoOrders());
1597
 
6857 amar.kumar 1598
    case LAST_XDAYS_SALE:
1599
      return getLastXdaysSale();
1600
 
6880 amar.kumar 1601
    case PREVIOUSLY_ORDERED_QTY:
1602
      return Long.valueOf(getPreviouslyOrderedQty());
1603
 
7672 rajveer 1604
    case NLC:
1605
      return Double.valueOf(getNlc());
1606
 
9416 amar.kumar 1607
    case MRP:
1608
      return Double.valueOf(getMrp());
1609
 
12357 manish.sha 1610
    case NLC_P:
1611
      return Double.valueOf(getNlcP());
1612
 
1613
    case VAT_DIFF:
1614
      return Double.valueOf(getVatDiff());
1615
 
21844 amit.gupta 1616
    case IGST_RATE:
1617
      return Double.valueOf(getIgstRate());
1618
 
1619
    case CGST_RATE:
1620
      return Double.valueOf(getCgstRate());
1621
 
1622
    case SGST_RATE:
1623
      return Double.valueOf(getSgstRate());
1624
 
1625
    case HSN_CODE:
1626
      return getHsnCode();
1627
 
4496 mandeep.dh 1628
    }
1629
    throw new IllegalStateException();
1630
  }
1631
 
1632
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1633
  public boolean isSet(_Fields field) {
1634
    if (field == null) {
1635
      throw new IllegalArgumentException();
1636
    }
1637
 
1638
    switch (field) {
1639
    case ORDER_ID:
1640
      return isSetOrderId();
1641
    case ITEM_ID:
1642
      return isSetItemId();
1643
    case PRODUCT_GROUP:
1644
      return isSetProductGroup();
1645
    case BRAND:
1646
      return isSetBrand();
1647
    case MODEL_NUMBER:
1648
      return isSetModelNumber();
1649
    case MODEL_NAME:
1650
      return isSetModelName();
1651
    case COLOR:
1652
      return isSetColor();
1653
    case ITEM_NUMBER:
1654
      return isSetItemNumber();
1655
    case QUANTITY:
1656
      return isSetQuantity();
1657
    case UNFULFILLED_QUANTITY:
1658
      return isSetUnfulfilledQuantity();
1659
    case CREATED_AT:
1660
      return isSetCreatedAt();
1661
    case UNIT_PRICE:
1662
      return isSetUnitPrice();
1663
    case FULFILLED:
1664
      return isSetFulfilled();
4754 mandeep.dh 1665
    case COD_COUNT:
1666
      return isSetCodCount();
6821 amar.kumar 1667
    case AVAILABLE_QUANTITY:
1668
      return isSetAvailableQuantity();
1669
    case RESERVED_QUANTITY:
1670
      return isSetReservedQuantity();
1671
    case AVG_SALES:
1672
      return isSetAvgSales();
1673
    case MIN_STOCK_LEVEL:
1674
      return isSetMinStockLevel();
1675
    case NUMBER_OF_DAYS_STOCK:
1676
      return isSetNumberOfDaysStock();
1677
    case SUGGESTED_QUANTITY:
1678
      return isSetSuggestedQuantity();
1679
    case NUMBER_OF_DAYS_IN_STOCK:
1680
      return isSetNumberOfDaysInStock();
8182 amar.kumar 1681
    case RTO_ORDERS:
1682
      return isSetRtoOrders();
6857 amar.kumar 1683
    case LAST_XDAYS_SALE:
1684
      return isSetLastXdaysSale();
6880 amar.kumar 1685
    case PREVIOUSLY_ORDERED_QTY:
1686
      return isSetPreviouslyOrderedQty();
7672 rajveer 1687
    case NLC:
1688
      return isSetNlc();
9416 amar.kumar 1689
    case MRP:
1690
      return isSetMrp();
12357 manish.sha 1691
    case NLC_P:
1692
      return isSetNlcP();
1693
    case VAT_DIFF:
1694
      return isSetVatDiff();
21844 amit.gupta 1695
    case IGST_RATE:
1696
      return isSetIgstRate();
1697
    case CGST_RATE:
1698
      return isSetCgstRate();
1699
    case SGST_RATE:
1700
      return isSetSgstRate();
1701
    case HSN_CODE:
1702
      return isSetHsnCode();
4496 mandeep.dh 1703
    }
1704
    throw new IllegalStateException();
1705
  }
1706
 
1707
  @Override
1708
  public boolean equals(Object that) {
1709
    if (that == null)
1710
      return false;
1711
    if (that instanceof LineItem)
1712
      return this.equals((LineItem)that);
1713
    return false;
1714
  }
1715
 
1716
  public boolean equals(LineItem that) {
1717
    if (that == null)
1718
      return false;
1719
 
1720
    boolean this_present_orderId = true;
1721
    boolean that_present_orderId = true;
1722
    if (this_present_orderId || that_present_orderId) {
1723
      if (!(this_present_orderId && that_present_orderId))
1724
        return false;
1725
      if (this.orderId != that.orderId)
1726
        return false;
1727
    }
1728
 
1729
    boolean this_present_itemId = true;
1730
    boolean that_present_itemId = true;
1731
    if (this_present_itemId || that_present_itemId) {
1732
      if (!(this_present_itemId && that_present_itemId))
1733
        return false;
1734
      if (this.itemId != that.itemId)
1735
        return false;
1736
    }
1737
 
1738
    boolean this_present_productGroup = true && this.isSetProductGroup();
1739
    boolean that_present_productGroup = true && that.isSetProductGroup();
1740
    if (this_present_productGroup || that_present_productGroup) {
1741
      if (!(this_present_productGroup && that_present_productGroup))
1742
        return false;
1743
      if (!this.productGroup.equals(that.productGroup))
1744
        return false;
1745
    }
1746
 
1747
    boolean this_present_brand = true && this.isSetBrand();
1748
    boolean that_present_brand = true && that.isSetBrand();
1749
    if (this_present_brand || that_present_brand) {
1750
      if (!(this_present_brand && that_present_brand))
1751
        return false;
1752
      if (!this.brand.equals(that.brand))
1753
        return false;
1754
    }
1755
 
1756
    boolean this_present_modelNumber = true && this.isSetModelNumber();
1757
    boolean that_present_modelNumber = true && that.isSetModelNumber();
1758
    if (this_present_modelNumber || that_present_modelNumber) {
1759
      if (!(this_present_modelNumber && that_present_modelNumber))
1760
        return false;
1761
      if (!this.modelNumber.equals(that.modelNumber))
1762
        return false;
1763
    }
1764
 
1765
    boolean this_present_modelName = true && this.isSetModelName();
1766
    boolean that_present_modelName = true && that.isSetModelName();
1767
    if (this_present_modelName || that_present_modelName) {
1768
      if (!(this_present_modelName && that_present_modelName))
1769
        return false;
1770
      if (!this.modelName.equals(that.modelName))
1771
        return false;
1772
    }
1773
 
1774
    boolean this_present_color = true && this.isSetColor();
1775
    boolean that_present_color = true && that.isSetColor();
1776
    if (this_present_color || that_present_color) {
1777
      if (!(this_present_color && that_present_color))
1778
        return false;
1779
      if (!this.color.equals(that.color))
1780
        return false;
1781
    }
1782
 
1783
    boolean this_present_itemNumber = true && this.isSetItemNumber();
1784
    boolean that_present_itemNumber = true && that.isSetItemNumber();
1785
    if (this_present_itemNumber || that_present_itemNumber) {
1786
      if (!(this_present_itemNumber && that_present_itemNumber))
1787
        return false;
1788
      if (!this.itemNumber.equals(that.itemNumber))
1789
        return false;
1790
    }
1791
 
1792
    boolean this_present_quantity = true;
1793
    boolean that_present_quantity = true;
1794
    if (this_present_quantity || that_present_quantity) {
1795
      if (!(this_present_quantity && that_present_quantity))
1796
        return false;
1797
      if (this.quantity != that.quantity)
1798
        return false;
1799
    }
1800
 
1801
    boolean this_present_unfulfilledQuantity = true;
1802
    boolean that_present_unfulfilledQuantity = true;
1803
    if (this_present_unfulfilledQuantity || that_present_unfulfilledQuantity) {
1804
      if (!(this_present_unfulfilledQuantity && that_present_unfulfilledQuantity))
1805
        return false;
1806
      if (this.unfulfilledQuantity != that.unfulfilledQuantity)
1807
        return false;
1808
    }
1809
 
1810
    boolean this_present_createdAt = true;
1811
    boolean that_present_createdAt = true;
1812
    if (this_present_createdAt || that_present_createdAt) {
1813
      if (!(this_present_createdAt && that_present_createdAt))
1814
        return false;
1815
      if (this.createdAt != that.createdAt)
1816
        return false;
1817
    }
1818
 
1819
    boolean this_present_unitPrice = true;
1820
    boolean that_present_unitPrice = true;
1821
    if (this_present_unitPrice || that_present_unitPrice) {
1822
      if (!(this_present_unitPrice && that_present_unitPrice))
1823
        return false;
1824
      if (this.unitPrice != that.unitPrice)
1825
        return false;
1826
    }
1827
 
1828
    boolean this_present_fulfilled = true;
1829
    boolean that_present_fulfilled = true;
1830
    if (this_present_fulfilled || that_present_fulfilled) {
1831
      if (!(this_present_fulfilled && that_present_fulfilled))
1832
        return false;
1833
      if (this.fulfilled != that.fulfilled)
1834
        return false;
1835
    }
1836
 
4754 mandeep.dh 1837
    boolean this_present_codCount = true;
1838
    boolean that_present_codCount = true;
1839
    if (this_present_codCount || that_present_codCount) {
1840
      if (!(this_present_codCount && that_present_codCount))
1841
        return false;
1842
      if (this.codCount != that.codCount)
1843
        return false;
1844
    }
1845
 
6821 amar.kumar 1846
    boolean this_present_availableQuantity = true;
1847
    boolean that_present_availableQuantity = true;
1848
    if (this_present_availableQuantity || that_present_availableQuantity) {
1849
      if (!(this_present_availableQuantity && that_present_availableQuantity))
1850
        return false;
1851
      if (this.availableQuantity != that.availableQuantity)
1852
        return false;
1853
    }
1854
 
1855
    boolean this_present_reservedQuantity = true;
1856
    boolean that_present_reservedQuantity = true;
1857
    if (this_present_reservedQuantity || that_present_reservedQuantity) {
1858
      if (!(this_present_reservedQuantity && that_present_reservedQuantity))
1859
        return false;
1860
      if (this.reservedQuantity != that.reservedQuantity)
1861
        return false;
1862
    }
1863
 
1864
    boolean this_present_avgSales = true;
1865
    boolean that_present_avgSales = true;
1866
    if (this_present_avgSales || that_present_avgSales) {
1867
      if (!(this_present_avgSales && that_present_avgSales))
1868
        return false;
1869
      if (this.avgSales != that.avgSales)
1870
        return false;
1871
    }
1872
 
1873
    boolean this_present_minStockLevel = true;
1874
    boolean that_present_minStockLevel = true;
1875
    if (this_present_minStockLevel || that_present_minStockLevel) {
1876
      if (!(this_present_minStockLevel && that_present_minStockLevel))
1877
        return false;
1878
      if (this.minStockLevel != that.minStockLevel)
1879
        return false;
1880
    }
1881
 
1882
    boolean this_present_numberOfDaysStock = true;
1883
    boolean that_present_numberOfDaysStock = true;
1884
    if (this_present_numberOfDaysStock || that_present_numberOfDaysStock) {
1885
      if (!(this_present_numberOfDaysStock && that_present_numberOfDaysStock))
1886
        return false;
1887
      if (this.numberOfDaysStock != that.numberOfDaysStock)
1888
        return false;
1889
    }
1890
 
1891
    boolean this_present_suggestedQuantity = true;
1892
    boolean that_present_suggestedQuantity = true;
1893
    if (this_present_suggestedQuantity || that_present_suggestedQuantity) {
1894
      if (!(this_present_suggestedQuantity && that_present_suggestedQuantity))
1895
        return false;
1896
      if (this.suggestedQuantity != that.suggestedQuantity)
1897
        return false;
1898
    }
1899
 
1900
    boolean this_present_numberOfDaysInStock = true;
1901
    boolean that_present_numberOfDaysInStock = true;
1902
    if (this_present_numberOfDaysInStock || that_present_numberOfDaysInStock) {
1903
      if (!(this_present_numberOfDaysInStock && that_present_numberOfDaysInStock))
1904
        return false;
1905
      if (this.numberOfDaysInStock != that.numberOfDaysInStock)
1906
        return false;
1907
    }
1908
 
8182 amar.kumar 1909
    boolean this_present_rtoOrders = true;
1910
    boolean that_present_rtoOrders = true;
1911
    if (this_present_rtoOrders || that_present_rtoOrders) {
1912
      if (!(this_present_rtoOrders && that_present_rtoOrders))
1913
        return false;
1914
      if (this.rtoOrders != that.rtoOrders)
1915
        return false;
1916
    }
1917
 
6857 amar.kumar 1918
    boolean this_present_lastXdaysSale = true && this.isSetLastXdaysSale();
1919
    boolean that_present_lastXdaysSale = true && that.isSetLastXdaysSale();
1920
    if (this_present_lastXdaysSale || that_present_lastXdaysSale) {
1921
      if (!(this_present_lastXdaysSale && that_present_lastXdaysSale))
1922
        return false;
1923
      if (!this.lastXdaysSale.equals(that.lastXdaysSale))
1924
        return false;
1925
    }
1926
 
6880 amar.kumar 1927
    boolean this_present_previouslyOrderedQty = true;
1928
    boolean that_present_previouslyOrderedQty = true;
1929
    if (this_present_previouslyOrderedQty || that_present_previouslyOrderedQty) {
1930
      if (!(this_present_previouslyOrderedQty && that_present_previouslyOrderedQty))
1931
        return false;
1932
      if (this.previouslyOrderedQty != that.previouslyOrderedQty)
1933
        return false;
1934
    }
1935
 
7672 rajveer 1936
    boolean this_present_nlc = true;
1937
    boolean that_present_nlc = true;
1938
    if (this_present_nlc || that_present_nlc) {
1939
      if (!(this_present_nlc && that_present_nlc))
1940
        return false;
1941
      if (this.nlc != that.nlc)
1942
        return false;
1943
    }
1944
 
9416 amar.kumar 1945
    boolean this_present_mrp = true;
1946
    boolean that_present_mrp = true;
1947
    if (this_present_mrp || that_present_mrp) {
1948
      if (!(this_present_mrp && that_present_mrp))
1949
        return false;
1950
      if (this.mrp != that.mrp)
1951
        return false;
1952
    }
1953
 
12357 manish.sha 1954
    boolean this_present_nlcP = true;
1955
    boolean that_present_nlcP = true;
1956
    if (this_present_nlcP || that_present_nlcP) {
1957
      if (!(this_present_nlcP && that_present_nlcP))
1958
        return false;
1959
      if (this.nlcP != that.nlcP)
1960
        return false;
1961
    }
1962
 
1963
    boolean this_present_vatDiff = true;
1964
    boolean that_present_vatDiff = true;
1965
    if (this_present_vatDiff || that_present_vatDiff) {
1966
      if (!(this_present_vatDiff && that_present_vatDiff))
1967
        return false;
1968
      if (this.vatDiff != that.vatDiff)
1969
        return false;
1970
    }
1971
 
21844 amit.gupta 1972
    boolean this_present_igstRate = true;
1973
    boolean that_present_igstRate = true;
1974
    if (this_present_igstRate || that_present_igstRate) {
1975
      if (!(this_present_igstRate && that_present_igstRate))
1976
        return false;
1977
      if (this.igstRate != that.igstRate)
1978
        return false;
1979
    }
1980
 
1981
    boolean this_present_cgstRate = true;
1982
    boolean that_present_cgstRate = true;
1983
    if (this_present_cgstRate || that_present_cgstRate) {
1984
      if (!(this_present_cgstRate && that_present_cgstRate))
1985
        return false;
1986
      if (this.cgstRate != that.cgstRate)
1987
        return false;
1988
    }
1989
 
1990
    boolean this_present_sgstRate = true;
1991
    boolean that_present_sgstRate = true;
1992
    if (this_present_sgstRate || that_present_sgstRate) {
1993
      if (!(this_present_sgstRate && that_present_sgstRate))
1994
        return false;
1995
      if (this.sgstRate != that.sgstRate)
1996
        return false;
1997
    }
1998
 
1999
    boolean this_present_hsnCode = true && this.isSetHsnCode();
2000
    boolean that_present_hsnCode = true && that.isSetHsnCode();
2001
    if (this_present_hsnCode || that_present_hsnCode) {
2002
      if (!(this_present_hsnCode && that_present_hsnCode))
2003
        return false;
2004
      if (!this.hsnCode.equals(that.hsnCode))
2005
        return false;
2006
    }
2007
 
4496 mandeep.dh 2008
    return true;
2009
  }
2010
 
2011
  @Override
2012
  public int hashCode() {
2013
    return 0;
2014
  }
2015
 
2016
  public int compareTo(LineItem other) {
2017
    if (!getClass().equals(other.getClass())) {
2018
      return getClass().getName().compareTo(other.getClass().getName());
2019
    }
2020
 
2021
    int lastComparison = 0;
2022
    LineItem typedOther = (LineItem)other;
2023
 
2024
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2025
    if (lastComparison != 0) {
2026
      return lastComparison;
2027
    }
2028
    if (isSetOrderId()) {
2029
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
2030
      if (lastComparison != 0) {
2031
        return lastComparison;
2032
      }
2033
    }
2034
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2035
    if (lastComparison != 0) {
2036
      return lastComparison;
2037
    }
2038
    if (isSetItemId()) {
2039
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
2040
      if (lastComparison != 0) {
2041
        return lastComparison;
2042
      }
2043
    }
2044
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
2045
    if (lastComparison != 0) {
2046
      return lastComparison;
2047
    }
2048
    if (isSetProductGroup()) {
2049
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
2050
      if (lastComparison != 0) {
2051
        return lastComparison;
2052
      }
2053
    }
2054
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
2055
    if (lastComparison != 0) {
2056
      return lastComparison;
2057
    }
2058
    if (isSetBrand()) {
2059
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
2060
      if (lastComparison != 0) {
2061
        return lastComparison;
2062
      }
2063
    }
2064
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
2065
    if (lastComparison != 0) {
2066
      return lastComparison;
2067
    }
2068
    if (isSetModelNumber()) {
2069
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
2070
      if (lastComparison != 0) {
2071
        return lastComparison;
2072
      }
2073
    }
2074
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
2075
    if (lastComparison != 0) {
2076
      return lastComparison;
2077
    }
2078
    if (isSetModelName()) {
2079
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
2080
      if (lastComparison != 0) {
2081
        return lastComparison;
2082
      }
2083
    }
2084
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
2085
    if (lastComparison != 0) {
2086
      return lastComparison;
2087
    }
2088
    if (isSetColor()) {
2089
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
2090
      if (lastComparison != 0) {
2091
        return lastComparison;
2092
      }
2093
    }
2094
    lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
2095
    if (lastComparison != 0) {
2096
      return lastComparison;
2097
    }
2098
    if (isSetItemNumber()) {
2099
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
2100
      if (lastComparison != 0) {
2101
        return lastComparison;
2102
      }
2103
    }
2104
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
2105
    if (lastComparison != 0) {
2106
      return lastComparison;
2107
    }
2108
    if (isSetQuantity()) {
2109
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
2110
      if (lastComparison != 0) {
2111
        return lastComparison;
2112
      }
2113
    }
2114
    lastComparison = Boolean.valueOf(isSetUnfulfilledQuantity()).compareTo(typedOther.isSetUnfulfilledQuantity());
2115
    if (lastComparison != 0) {
2116
      return lastComparison;
2117
    }
2118
    if (isSetUnfulfilledQuantity()) {
2119
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unfulfilledQuantity, typedOther.unfulfilledQuantity);
2120
      if (lastComparison != 0) {
2121
        return lastComparison;
2122
      }
2123
    }
2124
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());
2125
    if (lastComparison != 0) {
2126
      return lastComparison;
2127
    }
2128
    if (isSetCreatedAt()) {
2129
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);
2130
      if (lastComparison != 0) {
2131
        return lastComparison;
2132
      }
2133
    }
2134
    lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
2135
    if (lastComparison != 0) {
2136
      return lastComparison;
2137
    }
2138
    if (isSetUnitPrice()) {
2139
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
2140
      if (lastComparison != 0) {
2141
        return lastComparison;
2142
      }
2143
    }
2144
    lastComparison = Boolean.valueOf(isSetFulfilled()).compareTo(typedOther.isSetFulfilled());
2145
    if (lastComparison != 0) {
2146
      return lastComparison;
2147
    }
2148
    if (isSetFulfilled()) {
2149
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilled, typedOther.fulfilled);
2150
      if (lastComparison != 0) {
2151
        return lastComparison;
2152
      }
2153
    }
4754 mandeep.dh 2154
    lastComparison = Boolean.valueOf(isSetCodCount()).compareTo(typedOther.isSetCodCount());
2155
    if (lastComparison != 0) {
2156
      return lastComparison;
2157
    }
2158
    if (isSetCodCount()) {
2159
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCount, typedOther.codCount);
2160
      if (lastComparison != 0) {
2161
        return lastComparison;
2162
      }
2163
    }
6821 amar.kumar 2164
    lastComparison = Boolean.valueOf(isSetAvailableQuantity()).compareTo(typedOther.isSetAvailableQuantity());
2165
    if (lastComparison != 0) {
2166
      return lastComparison;
2167
    }
2168
    if (isSetAvailableQuantity()) {
2169
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availableQuantity, typedOther.availableQuantity);
2170
      if (lastComparison != 0) {
2171
        return lastComparison;
2172
      }
2173
    }
2174
    lastComparison = Boolean.valueOf(isSetReservedQuantity()).compareTo(typedOther.isSetReservedQuantity());
2175
    if (lastComparison != 0) {
2176
      return lastComparison;
2177
    }
2178
    if (isSetReservedQuantity()) {
2179
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reservedQuantity, typedOther.reservedQuantity);
2180
      if (lastComparison != 0) {
2181
        return lastComparison;
2182
      }
2183
    }
2184
    lastComparison = Boolean.valueOf(isSetAvgSales()).compareTo(typedOther.isSetAvgSales());
2185
    if (lastComparison != 0) {
2186
      return lastComparison;
2187
    }
2188
    if (isSetAvgSales()) {
2189
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgSales, typedOther.avgSales);
2190
      if (lastComparison != 0) {
2191
        return lastComparison;
2192
      }
2193
    }
2194
    lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
2195
    if (lastComparison != 0) {
2196
      return lastComparison;
2197
    }
2198
    if (isSetMinStockLevel()) {
2199
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
2200
      if (lastComparison != 0) {
2201
        return lastComparison;
2202
      }
2203
    }
2204
    lastComparison = Boolean.valueOf(isSetNumberOfDaysStock()).compareTo(typedOther.isSetNumberOfDaysStock());
2205
    if (lastComparison != 0) {
2206
      return lastComparison;
2207
    }
2208
    if (isSetNumberOfDaysStock()) {
2209
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysStock, typedOther.numberOfDaysStock);
2210
      if (lastComparison != 0) {
2211
        return lastComparison;
2212
      }
2213
    }
2214
    lastComparison = Boolean.valueOf(isSetSuggestedQuantity()).compareTo(typedOther.isSetSuggestedQuantity());
2215
    if (lastComparison != 0) {
2216
      return lastComparison;
2217
    }
2218
    if (isSetSuggestedQuantity()) {
2219
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suggestedQuantity, typedOther.suggestedQuantity);
2220
      if (lastComparison != 0) {
2221
        return lastComparison;
2222
      }
2223
    }
2224
    lastComparison = Boolean.valueOf(isSetNumberOfDaysInStock()).compareTo(typedOther.isSetNumberOfDaysInStock());
2225
    if (lastComparison != 0) {
2226
      return lastComparison;
2227
    }
2228
    if (isSetNumberOfDaysInStock()) {
2229
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysInStock, typedOther.numberOfDaysInStock);
2230
      if (lastComparison != 0) {
2231
        return lastComparison;
2232
      }
2233
    }
8182 amar.kumar 2234
    lastComparison = Boolean.valueOf(isSetRtoOrders()).compareTo(typedOther.isSetRtoOrders());
2235
    if (lastComparison != 0) {
2236
      return lastComparison;
2237
    }
2238
    if (isSetRtoOrders()) {
2239
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rtoOrders, typedOther.rtoOrders);
2240
      if (lastComparison != 0) {
2241
        return lastComparison;
2242
      }
2243
    }
6857 amar.kumar 2244
    lastComparison = Boolean.valueOf(isSetLastXdaysSale()).compareTo(typedOther.isSetLastXdaysSale());
2245
    if (lastComparison != 0) {
2246
      return lastComparison;
2247
    }
2248
    if (isSetLastXdaysSale()) {
2249
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastXdaysSale, typedOther.lastXdaysSale);
2250
      if (lastComparison != 0) {
2251
        return lastComparison;
2252
      }
2253
    }
6880 amar.kumar 2254
    lastComparison = Boolean.valueOf(isSetPreviouslyOrderedQty()).compareTo(typedOther.isSetPreviouslyOrderedQty());
2255
    if (lastComparison != 0) {
2256
      return lastComparison;
2257
    }
2258
    if (isSetPreviouslyOrderedQty()) {
2259
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.previouslyOrderedQty, typedOther.previouslyOrderedQty);
2260
      if (lastComparison != 0) {
2261
        return lastComparison;
2262
      }
2263
    }
7672 rajveer 2264
    lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
2265
    if (lastComparison != 0) {
2266
      return lastComparison;
2267
    }
2268
    if (isSetNlc()) {
2269
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
2270
      if (lastComparison != 0) {
2271
        return lastComparison;
2272
      }
2273
    }
9416 amar.kumar 2274
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
2275
    if (lastComparison != 0) {
2276
      return lastComparison;
2277
    }
2278
    if (isSetMrp()) {
2279
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
2280
      if (lastComparison != 0) {
2281
        return lastComparison;
2282
      }
2283
    }
12357 manish.sha 2284
    lastComparison = Boolean.valueOf(isSetNlcP()).compareTo(typedOther.isSetNlcP());
2285
    if (lastComparison != 0) {
2286
      return lastComparison;
2287
    }
2288
    if (isSetNlcP()) {
2289
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlcP, typedOther.nlcP);
2290
      if (lastComparison != 0) {
2291
        return lastComparison;
2292
      }
2293
    }
2294
    lastComparison = Boolean.valueOf(isSetVatDiff()).compareTo(typedOther.isSetVatDiff());
2295
    if (lastComparison != 0) {
2296
      return lastComparison;
2297
    }
2298
    if (isSetVatDiff()) {
2299
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vatDiff, typedOther.vatDiff);
2300
      if (lastComparison != 0) {
2301
        return lastComparison;
2302
      }
2303
    }
21844 amit.gupta 2304
    lastComparison = Boolean.valueOf(isSetIgstRate()).compareTo(typedOther.isSetIgstRate());
2305
    if (lastComparison != 0) {
2306
      return lastComparison;
2307
    }
2308
    if (isSetIgstRate()) {
2309
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.igstRate, typedOther.igstRate);
2310
      if (lastComparison != 0) {
2311
        return lastComparison;
2312
      }
2313
    }
2314
    lastComparison = Boolean.valueOf(isSetCgstRate()).compareTo(typedOther.isSetCgstRate());
2315
    if (lastComparison != 0) {
2316
      return lastComparison;
2317
    }
2318
    if (isSetCgstRate()) {
2319
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cgstRate, typedOther.cgstRate);
2320
      if (lastComparison != 0) {
2321
        return lastComparison;
2322
      }
2323
    }
2324
    lastComparison = Boolean.valueOf(isSetSgstRate()).compareTo(typedOther.isSetSgstRate());
2325
    if (lastComparison != 0) {
2326
      return lastComparison;
2327
    }
2328
    if (isSetSgstRate()) {
2329
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sgstRate, typedOther.sgstRate);
2330
      if (lastComparison != 0) {
2331
        return lastComparison;
2332
      }
2333
    }
2334
    lastComparison = Boolean.valueOf(isSetHsnCode()).compareTo(typedOther.isSetHsnCode());
2335
    if (lastComparison != 0) {
2336
      return lastComparison;
2337
    }
2338
    if (isSetHsnCode()) {
2339
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsnCode, typedOther.hsnCode);
2340
      if (lastComparison != 0) {
2341
        return lastComparison;
2342
      }
2343
    }
4496 mandeep.dh 2344
    return 0;
2345
  }
2346
 
2347
  public _Fields fieldForId(int fieldId) {
2348
    return _Fields.findByThriftId(fieldId);
2349
  }
2350
 
2351
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2352
    org.apache.thrift.protocol.TField field;
2353
    iprot.readStructBegin();
2354
    while (true)
2355
    {
2356
      field = iprot.readFieldBegin();
2357
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2358
        break;
2359
      }
2360
      switch (field.id) {
2361
        case 1: // ORDER_ID
2362
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2363
            this.orderId = iprot.readI64();
2364
            setOrderIdIsSet(true);
2365
          } else { 
2366
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2367
          }
2368
          break;
2369
        case 2: // ITEM_ID
2370
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2371
            this.itemId = iprot.readI64();
2372
            setItemIdIsSet(true);
2373
          } else { 
2374
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2375
          }
2376
          break;
2377
        case 3: // PRODUCT_GROUP
2378
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2379
            this.productGroup = iprot.readString();
2380
          } else { 
2381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2382
          }
2383
          break;
2384
        case 4: // BRAND
2385
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2386
            this.brand = iprot.readString();
2387
          } else { 
2388
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2389
          }
2390
          break;
2391
        case 5: // MODEL_NUMBER
2392
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2393
            this.modelNumber = iprot.readString();
2394
          } else { 
2395
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2396
          }
2397
          break;
2398
        case 6: // MODEL_NAME
2399
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2400
            this.modelName = iprot.readString();
2401
          } else { 
2402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2403
          }
2404
          break;
2405
        case 7: // COLOR
2406
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2407
            this.color = iprot.readString();
2408
          } else { 
2409
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2410
          }
2411
          break;
2412
        case 8: // ITEM_NUMBER
2413
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2414
            this.itemNumber = iprot.readString();
2415
          } else { 
2416
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2417
          }
2418
          break;
2419
        case 9: // QUANTITY
2420
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2421
            this.quantity = iprot.readDouble();
2422
            setQuantityIsSet(true);
2423
          } else { 
2424
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2425
          }
2426
          break;
2427
        case 10: // UNFULFILLED_QUANTITY
2428
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2429
            this.unfulfilledQuantity = iprot.readDouble();
2430
            setUnfulfilledQuantityIsSet(true);
2431
          } else { 
2432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2433
          }
2434
          break;
2435
        case 11: // CREATED_AT
2436
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2437
            this.createdAt = iprot.readI64();
2438
            setCreatedAtIsSet(true);
2439
          } else { 
2440
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2441
          }
2442
          break;
2443
        case 12: // UNIT_PRICE
2444
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2445
            this.unitPrice = iprot.readDouble();
2446
            setUnitPriceIsSet(true);
2447
          } else { 
2448
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2449
          }
2450
          break;
2451
        case 13: // FULFILLED
2452
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2453
            this.fulfilled = iprot.readBool();
2454
            setFulfilledIsSet(true);
2455
          } else { 
2456
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2457
          }
2458
          break;
4754 mandeep.dh 2459
        case 14: // COD_COUNT
2460
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2461
            this.codCount = iprot.readI64();
2462
            setCodCountIsSet(true);
2463
          } else { 
2464
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2465
          }
2466
          break;
6821 amar.kumar 2467
        case 15: // AVAILABLE_QUANTITY
2468
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2469
            this.availableQuantity = iprot.readI64();
2470
            setAvailableQuantityIsSet(true);
2471
          } else { 
2472
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2473
          }
2474
          break;
2475
        case 16: // RESERVED_QUANTITY
2476
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2477
            this.reservedQuantity = iprot.readI64();
2478
            setReservedQuantityIsSet(true);
2479
          } else { 
2480
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2481
          }
2482
          break;
2483
        case 17: // AVG_SALES
2484
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2485
            this.avgSales = iprot.readDouble();
2486
            setAvgSalesIsSet(true);
2487
          } else { 
2488
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2489
          }
2490
          break;
2491
        case 18: // MIN_STOCK_LEVEL
2492
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2493
            this.minStockLevel = iprot.readI64();
2494
            setMinStockLevelIsSet(true);
2495
          } else { 
2496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2497
          }
2498
          break;
2499
        case 19: // NUMBER_OF_DAYS_STOCK
2500
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2501
            this.numberOfDaysStock = iprot.readI64();
2502
            setNumberOfDaysStockIsSet(true);
2503
          } else { 
2504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2505
          }
2506
          break;
2507
        case 20: // SUGGESTED_QUANTITY
2508
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2509
            this.suggestedQuantity = iprot.readI64();
2510
            setSuggestedQuantityIsSet(true);
2511
          } else { 
2512
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2513
          }
2514
          break;
2515
        case 21: // NUMBER_OF_DAYS_IN_STOCK
2516
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2517
            this.numberOfDaysInStock = iprot.readI64();
2518
            setNumberOfDaysInStockIsSet(true);
2519
          } else { 
2520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2521
          }
2522
          break;
8182 amar.kumar 2523
        case 22: // RTO_ORDERS
2524
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2525
            this.rtoOrders = iprot.readI64();
2526
            setRtoOrdersIsSet(true);
2527
          } else { 
2528
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2529
          }
2530
          break;
2531
        case 23: // LAST_XDAYS_SALE
6857 amar.kumar 2532
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2533
            this.lastXdaysSale = iprot.readString();
2534
          } else { 
2535
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2536
          }
2537
          break;
8182 amar.kumar 2538
        case 24: // PREVIOUSLY_ORDERED_QTY
6880 amar.kumar 2539
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2540
            this.previouslyOrderedQty = iprot.readI64();
2541
            setPreviouslyOrderedQtyIsSet(true);
2542
          } else { 
2543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2544
          }
2545
          break;
8182 amar.kumar 2546
        case 25: // NLC
7672 rajveer 2547
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2548
            this.nlc = iprot.readDouble();
2549
            setNlcIsSet(true);
2550
          } else { 
2551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2552
          }
2553
          break;
9416 amar.kumar 2554
        case 26: // MRP
2555
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2556
            this.mrp = iprot.readDouble();
2557
            setMrpIsSet(true);
2558
          } else { 
2559
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2560
          }
2561
          break;
12357 manish.sha 2562
        case 27: // NLC_P
2563
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2564
            this.nlcP = iprot.readDouble();
2565
            setNlcPIsSet(true);
2566
          } else { 
2567
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2568
          }
2569
          break;
2570
        case 28: // VAT_DIFF
2571
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2572
            this.vatDiff = iprot.readDouble();
2573
            setVatDiffIsSet(true);
2574
          } else { 
2575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2576
          }
2577
          break;
21844 amit.gupta 2578
        case 29: // IGST_RATE
2579
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2580
            this.igstRate = iprot.readDouble();
2581
            setIgstRateIsSet(true);
2582
          } else { 
2583
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2584
          }
2585
          break;
2586
        case 30: // CGST_RATE
2587
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2588
            this.cgstRate = iprot.readDouble();
2589
            setCgstRateIsSet(true);
2590
          } else { 
2591
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2592
          }
2593
          break;
2594
        case 31: // SGST_RATE
2595
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2596
            this.sgstRate = iprot.readDouble();
2597
            setSgstRateIsSet(true);
2598
          } else { 
2599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2600
          }
2601
          break;
2602
        case 32: // HSN_CODE
2603
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2604
            this.hsnCode = iprot.readString();
2605
          } else { 
2606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2607
          }
2608
          break;
4496 mandeep.dh 2609
        default:
2610
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2611
      }
2612
      iprot.readFieldEnd();
2613
    }
2614
    iprot.readStructEnd();
2615
    validate();
2616
  }
2617
 
2618
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2619
    validate();
2620
 
2621
    oprot.writeStructBegin(STRUCT_DESC);
2622
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
2623
    oprot.writeI64(this.orderId);
2624
    oprot.writeFieldEnd();
2625
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2626
    oprot.writeI64(this.itemId);
2627
    oprot.writeFieldEnd();
2628
    if (this.productGroup != null) {
2629
      oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
2630
      oprot.writeString(this.productGroup);
2631
      oprot.writeFieldEnd();
2632
    }
2633
    if (this.brand != null) {
2634
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
2635
      oprot.writeString(this.brand);
2636
      oprot.writeFieldEnd();
2637
    }
2638
    if (this.modelNumber != null) {
2639
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
2640
      oprot.writeString(this.modelNumber);
2641
      oprot.writeFieldEnd();
2642
    }
2643
    if (this.modelName != null) {
2644
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
2645
      oprot.writeString(this.modelName);
2646
      oprot.writeFieldEnd();
2647
    }
2648
    if (this.color != null) {
2649
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
2650
      oprot.writeString(this.color);
2651
      oprot.writeFieldEnd();
2652
    }
2653
    if (this.itemNumber != null) {
2654
      oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
2655
      oprot.writeString(this.itemNumber);
2656
      oprot.writeFieldEnd();
2657
    }
2658
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
2659
    oprot.writeDouble(this.quantity);
2660
    oprot.writeFieldEnd();
2661
    oprot.writeFieldBegin(UNFULFILLED_QUANTITY_FIELD_DESC);
2662
    oprot.writeDouble(this.unfulfilledQuantity);
2663
    oprot.writeFieldEnd();
2664
    oprot.writeFieldBegin(CREATED_AT_FIELD_DESC);
2665
    oprot.writeI64(this.createdAt);
2666
    oprot.writeFieldEnd();
2667
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
2668
    oprot.writeDouble(this.unitPrice);
2669
    oprot.writeFieldEnd();
2670
    oprot.writeFieldBegin(FULFILLED_FIELD_DESC);
2671
    oprot.writeBool(this.fulfilled);
2672
    oprot.writeFieldEnd();
4754 mandeep.dh 2673
    oprot.writeFieldBegin(COD_COUNT_FIELD_DESC);
2674
    oprot.writeI64(this.codCount);
2675
    oprot.writeFieldEnd();
6821 amar.kumar 2676
    oprot.writeFieldBegin(AVAILABLE_QUANTITY_FIELD_DESC);
2677
    oprot.writeI64(this.availableQuantity);
2678
    oprot.writeFieldEnd();
2679
    oprot.writeFieldBegin(RESERVED_QUANTITY_FIELD_DESC);
2680
    oprot.writeI64(this.reservedQuantity);
2681
    oprot.writeFieldEnd();
2682
    oprot.writeFieldBegin(AVG_SALES_FIELD_DESC);
2683
    oprot.writeDouble(this.avgSales);
2684
    oprot.writeFieldEnd();
2685
    oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
2686
    oprot.writeI64(this.minStockLevel);
2687
    oprot.writeFieldEnd();
2688
    oprot.writeFieldBegin(NUMBER_OF_DAYS_STOCK_FIELD_DESC);
2689
    oprot.writeI64(this.numberOfDaysStock);
2690
    oprot.writeFieldEnd();
2691
    oprot.writeFieldBegin(SUGGESTED_QUANTITY_FIELD_DESC);
2692
    oprot.writeI64(this.suggestedQuantity);
2693
    oprot.writeFieldEnd();
2694
    oprot.writeFieldBegin(NUMBER_OF_DAYS_IN_STOCK_FIELD_DESC);
2695
    oprot.writeI64(this.numberOfDaysInStock);
2696
    oprot.writeFieldEnd();
8182 amar.kumar 2697
    oprot.writeFieldBegin(RTO_ORDERS_FIELD_DESC);
2698
    oprot.writeI64(this.rtoOrders);
2699
    oprot.writeFieldEnd();
6857 amar.kumar 2700
    if (this.lastXdaysSale != null) {
2701
      oprot.writeFieldBegin(LAST_XDAYS_SALE_FIELD_DESC);
2702
      oprot.writeString(this.lastXdaysSale);
2703
      oprot.writeFieldEnd();
2704
    }
6880 amar.kumar 2705
    oprot.writeFieldBegin(PREVIOUSLY_ORDERED_QTY_FIELD_DESC);
2706
    oprot.writeI64(this.previouslyOrderedQty);
2707
    oprot.writeFieldEnd();
7672 rajveer 2708
    oprot.writeFieldBegin(NLC_FIELD_DESC);
2709
    oprot.writeDouble(this.nlc);
2710
    oprot.writeFieldEnd();
9416 amar.kumar 2711
    oprot.writeFieldBegin(MRP_FIELD_DESC);
2712
    oprot.writeDouble(this.mrp);
2713
    oprot.writeFieldEnd();
12357 manish.sha 2714
    oprot.writeFieldBegin(NLC_P_FIELD_DESC);
2715
    oprot.writeDouble(this.nlcP);
2716
    oprot.writeFieldEnd();
2717
    oprot.writeFieldBegin(VAT_DIFF_FIELD_DESC);
2718
    oprot.writeDouble(this.vatDiff);
2719
    oprot.writeFieldEnd();
21844 amit.gupta 2720
    oprot.writeFieldBegin(IGST_RATE_FIELD_DESC);
2721
    oprot.writeDouble(this.igstRate);
2722
    oprot.writeFieldEnd();
2723
    oprot.writeFieldBegin(CGST_RATE_FIELD_DESC);
2724
    oprot.writeDouble(this.cgstRate);
2725
    oprot.writeFieldEnd();
2726
    oprot.writeFieldBegin(SGST_RATE_FIELD_DESC);
2727
    oprot.writeDouble(this.sgstRate);
2728
    oprot.writeFieldEnd();
2729
    if (this.hsnCode != null) {
2730
      oprot.writeFieldBegin(HSN_CODE_FIELD_DESC);
2731
      oprot.writeString(this.hsnCode);
2732
      oprot.writeFieldEnd();
2733
    }
4496 mandeep.dh 2734
    oprot.writeFieldStop();
2735
    oprot.writeStructEnd();
2736
  }
2737
 
2738
  @Override
2739
  public String toString() {
2740
    StringBuilder sb = new StringBuilder("LineItem(");
2741
    boolean first = true;
2742
 
2743
    sb.append("orderId:");
2744
    sb.append(this.orderId);
2745
    first = false;
2746
    if (!first) sb.append(", ");
2747
    sb.append("itemId:");
2748
    sb.append(this.itemId);
2749
    first = false;
2750
    if (!first) sb.append(", ");
2751
    sb.append("productGroup:");
2752
    if (this.productGroup == null) {
2753
      sb.append("null");
2754
    } else {
2755
      sb.append(this.productGroup);
2756
    }
2757
    first = false;
2758
    if (!first) sb.append(", ");
2759
    sb.append("brand:");
2760
    if (this.brand == null) {
2761
      sb.append("null");
2762
    } else {
2763
      sb.append(this.brand);
2764
    }
2765
    first = false;
2766
    if (!first) sb.append(", ");
2767
    sb.append("modelNumber:");
2768
    if (this.modelNumber == null) {
2769
      sb.append("null");
2770
    } else {
2771
      sb.append(this.modelNumber);
2772
    }
2773
    first = false;
2774
    if (!first) sb.append(", ");
2775
    sb.append("modelName:");
2776
    if (this.modelName == null) {
2777
      sb.append("null");
2778
    } else {
2779
      sb.append(this.modelName);
2780
    }
2781
    first = false;
2782
    if (!first) sb.append(", ");
2783
    sb.append("color:");
2784
    if (this.color == null) {
2785
      sb.append("null");
2786
    } else {
2787
      sb.append(this.color);
2788
    }
2789
    first = false;
2790
    if (!first) sb.append(", ");
2791
    sb.append("itemNumber:");
2792
    if (this.itemNumber == null) {
2793
      sb.append("null");
2794
    } else {
2795
      sb.append(this.itemNumber);
2796
    }
2797
    first = false;
2798
    if (!first) sb.append(", ");
2799
    sb.append("quantity:");
2800
    sb.append(this.quantity);
2801
    first = false;
2802
    if (!first) sb.append(", ");
2803
    sb.append("unfulfilledQuantity:");
2804
    sb.append(this.unfulfilledQuantity);
2805
    first = false;
2806
    if (!first) sb.append(", ");
2807
    sb.append("createdAt:");
2808
    sb.append(this.createdAt);
2809
    first = false;
2810
    if (!first) sb.append(", ");
2811
    sb.append("unitPrice:");
2812
    sb.append(this.unitPrice);
2813
    first = false;
2814
    if (!first) sb.append(", ");
2815
    sb.append("fulfilled:");
2816
    sb.append(this.fulfilled);
2817
    first = false;
4754 mandeep.dh 2818
    if (!first) sb.append(", ");
2819
    sb.append("codCount:");
2820
    sb.append(this.codCount);
2821
    first = false;
6821 amar.kumar 2822
    if (!first) sb.append(", ");
2823
    sb.append("availableQuantity:");
2824
    sb.append(this.availableQuantity);
2825
    first = false;
2826
    if (!first) sb.append(", ");
2827
    sb.append("reservedQuantity:");
2828
    sb.append(this.reservedQuantity);
2829
    first = false;
2830
    if (!first) sb.append(", ");
2831
    sb.append("avgSales:");
2832
    sb.append(this.avgSales);
2833
    first = false;
2834
    if (!first) sb.append(", ");
2835
    sb.append("minStockLevel:");
2836
    sb.append(this.minStockLevel);
2837
    first = false;
2838
    if (!first) sb.append(", ");
2839
    sb.append("numberOfDaysStock:");
2840
    sb.append(this.numberOfDaysStock);
2841
    first = false;
2842
    if (!first) sb.append(", ");
2843
    sb.append("suggestedQuantity:");
2844
    sb.append(this.suggestedQuantity);
2845
    first = false;
2846
    if (!first) sb.append(", ");
2847
    sb.append("numberOfDaysInStock:");
2848
    sb.append(this.numberOfDaysInStock);
2849
    first = false;
6857 amar.kumar 2850
    if (!first) sb.append(", ");
8182 amar.kumar 2851
    sb.append("rtoOrders:");
2852
    sb.append(this.rtoOrders);
2853
    first = false;
2854
    if (!first) sb.append(", ");
6857 amar.kumar 2855
    sb.append("lastXdaysSale:");
2856
    if (this.lastXdaysSale == null) {
2857
      sb.append("null");
2858
    } else {
2859
      sb.append(this.lastXdaysSale);
2860
    }
2861
    first = false;
6880 amar.kumar 2862
    if (!first) sb.append(", ");
2863
    sb.append("previouslyOrderedQty:");
2864
    sb.append(this.previouslyOrderedQty);
2865
    first = false;
7672 rajveer 2866
    if (!first) sb.append(", ");
2867
    sb.append("nlc:");
2868
    sb.append(this.nlc);
2869
    first = false;
9416 amar.kumar 2870
    if (!first) sb.append(", ");
2871
    sb.append("mrp:");
2872
    sb.append(this.mrp);
2873
    first = false;
12357 manish.sha 2874
    if (!first) sb.append(", ");
2875
    sb.append("nlcP:");
2876
    sb.append(this.nlcP);
2877
    first = false;
2878
    if (!first) sb.append(", ");
2879
    sb.append("vatDiff:");
2880
    sb.append(this.vatDiff);
2881
    first = false;
21844 amit.gupta 2882
    if (!first) sb.append(", ");
2883
    sb.append("igstRate:");
2884
    sb.append(this.igstRate);
2885
    first = false;
2886
    if (!first) sb.append(", ");
2887
    sb.append("cgstRate:");
2888
    sb.append(this.cgstRate);
2889
    first = false;
2890
    if (!first) sb.append(", ");
2891
    sb.append("sgstRate:");
2892
    sb.append(this.sgstRate);
2893
    first = false;
2894
    if (!first) sb.append(", ");
2895
    sb.append("hsnCode:");
2896
    if (this.hsnCode == null) {
2897
      sb.append("null");
2898
    } else {
2899
      sb.append(this.hsnCode);
2900
    }
2901
    first = false;
4496 mandeep.dh 2902
    sb.append(")");
2903
    return sb.toString();
2904
  }
2905
 
2906
  public void validate() throws org.apache.thrift.TException {
2907
    // check for required fields
2908
  }
2909
 
2910
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2911
    try {
2912
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2913
    } catch (org.apache.thrift.TException te) {
2914
      throw new java.io.IOException(te);
2915
    }
2916
  }
2917
 
2918
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2919
    try {
2920
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2921
      __isset_bit_vector = new BitSet(1);
2922
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2923
    } catch (org.apache.thrift.TException te) {
2924
      throw new java.io.IOException(te);
2925
    }
2926
  }
2927
 
2928
}
2929