| 8282 |
kshitij.so |
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.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;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class AmazonFbaSalesSnapshot implements org.apache.thrift.TBase<AmazonFbaSalesSnapshot, AmazonFbaSalesSnapshot._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonFbaSalesSnapshot");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField DATE_OF_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("dateOfSale", 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);
|
| 8363 |
vikram.rag |
28 |
private static final org.apache.thrift.protocol.TField TOTAL_ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("totalOrderCount", org.apache.thrift.protocol.TType.I32, (short)3);
|
| 8282 |
kshitij.so |
29 |
private static final org.apache.thrift.protocol.TField AMAZON_FBA_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonFbaInventory", org.apache.thrift.protocol.TType.I64, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField IS_OUT_OF_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("isOutOfStock", org.apache.thrift.protocol.TType.BOOL, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField SALE_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("salePrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField MIN_FBA_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minFbaPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField MIN_MFN_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minMfnPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
|
| 8363 |
vikram.rag |
34 |
private static final org.apache.thrift.protocol.TField TOTAL_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalSale", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField PROMOTION_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionSale", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField PROMOTION_ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionOrderCount", org.apache.thrift.protocol.TType.I32, (short)11);
|
| 8445 |
vikram.rag |
37 |
private static final org.apache.thrift.protocol.TField OUR_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
|
| 8282 |
kshitij.so |
38 |
|
|
|
39 |
private long dateOfSale; // required
|
|
|
40 |
private long item_id; // required
|
| 8363 |
vikram.rag |
41 |
private int totalOrderCount; // required
|
| 8282 |
kshitij.so |
42 |
private long amazonFbaInventory; // required
|
|
|
43 |
private boolean isOutOfStock; // required
|
|
|
44 |
private double salePrice; // required
|
|
|
45 |
private double minFbaPrice; // required
|
|
|
46 |
private double minMfnPrice; // required
|
| 8363 |
vikram.rag |
47 |
private double totalSale; // required
|
|
|
48 |
private double promotionSale; // required
|
|
|
49 |
private int promotionOrderCount; // required
|
| 8445 |
vikram.rag |
50 |
private double ourPrice; // required
|
| 8282 |
kshitij.so |
51 |
|
|
|
52 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
53 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
54 |
DATE_OF_SALE((short)1, "dateOfSale"),
|
|
|
55 |
ITEM_ID((short)2, "item_id"),
|
| 8363 |
vikram.rag |
56 |
TOTAL_ORDER_COUNT((short)3, "totalOrderCount"),
|
| 8282 |
kshitij.so |
57 |
AMAZON_FBA_INVENTORY((short)4, "amazonFbaInventory"),
|
|
|
58 |
IS_OUT_OF_STOCK((short)5, "isOutOfStock"),
|
|
|
59 |
SALE_PRICE((short)6, "salePrice"),
|
|
|
60 |
MIN_FBA_PRICE((short)7, "minFbaPrice"),
|
| 8363 |
vikram.rag |
61 |
MIN_MFN_PRICE((short)8, "minMfnPrice"),
|
|
|
62 |
TOTAL_SALE((short)9, "totalSale"),
|
|
|
63 |
PROMOTION_SALE((short)10, "promotionSale"),
|
| 8445 |
vikram.rag |
64 |
PROMOTION_ORDER_COUNT((short)11, "promotionOrderCount"),
|
|
|
65 |
OUR_PRICE((short)12, "ourPrice");
|
| 8282 |
kshitij.so |
66 |
|
|
|
67 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
68 |
|
|
|
69 |
static {
|
|
|
70 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
71 |
byName.put(field.getFieldName(), field);
|
|
|
72 |
}
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
/**
|
|
|
76 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
77 |
*/
|
|
|
78 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
79 |
switch(fieldId) {
|
|
|
80 |
case 1: // DATE_OF_SALE
|
|
|
81 |
return DATE_OF_SALE;
|
|
|
82 |
case 2: // ITEM_ID
|
|
|
83 |
return ITEM_ID;
|
| 8363 |
vikram.rag |
84 |
case 3: // TOTAL_ORDER_COUNT
|
|
|
85 |
return TOTAL_ORDER_COUNT;
|
| 8282 |
kshitij.so |
86 |
case 4: // AMAZON_FBA_INVENTORY
|
|
|
87 |
return AMAZON_FBA_INVENTORY;
|
|
|
88 |
case 5: // IS_OUT_OF_STOCK
|
|
|
89 |
return IS_OUT_OF_STOCK;
|
|
|
90 |
case 6: // SALE_PRICE
|
|
|
91 |
return SALE_PRICE;
|
|
|
92 |
case 7: // MIN_FBA_PRICE
|
|
|
93 |
return MIN_FBA_PRICE;
|
|
|
94 |
case 8: // MIN_MFN_PRICE
|
|
|
95 |
return MIN_MFN_PRICE;
|
| 8363 |
vikram.rag |
96 |
case 9: // TOTAL_SALE
|
|
|
97 |
return TOTAL_SALE;
|
|
|
98 |
case 10: // PROMOTION_SALE
|
|
|
99 |
return PROMOTION_SALE;
|
|
|
100 |
case 11: // PROMOTION_ORDER_COUNT
|
|
|
101 |
return PROMOTION_ORDER_COUNT;
|
| 8445 |
vikram.rag |
102 |
case 12: // OUR_PRICE
|
|
|
103 |
return OUR_PRICE;
|
| 8282 |
kshitij.so |
104 |
default:
|
|
|
105 |
return null;
|
|
|
106 |
}
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
111 |
* if it is not found.
|
|
|
112 |
*/
|
|
|
113 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
114 |
_Fields fields = findByThriftId(fieldId);
|
|
|
115 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
116 |
return fields;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
/**
|
|
|
120 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
121 |
*/
|
|
|
122 |
public static _Fields findByName(String name) {
|
|
|
123 |
return byName.get(name);
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
private final short _thriftId;
|
|
|
127 |
private final String _fieldName;
|
|
|
128 |
|
|
|
129 |
_Fields(short thriftId, String fieldName) {
|
|
|
130 |
_thriftId = thriftId;
|
|
|
131 |
_fieldName = fieldName;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public short getThriftFieldId() {
|
|
|
135 |
return _thriftId;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public String getFieldName() {
|
|
|
139 |
return _fieldName;
|
|
|
140 |
}
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
// isset id assignments
|
|
|
144 |
private static final int __DATEOFSALE_ISSET_ID = 0;
|
|
|
145 |
private static final int __ITEM_ID_ISSET_ID = 1;
|
| 8363 |
vikram.rag |
146 |
private static final int __TOTALORDERCOUNT_ISSET_ID = 2;
|
| 8282 |
kshitij.so |
147 |
private static final int __AMAZONFBAINVENTORY_ISSET_ID = 3;
|
|
|
148 |
private static final int __ISOUTOFSTOCK_ISSET_ID = 4;
|
|
|
149 |
private static final int __SALEPRICE_ISSET_ID = 5;
|
|
|
150 |
private static final int __MINFBAPRICE_ISSET_ID = 6;
|
|
|
151 |
private static final int __MINMFNPRICE_ISSET_ID = 7;
|
| 8363 |
vikram.rag |
152 |
private static final int __TOTALSALE_ISSET_ID = 8;
|
|
|
153 |
private static final int __PROMOTIONSALE_ISSET_ID = 9;
|
|
|
154 |
private static final int __PROMOTIONORDERCOUNT_ISSET_ID = 10;
|
| 8445 |
vikram.rag |
155 |
private static final int __OURPRICE_ISSET_ID = 11;
|
|
|
156 |
private BitSet __isset_bit_vector = new BitSet(12);
|
| 8282 |
kshitij.so |
157 |
|
|
|
158 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
159 |
static {
|
|
|
160 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
161 |
tmpMap.put(_Fields.DATE_OF_SALE, new org.apache.thrift.meta_data.FieldMetaData("dateOfSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
162 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
163 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
164 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 8363 |
vikram.rag |
165 |
tmpMap.put(_Fields.TOTAL_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("totalOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 8282 |
kshitij.so |
166 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
|
|
167 |
tmpMap.put(_Fields.AMAZON_FBA_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("amazonFbaInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
168 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
169 |
tmpMap.put(_Fields.IS_OUT_OF_STOCK, new org.apache.thrift.meta_data.FieldMetaData("isOutOfStock", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
170 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
171 |
tmpMap.put(_Fields.SALE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("salePrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
172 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
173 |
tmpMap.put(_Fields.MIN_FBA_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minFbaPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
174 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
175 |
tmpMap.put(_Fields.MIN_MFN_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minMfnPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
176 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 8363 |
vikram.rag |
177 |
tmpMap.put(_Fields.TOTAL_SALE, new org.apache.thrift.meta_data.FieldMetaData("totalSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
178 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
179 |
tmpMap.put(_Fields.PROMOTION_SALE, new org.apache.thrift.meta_data.FieldMetaData("promotionSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
180 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
181 |
tmpMap.put(_Fields.PROMOTION_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("promotionOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
182 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
| 8445 |
vikram.rag |
183 |
tmpMap.put(_Fields.OUR_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
184 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 8282 |
kshitij.so |
185 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
186 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonFbaSalesSnapshot.class, metaDataMap);
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
public AmazonFbaSalesSnapshot() {
|
|
|
190 |
}
|
|
|
191 |
|
|
|
192 |
public AmazonFbaSalesSnapshot(
|
|
|
193 |
long dateOfSale,
|
|
|
194 |
long item_id,
|
| 8363 |
vikram.rag |
195 |
int totalOrderCount,
|
| 8282 |
kshitij.so |
196 |
long amazonFbaInventory,
|
|
|
197 |
boolean isOutOfStock,
|
|
|
198 |
double salePrice,
|
|
|
199 |
double minFbaPrice,
|
| 8363 |
vikram.rag |
200 |
double minMfnPrice,
|
|
|
201 |
double totalSale,
|
|
|
202 |
double promotionSale,
|
| 8445 |
vikram.rag |
203 |
int promotionOrderCount,
|
|
|
204 |
double ourPrice)
|
| 8282 |
kshitij.so |
205 |
{
|
|
|
206 |
this();
|
|
|
207 |
this.dateOfSale = dateOfSale;
|
|
|
208 |
setDateOfSaleIsSet(true);
|
|
|
209 |
this.item_id = item_id;
|
|
|
210 |
setItem_idIsSet(true);
|
| 8363 |
vikram.rag |
211 |
this.totalOrderCount = totalOrderCount;
|
|
|
212 |
setTotalOrderCountIsSet(true);
|
| 8282 |
kshitij.so |
213 |
this.amazonFbaInventory = amazonFbaInventory;
|
|
|
214 |
setAmazonFbaInventoryIsSet(true);
|
|
|
215 |
this.isOutOfStock = isOutOfStock;
|
|
|
216 |
setIsOutOfStockIsSet(true);
|
|
|
217 |
this.salePrice = salePrice;
|
|
|
218 |
setSalePriceIsSet(true);
|
|
|
219 |
this.minFbaPrice = minFbaPrice;
|
|
|
220 |
setMinFbaPriceIsSet(true);
|
|
|
221 |
this.minMfnPrice = minMfnPrice;
|
|
|
222 |
setMinMfnPriceIsSet(true);
|
| 8363 |
vikram.rag |
223 |
this.totalSale = totalSale;
|
|
|
224 |
setTotalSaleIsSet(true);
|
|
|
225 |
this.promotionSale = promotionSale;
|
|
|
226 |
setPromotionSaleIsSet(true);
|
|
|
227 |
this.promotionOrderCount = promotionOrderCount;
|
|
|
228 |
setPromotionOrderCountIsSet(true);
|
| 8445 |
vikram.rag |
229 |
this.ourPrice = ourPrice;
|
|
|
230 |
setOurPriceIsSet(true);
|
| 8282 |
kshitij.so |
231 |
}
|
|
|
232 |
|
|
|
233 |
/**
|
|
|
234 |
* Performs a deep copy on <i>other</i>.
|
|
|
235 |
*/
|
|
|
236 |
public AmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot other) {
|
|
|
237 |
__isset_bit_vector.clear();
|
|
|
238 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
239 |
this.dateOfSale = other.dateOfSale;
|
|
|
240 |
this.item_id = other.item_id;
|
| 8363 |
vikram.rag |
241 |
this.totalOrderCount = other.totalOrderCount;
|
| 8282 |
kshitij.so |
242 |
this.amazonFbaInventory = other.amazonFbaInventory;
|
|
|
243 |
this.isOutOfStock = other.isOutOfStock;
|
|
|
244 |
this.salePrice = other.salePrice;
|
|
|
245 |
this.minFbaPrice = other.minFbaPrice;
|
|
|
246 |
this.minMfnPrice = other.minMfnPrice;
|
| 8363 |
vikram.rag |
247 |
this.totalSale = other.totalSale;
|
|
|
248 |
this.promotionSale = other.promotionSale;
|
|
|
249 |
this.promotionOrderCount = other.promotionOrderCount;
|
| 8445 |
vikram.rag |
250 |
this.ourPrice = other.ourPrice;
|
| 8282 |
kshitij.so |
251 |
}
|
|
|
252 |
|
|
|
253 |
public AmazonFbaSalesSnapshot deepCopy() {
|
|
|
254 |
return new AmazonFbaSalesSnapshot(this);
|
|
|
255 |
}
|
|
|
256 |
|
|
|
257 |
@Override
|
|
|
258 |
public void clear() {
|
|
|
259 |
setDateOfSaleIsSet(false);
|
|
|
260 |
this.dateOfSale = 0;
|
|
|
261 |
setItem_idIsSet(false);
|
|
|
262 |
this.item_id = 0;
|
| 8363 |
vikram.rag |
263 |
setTotalOrderCountIsSet(false);
|
|
|
264 |
this.totalOrderCount = 0;
|
| 8282 |
kshitij.so |
265 |
setAmazonFbaInventoryIsSet(false);
|
|
|
266 |
this.amazonFbaInventory = 0;
|
|
|
267 |
setIsOutOfStockIsSet(false);
|
|
|
268 |
this.isOutOfStock = false;
|
|
|
269 |
setSalePriceIsSet(false);
|
|
|
270 |
this.salePrice = 0.0;
|
|
|
271 |
setMinFbaPriceIsSet(false);
|
|
|
272 |
this.minFbaPrice = 0.0;
|
|
|
273 |
setMinMfnPriceIsSet(false);
|
|
|
274 |
this.minMfnPrice = 0.0;
|
| 8363 |
vikram.rag |
275 |
setTotalSaleIsSet(false);
|
|
|
276 |
this.totalSale = 0.0;
|
|
|
277 |
setPromotionSaleIsSet(false);
|
|
|
278 |
this.promotionSale = 0.0;
|
|
|
279 |
setPromotionOrderCountIsSet(false);
|
|
|
280 |
this.promotionOrderCount = 0;
|
| 8445 |
vikram.rag |
281 |
setOurPriceIsSet(false);
|
|
|
282 |
this.ourPrice = 0.0;
|
| 8282 |
kshitij.so |
283 |
}
|
|
|
284 |
|
|
|
285 |
public long getDateOfSale() {
|
|
|
286 |
return this.dateOfSale;
|
|
|
287 |
}
|
|
|
288 |
|
|
|
289 |
public void setDateOfSale(long dateOfSale) {
|
|
|
290 |
this.dateOfSale = dateOfSale;
|
|
|
291 |
setDateOfSaleIsSet(true);
|
|
|
292 |
}
|
|
|
293 |
|
|
|
294 |
public void unsetDateOfSale() {
|
|
|
295 |
__isset_bit_vector.clear(__DATEOFSALE_ISSET_ID);
|
|
|
296 |
}
|
|
|
297 |
|
|
|
298 |
/** Returns true if field dateOfSale is set (has been assigned a value) and false otherwise */
|
|
|
299 |
public boolean isSetDateOfSale() {
|
|
|
300 |
return __isset_bit_vector.get(__DATEOFSALE_ISSET_ID);
|
|
|
301 |
}
|
|
|
302 |
|
|
|
303 |
public void setDateOfSaleIsSet(boolean value) {
|
|
|
304 |
__isset_bit_vector.set(__DATEOFSALE_ISSET_ID, value);
|
|
|
305 |
}
|
|
|
306 |
|
|
|
307 |
public long getItem_id() {
|
|
|
308 |
return this.item_id;
|
|
|
309 |
}
|
|
|
310 |
|
|
|
311 |
public void setItem_id(long item_id) {
|
|
|
312 |
this.item_id = item_id;
|
|
|
313 |
setItem_idIsSet(true);
|
|
|
314 |
}
|
|
|
315 |
|
|
|
316 |
public void unsetItem_id() {
|
|
|
317 |
__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
|
|
|
318 |
}
|
|
|
319 |
|
|
|
320 |
/** Returns true if field item_id is set (has been assigned a value) and false otherwise */
|
|
|
321 |
public boolean isSetItem_id() {
|
|
|
322 |
return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
|
|
|
323 |
}
|
|
|
324 |
|
|
|
325 |
public void setItem_idIsSet(boolean value) {
|
|
|
326 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
|
|
327 |
}
|
|
|
328 |
|
| 8363 |
vikram.rag |
329 |
public int getTotalOrderCount() {
|
|
|
330 |
return this.totalOrderCount;
|
| 8282 |
kshitij.so |
331 |
}
|
|
|
332 |
|
| 8363 |
vikram.rag |
333 |
public void setTotalOrderCount(int totalOrderCount) {
|
|
|
334 |
this.totalOrderCount = totalOrderCount;
|
|
|
335 |
setTotalOrderCountIsSet(true);
|
| 8282 |
kshitij.so |
336 |
}
|
|
|
337 |
|
| 8363 |
vikram.rag |
338 |
public void unsetTotalOrderCount() {
|
|
|
339 |
__isset_bit_vector.clear(__TOTALORDERCOUNT_ISSET_ID);
|
| 8282 |
kshitij.so |
340 |
}
|
|
|
341 |
|
| 8363 |
vikram.rag |
342 |
/** Returns true if field totalOrderCount is set (has been assigned a value) and false otherwise */
|
|
|
343 |
public boolean isSetTotalOrderCount() {
|
|
|
344 |
return __isset_bit_vector.get(__TOTALORDERCOUNT_ISSET_ID);
|
| 8282 |
kshitij.so |
345 |
}
|
|
|
346 |
|
| 8363 |
vikram.rag |
347 |
public void setTotalOrderCountIsSet(boolean value) {
|
|
|
348 |
__isset_bit_vector.set(__TOTALORDERCOUNT_ISSET_ID, value);
|
| 8282 |
kshitij.so |
349 |
}
|
|
|
350 |
|
|
|
351 |
public long getAmazonFbaInventory() {
|
|
|
352 |
return this.amazonFbaInventory;
|
|
|
353 |
}
|
|
|
354 |
|
|
|
355 |
public void setAmazonFbaInventory(long amazonFbaInventory) {
|
|
|
356 |
this.amazonFbaInventory = amazonFbaInventory;
|
|
|
357 |
setAmazonFbaInventoryIsSet(true);
|
|
|
358 |
}
|
|
|
359 |
|
|
|
360 |
public void unsetAmazonFbaInventory() {
|
|
|
361 |
__isset_bit_vector.clear(__AMAZONFBAINVENTORY_ISSET_ID);
|
|
|
362 |
}
|
|
|
363 |
|
|
|
364 |
/** Returns true if field amazonFbaInventory is set (has been assigned a value) and false otherwise */
|
|
|
365 |
public boolean isSetAmazonFbaInventory() {
|
|
|
366 |
return __isset_bit_vector.get(__AMAZONFBAINVENTORY_ISSET_ID);
|
|
|
367 |
}
|
|
|
368 |
|
|
|
369 |
public void setAmazonFbaInventoryIsSet(boolean value) {
|
|
|
370 |
__isset_bit_vector.set(__AMAZONFBAINVENTORY_ISSET_ID, value);
|
|
|
371 |
}
|
|
|
372 |
|
|
|
373 |
public boolean isIsOutOfStock() {
|
|
|
374 |
return this.isOutOfStock;
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
public void setIsOutOfStock(boolean isOutOfStock) {
|
|
|
378 |
this.isOutOfStock = isOutOfStock;
|
|
|
379 |
setIsOutOfStockIsSet(true);
|
|
|
380 |
}
|
|
|
381 |
|
|
|
382 |
public void unsetIsOutOfStock() {
|
|
|
383 |
__isset_bit_vector.clear(__ISOUTOFSTOCK_ISSET_ID);
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
/** Returns true if field isOutOfStock is set (has been assigned a value) and false otherwise */
|
|
|
387 |
public boolean isSetIsOutOfStock() {
|
|
|
388 |
return __isset_bit_vector.get(__ISOUTOFSTOCK_ISSET_ID);
|
|
|
389 |
}
|
|
|
390 |
|
|
|
391 |
public void setIsOutOfStockIsSet(boolean value) {
|
|
|
392 |
__isset_bit_vector.set(__ISOUTOFSTOCK_ISSET_ID, value);
|
|
|
393 |
}
|
|
|
394 |
|
|
|
395 |
public double getSalePrice() {
|
|
|
396 |
return this.salePrice;
|
|
|
397 |
}
|
|
|
398 |
|
|
|
399 |
public void setSalePrice(double salePrice) {
|
|
|
400 |
this.salePrice = salePrice;
|
|
|
401 |
setSalePriceIsSet(true);
|
|
|
402 |
}
|
|
|
403 |
|
|
|
404 |
public void unsetSalePrice() {
|
|
|
405 |
__isset_bit_vector.clear(__SALEPRICE_ISSET_ID);
|
|
|
406 |
}
|
|
|
407 |
|
|
|
408 |
/** Returns true if field salePrice is set (has been assigned a value) and false otherwise */
|
|
|
409 |
public boolean isSetSalePrice() {
|
|
|
410 |
return __isset_bit_vector.get(__SALEPRICE_ISSET_ID);
|
|
|
411 |
}
|
|
|
412 |
|
|
|
413 |
public void setSalePriceIsSet(boolean value) {
|
|
|
414 |
__isset_bit_vector.set(__SALEPRICE_ISSET_ID, value);
|
|
|
415 |
}
|
|
|
416 |
|
|
|
417 |
public double getMinFbaPrice() {
|
|
|
418 |
return this.minFbaPrice;
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
public void setMinFbaPrice(double minFbaPrice) {
|
|
|
422 |
this.minFbaPrice = minFbaPrice;
|
|
|
423 |
setMinFbaPriceIsSet(true);
|
|
|
424 |
}
|
|
|
425 |
|
|
|
426 |
public void unsetMinFbaPrice() {
|
|
|
427 |
__isset_bit_vector.clear(__MINFBAPRICE_ISSET_ID);
|
|
|
428 |
}
|
|
|
429 |
|
|
|
430 |
/** Returns true if field minFbaPrice is set (has been assigned a value) and false otherwise */
|
|
|
431 |
public boolean isSetMinFbaPrice() {
|
|
|
432 |
return __isset_bit_vector.get(__MINFBAPRICE_ISSET_ID);
|
|
|
433 |
}
|
|
|
434 |
|
|
|
435 |
public void setMinFbaPriceIsSet(boolean value) {
|
|
|
436 |
__isset_bit_vector.set(__MINFBAPRICE_ISSET_ID, value);
|
|
|
437 |
}
|
|
|
438 |
|
|
|
439 |
public double getMinMfnPrice() {
|
|
|
440 |
return this.minMfnPrice;
|
|
|
441 |
}
|
|
|
442 |
|
|
|
443 |
public void setMinMfnPrice(double minMfnPrice) {
|
|
|
444 |
this.minMfnPrice = minMfnPrice;
|
|
|
445 |
setMinMfnPriceIsSet(true);
|
|
|
446 |
}
|
|
|
447 |
|
|
|
448 |
public void unsetMinMfnPrice() {
|
|
|
449 |
__isset_bit_vector.clear(__MINMFNPRICE_ISSET_ID);
|
|
|
450 |
}
|
|
|
451 |
|
|
|
452 |
/** Returns true if field minMfnPrice is set (has been assigned a value) and false otherwise */
|
|
|
453 |
public boolean isSetMinMfnPrice() {
|
|
|
454 |
return __isset_bit_vector.get(__MINMFNPRICE_ISSET_ID);
|
|
|
455 |
}
|
|
|
456 |
|
|
|
457 |
public void setMinMfnPriceIsSet(boolean value) {
|
|
|
458 |
__isset_bit_vector.set(__MINMFNPRICE_ISSET_ID, value);
|
|
|
459 |
}
|
|
|
460 |
|
| 8363 |
vikram.rag |
461 |
public double getTotalSale() {
|
|
|
462 |
return this.totalSale;
|
|
|
463 |
}
|
|
|
464 |
|
|
|
465 |
public void setTotalSale(double totalSale) {
|
|
|
466 |
this.totalSale = totalSale;
|
|
|
467 |
setTotalSaleIsSet(true);
|
|
|
468 |
}
|
|
|
469 |
|
|
|
470 |
public void unsetTotalSale() {
|
|
|
471 |
__isset_bit_vector.clear(__TOTALSALE_ISSET_ID);
|
|
|
472 |
}
|
|
|
473 |
|
|
|
474 |
/** Returns true if field totalSale is set (has been assigned a value) and false otherwise */
|
|
|
475 |
public boolean isSetTotalSale() {
|
|
|
476 |
return __isset_bit_vector.get(__TOTALSALE_ISSET_ID);
|
|
|
477 |
}
|
|
|
478 |
|
|
|
479 |
public void setTotalSaleIsSet(boolean value) {
|
|
|
480 |
__isset_bit_vector.set(__TOTALSALE_ISSET_ID, value);
|
|
|
481 |
}
|
|
|
482 |
|
|
|
483 |
public double getPromotionSale() {
|
|
|
484 |
return this.promotionSale;
|
|
|
485 |
}
|
|
|
486 |
|
|
|
487 |
public void setPromotionSale(double promotionSale) {
|
|
|
488 |
this.promotionSale = promotionSale;
|
|
|
489 |
setPromotionSaleIsSet(true);
|
|
|
490 |
}
|
|
|
491 |
|
|
|
492 |
public void unsetPromotionSale() {
|
|
|
493 |
__isset_bit_vector.clear(__PROMOTIONSALE_ISSET_ID);
|
|
|
494 |
}
|
|
|
495 |
|
|
|
496 |
/** Returns true if field promotionSale is set (has been assigned a value) and false otherwise */
|
|
|
497 |
public boolean isSetPromotionSale() {
|
|
|
498 |
return __isset_bit_vector.get(__PROMOTIONSALE_ISSET_ID);
|
|
|
499 |
}
|
|
|
500 |
|
|
|
501 |
public void setPromotionSaleIsSet(boolean value) {
|
|
|
502 |
__isset_bit_vector.set(__PROMOTIONSALE_ISSET_ID, value);
|
|
|
503 |
}
|
|
|
504 |
|
|
|
505 |
public int getPromotionOrderCount() {
|
|
|
506 |
return this.promotionOrderCount;
|
|
|
507 |
}
|
|
|
508 |
|
|
|
509 |
public void setPromotionOrderCount(int promotionOrderCount) {
|
|
|
510 |
this.promotionOrderCount = promotionOrderCount;
|
|
|
511 |
setPromotionOrderCountIsSet(true);
|
|
|
512 |
}
|
|
|
513 |
|
|
|
514 |
public void unsetPromotionOrderCount() {
|
|
|
515 |
__isset_bit_vector.clear(__PROMOTIONORDERCOUNT_ISSET_ID);
|
|
|
516 |
}
|
|
|
517 |
|
|
|
518 |
/** Returns true if field promotionOrderCount is set (has been assigned a value) and false otherwise */
|
|
|
519 |
public boolean isSetPromotionOrderCount() {
|
|
|
520 |
return __isset_bit_vector.get(__PROMOTIONORDERCOUNT_ISSET_ID);
|
|
|
521 |
}
|
|
|
522 |
|
|
|
523 |
public void setPromotionOrderCountIsSet(boolean value) {
|
|
|
524 |
__isset_bit_vector.set(__PROMOTIONORDERCOUNT_ISSET_ID, value);
|
|
|
525 |
}
|
|
|
526 |
|
| 8445 |
vikram.rag |
527 |
public double getOurPrice() {
|
|
|
528 |
return this.ourPrice;
|
|
|
529 |
}
|
|
|
530 |
|
|
|
531 |
public void setOurPrice(double ourPrice) {
|
|
|
532 |
this.ourPrice = ourPrice;
|
|
|
533 |
setOurPriceIsSet(true);
|
|
|
534 |
}
|
|
|
535 |
|
|
|
536 |
public void unsetOurPrice() {
|
|
|
537 |
__isset_bit_vector.clear(__OURPRICE_ISSET_ID);
|
|
|
538 |
}
|
|
|
539 |
|
|
|
540 |
/** Returns true if field ourPrice is set (has been assigned a value) and false otherwise */
|
|
|
541 |
public boolean isSetOurPrice() {
|
|
|
542 |
return __isset_bit_vector.get(__OURPRICE_ISSET_ID);
|
|
|
543 |
}
|
|
|
544 |
|
|
|
545 |
public void setOurPriceIsSet(boolean value) {
|
|
|
546 |
__isset_bit_vector.set(__OURPRICE_ISSET_ID, value);
|
|
|
547 |
}
|
|
|
548 |
|
| 8282 |
kshitij.so |
549 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
550 |
switch (field) {
|
|
|
551 |
case DATE_OF_SALE:
|
|
|
552 |
if (value == null) {
|
|
|
553 |
unsetDateOfSale();
|
|
|
554 |
} else {
|
|
|
555 |
setDateOfSale((Long)value);
|
|
|
556 |
}
|
|
|
557 |
break;
|
|
|
558 |
|
|
|
559 |
case ITEM_ID:
|
|
|
560 |
if (value == null) {
|
|
|
561 |
unsetItem_id();
|
|
|
562 |
} else {
|
|
|
563 |
setItem_id((Long)value);
|
|
|
564 |
}
|
|
|
565 |
break;
|
|
|
566 |
|
| 8363 |
vikram.rag |
567 |
case TOTAL_ORDER_COUNT:
|
| 8282 |
kshitij.so |
568 |
if (value == null) {
|
| 8363 |
vikram.rag |
569 |
unsetTotalOrderCount();
|
| 8282 |
kshitij.so |
570 |
} else {
|
| 8363 |
vikram.rag |
571 |
setTotalOrderCount((Integer)value);
|
| 8282 |
kshitij.so |
572 |
}
|
|
|
573 |
break;
|
|
|
574 |
|
|
|
575 |
case AMAZON_FBA_INVENTORY:
|
|
|
576 |
if (value == null) {
|
|
|
577 |
unsetAmazonFbaInventory();
|
|
|
578 |
} else {
|
|
|
579 |
setAmazonFbaInventory((Long)value);
|
|
|
580 |
}
|
|
|
581 |
break;
|
|
|
582 |
|
|
|
583 |
case IS_OUT_OF_STOCK:
|
|
|
584 |
if (value == null) {
|
|
|
585 |
unsetIsOutOfStock();
|
|
|
586 |
} else {
|
|
|
587 |
setIsOutOfStock((Boolean)value);
|
|
|
588 |
}
|
|
|
589 |
break;
|
|
|
590 |
|
|
|
591 |
case SALE_PRICE:
|
|
|
592 |
if (value == null) {
|
|
|
593 |
unsetSalePrice();
|
|
|
594 |
} else {
|
|
|
595 |
setSalePrice((Double)value);
|
|
|
596 |
}
|
|
|
597 |
break;
|
|
|
598 |
|
|
|
599 |
case MIN_FBA_PRICE:
|
|
|
600 |
if (value == null) {
|
|
|
601 |
unsetMinFbaPrice();
|
|
|
602 |
} else {
|
|
|
603 |
setMinFbaPrice((Double)value);
|
|
|
604 |
}
|
|
|
605 |
break;
|
|
|
606 |
|
|
|
607 |
case MIN_MFN_PRICE:
|
|
|
608 |
if (value == null) {
|
|
|
609 |
unsetMinMfnPrice();
|
|
|
610 |
} else {
|
|
|
611 |
setMinMfnPrice((Double)value);
|
|
|
612 |
}
|
|
|
613 |
break;
|
|
|
614 |
|
| 8363 |
vikram.rag |
615 |
case TOTAL_SALE:
|
|
|
616 |
if (value == null) {
|
|
|
617 |
unsetTotalSale();
|
|
|
618 |
} else {
|
|
|
619 |
setTotalSale((Double)value);
|
|
|
620 |
}
|
|
|
621 |
break;
|
|
|
622 |
|
|
|
623 |
case PROMOTION_SALE:
|
|
|
624 |
if (value == null) {
|
|
|
625 |
unsetPromotionSale();
|
|
|
626 |
} else {
|
|
|
627 |
setPromotionSale((Double)value);
|
|
|
628 |
}
|
|
|
629 |
break;
|
|
|
630 |
|
|
|
631 |
case PROMOTION_ORDER_COUNT:
|
|
|
632 |
if (value == null) {
|
|
|
633 |
unsetPromotionOrderCount();
|
|
|
634 |
} else {
|
|
|
635 |
setPromotionOrderCount((Integer)value);
|
|
|
636 |
}
|
|
|
637 |
break;
|
|
|
638 |
|
| 8445 |
vikram.rag |
639 |
case OUR_PRICE:
|
|
|
640 |
if (value == null) {
|
|
|
641 |
unsetOurPrice();
|
|
|
642 |
} else {
|
|
|
643 |
setOurPrice((Double)value);
|
|
|
644 |
}
|
|
|
645 |
break;
|
|
|
646 |
|
| 8282 |
kshitij.so |
647 |
}
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
public Object getFieldValue(_Fields field) {
|
|
|
651 |
switch (field) {
|
|
|
652 |
case DATE_OF_SALE:
|
|
|
653 |
return Long.valueOf(getDateOfSale());
|
|
|
654 |
|
|
|
655 |
case ITEM_ID:
|
|
|
656 |
return Long.valueOf(getItem_id());
|
|
|
657 |
|
| 8363 |
vikram.rag |
658 |
case TOTAL_ORDER_COUNT:
|
|
|
659 |
return Integer.valueOf(getTotalOrderCount());
|
| 8282 |
kshitij.so |
660 |
|
|
|
661 |
case AMAZON_FBA_INVENTORY:
|
|
|
662 |
return Long.valueOf(getAmazonFbaInventory());
|
|
|
663 |
|
|
|
664 |
case IS_OUT_OF_STOCK:
|
|
|
665 |
return Boolean.valueOf(isIsOutOfStock());
|
|
|
666 |
|
|
|
667 |
case SALE_PRICE:
|
|
|
668 |
return Double.valueOf(getSalePrice());
|
|
|
669 |
|
|
|
670 |
case MIN_FBA_PRICE:
|
|
|
671 |
return Double.valueOf(getMinFbaPrice());
|
|
|
672 |
|
|
|
673 |
case MIN_MFN_PRICE:
|
|
|
674 |
return Double.valueOf(getMinMfnPrice());
|
|
|
675 |
|
| 8363 |
vikram.rag |
676 |
case TOTAL_SALE:
|
|
|
677 |
return Double.valueOf(getTotalSale());
|
|
|
678 |
|
|
|
679 |
case PROMOTION_SALE:
|
|
|
680 |
return Double.valueOf(getPromotionSale());
|
|
|
681 |
|
|
|
682 |
case PROMOTION_ORDER_COUNT:
|
|
|
683 |
return Integer.valueOf(getPromotionOrderCount());
|
|
|
684 |
|
| 8445 |
vikram.rag |
685 |
case OUR_PRICE:
|
|
|
686 |
return Double.valueOf(getOurPrice());
|
|
|
687 |
|
| 8282 |
kshitij.so |
688 |
}
|
|
|
689 |
throw new IllegalStateException();
|
|
|
690 |
}
|
|
|
691 |
|
|
|
692 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
693 |
public boolean isSet(_Fields field) {
|
|
|
694 |
if (field == null) {
|
|
|
695 |
throw new IllegalArgumentException();
|
|
|
696 |
}
|
|
|
697 |
|
|
|
698 |
switch (field) {
|
|
|
699 |
case DATE_OF_SALE:
|
|
|
700 |
return isSetDateOfSale();
|
|
|
701 |
case ITEM_ID:
|
|
|
702 |
return isSetItem_id();
|
| 8363 |
vikram.rag |
703 |
case TOTAL_ORDER_COUNT:
|
|
|
704 |
return isSetTotalOrderCount();
|
| 8282 |
kshitij.so |
705 |
case AMAZON_FBA_INVENTORY:
|
|
|
706 |
return isSetAmazonFbaInventory();
|
|
|
707 |
case IS_OUT_OF_STOCK:
|
|
|
708 |
return isSetIsOutOfStock();
|
|
|
709 |
case SALE_PRICE:
|
|
|
710 |
return isSetSalePrice();
|
|
|
711 |
case MIN_FBA_PRICE:
|
|
|
712 |
return isSetMinFbaPrice();
|
|
|
713 |
case MIN_MFN_PRICE:
|
|
|
714 |
return isSetMinMfnPrice();
|
| 8363 |
vikram.rag |
715 |
case TOTAL_SALE:
|
|
|
716 |
return isSetTotalSale();
|
|
|
717 |
case PROMOTION_SALE:
|
|
|
718 |
return isSetPromotionSale();
|
|
|
719 |
case PROMOTION_ORDER_COUNT:
|
|
|
720 |
return isSetPromotionOrderCount();
|
| 8445 |
vikram.rag |
721 |
case OUR_PRICE:
|
|
|
722 |
return isSetOurPrice();
|
| 8282 |
kshitij.so |
723 |
}
|
|
|
724 |
throw new IllegalStateException();
|
|
|
725 |
}
|
|
|
726 |
|
|
|
727 |
@Override
|
|
|
728 |
public boolean equals(Object that) {
|
|
|
729 |
if (that == null)
|
|
|
730 |
return false;
|
|
|
731 |
if (that instanceof AmazonFbaSalesSnapshot)
|
|
|
732 |
return this.equals((AmazonFbaSalesSnapshot)that);
|
|
|
733 |
return false;
|
|
|
734 |
}
|
|
|
735 |
|
|
|
736 |
public boolean equals(AmazonFbaSalesSnapshot that) {
|
|
|
737 |
if (that == null)
|
|
|
738 |
return false;
|
|
|
739 |
|
|
|
740 |
boolean this_present_dateOfSale = true;
|
|
|
741 |
boolean that_present_dateOfSale = true;
|
|
|
742 |
if (this_present_dateOfSale || that_present_dateOfSale) {
|
|
|
743 |
if (!(this_present_dateOfSale && that_present_dateOfSale))
|
|
|
744 |
return false;
|
|
|
745 |
if (this.dateOfSale != that.dateOfSale)
|
|
|
746 |
return false;
|
|
|
747 |
}
|
|
|
748 |
|
|
|
749 |
boolean this_present_item_id = true;
|
|
|
750 |
boolean that_present_item_id = true;
|
|
|
751 |
if (this_present_item_id || that_present_item_id) {
|
|
|
752 |
if (!(this_present_item_id && that_present_item_id))
|
|
|
753 |
return false;
|
|
|
754 |
if (this.item_id != that.item_id)
|
|
|
755 |
return false;
|
|
|
756 |
}
|
|
|
757 |
|
| 8363 |
vikram.rag |
758 |
boolean this_present_totalOrderCount = true;
|
|
|
759 |
boolean that_present_totalOrderCount = true;
|
|
|
760 |
if (this_present_totalOrderCount || that_present_totalOrderCount) {
|
|
|
761 |
if (!(this_present_totalOrderCount && that_present_totalOrderCount))
|
| 8282 |
kshitij.so |
762 |
return false;
|
| 8363 |
vikram.rag |
763 |
if (this.totalOrderCount != that.totalOrderCount)
|
| 8282 |
kshitij.so |
764 |
return false;
|
|
|
765 |
}
|
|
|
766 |
|
|
|
767 |
boolean this_present_amazonFbaInventory = true;
|
|
|
768 |
boolean that_present_amazonFbaInventory = true;
|
|
|
769 |
if (this_present_amazonFbaInventory || that_present_amazonFbaInventory) {
|
|
|
770 |
if (!(this_present_amazonFbaInventory && that_present_amazonFbaInventory))
|
|
|
771 |
return false;
|
|
|
772 |
if (this.amazonFbaInventory != that.amazonFbaInventory)
|
|
|
773 |
return false;
|
|
|
774 |
}
|
|
|
775 |
|
|
|
776 |
boolean this_present_isOutOfStock = true;
|
|
|
777 |
boolean that_present_isOutOfStock = true;
|
|
|
778 |
if (this_present_isOutOfStock || that_present_isOutOfStock) {
|
|
|
779 |
if (!(this_present_isOutOfStock && that_present_isOutOfStock))
|
|
|
780 |
return false;
|
|
|
781 |
if (this.isOutOfStock != that.isOutOfStock)
|
|
|
782 |
return false;
|
|
|
783 |
}
|
|
|
784 |
|
|
|
785 |
boolean this_present_salePrice = true;
|
|
|
786 |
boolean that_present_salePrice = true;
|
|
|
787 |
if (this_present_salePrice || that_present_salePrice) {
|
|
|
788 |
if (!(this_present_salePrice && that_present_salePrice))
|
|
|
789 |
return false;
|
|
|
790 |
if (this.salePrice != that.salePrice)
|
|
|
791 |
return false;
|
|
|
792 |
}
|
|
|
793 |
|
|
|
794 |
boolean this_present_minFbaPrice = true;
|
|
|
795 |
boolean that_present_minFbaPrice = true;
|
|
|
796 |
if (this_present_minFbaPrice || that_present_minFbaPrice) {
|
|
|
797 |
if (!(this_present_minFbaPrice && that_present_minFbaPrice))
|
|
|
798 |
return false;
|
|
|
799 |
if (this.minFbaPrice != that.minFbaPrice)
|
|
|
800 |
return false;
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
boolean this_present_minMfnPrice = true;
|
|
|
804 |
boolean that_present_minMfnPrice = true;
|
|
|
805 |
if (this_present_minMfnPrice || that_present_minMfnPrice) {
|
|
|
806 |
if (!(this_present_minMfnPrice && that_present_minMfnPrice))
|
|
|
807 |
return false;
|
|
|
808 |
if (this.minMfnPrice != that.minMfnPrice)
|
|
|
809 |
return false;
|
|
|
810 |
}
|
|
|
811 |
|
| 8363 |
vikram.rag |
812 |
boolean this_present_totalSale = true;
|
|
|
813 |
boolean that_present_totalSale = true;
|
|
|
814 |
if (this_present_totalSale || that_present_totalSale) {
|
|
|
815 |
if (!(this_present_totalSale && that_present_totalSale))
|
|
|
816 |
return false;
|
|
|
817 |
if (this.totalSale != that.totalSale)
|
|
|
818 |
return false;
|
|
|
819 |
}
|
|
|
820 |
|
|
|
821 |
boolean this_present_promotionSale = true;
|
|
|
822 |
boolean that_present_promotionSale = true;
|
|
|
823 |
if (this_present_promotionSale || that_present_promotionSale) {
|
|
|
824 |
if (!(this_present_promotionSale && that_present_promotionSale))
|
|
|
825 |
return false;
|
|
|
826 |
if (this.promotionSale != that.promotionSale)
|
|
|
827 |
return false;
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
boolean this_present_promotionOrderCount = true;
|
|
|
831 |
boolean that_present_promotionOrderCount = true;
|
|
|
832 |
if (this_present_promotionOrderCount || that_present_promotionOrderCount) {
|
|
|
833 |
if (!(this_present_promotionOrderCount && that_present_promotionOrderCount))
|
|
|
834 |
return false;
|
|
|
835 |
if (this.promotionOrderCount != that.promotionOrderCount)
|
|
|
836 |
return false;
|
|
|
837 |
}
|
|
|
838 |
|
| 8445 |
vikram.rag |
839 |
boolean this_present_ourPrice = true;
|
|
|
840 |
boolean that_present_ourPrice = true;
|
|
|
841 |
if (this_present_ourPrice || that_present_ourPrice) {
|
|
|
842 |
if (!(this_present_ourPrice && that_present_ourPrice))
|
|
|
843 |
return false;
|
|
|
844 |
if (this.ourPrice != that.ourPrice)
|
|
|
845 |
return false;
|
|
|
846 |
}
|
|
|
847 |
|
| 8282 |
kshitij.so |
848 |
return true;
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
@Override
|
|
|
852 |
public int hashCode() {
|
|
|
853 |
return 0;
|
|
|
854 |
}
|
|
|
855 |
|
|
|
856 |
public int compareTo(AmazonFbaSalesSnapshot other) {
|
|
|
857 |
if (!getClass().equals(other.getClass())) {
|
|
|
858 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
859 |
}
|
|
|
860 |
|
|
|
861 |
int lastComparison = 0;
|
|
|
862 |
AmazonFbaSalesSnapshot typedOther = (AmazonFbaSalesSnapshot)other;
|
|
|
863 |
|
|
|
864 |
lastComparison = Boolean.valueOf(isSetDateOfSale()).compareTo(typedOther.isSetDateOfSale());
|
|
|
865 |
if (lastComparison != 0) {
|
|
|
866 |
return lastComparison;
|
|
|
867 |
}
|
|
|
868 |
if (isSetDateOfSale()) {
|
|
|
869 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateOfSale, typedOther.dateOfSale);
|
|
|
870 |
if (lastComparison != 0) {
|
|
|
871 |
return lastComparison;
|
|
|
872 |
}
|
|
|
873 |
}
|
|
|
874 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
|
|
875 |
if (lastComparison != 0) {
|
|
|
876 |
return lastComparison;
|
|
|
877 |
}
|
|
|
878 |
if (isSetItem_id()) {
|
|
|
879 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
|
|
880 |
if (lastComparison != 0) {
|
|
|
881 |
return lastComparison;
|
|
|
882 |
}
|
|
|
883 |
}
|
| 8363 |
vikram.rag |
884 |
lastComparison = Boolean.valueOf(isSetTotalOrderCount()).compareTo(typedOther.isSetTotalOrderCount());
|
| 8282 |
kshitij.so |
885 |
if (lastComparison != 0) {
|
|
|
886 |
return lastComparison;
|
|
|
887 |
}
|
| 8363 |
vikram.rag |
888 |
if (isSetTotalOrderCount()) {
|
|
|
889 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalOrderCount, typedOther.totalOrderCount);
|
| 8282 |
kshitij.so |
890 |
if (lastComparison != 0) {
|
|
|
891 |
return lastComparison;
|
|
|
892 |
}
|
|
|
893 |
}
|
|
|
894 |
lastComparison = Boolean.valueOf(isSetAmazonFbaInventory()).compareTo(typedOther.isSetAmazonFbaInventory());
|
|
|
895 |
if (lastComparison != 0) {
|
|
|
896 |
return lastComparison;
|
|
|
897 |
}
|
|
|
898 |
if (isSetAmazonFbaInventory()) {
|
|
|
899 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonFbaInventory, typedOther.amazonFbaInventory);
|
|
|
900 |
if (lastComparison != 0) {
|
|
|
901 |
return lastComparison;
|
|
|
902 |
}
|
|
|
903 |
}
|
|
|
904 |
lastComparison = Boolean.valueOf(isSetIsOutOfStock()).compareTo(typedOther.isSetIsOutOfStock());
|
|
|
905 |
if (lastComparison != 0) {
|
|
|
906 |
return lastComparison;
|
|
|
907 |
}
|
|
|
908 |
if (isSetIsOutOfStock()) {
|
|
|
909 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isOutOfStock, typedOther.isOutOfStock);
|
|
|
910 |
if (lastComparison != 0) {
|
|
|
911 |
return lastComparison;
|
|
|
912 |
}
|
|
|
913 |
}
|
|
|
914 |
lastComparison = Boolean.valueOf(isSetSalePrice()).compareTo(typedOther.isSetSalePrice());
|
|
|
915 |
if (lastComparison != 0) {
|
|
|
916 |
return lastComparison;
|
|
|
917 |
}
|
|
|
918 |
if (isSetSalePrice()) {
|
|
|
919 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salePrice, typedOther.salePrice);
|
|
|
920 |
if (lastComparison != 0) {
|
|
|
921 |
return lastComparison;
|
|
|
922 |
}
|
|
|
923 |
}
|
|
|
924 |
lastComparison = Boolean.valueOf(isSetMinFbaPrice()).compareTo(typedOther.isSetMinFbaPrice());
|
|
|
925 |
if (lastComparison != 0) {
|
|
|
926 |
return lastComparison;
|
|
|
927 |
}
|
|
|
928 |
if (isSetMinFbaPrice()) {
|
|
|
929 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minFbaPrice, typedOther.minFbaPrice);
|
|
|
930 |
if (lastComparison != 0) {
|
|
|
931 |
return lastComparison;
|
|
|
932 |
}
|
|
|
933 |
}
|
|
|
934 |
lastComparison = Boolean.valueOf(isSetMinMfnPrice()).compareTo(typedOther.isSetMinMfnPrice());
|
|
|
935 |
if (lastComparison != 0) {
|
|
|
936 |
return lastComparison;
|
|
|
937 |
}
|
|
|
938 |
if (isSetMinMfnPrice()) {
|
|
|
939 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minMfnPrice, typedOther.minMfnPrice);
|
|
|
940 |
if (lastComparison != 0) {
|
|
|
941 |
return lastComparison;
|
|
|
942 |
}
|
|
|
943 |
}
|
| 8363 |
vikram.rag |
944 |
lastComparison = Boolean.valueOf(isSetTotalSale()).compareTo(typedOther.isSetTotalSale());
|
|
|
945 |
if (lastComparison != 0) {
|
|
|
946 |
return lastComparison;
|
|
|
947 |
}
|
|
|
948 |
if (isSetTotalSale()) {
|
|
|
949 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalSale, typedOther.totalSale);
|
|
|
950 |
if (lastComparison != 0) {
|
|
|
951 |
return lastComparison;
|
|
|
952 |
}
|
|
|
953 |
}
|
|
|
954 |
lastComparison = Boolean.valueOf(isSetPromotionSale()).compareTo(typedOther.isSetPromotionSale());
|
|
|
955 |
if (lastComparison != 0) {
|
|
|
956 |
return lastComparison;
|
|
|
957 |
}
|
|
|
958 |
if (isSetPromotionSale()) {
|
|
|
959 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionSale, typedOther.promotionSale);
|
|
|
960 |
if (lastComparison != 0) {
|
|
|
961 |
return lastComparison;
|
|
|
962 |
}
|
|
|
963 |
}
|
|
|
964 |
lastComparison = Boolean.valueOf(isSetPromotionOrderCount()).compareTo(typedOther.isSetPromotionOrderCount());
|
|
|
965 |
if (lastComparison != 0) {
|
|
|
966 |
return lastComparison;
|
|
|
967 |
}
|
|
|
968 |
if (isSetPromotionOrderCount()) {
|
|
|
969 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionOrderCount, typedOther.promotionOrderCount);
|
|
|
970 |
if (lastComparison != 0) {
|
|
|
971 |
return lastComparison;
|
|
|
972 |
}
|
|
|
973 |
}
|
| 8445 |
vikram.rag |
974 |
lastComparison = Boolean.valueOf(isSetOurPrice()).compareTo(typedOther.isSetOurPrice());
|
|
|
975 |
if (lastComparison != 0) {
|
|
|
976 |
return lastComparison;
|
|
|
977 |
}
|
|
|
978 |
if (isSetOurPrice()) {
|
|
|
979 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourPrice, typedOther.ourPrice);
|
|
|
980 |
if (lastComparison != 0) {
|
|
|
981 |
return lastComparison;
|
|
|
982 |
}
|
|
|
983 |
}
|
| 8282 |
kshitij.so |
984 |
return 0;
|
|
|
985 |
}
|
|
|
986 |
|
|
|
987 |
public _Fields fieldForId(int fieldId) {
|
|
|
988 |
return _Fields.findByThriftId(fieldId);
|
|
|
989 |
}
|
|
|
990 |
|
|
|
991 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
992 |
org.apache.thrift.protocol.TField field;
|
|
|
993 |
iprot.readStructBegin();
|
|
|
994 |
while (true)
|
|
|
995 |
{
|
|
|
996 |
field = iprot.readFieldBegin();
|
|
|
997 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
998 |
break;
|
|
|
999 |
}
|
|
|
1000 |
switch (field.id) {
|
|
|
1001 |
case 1: // DATE_OF_SALE
|
|
|
1002 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1003 |
this.dateOfSale = iprot.readI64();
|
|
|
1004 |
setDateOfSaleIsSet(true);
|
|
|
1005 |
} else {
|
|
|
1006 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1007 |
}
|
|
|
1008 |
break;
|
|
|
1009 |
case 2: // ITEM_ID
|
|
|
1010 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1011 |
this.item_id = iprot.readI64();
|
|
|
1012 |
setItem_idIsSet(true);
|
|
|
1013 |
} else {
|
|
|
1014 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1015 |
}
|
|
|
1016 |
break;
|
| 8363 |
vikram.rag |
1017 |
case 3: // TOTAL_ORDER_COUNT
|
| 8282 |
kshitij.so |
1018 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
| 8363 |
vikram.rag |
1019 |
this.totalOrderCount = iprot.readI32();
|
|
|
1020 |
setTotalOrderCountIsSet(true);
|
| 8282 |
kshitij.so |
1021 |
} else {
|
|
|
1022 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1023 |
}
|
|
|
1024 |
break;
|
|
|
1025 |
case 4: // AMAZON_FBA_INVENTORY
|
|
|
1026 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1027 |
this.amazonFbaInventory = iprot.readI64();
|
|
|
1028 |
setAmazonFbaInventoryIsSet(true);
|
|
|
1029 |
} else {
|
|
|
1030 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1031 |
}
|
|
|
1032 |
break;
|
|
|
1033 |
case 5: // IS_OUT_OF_STOCK
|
|
|
1034 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1035 |
this.isOutOfStock = iprot.readBool();
|
|
|
1036 |
setIsOutOfStockIsSet(true);
|
|
|
1037 |
} else {
|
|
|
1038 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1039 |
}
|
|
|
1040 |
break;
|
|
|
1041 |
case 6: // SALE_PRICE
|
|
|
1042 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1043 |
this.salePrice = iprot.readDouble();
|
|
|
1044 |
setSalePriceIsSet(true);
|
|
|
1045 |
} else {
|
|
|
1046 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1047 |
}
|
|
|
1048 |
break;
|
|
|
1049 |
case 7: // MIN_FBA_PRICE
|
|
|
1050 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1051 |
this.minFbaPrice = iprot.readDouble();
|
|
|
1052 |
setMinFbaPriceIsSet(true);
|
|
|
1053 |
} else {
|
|
|
1054 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1055 |
}
|
|
|
1056 |
break;
|
|
|
1057 |
case 8: // MIN_MFN_PRICE
|
|
|
1058 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1059 |
this.minMfnPrice = iprot.readDouble();
|
|
|
1060 |
setMinMfnPriceIsSet(true);
|
|
|
1061 |
} else {
|
|
|
1062 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1063 |
}
|
|
|
1064 |
break;
|
| 8363 |
vikram.rag |
1065 |
case 9: // TOTAL_SALE
|
|
|
1066 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1067 |
this.totalSale = iprot.readDouble();
|
|
|
1068 |
setTotalSaleIsSet(true);
|
|
|
1069 |
} else {
|
|
|
1070 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1071 |
}
|
|
|
1072 |
break;
|
|
|
1073 |
case 10: // PROMOTION_SALE
|
|
|
1074 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1075 |
this.promotionSale = iprot.readDouble();
|
|
|
1076 |
setPromotionSaleIsSet(true);
|
|
|
1077 |
} else {
|
|
|
1078 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1079 |
}
|
|
|
1080 |
break;
|
|
|
1081 |
case 11: // PROMOTION_ORDER_COUNT
|
|
|
1082 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1083 |
this.promotionOrderCount = iprot.readI32();
|
|
|
1084 |
setPromotionOrderCountIsSet(true);
|
|
|
1085 |
} else {
|
|
|
1086 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1087 |
}
|
|
|
1088 |
break;
|
| 8445 |
vikram.rag |
1089 |
case 12: // OUR_PRICE
|
|
|
1090 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1091 |
this.ourPrice = iprot.readDouble();
|
|
|
1092 |
setOurPriceIsSet(true);
|
|
|
1093 |
} else {
|
|
|
1094 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1095 |
}
|
|
|
1096 |
break;
|
| 8282 |
kshitij.so |
1097 |
default:
|
|
|
1098 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1099 |
}
|
|
|
1100 |
iprot.readFieldEnd();
|
|
|
1101 |
}
|
|
|
1102 |
iprot.readStructEnd();
|
|
|
1103 |
validate();
|
|
|
1104 |
}
|
|
|
1105 |
|
|
|
1106 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1107 |
validate();
|
|
|
1108 |
|
|
|
1109 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1110 |
oprot.writeFieldBegin(DATE_OF_SALE_FIELD_DESC);
|
|
|
1111 |
oprot.writeI64(this.dateOfSale);
|
|
|
1112 |
oprot.writeFieldEnd();
|
|
|
1113 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
1114 |
oprot.writeI64(this.item_id);
|
|
|
1115 |
oprot.writeFieldEnd();
|
| 8363 |
vikram.rag |
1116 |
oprot.writeFieldBegin(TOTAL_ORDER_COUNT_FIELD_DESC);
|
|
|
1117 |
oprot.writeI32(this.totalOrderCount);
|
| 8282 |
kshitij.so |
1118 |
oprot.writeFieldEnd();
|
|
|
1119 |
oprot.writeFieldBegin(AMAZON_FBA_INVENTORY_FIELD_DESC);
|
|
|
1120 |
oprot.writeI64(this.amazonFbaInventory);
|
|
|
1121 |
oprot.writeFieldEnd();
|
|
|
1122 |
oprot.writeFieldBegin(IS_OUT_OF_STOCK_FIELD_DESC);
|
|
|
1123 |
oprot.writeBool(this.isOutOfStock);
|
|
|
1124 |
oprot.writeFieldEnd();
|
|
|
1125 |
oprot.writeFieldBegin(SALE_PRICE_FIELD_DESC);
|
|
|
1126 |
oprot.writeDouble(this.salePrice);
|
|
|
1127 |
oprot.writeFieldEnd();
|
|
|
1128 |
oprot.writeFieldBegin(MIN_FBA_PRICE_FIELD_DESC);
|
|
|
1129 |
oprot.writeDouble(this.minFbaPrice);
|
|
|
1130 |
oprot.writeFieldEnd();
|
|
|
1131 |
oprot.writeFieldBegin(MIN_MFN_PRICE_FIELD_DESC);
|
|
|
1132 |
oprot.writeDouble(this.minMfnPrice);
|
|
|
1133 |
oprot.writeFieldEnd();
|
| 8363 |
vikram.rag |
1134 |
oprot.writeFieldBegin(TOTAL_SALE_FIELD_DESC);
|
|
|
1135 |
oprot.writeDouble(this.totalSale);
|
|
|
1136 |
oprot.writeFieldEnd();
|
|
|
1137 |
oprot.writeFieldBegin(PROMOTION_SALE_FIELD_DESC);
|
|
|
1138 |
oprot.writeDouble(this.promotionSale);
|
|
|
1139 |
oprot.writeFieldEnd();
|
|
|
1140 |
oprot.writeFieldBegin(PROMOTION_ORDER_COUNT_FIELD_DESC);
|
|
|
1141 |
oprot.writeI32(this.promotionOrderCount);
|
|
|
1142 |
oprot.writeFieldEnd();
|
| 8445 |
vikram.rag |
1143 |
oprot.writeFieldBegin(OUR_PRICE_FIELD_DESC);
|
|
|
1144 |
oprot.writeDouble(this.ourPrice);
|
|
|
1145 |
oprot.writeFieldEnd();
|
| 8282 |
kshitij.so |
1146 |
oprot.writeFieldStop();
|
|
|
1147 |
oprot.writeStructEnd();
|
|
|
1148 |
}
|
|
|
1149 |
|
|
|
1150 |
@Override
|
|
|
1151 |
public String toString() {
|
|
|
1152 |
StringBuilder sb = new StringBuilder("AmazonFbaSalesSnapshot(");
|
|
|
1153 |
boolean first = true;
|
|
|
1154 |
|
|
|
1155 |
sb.append("dateOfSale:");
|
|
|
1156 |
sb.append(this.dateOfSale);
|
|
|
1157 |
first = false;
|
|
|
1158 |
if (!first) sb.append(", ");
|
|
|
1159 |
sb.append("item_id:");
|
|
|
1160 |
sb.append(this.item_id);
|
|
|
1161 |
first = false;
|
|
|
1162 |
if (!first) sb.append(", ");
|
| 8363 |
vikram.rag |
1163 |
sb.append("totalOrderCount:");
|
|
|
1164 |
sb.append(this.totalOrderCount);
|
| 8282 |
kshitij.so |
1165 |
first = false;
|
|
|
1166 |
if (!first) sb.append(", ");
|
|
|
1167 |
sb.append("amazonFbaInventory:");
|
|
|
1168 |
sb.append(this.amazonFbaInventory);
|
|
|
1169 |
first = false;
|
|
|
1170 |
if (!first) sb.append(", ");
|
|
|
1171 |
sb.append("isOutOfStock:");
|
|
|
1172 |
sb.append(this.isOutOfStock);
|
|
|
1173 |
first = false;
|
|
|
1174 |
if (!first) sb.append(", ");
|
|
|
1175 |
sb.append("salePrice:");
|
|
|
1176 |
sb.append(this.salePrice);
|
|
|
1177 |
first = false;
|
|
|
1178 |
if (!first) sb.append(", ");
|
|
|
1179 |
sb.append("minFbaPrice:");
|
|
|
1180 |
sb.append(this.minFbaPrice);
|
|
|
1181 |
first = false;
|
|
|
1182 |
if (!first) sb.append(", ");
|
|
|
1183 |
sb.append("minMfnPrice:");
|
|
|
1184 |
sb.append(this.minMfnPrice);
|
|
|
1185 |
first = false;
|
| 8363 |
vikram.rag |
1186 |
if (!first) sb.append(", ");
|
|
|
1187 |
sb.append("totalSale:");
|
|
|
1188 |
sb.append(this.totalSale);
|
|
|
1189 |
first = false;
|
|
|
1190 |
if (!first) sb.append(", ");
|
|
|
1191 |
sb.append("promotionSale:");
|
|
|
1192 |
sb.append(this.promotionSale);
|
|
|
1193 |
first = false;
|
|
|
1194 |
if (!first) sb.append(", ");
|
|
|
1195 |
sb.append("promotionOrderCount:");
|
|
|
1196 |
sb.append(this.promotionOrderCount);
|
|
|
1197 |
first = false;
|
| 8445 |
vikram.rag |
1198 |
if (!first) sb.append(", ");
|
|
|
1199 |
sb.append("ourPrice:");
|
|
|
1200 |
sb.append(this.ourPrice);
|
|
|
1201 |
first = false;
|
| 8282 |
kshitij.so |
1202 |
sb.append(")");
|
|
|
1203 |
return sb.toString();
|
|
|
1204 |
}
|
|
|
1205 |
|
|
|
1206 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1207 |
// check for required fields
|
|
|
1208 |
}
|
|
|
1209 |
|
|
|
1210 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1211 |
try {
|
|
|
1212 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1213 |
} catch (org.apache.thrift.TException te) {
|
|
|
1214 |
throw new java.io.IOException(te);
|
|
|
1215 |
}
|
|
|
1216 |
}
|
|
|
1217 |
|
|
|
1218 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1219 |
try {
|
|
|
1220 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1221 |
__isset_bit_vector = new BitSet(1);
|
|
|
1222 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1223 |
} catch (org.apache.thrift.TException te) {
|
|
|
1224 |
throw new java.io.IOException(te);
|
|
|
1225 |
}
|
|
|
1226 |
}
|
|
|
1227 |
|
|
|
1228 |
}
|
|
|
1229 |
|