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