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