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