| 8739 |
vikram.rag |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.catalog;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class SnapdealItem implements org.apache.thrift.TBase<SnapdealItem, SnapdealItem._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealItem");
|
|
|
25 |
|
|
|
26 |
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)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField EXCEPTION_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("exceptionPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField IS_LISTED_ON_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnSnapdeal", org.apache.thrift.protocol.TType.BOOL, (short)4);
|
| 9242 |
kshitij.so |
30 |
private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField COURIER_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCost", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField COMMISSION_FIELD_DESC = new org.apache.thrift.protocol.TField("commission", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField SUPPRESS_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField SUPPRESS_INVENTORY_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressInventoryFeed", org.apache.thrift.protocol.TType.BOOL, (short)11);
|
| 9404 |
vikram.rag |
37 |
private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
|
| 9456 |
vikram.rag |
38 |
private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)13);
|
| 9568 |
kshitij.so |
39 |
private static final org.apache.thrift.protocol.TField SUPC_FIELD_DESC = new org.apache.thrift.protocol.TField("supc", org.apache.thrift.protocol.TType.STRING, (short)14);
|
| 9724 |
kshitij.so |
40 |
private static final org.apache.thrift.protocol.TField SHIPPING_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingTime", org.apache.thrift.protocol.TType.STRING, (short)15);
|
| 9779 |
kshitij.so |
41 |
private static final org.apache.thrift.protocol.TField UPDATED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedBy", org.apache.thrift.protocol.TType.STRING, (short)16);
|
|
|
42 |
private static final org.apache.thrift.protocol.TField MARKETPLACE_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("marketplaceItems", org.apache.thrift.protocol.TType.STRUCT, (short)17);
|
| 8739 |
vikram.rag |
43 |
|
|
|
44 |
private long item_id; // required
|
|
|
45 |
private long warehouseId; // required
|
|
|
46 |
private double exceptionPrice; // required
|
|
|
47 |
private boolean isListedOnSnapdeal; // required
|
| 9242 |
kshitij.so |
48 |
private double transferPrice; // required
|
|
|
49 |
private double sellingPrice; // required
|
|
|
50 |
private double courierCost; // required
|
|
|
51 |
private double commission; // required
|
|
|
52 |
private double serviceTax; // required
|
|
|
53 |
private boolean suppressPriceFeed; // required
|
|
|
54 |
private boolean suppressInventoryFeed; // required
|
| 9404 |
vikram.rag |
55 |
private double maxNlc; // required
|
| 9456 |
vikram.rag |
56 |
private String skuAtSnapdeal; // required
|
| 9568 |
kshitij.so |
57 |
private String supc; // required
|
| 9724 |
kshitij.so |
58 |
private String shippingTime; // required
|
| 9779 |
kshitij.so |
59 |
private String updatedBy; // required
|
|
|
60 |
private MarketplaceItems marketplaceItems; // required
|
| 8739 |
vikram.rag |
61 |
|
|
|
62 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
63 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
64 |
ITEM_ID((short)1, "item_id"),
|
|
|
65 |
WAREHOUSE_ID((short)2, "warehouseId"),
|
|
|
66 |
EXCEPTION_PRICE((short)3, "exceptionPrice"),
|
| 9242 |
kshitij.so |
67 |
IS_LISTED_ON_SNAPDEAL((short)4, "isListedOnSnapdeal"),
|
|
|
68 |
TRANSFER_PRICE((short)5, "transferPrice"),
|
|
|
69 |
SELLING_PRICE((short)6, "sellingPrice"),
|
|
|
70 |
COURIER_COST((short)7, "courierCost"),
|
|
|
71 |
COMMISSION((short)8, "commission"),
|
|
|
72 |
SERVICE_TAX((short)9, "serviceTax"),
|
|
|
73 |
SUPPRESS_PRICE_FEED((short)10, "suppressPriceFeed"),
|
| 9404 |
vikram.rag |
74 |
SUPPRESS_INVENTORY_FEED((short)11, "suppressInventoryFeed"),
|
| 9456 |
vikram.rag |
75 |
MAX_NLC((short)12, "maxNlc"),
|
| 9568 |
kshitij.so |
76 |
SKU_AT_SNAPDEAL((short)13, "skuAtSnapdeal"),
|
| 9724 |
kshitij.so |
77 |
SUPC((short)14, "supc"),
|
| 9779 |
kshitij.so |
78 |
SHIPPING_TIME((short)15, "shippingTime"),
|
|
|
79 |
UPDATED_BY((short)16, "updatedBy"),
|
|
|
80 |
MARKETPLACE_ITEMS((short)17, "marketplaceItems");
|
| 8739 |
vikram.rag |
81 |
|
|
|
82 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
83 |
|
|
|
84 |
static {
|
|
|
85 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
86 |
byName.put(field.getFieldName(), field);
|
|
|
87 |
}
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
/**
|
|
|
91 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
92 |
*/
|
|
|
93 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
94 |
switch(fieldId) {
|
|
|
95 |
case 1: // ITEM_ID
|
|
|
96 |
return ITEM_ID;
|
|
|
97 |
case 2: // WAREHOUSE_ID
|
|
|
98 |
return WAREHOUSE_ID;
|
|
|
99 |
case 3: // EXCEPTION_PRICE
|
|
|
100 |
return EXCEPTION_PRICE;
|
|
|
101 |
case 4: // IS_LISTED_ON_SNAPDEAL
|
|
|
102 |
return IS_LISTED_ON_SNAPDEAL;
|
| 9242 |
kshitij.so |
103 |
case 5: // TRANSFER_PRICE
|
|
|
104 |
return TRANSFER_PRICE;
|
|
|
105 |
case 6: // SELLING_PRICE
|
|
|
106 |
return SELLING_PRICE;
|
|
|
107 |
case 7: // COURIER_COST
|
|
|
108 |
return COURIER_COST;
|
|
|
109 |
case 8: // COMMISSION
|
|
|
110 |
return COMMISSION;
|
|
|
111 |
case 9: // SERVICE_TAX
|
|
|
112 |
return SERVICE_TAX;
|
|
|
113 |
case 10: // SUPPRESS_PRICE_FEED
|
|
|
114 |
return SUPPRESS_PRICE_FEED;
|
|
|
115 |
case 11: // SUPPRESS_INVENTORY_FEED
|
|
|
116 |
return SUPPRESS_INVENTORY_FEED;
|
| 9404 |
vikram.rag |
117 |
case 12: // MAX_NLC
|
|
|
118 |
return MAX_NLC;
|
| 9456 |
vikram.rag |
119 |
case 13: // SKU_AT_SNAPDEAL
|
|
|
120 |
return SKU_AT_SNAPDEAL;
|
| 9568 |
kshitij.so |
121 |
case 14: // SUPC
|
|
|
122 |
return SUPC;
|
| 9724 |
kshitij.so |
123 |
case 15: // SHIPPING_TIME
|
|
|
124 |
return SHIPPING_TIME;
|
| 9779 |
kshitij.so |
125 |
case 16: // UPDATED_BY
|
|
|
126 |
return UPDATED_BY;
|
|
|
127 |
case 17: // MARKETPLACE_ITEMS
|
|
|
128 |
return MARKETPLACE_ITEMS;
|
| 8739 |
vikram.rag |
129 |
default:
|
|
|
130 |
return null;
|
|
|
131 |
}
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
/**
|
|
|
135 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
136 |
* if it is not found.
|
|
|
137 |
*/
|
|
|
138 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
139 |
_Fields fields = findByThriftId(fieldId);
|
|
|
140 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
141 |
return fields;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
/**
|
|
|
145 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
146 |
*/
|
|
|
147 |
public static _Fields findByName(String name) {
|
|
|
148 |
return byName.get(name);
|
|
|
149 |
}
|
|
|
150 |
|
|
|
151 |
private final short _thriftId;
|
|
|
152 |
private final String _fieldName;
|
|
|
153 |
|
|
|
154 |
_Fields(short thriftId, String fieldName) {
|
|
|
155 |
_thriftId = thriftId;
|
|
|
156 |
_fieldName = fieldName;
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
public short getThriftFieldId() {
|
|
|
160 |
return _thriftId;
|
|
|
161 |
}
|
|
|
162 |
|
|
|
163 |
public String getFieldName() {
|
|
|
164 |
return _fieldName;
|
|
|
165 |
}
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
// isset id assignments
|
|
|
169 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
|
|
170 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
|
|
171 |
private static final int __EXCEPTIONPRICE_ISSET_ID = 2;
|
|
|
172 |
private static final int __ISLISTEDONSNAPDEAL_ISSET_ID = 3;
|
| 9242 |
kshitij.so |
173 |
private static final int __TRANSFERPRICE_ISSET_ID = 4;
|
|
|
174 |
private static final int __SELLINGPRICE_ISSET_ID = 5;
|
|
|
175 |
private static final int __COURIERCOST_ISSET_ID = 6;
|
|
|
176 |
private static final int __COMMISSION_ISSET_ID = 7;
|
|
|
177 |
private static final int __SERVICETAX_ISSET_ID = 8;
|
|
|
178 |
private static final int __SUPPRESSPRICEFEED_ISSET_ID = 9;
|
|
|
179 |
private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 10;
|
| 9404 |
vikram.rag |
180 |
private static final int __MAXNLC_ISSET_ID = 11;
|
|
|
181 |
private BitSet __isset_bit_vector = new BitSet(12);
|
| 8739 |
vikram.rag |
182 |
|
|
|
183 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
184 |
static {
|
|
|
185 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
186 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
187 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
188 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
189 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
190 |
tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
191 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
192 |
tmpMap.put(_Fields.IS_LISTED_ON_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
193 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 9242 |
kshitij.so |
194 |
tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
195 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
196 |
tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
197 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
198 |
tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
199 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
200 |
tmpMap.put(_Fields.COMMISSION, new org.apache.thrift.meta_data.FieldMetaData("commission", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
201 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
202 |
tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
203 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
204 |
tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
205 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
206 |
tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
207 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 9404 |
vikram.rag |
208 |
tmpMap.put(_Fields.MAX_NLC, new org.apache.thrift.meta_data.FieldMetaData("maxNlc", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
209 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 9456 |
vikram.rag |
210 |
tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
211 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 9568 |
kshitij.so |
212 |
tmpMap.put(_Fields.SUPC, new org.apache.thrift.meta_data.FieldMetaData("supc", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
213 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 9724 |
kshitij.so |
214 |
tmpMap.put(_Fields.SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("shippingTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
215 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 9779 |
kshitij.so |
216 |
tmpMap.put(_Fields.UPDATED_BY, new org.apache.thrift.meta_data.FieldMetaData("updatedBy", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
217 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
218 |
tmpMap.put(_Fields.MARKETPLACE_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("marketplaceItems", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
219 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MarketplaceItems.class)));
|
| 8739 |
vikram.rag |
220 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
221 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItem.class, metaDataMap);
|
|
|
222 |
}
|
|
|
223 |
|
|
|
224 |
public SnapdealItem() {
|
|
|
225 |
}
|
|
|
226 |
|
|
|
227 |
public SnapdealItem(
|
|
|
228 |
long item_id,
|
|
|
229 |
long warehouseId,
|
|
|
230 |
double exceptionPrice,
|
| 9242 |
kshitij.so |
231 |
boolean isListedOnSnapdeal,
|
|
|
232 |
double transferPrice,
|
|
|
233 |
double sellingPrice,
|
|
|
234 |
double courierCost,
|
|
|
235 |
double commission,
|
|
|
236 |
double serviceTax,
|
|
|
237 |
boolean suppressPriceFeed,
|
| 9404 |
vikram.rag |
238 |
boolean suppressInventoryFeed,
|
| 9456 |
vikram.rag |
239 |
double maxNlc,
|
| 9568 |
kshitij.so |
240 |
String skuAtSnapdeal,
|
| 9724 |
kshitij.so |
241 |
String supc,
|
| 9779 |
kshitij.so |
242 |
String shippingTime,
|
|
|
243 |
String updatedBy,
|
|
|
244 |
MarketplaceItems marketplaceItems)
|
| 8739 |
vikram.rag |
245 |
{
|
|
|
246 |
this();
|
|
|
247 |
this.item_id = item_id;
|
|
|
248 |
setItem_idIsSet(true);
|
|
|
249 |
this.warehouseId = warehouseId;
|
|
|
250 |
setWarehouseIdIsSet(true);
|
|
|
251 |
this.exceptionPrice = exceptionPrice;
|
|
|
252 |
setExceptionPriceIsSet(true);
|
|
|
253 |
this.isListedOnSnapdeal = isListedOnSnapdeal;
|
|
|
254 |
setIsListedOnSnapdealIsSet(true);
|
| 9242 |
kshitij.so |
255 |
this.transferPrice = transferPrice;
|
|
|
256 |
setTransferPriceIsSet(true);
|
|
|
257 |
this.sellingPrice = sellingPrice;
|
|
|
258 |
setSellingPriceIsSet(true);
|
|
|
259 |
this.courierCost = courierCost;
|
|
|
260 |
setCourierCostIsSet(true);
|
|
|
261 |
this.commission = commission;
|
|
|
262 |
setCommissionIsSet(true);
|
|
|
263 |
this.serviceTax = serviceTax;
|
|
|
264 |
setServiceTaxIsSet(true);
|
|
|
265 |
this.suppressPriceFeed = suppressPriceFeed;
|
|
|
266 |
setSuppressPriceFeedIsSet(true);
|
|
|
267 |
this.suppressInventoryFeed = suppressInventoryFeed;
|
|
|
268 |
setSuppressInventoryFeedIsSet(true);
|
| 9404 |
vikram.rag |
269 |
this.maxNlc = maxNlc;
|
|
|
270 |
setMaxNlcIsSet(true);
|
| 9456 |
vikram.rag |
271 |
this.skuAtSnapdeal = skuAtSnapdeal;
|
| 9568 |
kshitij.so |
272 |
this.supc = supc;
|
| 9724 |
kshitij.so |
273 |
this.shippingTime = shippingTime;
|
| 9779 |
kshitij.so |
274 |
this.updatedBy = updatedBy;
|
|
|
275 |
this.marketplaceItems = marketplaceItems;
|
| 8739 |
vikram.rag |
276 |
}
|
|
|
277 |
|
|
|
278 |
/**
|
|
|
279 |
* Performs a deep copy on <i>other</i>.
|
|
|
280 |
*/
|
|
|
281 |
public SnapdealItem(SnapdealItem other) {
|
|
|
282 |
__isset_bit_vector.clear();
|
|
|
283 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
284 |
this.item_id = other.item_id;
|
|
|
285 |
this.warehouseId = other.warehouseId;
|
|
|
286 |
this.exceptionPrice = other.exceptionPrice;
|
|
|
287 |
this.isListedOnSnapdeal = other.isListedOnSnapdeal;
|
| 9242 |
kshitij.so |
288 |
this.transferPrice = other.transferPrice;
|
|
|
289 |
this.sellingPrice = other.sellingPrice;
|
|
|
290 |
this.courierCost = other.courierCost;
|
|
|
291 |
this.commission = other.commission;
|
|
|
292 |
this.serviceTax = other.serviceTax;
|
|
|
293 |
this.suppressPriceFeed = other.suppressPriceFeed;
|
|
|
294 |
this.suppressInventoryFeed = other.suppressInventoryFeed;
|
| 9404 |
vikram.rag |
295 |
this.maxNlc = other.maxNlc;
|
| 9456 |
vikram.rag |
296 |
if (other.isSetSkuAtSnapdeal()) {
|
|
|
297 |
this.skuAtSnapdeal = other.skuAtSnapdeal;
|
|
|
298 |
}
|
| 9568 |
kshitij.so |
299 |
if (other.isSetSupc()) {
|
|
|
300 |
this.supc = other.supc;
|
|
|
301 |
}
|
| 9724 |
kshitij.so |
302 |
if (other.isSetShippingTime()) {
|
|
|
303 |
this.shippingTime = other.shippingTime;
|
|
|
304 |
}
|
| 9779 |
kshitij.so |
305 |
if (other.isSetUpdatedBy()) {
|
|
|
306 |
this.updatedBy = other.updatedBy;
|
|
|
307 |
}
|
|
|
308 |
if (other.isSetMarketplaceItems()) {
|
|
|
309 |
this.marketplaceItems = new MarketplaceItems(other.marketplaceItems);
|
|
|
310 |
}
|
| 8739 |
vikram.rag |
311 |
}
|
|
|
312 |
|
|
|
313 |
public SnapdealItem deepCopy() {
|
|
|
314 |
return new SnapdealItem(this);
|
|
|
315 |
}
|
|
|
316 |
|
|
|
317 |
@Override
|
|
|
318 |
public void clear() {
|
|
|
319 |
setItem_idIsSet(false);
|
|
|
320 |
this.item_id = 0;
|
|
|
321 |
setWarehouseIdIsSet(false);
|
|
|
322 |
this.warehouseId = 0;
|
|
|
323 |
setExceptionPriceIsSet(false);
|
|
|
324 |
this.exceptionPrice = 0.0;
|
|
|
325 |
setIsListedOnSnapdealIsSet(false);
|
|
|
326 |
this.isListedOnSnapdeal = false;
|
| 9242 |
kshitij.so |
327 |
setTransferPriceIsSet(false);
|
|
|
328 |
this.transferPrice = 0.0;
|
|
|
329 |
setSellingPriceIsSet(false);
|
|
|
330 |
this.sellingPrice = 0.0;
|
|
|
331 |
setCourierCostIsSet(false);
|
|
|
332 |
this.courierCost = 0.0;
|
|
|
333 |
setCommissionIsSet(false);
|
|
|
334 |
this.commission = 0.0;
|
|
|
335 |
setServiceTaxIsSet(false);
|
|
|
336 |
this.serviceTax = 0.0;
|
|
|
337 |
setSuppressPriceFeedIsSet(false);
|
|
|
338 |
this.suppressPriceFeed = false;
|
|
|
339 |
setSuppressInventoryFeedIsSet(false);
|
|
|
340 |
this.suppressInventoryFeed = false;
|
| 9404 |
vikram.rag |
341 |
setMaxNlcIsSet(false);
|
|
|
342 |
this.maxNlc = 0.0;
|
| 9456 |
vikram.rag |
343 |
this.skuAtSnapdeal = null;
|
| 9568 |
kshitij.so |
344 |
this.supc = null;
|
| 9724 |
kshitij.so |
345 |
this.shippingTime = null;
|
| 9779 |
kshitij.so |
346 |
this.updatedBy = null;
|
|
|
347 |
this.marketplaceItems = null;
|
| 8739 |
vikram.rag |
348 |
}
|
|
|
349 |
|
|
|
350 |
public long getItem_id() {
|
|
|
351 |
return this.item_id;
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
public void setItem_id(long item_id) {
|
|
|
355 |
this.item_id = item_id;
|
|
|
356 |
setItem_idIsSet(true);
|
|
|
357 |
}
|
|
|
358 |
|
|
|
359 |
public void unsetItem_id() {
|
|
|
360 |
__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
/** Returns true if field item_id is set (has been assigned a value) and false otherwise */
|
|
|
364 |
public boolean isSetItem_id() {
|
|
|
365 |
return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
|
|
|
366 |
}
|
|
|
367 |
|
|
|
368 |
public void setItem_idIsSet(boolean value) {
|
|
|
369 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
|
|
370 |
}
|
|
|
371 |
|
|
|
372 |
public long getWarehouseId() {
|
|
|
373 |
return this.warehouseId;
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
public void setWarehouseId(long warehouseId) {
|
|
|
377 |
this.warehouseId = warehouseId;
|
|
|
378 |
setWarehouseIdIsSet(true);
|
|
|
379 |
}
|
|
|
380 |
|
|
|
381 |
public void unsetWarehouseId() {
|
|
|
382 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
|
|
383 |
}
|
|
|
384 |
|
|
|
385 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
|
|
386 |
public boolean isSetWarehouseId() {
|
|
|
387 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
|
|
388 |
}
|
|
|
389 |
|
|
|
390 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
391 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
|
|
392 |
}
|
|
|
393 |
|
|
|
394 |
public double getExceptionPrice() {
|
|
|
395 |
return this.exceptionPrice;
|
|
|
396 |
}
|
|
|
397 |
|
|
|
398 |
public void setExceptionPrice(double exceptionPrice) {
|
|
|
399 |
this.exceptionPrice = exceptionPrice;
|
|
|
400 |
setExceptionPriceIsSet(true);
|
|
|
401 |
}
|
|
|
402 |
|
|
|
403 |
public void unsetExceptionPrice() {
|
|
|
404 |
__isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
|
|
|
405 |
}
|
|
|
406 |
|
|
|
407 |
/** Returns true if field exceptionPrice is set (has been assigned a value) and false otherwise */
|
|
|
408 |
public boolean isSetExceptionPrice() {
|
|
|
409 |
return __isset_bit_vector.get(__EXCEPTIONPRICE_ISSET_ID);
|
|
|
410 |
}
|
|
|
411 |
|
|
|
412 |
public void setExceptionPriceIsSet(boolean value) {
|
|
|
413 |
__isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
|
|
|
414 |
}
|
|
|
415 |
|
|
|
416 |
public boolean isIsListedOnSnapdeal() {
|
|
|
417 |
return this.isListedOnSnapdeal;
|
|
|
418 |
}
|
|
|
419 |
|
|
|
420 |
public void setIsListedOnSnapdeal(boolean isListedOnSnapdeal) {
|
|
|
421 |
this.isListedOnSnapdeal = isListedOnSnapdeal;
|
|
|
422 |
setIsListedOnSnapdealIsSet(true);
|
|
|
423 |
}
|
|
|
424 |
|
|
|
425 |
public void unsetIsListedOnSnapdeal() {
|
|
|
426 |
__isset_bit_vector.clear(__ISLISTEDONSNAPDEAL_ISSET_ID);
|
|
|
427 |
}
|
|
|
428 |
|
|
|
429 |
/** Returns true if field isListedOnSnapdeal is set (has been assigned a value) and false otherwise */
|
|
|
430 |
public boolean isSetIsListedOnSnapdeal() {
|
|
|
431 |
return __isset_bit_vector.get(__ISLISTEDONSNAPDEAL_ISSET_ID);
|
|
|
432 |
}
|
|
|
433 |
|
|
|
434 |
public void setIsListedOnSnapdealIsSet(boolean value) {
|
|
|
435 |
__isset_bit_vector.set(__ISLISTEDONSNAPDEAL_ISSET_ID, value);
|
|
|
436 |
}
|
|
|
437 |
|
| 9242 |
kshitij.so |
438 |
public double getTransferPrice() {
|
|
|
439 |
return this.transferPrice;
|
|
|
440 |
}
|
|
|
441 |
|
|
|
442 |
public void setTransferPrice(double transferPrice) {
|
|
|
443 |
this.transferPrice = transferPrice;
|
|
|
444 |
setTransferPriceIsSet(true);
|
|
|
445 |
}
|
|
|
446 |
|
|
|
447 |
public void unsetTransferPrice() {
|
|
|
448 |
__isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
|
|
|
449 |
}
|
|
|
450 |
|
|
|
451 |
/** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
|
|
|
452 |
public boolean isSetTransferPrice() {
|
|
|
453 |
return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
|
|
|
454 |
}
|
|
|
455 |
|
|
|
456 |
public void setTransferPriceIsSet(boolean value) {
|
|
|
457 |
__isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
|
|
|
458 |
}
|
|
|
459 |
|
|
|
460 |
public double getSellingPrice() {
|
|
|
461 |
return this.sellingPrice;
|
|
|
462 |
}
|
|
|
463 |
|
|
|
464 |
public void setSellingPrice(double sellingPrice) {
|
|
|
465 |
this.sellingPrice = sellingPrice;
|
|
|
466 |
setSellingPriceIsSet(true);
|
|
|
467 |
}
|
|
|
468 |
|
|
|
469 |
public void unsetSellingPrice() {
|
|
|
470 |
__isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
/** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
|
|
|
474 |
public boolean isSetSellingPrice() {
|
|
|
475 |
return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
|
|
|
476 |
}
|
|
|
477 |
|
|
|
478 |
public void setSellingPriceIsSet(boolean value) {
|
|
|
479 |
__isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
|
|
|
480 |
}
|
|
|
481 |
|
|
|
482 |
public double getCourierCost() {
|
|
|
483 |
return this.courierCost;
|
|
|
484 |
}
|
|
|
485 |
|
|
|
486 |
public void setCourierCost(double courierCost) {
|
|
|
487 |
this.courierCost = courierCost;
|
|
|
488 |
setCourierCostIsSet(true);
|
|
|
489 |
}
|
|
|
490 |
|
|
|
491 |
public void unsetCourierCost() {
|
|
|
492 |
__isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
/** Returns true if field courierCost is set (has been assigned a value) and false otherwise */
|
|
|
496 |
public boolean isSetCourierCost() {
|
|
|
497 |
return __isset_bit_vector.get(__COURIERCOST_ISSET_ID);
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public void setCourierCostIsSet(boolean value) {
|
|
|
501 |
__isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
|
|
|
502 |
}
|
|
|
503 |
|
|
|
504 |
public double getCommission() {
|
|
|
505 |
return this.commission;
|
|
|
506 |
}
|
|
|
507 |
|
|
|
508 |
public void setCommission(double commission) {
|
|
|
509 |
this.commission = commission;
|
|
|
510 |
setCommissionIsSet(true);
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public void unsetCommission() {
|
|
|
514 |
__isset_bit_vector.clear(__COMMISSION_ISSET_ID);
|
|
|
515 |
}
|
|
|
516 |
|
|
|
517 |
/** Returns true if field commission is set (has been assigned a value) and false otherwise */
|
|
|
518 |
public boolean isSetCommission() {
|
|
|
519 |
return __isset_bit_vector.get(__COMMISSION_ISSET_ID);
|
|
|
520 |
}
|
|
|
521 |
|
|
|
522 |
public void setCommissionIsSet(boolean value) {
|
|
|
523 |
__isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
|
|
|
524 |
}
|
|
|
525 |
|
|
|
526 |
public double getServiceTax() {
|
|
|
527 |
return this.serviceTax;
|
|
|
528 |
}
|
|
|
529 |
|
|
|
530 |
public void setServiceTax(double serviceTax) {
|
|
|
531 |
this.serviceTax = serviceTax;
|
|
|
532 |
setServiceTaxIsSet(true);
|
|
|
533 |
}
|
|
|
534 |
|
|
|
535 |
public void unsetServiceTax() {
|
|
|
536 |
__isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
|
|
|
537 |
}
|
|
|
538 |
|
|
|
539 |
/** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */
|
|
|
540 |
public boolean isSetServiceTax() {
|
|
|
541 |
return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);
|
|
|
542 |
}
|
|
|
543 |
|
|
|
544 |
public void setServiceTaxIsSet(boolean value) {
|
|
|
545 |
__isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
|
|
|
546 |
}
|
|
|
547 |
|
|
|
548 |
public boolean isSuppressPriceFeed() {
|
|
|
549 |
return this.suppressPriceFeed;
|
|
|
550 |
}
|
|
|
551 |
|
|
|
552 |
public void setSuppressPriceFeed(boolean suppressPriceFeed) {
|
|
|
553 |
this.suppressPriceFeed = suppressPriceFeed;
|
|
|
554 |
setSuppressPriceFeedIsSet(true);
|
|
|
555 |
}
|
|
|
556 |
|
|
|
557 |
public void unsetSuppressPriceFeed() {
|
|
|
558 |
__isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
|
|
|
559 |
}
|
|
|
560 |
|
|
|
561 |
/** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
|
|
|
562 |
public boolean isSetSuppressPriceFeed() {
|
|
|
563 |
return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
|
|
|
564 |
}
|
|
|
565 |
|
|
|
566 |
public void setSuppressPriceFeedIsSet(boolean value) {
|
|
|
567 |
__isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
|
|
|
568 |
}
|
|
|
569 |
|
|
|
570 |
public boolean isSuppressInventoryFeed() {
|
|
|
571 |
return this.suppressInventoryFeed;
|
|
|
572 |
}
|
|
|
573 |
|
|
|
574 |
public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
|
|
|
575 |
this.suppressInventoryFeed = suppressInventoryFeed;
|
|
|
576 |
setSuppressInventoryFeedIsSet(true);
|
|
|
577 |
}
|
|
|
578 |
|
|
|
579 |
public void unsetSuppressInventoryFeed() {
|
|
|
580 |
__isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
|
|
|
581 |
}
|
|
|
582 |
|
|
|
583 |
/** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
|
|
|
584 |
public boolean isSetSuppressInventoryFeed() {
|
|
|
585 |
return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
|
|
|
586 |
}
|
|
|
587 |
|
|
|
588 |
public void setSuppressInventoryFeedIsSet(boolean value) {
|
|
|
589 |
__isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
|
|
|
590 |
}
|
|
|
591 |
|
| 9404 |
vikram.rag |
592 |
public double getMaxNlc() {
|
|
|
593 |
return this.maxNlc;
|
|
|
594 |
}
|
|
|
595 |
|
|
|
596 |
public void setMaxNlc(double maxNlc) {
|
|
|
597 |
this.maxNlc = maxNlc;
|
|
|
598 |
setMaxNlcIsSet(true);
|
|
|
599 |
}
|
|
|
600 |
|
|
|
601 |
public void unsetMaxNlc() {
|
|
|
602 |
__isset_bit_vector.clear(__MAXNLC_ISSET_ID);
|
|
|
603 |
}
|
|
|
604 |
|
|
|
605 |
/** Returns true if field maxNlc is set (has been assigned a value) and false otherwise */
|
|
|
606 |
public boolean isSetMaxNlc() {
|
|
|
607 |
return __isset_bit_vector.get(__MAXNLC_ISSET_ID);
|
|
|
608 |
}
|
|
|
609 |
|
|
|
610 |
public void setMaxNlcIsSet(boolean value) {
|
|
|
611 |
__isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
|
|
|
612 |
}
|
|
|
613 |
|
| 9456 |
vikram.rag |
614 |
public String getSkuAtSnapdeal() {
|
|
|
615 |
return this.skuAtSnapdeal;
|
|
|
616 |
}
|
|
|
617 |
|
|
|
618 |
public void setSkuAtSnapdeal(String skuAtSnapdeal) {
|
|
|
619 |
this.skuAtSnapdeal = skuAtSnapdeal;
|
|
|
620 |
}
|
|
|
621 |
|
|
|
622 |
public void unsetSkuAtSnapdeal() {
|
|
|
623 |
this.skuAtSnapdeal = null;
|
|
|
624 |
}
|
|
|
625 |
|
|
|
626 |
/** Returns true if field skuAtSnapdeal is set (has been assigned a value) and false otherwise */
|
|
|
627 |
public boolean isSetSkuAtSnapdeal() {
|
|
|
628 |
return this.skuAtSnapdeal != null;
|
|
|
629 |
}
|
|
|
630 |
|
|
|
631 |
public void setSkuAtSnapdealIsSet(boolean value) {
|
|
|
632 |
if (!value) {
|
|
|
633 |
this.skuAtSnapdeal = null;
|
|
|
634 |
}
|
|
|
635 |
}
|
|
|
636 |
|
| 9568 |
kshitij.so |
637 |
public String getSupc() {
|
|
|
638 |
return this.supc;
|
|
|
639 |
}
|
|
|
640 |
|
|
|
641 |
public void setSupc(String supc) {
|
|
|
642 |
this.supc = supc;
|
|
|
643 |
}
|
|
|
644 |
|
|
|
645 |
public void unsetSupc() {
|
|
|
646 |
this.supc = null;
|
|
|
647 |
}
|
|
|
648 |
|
|
|
649 |
/** Returns true if field supc is set (has been assigned a value) and false otherwise */
|
|
|
650 |
public boolean isSetSupc() {
|
|
|
651 |
return this.supc != null;
|
|
|
652 |
}
|
|
|
653 |
|
|
|
654 |
public void setSupcIsSet(boolean value) {
|
|
|
655 |
if (!value) {
|
|
|
656 |
this.supc = null;
|
|
|
657 |
}
|
|
|
658 |
}
|
|
|
659 |
|
| 9724 |
kshitij.so |
660 |
public String getShippingTime() {
|
|
|
661 |
return this.shippingTime;
|
|
|
662 |
}
|
|
|
663 |
|
|
|
664 |
public void setShippingTime(String shippingTime) {
|
|
|
665 |
this.shippingTime = shippingTime;
|
|
|
666 |
}
|
|
|
667 |
|
|
|
668 |
public void unsetShippingTime() {
|
|
|
669 |
this.shippingTime = null;
|
|
|
670 |
}
|
|
|
671 |
|
|
|
672 |
/** Returns true if field shippingTime is set (has been assigned a value) and false otherwise */
|
|
|
673 |
public boolean isSetShippingTime() {
|
|
|
674 |
return this.shippingTime != null;
|
|
|
675 |
}
|
|
|
676 |
|
|
|
677 |
public void setShippingTimeIsSet(boolean value) {
|
|
|
678 |
if (!value) {
|
|
|
679 |
this.shippingTime = null;
|
|
|
680 |
}
|
|
|
681 |
}
|
|
|
682 |
|
| 9779 |
kshitij.so |
683 |
public String getUpdatedBy() {
|
|
|
684 |
return this.updatedBy;
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
public void setUpdatedBy(String updatedBy) {
|
|
|
688 |
this.updatedBy = updatedBy;
|
|
|
689 |
}
|
|
|
690 |
|
|
|
691 |
public void unsetUpdatedBy() {
|
|
|
692 |
this.updatedBy = null;
|
|
|
693 |
}
|
|
|
694 |
|
|
|
695 |
/** Returns true if field updatedBy is set (has been assigned a value) and false otherwise */
|
|
|
696 |
public boolean isSetUpdatedBy() {
|
|
|
697 |
return this.updatedBy != null;
|
|
|
698 |
}
|
|
|
699 |
|
|
|
700 |
public void setUpdatedByIsSet(boolean value) {
|
|
|
701 |
if (!value) {
|
|
|
702 |
this.updatedBy = null;
|
|
|
703 |
}
|
|
|
704 |
}
|
|
|
705 |
|
|
|
706 |
public MarketplaceItems getMarketplaceItems() {
|
|
|
707 |
return this.marketplaceItems;
|
|
|
708 |
}
|
|
|
709 |
|
|
|
710 |
public void setMarketplaceItems(MarketplaceItems marketplaceItems) {
|
|
|
711 |
this.marketplaceItems = marketplaceItems;
|
|
|
712 |
}
|
|
|
713 |
|
|
|
714 |
public void unsetMarketplaceItems() {
|
|
|
715 |
this.marketplaceItems = null;
|
|
|
716 |
}
|
|
|
717 |
|
|
|
718 |
/** Returns true if field marketplaceItems is set (has been assigned a value) and false otherwise */
|
|
|
719 |
public boolean isSetMarketplaceItems() {
|
|
|
720 |
return this.marketplaceItems != null;
|
|
|
721 |
}
|
|
|
722 |
|
|
|
723 |
public void setMarketplaceItemsIsSet(boolean value) {
|
|
|
724 |
if (!value) {
|
|
|
725 |
this.marketplaceItems = null;
|
|
|
726 |
}
|
|
|
727 |
}
|
|
|
728 |
|
| 8739 |
vikram.rag |
729 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
730 |
switch (field) {
|
|
|
731 |
case ITEM_ID:
|
|
|
732 |
if (value == null) {
|
|
|
733 |
unsetItem_id();
|
|
|
734 |
} else {
|
|
|
735 |
setItem_id((Long)value);
|
|
|
736 |
}
|
|
|
737 |
break;
|
|
|
738 |
|
|
|
739 |
case WAREHOUSE_ID:
|
|
|
740 |
if (value == null) {
|
|
|
741 |
unsetWarehouseId();
|
|
|
742 |
} else {
|
|
|
743 |
setWarehouseId((Long)value);
|
|
|
744 |
}
|
|
|
745 |
break;
|
|
|
746 |
|
|
|
747 |
case EXCEPTION_PRICE:
|
|
|
748 |
if (value == null) {
|
|
|
749 |
unsetExceptionPrice();
|
|
|
750 |
} else {
|
|
|
751 |
setExceptionPrice((Double)value);
|
|
|
752 |
}
|
|
|
753 |
break;
|
|
|
754 |
|
|
|
755 |
case IS_LISTED_ON_SNAPDEAL:
|
|
|
756 |
if (value == null) {
|
|
|
757 |
unsetIsListedOnSnapdeal();
|
|
|
758 |
} else {
|
|
|
759 |
setIsListedOnSnapdeal((Boolean)value);
|
|
|
760 |
}
|
|
|
761 |
break;
|
|
|
762 |
|
| 9242 |
kshitij.so |
763 |
case TRANSFER_PRICE:
|
|
|
764 |
if (value == null) {
|
|
|
765 |
unsetTransferPrice();
|
|
|
766 |
} else {
|
|
|
767 |
setTransferPrice((Double)value);
|
|
|
768 |
}
|
|
|
769 |
break;
|
|
|
770 |
|
|
|
771 |
case SELLING_PRICE:
|
|
|
772 |
if (value == null) {
|
|
|
773 |
unsetSellingPrice();
|
|
|
774 |
} else {
|
|
|
775 |
setSellingPrice((Double)value);
|
|
|
776 |
}
|
|
|
777 |
break;
|
|
|
778 |
|
|
|
779 |
case COURIER_COST:
|
|
|
780 |
if (value == null) {
|
|
|
781 |
unsetCourierCost();
|
|
|
782 |
} else {
|
|
|
783 |
setCourierCost((Double)value);
|
|
|
784 |
}
|
|
|
785 |
break;
|
|
|
786 |
|
|
|
787 |
case COMMISSION:
|
|
|
788 |
if (value == null) {
|
|
|
789 |
unsetCommission();
|
|
|
790 |
} else {
|
|
|
791 |
setCommission((Double)value);
|
|
|
792 |
}
|
|
|
793 |
break;
|
|
|
794 |
|
|
|
795 |
case SERVICE_TAX:
|
|
|
796 |
if (value == null) {
|
|
|
797 |
unsetServiceTax();
|
|
|
798 |
} else {
|
|
|
799 |
setServiceTax((Double)value);
|
|
|
800 |
}
|
|
|
801 |
break;
|
|
|
802 |
|
|
|
803 |
case SUPPRESS_PRICE_FEED:
|
|
|
804 |
if (value == null) {
|
|
|
805 |
unsetSuppressPriceFeed();
|
|
|
806 |
} else {
|
|
|
807 |
setSuppressPriceFeed((Boolean)value);
|
|
|
808 |
}
|
|
|
809 |
break;
|
|
|
810 |
|
|
|
811 |
case SUPPRESS_INVENTORY_FEED:
|
|
|
812 |
if (value == null) {
|
|
|
813 |
unsetSuppressInventoryFeed();
|
|
|
814 |
} else {
|
|
|
815 |
setSuppressInventoryFeed((Boolean)value);
|
|
|
816 |
}
|
|
|
817 |
break;
|
|
|
818 |
|
| 9404 |
vikram.rag |
819 |
case MAX_NLC:
|
|
|
820 |
if (value == null) {
|
|
|
821 |
unsetMaxNlc();
|
|
|
822 |
} else {
|
|
|
823 |
setMaxNlc((Double)value);
|
|
|
824 |
}
|
|
|
825 |
break;
|
|
|
826 |
|
| 9456 |
vikram.rag |
827 |
case SKU_AT_SNAPDEAL:
|
|
|
828 |
if (value == null) {
|
|
|
829 |
unsetSkuAtSnapdeal();
|
|
|
830 |
} else {
|
|
|
831 |
setSkuAtSnapdeal((String)value);
|
|
|
832 |
}
|
|
|
833 |
break;
|
|
|
834 |
|
| 9568 |
kshitij.so |
835 |
case SUPC:
|
|
|
836 |
if (value == null) {
|
|
|
837 |
unsetSupc();
|
|
|
838 |
} else {
|
|
|
839 |
setSupc((String)value);
|
|
|
840 |
}
|
|
|
841 |
break;
|
|
|
842 |
|
| 9724 |
kshitij.so |
843 |
case SHIPPING_TIME:
|
|
|
844 |
if (value == null) {
|
|
|
845 |
unsetShippingTime();
|
|
|
846 |
} else {
|
|
|
847 |
setShippingTime((String)value);
|
|
|
848 |
}
|
|
|
849 |
break;
|
|
|
850 |
|
| 9779 |
kshitij.so |
851 |
case UPDATED_BY:
|
|
|
852 |
if (value == null) {
|
|
|
853 |
unsetUpdatedBy();
|
|
|
854 |
} else {
|
|
|
855 |
setUpdatedBy((String)value);
|
|
|
856 |
}
|
|
|
857 |
break;
|
|
|
858 |
|
|
|
859 |
case MARKETPLACE_ITEMS:
|
|
|
860 |
if (value == null) {
|
|
|
861 |
unsetMarketplaceItems();
|
|
|
862 |
} else {
|
|
|
863 |
setMarketplaceItems((MarketplaceItems)value);
|
|
|
864 |
}
|
|
|
865 |
break;
|
|
|
866 |
|
| 8739 |
vikram.rag |
867 |
}
|
|
|
868 |
}
|
|
|
869 |
|
|
|
870 |
public Object getFieldValue(_Fields field) {
|
|
|
871 |
switch (field) {
|
|
|
872 |
case ITEM_ID:
|
|
|
873 |
return Long.valueOf(getItem_id());
|
|
|
874 |
|
|
|
875 |
case WAREHOUSE_ID:
|
|
|
876 |
return Long.valueOf(getWarehouseId());
|
|
|
877 |
|
|
|
878 |
case EXCEPTION_PRICE:
|
|
|
879 |
return Double.valueOf(getExceptionPrice());
|
|
|
880 |
|
|
|
881 |
case IS_LISTED_ON_SNAPDEAL:
|
|
|
882 |
return Boolean.valueOf(isIsListedOnSnapdeal());
|
|
|
883 |
|
| 9242 |
kshitij.so |
884 |
case TRANSFER_PRICE:
|
|
|
885 |
return Double.valueOf(getTransferPrice());
|
|
|
886 |
|
|
|
887 |
case SELLING_PRICE:
|
|
|
888 |
return Double.valueOf(getSellingPrice());
|
|
|
889 |
|
|
|
890 |
case COURIER_COST:
|
|
|
891 |
return Double.valueOf(getCourierCost());
|
|
|
892 |
|
|
|
893 |
case COMMISSION:
|
|
|
894 |
return Double.valueOf(getCommission());
|
|
|
895 |
|
|
|
896 |
case SERVICE_TAX:
|
|
|
897 |
return Double.valueOf(getServiceTax());
|
|
|
898 |
|
|
|
899 |
case SUPPRESS_PRICE_FEED:
|
|
|
900 |
return Boolean.valueOf(isSuppressPriceFeed());
|
|
|
901 |
|
|
|
902 |
case SUPPRESS_INVENTORY_FEED:
|
|
|
903 |
return Boolean.valueOf(isSuppressInventoryFeed());
|
|
|
904 |
|
| 9404 |
vikram.rag |
905 |
case MAX_NLC:
|
|
|
906 |
return Double.valueOf(getMaxNlc());
|
|
|
907 |
|
| 9456 |
vikram.rag |
908 |
case SKU_AT_SNAPDEAL:
|
|
|
909 |
return getSkuAtSnapdeal();
|
|
|
910 |
|
| 9568 |
kshitij.so |
911 |
case SUPC:
|
|
|
912 |
return getSupc();
|
|
|
913 |
|
| 9724 |
kshitij.so |
914 |
case SHIPPING_TIME:
|
|
|
915 |
return getShippingTime();
|
|
|
916 |
|
| 9779 |
kshitij.so |
917 |
case UPDATED_BY:
|
|
|
918 |
return getUpdatedBy();
|
|
|
919 |
|
|
|
920 |
case MARKETPLACE_ITEMS:
|
|
|
921 |
return getMarketplaceItems();
|
|
|
922 |
|
| 8739 |
vikram.rag |
923 |
}
|
|
|
924 |
throw new IllegalStateException();
|
|
|
925 |
}
|
|
|
926 |
|
|
|
927 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
928 |
public boolean isSet(_Fields field) {
|
|
|
929 |
if (field == null) {
|
|
|
930 |
throw new IllegalArgumentException();
|
|
|
931 |
}
|
|
|
932 |
|
|
|
933 |
switch (field) {
|
|
|
934 |
case ITEM_ID:
|
|
|
935 |
return isSetItem_id();
|
|
|
936 |
case WAREHOUSE_ID:
|
|
|
937 |
return isSetWarehouseId();
|
|
|
938 |
case EXCEPTION_PRICE:
|
|
|
939 |
return isSetExceptionPrice();
|
|
|
940 |
case IS_LISTED_ON_SNAPDEAL:
|
|
|
941 |
return isSetIsListedOnSnapdeal();
|
| 9242 |
kshitij.so |
942 |
case TRANSFER_PRICE:
|
|
|
943 |
return isSetTransferPrice();
|
|
|
944 |
case SELLING_PRICE:
|
|
|
945 |
return isSetSellingPrice();
|
|
|
946 |
case COURIER_COST:
|
|
|
947 |
return isSetCourierCost();
|
|
|
948 |
case COMMISSION:
|
|
|
949 |
return isSetCommission();
|
|
|
950 |
case SERVICE_TAX:
|
|
|
951 |
return isSetServiceTax();
|
|
|
952 |
case SUPPRESS_PRICE_FEED:
|
|
|
953 |
return isSetSuppressPriceFeed();
|
|
|
954 |
case SUPPRESS_INVENTORY_FEED:
|
|
|
955 |
return isSetSuppressInventoryFeed();
|
| 9404 |
vikram.rag |
956 |
case MAX_NLC:
|
|
|
957 |
return isSetMaxNlc();
|
| 9456 |
vikram.rag |
958 |
case SKU_AT_SNAPDEAL:
|
|
|
959 |
return isSetSkuAtSnapdeal();
|
| 9568 |
kshitij.so |
960 |
case SUPC:
|
|
|
961 |
return isSetSupc();
|
| 9724 |
kshitij.so |
962 |
case SHIPPING_TIME:
|
|
|
963 |
return isSetShippingTime();
|
| 9779 |
kshitij.so |
964 |
case UPDATED_BY:
|
|
|
965 |
return isSetUpdatedBy();
|
|
|
966 |
case MARKETPLACE_ITEMS:
|
|
|
967 |
return isSetMarketplaceItems();
|
| 8739 |
vikram.rag |
968 |
}
|
|
|
969 |
throw new IllegalStateException();
|
|
|
970 |
}
|
|
|
971 |
|
|
|
972 |
@Override
|
|
|
973 |
public boolean equals(Object that) {
|
|
|
974 |
if (that == null)
|
|
|
975 |
return false;
|
|
|
976 |
if (that instanceof SnapdealItem)
|
|
|
977 |
return this.equals((SnapdealItem)that);
|
|
|
978 |
return false;
|
|
|
979 |
}
|
|
|
980 |
|
|
|
981 |
public boolean equals(SnapdealItem that) {
|
|
|
982 |
if (that == null)
|
|
|
983 |
return false;
|
|
|
984 |
|
|
|
985 |
boolean this_present_item_id = true;
|
|
|
986 |
boolean that_present_item_id = true;
|
|
|
987 |
if (this_present_item_id || that_present_item_id) {
|
|
|
988 |
if (!(this_present_item_id && that_present_item_id))
|
|
|
989 |
return false;
|
|
|
990 |
if (this.item_id != that.item_id)
|
|
|
991 |
return false;
|
|
|
992 |
}
|
|
|
993 |
|
|
|
994 |
boolean this_present_warehouseId = true;
|
|
|
995 |
boolean that_present_warehouseId = true;
|
|
|
996 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
997 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
|
|
998 |
return false;
|
|
|
999 |
if (this.warehouseId != that.warehouseId)
|
|
|
1000 |
return false;
|
|
|
1001 |
}
|
|
|
1002 |
|
|
|
1003 |
boolean this_present_exceptionPrice = true;
|
|
|
1004 |
boolean that_present_exceptionPrice = true;
|
|
|
1005 |
if (this_present_exceptionPrice || that_present_exceptionPrice) {
|
|
|
1006 |
if (!(this_present_exceptionPrice && that_present_exceptionPrice))
|
|
|
1007 |
return false;
|
|
|
1008 |
if (this.exceptionPrice != that.exceptionPrice)
|
|
|
1009 |
return false;
|
|
|
1010 |
}
|
|
|
1011 |
|
|
|
1012 |
boolean this_present_isListedOnSnapdeal = true;
|
|
|
1013 |
boolean that_present_isListedOnSnapdeal = true;
|
|
|
1014 |
if (this_present_isListedOnSnapdeal || that_present_isListedOnSnapdeal) {
|
|
|
1015 |
if (!(this_present_isListedOnSnapdeal && that_present_isListedOnSnapdeal))
|
|
|
1016 |
return false;
|
|
|
1017 |
if (this.isListedOnSnapdeal != that.isListedOnSnapdeal)
|
|
|
1018 |
return false;
|
|
|
1019 |
}
|
|
|
1020 |
|
| 9242 |
kshitij.so |
1021 |
boolean this_present_transferPrice = true;
|
|
|
1022 |
boolean that_present_transferPrice = true;
|
|
|
1023 |
if (this_present_transferPrice || that_present_transferPrice) {
|
|
|
1024 |
if (!(this_present_transferPrice && that_present_transferPrice))
|
|
|
1025 |
return false;
|
|
|
1026 |
if (this.transferPrice != that.transferPrice)
|
|
|
1027 |
return false;
|
|
|
1028 |
}
|
|
|
1029 |
|
|
|
1030 |
boolean this_present_sellingPrice = true;
|
|
|
1031 |
boolean that_present_sellingPrice = true;
|
|
|
1032 |
if (this_present_sellingPrice || that_present_sellingPrice) {
|
|
|
1033 |
if (!(this_present_sellingPrice && that_present_sellingPrice))
|
|
|
1034 |
return false;
|
|
|
1035 |
if (this.sellingPrice != that.sellingPrice)
|
|
|
1036 |
return false;
|
|
|
1037 |
}
|
|
|
1038 |
|
|
|
1039 |
boolean this_present_courierCost = true;
|
|
|
1040 |
boolean that_present_courierCost = true;
|
|
|
1041 |
if (this_present_courierCost || that_present_courierCost) {
|
|
|
1042 |
if (!(this_present_courierCost && that_present_courierCost))
|
|
|
1043 |
return false;
|
|
|
1044 |
if (this.courierCost != that.courierCost)
|
|
|
1045 |
return false;
|
|
|
1046 |
}
|
|
|
1047 |
|
|
|
1048 |
boolean this_present_commission = true;
|
|
|
1049 |
boolean that_present_commission = true;
|
|
|
1050 |
if (this_present_commission || that_present_commission) {
|
|
|
1051 |
if (!(this_present_commission && that_present_commission))
|
|
|
1052 |
return false;
|
|
|
1053 |
if (this.commission != that.commission)
|
|
|
1054 |
return false;
|
|
|
1055 |
}
|
|
|
1056 |
|
|
|
1057 |
boolean this_present_serviceTax = true;
|
|
|
1058 |
boolean that_present_serviceTax = true;
|
|
|
1059 |
if (this_present_serviceTax || that_present_serviceTax) {
|
|
|
1060 |
if (!(this_present_serviceTax && that_present_serviceTax))
|
|
|
1061 |
return false;
|
|
|
1062 |
if (this.serviceTax != that.serviceTax)
|
|
|
1063 |
return false;
|
|
|
1064 |
}
|
|
|
1065 |
|
|
|
1066 |
boolean this_present_suppressPriceFeed = true;
|
|
|
1067 |
boolean that_present_suppressPriceFeed = true;
|
|
|
1068 |
if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
|
|
|
1069 |
if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
|
|
|
1070 |
return false;
|
|
|
1071 |
if (this.suppressPriceFeed != that.suppressPriceFeed)
|
|
|
1072 |
return false;
|
|
|
1073 |
}
|
|
|
1074 |
|
|
|
1075 |
boolean this_present_suppressInventoryFeed = true;
|
|
|
1076 |
boolean that_present_suppressInventoryFeed = true;
|
|
|
1077 |
if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
|
|
|
1078 |
if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
|
|
|
1079 |
return false;
|
|
|
1080 |
if (this.suppressInventoryFeed != that.suppressInventoryFeed)
|
|
|
1081 |
return false;
|
|
|
1082 |
}
|
|
|
1083 |
|
| 9404 |
vikram.rag |
1084 |
boolean this_present_maxNlc = true;
|
|
|
1085 |
boolean that_present_maxNlc = true;
|
|
|
1086 |
if (this_present_maxNlc || that_present_maxNlc) {
|
|
|
1087 |
if (!(this_present_maxNlc && that_present_maxNlc))
|
|
|
1088 |
return false;
|
|
|
1089 |
if (this.maxNlc != that.maxNlc)
|
|
|
1090 |
return false;
|
|
|
1091 |
}
|
|
|
1092 |
|
| 9456 |
vikram.rag |
1093 |
boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();
|
|
|
1094 |
boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();
|
|
|
1095 |
if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {
|
|
|
1096 |
if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))
|
|
|
1097 |
return false;
|
|
|
1098 |
if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))
|
|
|
1099 |
return false;
|
|
|
1100 |
}
|
|
|
1101 |
|
| 9568 |
kshitij.so |
1102 |
boolean this_present_supc = true && this.isSetSupc();
|
|
|
1103 |
boolean that_present_supc = true && that.isSetSupc();
|
|
|
1104 |
if (this_present_supc || that_present_supc) {
|
|
|
1105 |
if (!(this_present_supc && that_present_supc))
|
|
|
1106 |
return false;
|
|
|
1107 |
if (!this.supc.equals(that.supc))
|
|
|
1108 |
return false;
|
|
|
1109 |
}
|
|
|
1110 |
|
| 9724 |
kshitij.so |
1111 |
boolean this_present_shippingTime = true && this.isSetShippingTime();
|
|
|
1112 |
boolean that_present_shippingTime = true && that.isSetShippingTime();
|
|
|
1113 |
if (this_present_shippingTime || that_present_shippingTime) {
|
|
|
1114 |
if (!(this_present_shippingTime && that_present_shippingTime))
|
|
|
1115 |
return false;
|
|
|
1116 |
if (!this.shippingTime.equals(that.shippingTime))
|
|
|
1117 |
return false;
|
|
|
1118 |
}
|
|
|
1119 |
|
| 9779 |
kshitij.so |
1120 |
boolean this_present_updatedBy = true && this.isSetUpdatedBy();
|
|
|
1121 |
boolean that_present_updatedBy = true && that.isSetUpdatedBy();
|
|
|
1122 |
if (this_present_updatedBy || that_present_updatedBy) {
|
|
|
1123 |
if (!(this_present_updatedBy && that_present_updatedBy))
|
|
|
1124 |
return false;
|
|
|
1125 |
if (!this.updatedBy.equals(that.updatedBy))
|
|
|
1126 |
return false;
|
|
|
1127 |
}
|
|
|
1128 |
|
|
|
1129 |
boolean this_present_marketplaceItems = true && this.isSetMarketplaceItems();
|
|
|
1130 |
boolean that_present_marketplaceItems = true && that.isSetMarketplaceItems();
|
|
|
1131 |
if (this_present_marketplaceItems || that_present_marketplaceItems) {
|
|
|
1132 |
if (!(this_present_marketplaceItems && that_present_marketplaceItems))
|
|
|
1133 |
return false;
|
|
|
1134 |
if (!this.marketplaceItems.equals(that.marketplaceItems))
|
|
|
1135 |
return false;
|
|
|
1136 |
}
|
|
|
1137 |
|
| 8739 |
vikram.rag |
1138 |
return true;
|
|
|
1139 |
}
|
|
|
1140 |
|
|
|
1141 |
@Override
|
|
|
1142 |
public int hashCode() {
|
|
|
1143 |
return 0;
|
|
|
1144 |
}
|
|
|
1145 |
|
|
|
1146 |
public int compareTo(SnapdealItem other) {
|
|
|
1147 |
if (!getClass().equals(other.getClass())) {
|
|
|
1148 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1149 |
}
|
|
|
1150 |
|
|
|
1151 |
int lastComparison = 0;
|
|
|
1152 |
SnapdealItem typedOther = (SnapdealItem)other;
|
|
|
1153 |
|
|
|
1154 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
|
|
1155 |
if (lastComparison != 0) {
|
|
|
1156 |
return lastComparison;
|
|
|
1157 |
}
|
|
|
1158 |
if (isSetItem_id()) {
|
|
|
1159 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
|
|
1160 |
if (lastComparison != 0) {
|
|
|
1161 |
return lastComparison;
|
|
|
1162 |
}
|
|
|
1163 |
}
|
|
|
1164 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
|
|
1165 |
if (lastComparison != 0) {
|
|
|
1166 |
return lastComparison;
|
|
|
1167 |
}
|
|
|
1168 |
if (isSetWarehouseId()) {
|
|
|
1169 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
1170 |
if (lastComparison != 0) {
|
|
|
1171 |
return lastComparison;
|
|
|
1172 |
}
|
|
|
1173 |
}
|
|
|
1174 |
lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
|
|
|
1175 |
if (lastComparison != 0) {
|
|
|
1176 |
return lastComparison;
|
|
|
1177 |
}
|
|
|
1178 |
if (isSetExceptionPrice()) {
|
|
|
1179 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
|
|
|
1180 |
if (lastComparison != 0) {
|
|
|
1181 |
return lastComparison;
|
|
|
1182 |
}
|
|
|
1183 |
}
|
|
|
1184 |
lastComparison = Boolean.valueOf(isSetIsListedOnSnapdeal()).compareTo(typedOther.isSetIsListedOnSnapdeal());
|
|
|
1185 |
if (lastComparison != 0) {
|
|
|
1186 |
return lastComparison;
|
|
|
1187 |
}
|
|
|
1188 |
if (isSetIsListedOnSnapdeal()) {
|
|
|
1189 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSnapdeal, typedOther.isListedOnSnapdeal);
|
|
|
1190 |
if (lastComparison != 0) {
|
|
|
1191 |
return lastComparison;
|
|
|
1192 |
}
|
|
|
1193 |
}
|
| 9242 |
kshitij.so |
1194 |
lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
|
|
|
1195 |
if (lastComparison != 0) {
|
|
|
1196 |
return lastComparison;
|
|
|
1197 |
}
|
|
|
1198 |
if (isSetTransferPrice()) {
|
|
|
1199 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
|
|
|
1200 |
if (lastComparison != 0) {
|
|
|
1201 |
return lastComparison;
|
|
|
1202 |
}
|
|
|
1203 |
}
|
|
|
1204 |
lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
|
|
|
1205 |
if (lastComparison != 0) {
|
|
|
1206 |
return lastComparison;
|
|
|
1207 |
}
|
|
|
1208 |
if (isSetSellingPrice()) {
|
|
|
1209 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
|
|
|
1210 |
if (lastComparison != 0) {
|
|
|
1211 |
return lastComparison;
|
|
|
1212 |
}
|
|
|
1213 |
}
|
|
|
1214 |
lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
|
|
|
1215 |
if (lastComparison != 0) {
|
|
|
1216 |
return lastComparison;
|
|
|
1217 |
}
|
|
|
1218 |
if (isSetCourierCost()) {
|
|
|
1219 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
|
|
|
1220 |
if (lastComparison != 0) {
|
|
|
1221 |
return lastComparison;
|
|
|
1222 |
}
|
|
|
1223 |
}
|
|
|
1224 |
lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
|
|
|
1225 |
if (lastComparison != 0) {
|
|
|
1226 |
return lastComparison;
|
|
|
1227 |
}
|
|
|
1228 |
if (isSetCommission()) {
|
|
|
1229 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
|
|
|
1230 |
if (lastComparison != 0) {
|
|
|
1231 |
return lastComparison;
|
|
|
1232 |
}
|
|
|
1233 |
}
|
|
|
1234 |
lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
|
|
|
1235 |
if (lastComparison != 0) {
|
|
|
1236 |
return lastComparison;
|
|
|
1237 |
}
|
|
|
1238 |
if (isSetServiceTax()) {
|
|
|
1239 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
|
|
|
1240 |
if (lastComparison != 0) {
|
|
|
1241 |
return lastComparison;
|
|
|
1242 |
}
|
|
|
1243 |
}
|
|
|
1244 |
lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
|
|
|
1245 |
if (lastComparison != 0) {
|
|
|
1246 |
return lastComparison;
|
|
|
1247 |
}
|
|
|
1248 |
if (isSetSuppressPriceFeed()) {
|
|
|
1249 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
|
|
|
1250 |
if (lastComparison != 0) {
|
|
|
1251 |
return lastComparison;
|
|
|
1252 |
}
|
|
|
1253 |
}
|
|
|
1254 |
lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
|
|
|
1255 |
if (lastComparison != 0) {
|
|
|
1256 |
return lastComparison;
|
|
|
1257 |
}
|
|
|
1258 |
if (isSetSuppressInventoryFeed()) {
|
|
|
1259 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
|
|
|
1260 |
if (lastComparison != 0) {
|
|
|
1261 |
return lastComparison;
|
|
|
1262 |
}
|
|
|
1263 |
}
|
| 9404 |
vikram.rag |
1264 |
lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
|
|
|
1265 |
if (lastComparison != 0) {
|
|
|
1266 |
return lastComparison;
|
|
|
1267 |
}
|
|
|
1268 |
if (isSetMaxNlc()) {
|
|
|
1269 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
|
|
|
1270 |
if (lastComparison != 0) {
|
|
|
1271 |
return lastComparison;
|
|
|
1272 |
}
|
|
|
1273 |
}
|
| 9456 |
vikram.rag |
1274 |
lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());
|
|
|
1275 |
if (lastComparison != 0) {
|
|
|
1276 |
return lastComparison;
|
|
|
1277 |
}
|
|
|
1278 |
if (isSetSkuAtSnapdeal()) {
|
|
|
1279 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);
|
|
|
1280 |
if (lastComparison != 0) {
|
|
|
1281 |
return lastComparison;
|
|
|
1282 |
}
|
|
|
1283 |
}
|
| 9568 |
kshitij.so |
1284 |
lastComparison = Boolean.valueOf(isSetSupc()).compareTo(typedOther.isSetSupc());
|
|
|
1285 |
if (lastComparison != 0) {
|
|
|
1286 |
return lastComparison;
|
|
|
1287 |
}
|
|
|
1288 |
if (isSetSupc()) {
|
|
|
1289 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supc, typedOther.supc);
|
|
|
1290 |
if (lastComparison != 0) {
|
|
|
1291 |
return lastComparison;
|
|
|
1292 |
}
|
|
|
1293 |
}
|
| 9724 |
kshitij.so |
1294 |
lastComparison = Boolean.valueOf(isSetShippingTime()).compareTo(typedOther.isSetShippingTime());
|
|
|
1295 |
if (lastComparison != 0) {
|
|
|
1296 |
return lastComparison;
|
|
|
1297 |
}
|
|
|
1298 |
if (isSetShippingTime()) {
|
|
|
1299 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingTime, typedOther.shippingTime);
|
|
|
1300 |
if (lastComparison != 0) {
|
|
|
1301 |
return lastComparison;
|
|
|
1302 |
}
|
|
|
1303 |
}
|
| 9779 |
kshitij.so |
1304 |
lastComparison = Boolean.valueOf(isSetUpdatedBy()).compareTo(typedOther.isSetUpdatedBy());
|
|
|
1305 |
if (lastComparison != 0) {
|
|
|
1306 |
return lastComparison;
|
|
|
1307 |
}
|
|
|
1308 |
if (isSetUpdatedBy()) {
|
|
|
1309 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedBy, typedOther.updatedBy);
|
|
|
1310 |
if (lastComparison != 0) {
|
|
|
1311 |
return lastComparison;
|
|
|
1312 |
}
|
|
|
1313 |
}
|
|
|
1314 |
lastComparison = Boolean.valueOf(isSetMarketplaceItems()).compareTo(typedOther.isSetMarketplaceItems());
|
|
|
1315 |
if (lastComparison != 0) {
|
|
|
1316 |
return lastComparison;
|
|
|
1317 |
}
|
|
|
1318 |
if (isSetMarketplaceItems()) {
|
|
|
1319 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marketplaceItems, typedOther.marketplaceItems);
|
|
|
1320 |
if (lastComparison != 0) {
|
|
|
1321 |
return lastComparison;
|
|
|
1322 |
}
|
|
|
1323 |
}
|
| 8739 |
vikram.rag |
1324 |
return 0;
|
|
|
1325 |
}
|
|
|
1326 |
|
|
|
1327 |
public _Fields fieldForId(int fieldId) {
|
|
|
1328 |
return _Fields.findByThriftId(fieldId);
|
|
|
1329 |
}
|
|
|
1330 |
|
|
|
1331 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1332 |
org.apache.thrift.protocol.TField field;
|
|
|
1333 |
iprot.readStructBegin();
|
|
|
1334 |
while (true)
|
|
|
1335 |
{
|
|
|
1336 |
field = iprot.readFieldBegin();
|
|
|
1337 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1338 |
break;
|
|
|
1339 |
}
|
|
|
1340 |
switch (field.id) {
|
|
|
1341 |
case 1: // ITEM_ID
|
|
|
1342 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1343 |
this.item_id = iprot.readI64();
|
|
|
1344 |
setItem_idIsSet(true);
|
|
|
1345 |
} else {
|
|
|
1346 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1347 |
}
|
|
|
1348 |
break;
|
|
|
1349 |
case 2: // WAREHOUSE_ID
|
|
|
1350 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1351 |
this.warehouseId = iprot.readI64();
|
|
|
1352 |
setWarehouseIdIsSet(true);
|
|
|
1353 |
} else {
|
|
|
1354 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1355 |
}
|
|
|
1356 |
break;
|
|
|
1357 |
case 3: // EXCEPTION_PRICE
|
|
|
1358 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1359 |
this.exceptionPrice = iprot.readDouble();
|
|
|
1360 |
setExceptionPriceIsSet(true);
|
|
|
1361 |
} else {
|
|
|
1362 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1363 |
}
|
|
|
1364 |
break;
|
|
|
1365 |
case 4: // IS_LISTED_ON_SNAPDEAL
|
|
|
1366 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1367 |
this.isListedOnSnapdeal = iprot.readBool();
|
|
|
1368 |
setIsListedOnSnapdealIsSet(true);
|
|
|
1369 |
} else {
|
|
|
1370 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1371 |
}
|
|
|
1372 |
break;
|
| 9242 |
kshitij.so |
1373 |
case 5: // TRANSFER_PRICE
|
|
|
1374 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1375 |
this.transferPrice = iprot.readDouble();
|
|
|
1376 |
setTransferPriceIsSet(true);
|
|
|
1377 |
} else {
|
|
|
1378 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1379 |
}
|
|
|
1380 |
break;
|
|
|
1381 |
case 6: // SELLING_PRICE
|
|
|
1382 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1383 |
this.sellingPrice = iprot.readDouble();
|
|
|
1384 |
setSellingPriceIsSet(true);
|
|
|
1385 |
} else {
|
|
|
1386 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1387 |
}
|
|
|
1388 |
break;
|
|
|
1389 |
case 7: // COURIER_COST
|
|
|
1390 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1391 |
this.courierCost = iprot.readDouble();
|
|
|
1392 |
setCourierCostIsSet(true);
|
|
|
1393 |
} else {
|
|
|
1394 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1395 |
}
|
|
|
1396 |
break;
|
|
|
1397 |
case 8: // COMMISSION
|
|
|
1398 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1399 |
this.commission = iprot.readDouble();
|
|
|
1400 |
setCommissionIsSet(true);
|
|
|
1401 |
} else {
|
|
|
1402 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1403 |
}
|
|
|
1404 |
break;
|
|
|
1405 |
case 9: // SERVICE_TAX
|
|
|
1406 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1407 |
this.serviceTax = iprot.readDouble();
|
|
|
1408 |
setServiceTaxIsSet(true);
|
|
|
1409 |
} else {
|
|
|
1410 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1411 |
}
|
|
|
1412 |
break;
|
|
|
1413 |
case 10: // SUPPRESS_PRICE_FEED
|
|
|
1414 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1415 |
this.suppressPriceFeed = iprot.readBool();
|
|
|
1416 |
setSuppressPriceFeedIsSet(true);
|
|
|
1417 |
} else {
|
|
|
1418 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1419 |
}
|
|
|
1420 |
break;
|
|
|
1421 |
case 11: // SUPPRESS_INVENTORY_FEED
|
|
|
1422 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1423 |
this.suppressInventoryFeed = iprot.readBool();
|
|
|
1424 |
setSuppressInventoryFeedIsSet(true);
|
|
|
1425 |
} else {
|
|
|
1426 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1427 |
}
|
|
|
1428 |
break;
|
| 9404 |
vikram.rag |
1429 |
case 12: // MAX_NLC
|
|
|
1430 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1431 |
this.maxNlc = iprot.readDouble();
|
|
|
1432 |
setMaxNlcIsSet(true);
|
|
|
1433 |
} else {
|
|
|
1434 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1435 |
}
|
|
|
1436 |
break;
|
| 9456 |
vikram.rag |
1437 |
case 13: // SKU_AT_SNAPDEAL
|
|
|
1438 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1439 |
this.skuAtSnapdeal = iprot.readString();
|
|
|
1440 |
} else {
|
|
|
1441 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1442 |
}
|
|
|
1443 |
break;
|
| 9568 |
kshitij.so |
1444 |
case 14: // SUPC
|
|
|
1445 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1446 |
this.supc = iprot.readString();
|
|
|
1447 |
} else {
|
|
|
1448 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1449 |
}
|
|
|
1450 |
break;
|
| 9724 |
kshitij.so |
1451 |
case 15: // SHIPPING_TIME
|
|
|
1452 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1453 |
this.shippingTime = iprot.readString();
|
|
|
1454 |
} else {
|
|
|
1455 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1456 |
}
|
|
|
1457 |
break;
|
| 9779 |
kshitij.so |
1458 |
case 16: // UPDATED_BY
|
|
|
1459 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1460 |
this.updatedBy = iprot.readString();
|
|
|
1461 |
} else {
|
|
|
1462 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1463 |
}
|
|
|
1464 |
break;
|
|
|
1465 |
case 17: // MARKETPLACE_ITEMS
|
|
|
1466 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1467 |
this.marketplaceItems = new MarketplaceItems();
|
|
|
1468 |
this.marketplaceItems.read(iprot);
|
|
|
1469 |
} else {
|
|
|
1470 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1471 |
}
|
|
|
1472 |
break;
|
| 8739 |
vikram.rag |
1473 |
default:
|
|
|
1474 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1475 |
}
|
|
|
1476 |
iprot.readFieldEnd();
|
|
|
1477 |
}
|
|
|
1478 |
iprot.readStructEnd();
|
|
|
1479 |
validate();
|
|
|
1480 |
}
|
|
|
1481 |
|
|
|
1482 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1483 |
validate();
|
|
|
1484 |
|
|
|
1485 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1486 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
1487 |
oprot.writeI64(this.item_id);
|
|
|
1488 |
oprot.writeFieldEnd();
|
|
|
1489 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
|
|
1490 |
oprot.writeI64(this.warehouseId);
|
|
|
1491 |
oprot.writeFieldEnd();
|
|
|
1492 |
oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
|
|
|
1493 |
oprot.writeDouble(this.exceptionPrice);
|
|
|
1494 |
oprot.writeFieldEnd();
|
|
|
1495 |
oprot.writeFieldBegin(IS_LISTED_ON_SNAPDEAL_FIELD_DESC);
|
|
|
1496 |
oprot.writeBool(this.isListedOnSnapdeal);
|
|
|
1497 |
oprot.writeFieldEnd();
|
| 9242 |
kshitij.so |
1498 |
oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
|
|
|
1499 |
oprot.writeDouble(this.transferPrice);
|
|
|
1500 |
oprot.writeFieldEnd();
|
|
|
1501 |
oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
|
|
|
1502 |
oprot.writeDouble(this.sellingPrice);
|
|
|
1503 |
oprot.writeFieldEnd();
|
|
|
1504 |
oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
|
|
|
1505 |
oprot.writeDouble(this.courierCost);
|
|
|
1506 |
oprot.writeFieldEnd();
|
|
|
1507 |
oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
|
|
|
1508 |
oprot.writeDouble(this.commission);
|
|
|
1509 |
oprot.writeFieldEnd();
|
|
|
1510 |
oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
|
|
|
1511 |
oprot.writeDouble(this.serviceTax);
|
|
|
1512 |
oprot.writeFieldEnd();
|
|
|
1513 |
oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
|
|
|
1514 |
oprot.writeBool(this.suppressPriceFeed);
|
|
|
1515 |
oprot.writeFieldEnd();
|
|
|
1516 |
oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
|
|
|
1517 |
oprot.writeBool(this.suppressInventoryFeed);
|
|
|
1518 |
oprot.writeFieldEnd();
|
| 9404 |
vikram.rag |
1519 |
oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
|
|
|
1520 |
oprot.writeDouble(this.maxNlc);
|
|
|
1521 |
oprot.writeFieldEnd();
|
| 9456 |
vikram.rag |
1522 |
if (this.skuAtSnapdeal != null) {
|
|
|
1523 |
oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);
|
|
|
1524 |
oprot.writeString(this.skuAtSnapdeal);
|
|
|
1525 |
oprot.writeFieldEnd();
|
|
|
1526 |
}
|
| 9568 |
kshitij.so |
1527 |
if (this.supc != null) {
|
|
|
1528 |
oprot.writeFieldBegin(SUPC_FIELD_DESC);
|
|
|
1529 |
oprot.writeString(this.supc);
|
|
|
1530 |
oprot.writeFieldEnd();
|
|
|
1531 |
}
|
| 9724 |
kshitij.so |
1532 |
if (this.shippingTime != null) {
|
|
|
1533 |
oprot.writeFieldBegin(SHIPPING_TIME_FIELD_DESC);
|
|
|
1534 |
oprot.writeString(this.shippingTime);
|
|
|
1535 |
oprot.writeFieldEnd();
|
|
|
1536 |
}
|
| 9779 |
kshitij.so |
1537 |
if (this.updatedBy != null) {
|
|
|
1538 |
oprot.writeFieldBegin(UPDATED_BY_FIELD_DESC);
|
|
|
1539 |
oprot.writeString(this.updatedBy);
|
|
|
1540 |
oprot.writeFieldEnd();
|
|
|
1541 |
}
|
|
|
1542 |
if (this.marketplaceItems != null) {
|
|
|
1543 |
oprot.writeFieldBegin(MARKETPLACE_ITEMS_FIELD_DESC);
|
|
|
1544 |
this.marketplaceItems.write(oprot);
|
|
|
1545 |
oprot.writeFieldEnd();
|
|
|
1546 |
}
|
| 8739 |
vikram.rag |
1547 |
oprot.writeFieldStop();
|
|
|
1548 |
oprot.writeStructEnd();
|
|
|
1549 |
}
|
|
|
1550 |
|
|
|
1551 |
@Override
|
|
|
1552 |
public String toString() {
|
|
|
1553 |
StringBuilder sb = new StringBuilder("SnapdealItem(");
|
|
|
1554 |
boolean first = true;
|
|
|
1555 |
|
|
|
1556 |
sb.append("item_id:");
|
|
|
1557 |
sb.append(this.item_id);
|
|
|
1558 |
first = false;
|
|
|
1559 |
if (!first) sb.append(", ");
|
|
|
1560 |
sb.append("warehouseId:");
|
|
|
1561 |
sb.append(this.warehouseId);
|
|
|
1562 |
first = false;
|
|
|
1563 |
if (!first) sb.append(", ");
|
|
|
1564 |
sb.append("exceptionPrice:");
|
|
|
1565 |
sb.append(this.exceptionPrice);
|
|
|
1566 |
first = false;
|
|
|
1567 |
if (!first) sb.append(", ");
|
|
|
1568 |
sb.append("isListedOnSnapdeal:");
|
|
|
1569 |
sb.append(this.isListedOnSnapdeal);
|
|
|
1570 |
first = false;
|
| 9242 |
kshitij.so |
1571 |
if (!first) sb.append(", ");
|
|
|
1572 |
sb.append("transferPrice:");
|
|
|
1573 |
sb.append(this.transferPrice);
|
|
|
1574 |
first = false;
|
|
|
1575 |
if (!first) sb.append(", ");
|
|
|
1576 |
sb.append("sellingPrice:");
|
|
|
1577 |
sb.append(this.sellingPrice);
|
|
|
1578 |
first = false;
|
|
|
1579 |
if (!first) sb.append(", ");
|
|
|
1580 |
sb.append("courierCost:");
|
|
|
1581 |
sb.append(this.courierCost);
|
|
|
1582 |
first = false;
|
|
|
1583 |
if (!first) sb.append(", ");
|
|
|
1584 |
sb.append("commission:");
|
|
|
1585 |
sb.append(this.commission);
|
|
|
1586 |
first = false;
|
|
|
1587 |
if (!first) sb.append(", ");
|
|
|
1588 |
sb.append("serviceTax:");
|
|
|
1589 |
sb.append(this.serviceTax);
|
|
|
1590 |
first = false;
|
|
|
1591 |
if (!first) sb.append(", ");
|
|
|
1592 |
sb.append("suppressPriceFeed:");
|
|
|
1593 |
sb.append(this.suppressPriceFeed);
|
|
|
1594 |
first = false;
|
|
|
1595 |
if (!first) sb.append(", ");
|
|
|
1596 |
sb.append("suppressInventoryFeed:");
|
|
|
1597 |
sb.append(this.suppressInventoryFeed);
|
|
|
1598 |
first = false;
|
| 9404 |
vikram.rag |
1599 |
if (!first) sb.append(", ");
|
|
|
1600 |
sb.append("maxNlc:");
|
|
|
1601 |
sb.append(this.maxNlc);
|
|
|
1602 |
first = false;
|
| 9456 |
vikram.rag |
1603 |
if (!first) sb.append(", ");
|
|
|
1604 |
sb.append("skuAtSnapdeal:");
|
|
|
1605 |
if (this.skuAtSnapdeal == null) {
|
|
|
1606 |
sb.append("null");
|
|
|
1607 |
} else {
|
|
|
1608 |
sb.append(this.skuAtSnapdeal);
|
|
|
1609 |
}
|
|
|
1610 |
first = false;
|
| 9568 |
kshitij.so |
1611 |
if (!first) sb.append(", ");
|
|
|
1612 |
sb.append("supc:");
|
|
|
1613 |
if (this.supc == null) {
|
|
|
1614 |
sb.append("null");
|
|
|
1615 |
} else {
|
|
|
1616 |
sb.append(this.supc);
|
|
|
1617 |
}
|
|
|
1618 |
first = false;
|
| 9724 |
kshitij.so |
1619 |
if (!first) sb.append(", ");
|
|
|
1620 |
sb.append("shippingTime:");
|
|
|
1621 |
if (this.shippingTime == null) {
|
|
|
1622 |
sb.append("null");
|
|
|
1623 |
} else {
|
|
|
1624 |
sb.append(this.shippingTime);
|
|
|
1625 |
}
|
|
|
1626 |
first = false;
|
| 9779 |
kshitij.so |
1627 |
if (!first) sb.append(", ");
|
|
|
1628 |
sb.append("updatedBy:");
|
|
|
1629 |
if (this.updatedBy == null) {
|
|
|
1630 |
sb.append("null");
|
|
|
1631 |
} else {
|
|
|
1632 |
sb.append(this.updatedBy);
|
|
|
1633 |
}
|
|
|
1634 |
first = false;
|
|
|
1635 |
if (!first) sb.append(", ");
|
|
|
1636 |
sb.append("marketplaceItems:");
|
|
|
1637 |
if (this.marketplaceItems == null) {
|
|
|
1638 |
sb.append("null");
|
|
|
1639 |
} else {
|
|
|
1640 |
sb.append(this.marketplaceItems);
|
|
|
1641 |
}
|
|
|
1642 |
first = false;
|
| 8739 |
vikram.rag |
1643 |
sb.append(")");
|
|
|
1644 |
return sb.toString();
|
|
|
1645 |
}
|
|
|
1646 |
|
|
|
1647 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1648 |
// check for required fields
|
|
|
1649 |
}
|
|
|
1650 |
|
|
|
1651 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1652 |
try {
|
|
|
1653 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1654 |
} catch (org.apache.thrift.TException te) {
|
|
|
1655 |
throw new java.io.IOException(te);
|
|
|
1656 |
}
|
|
|
1657 |
}
|
|
|
1658 |
|
|
|
1659 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1660 |
try {
|
|
|
1661 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1662 |
__isset_bit_vector = new BitSet(1);
|
|
|
1663 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1664 |
} catch (org.apache.thrift.TException te) {
|
|
|
1665 |
throw new java.io.IOException(te);
|
|
|
1666 |
}
|
|
|
1667 |
}
|
|
|
1668 |
|
|
|
1669 |
}
|
|
|
1670 |
|