| Line 40... |
Line 40... |
| 40 |
private static final org.apache.thrift.protocol.TField TAGLINE_FIELD_DESC = new org.apache.thrift.protocol.TField("tagline", org.apache.thrift.protocol.TType.STRING, (short)12);
|
40 |
private static final org.apache.thrift.protocol.TField TAGLINE_FIELD_DESC = new org.apache.thrift.protocol.TField("tagline", org.apache.thrift.protocol.TType.STRING, (short)12);
|
| 41 |
private static final org.apache.thrift.protocol.TField OFFER_FIELD_DESC = new org.apache.thrift.protocol.TField("offer", org.apache.thrift.protocol.TType.STRING, (short)13);
|
41 |
private static final org.apache.thrift.protocol.TField OFFER_FIELD_DESC = new org.apache.thrift.protocol.TField("offer", org.apache.thrift.protocol.TType.STRING, (short)13);
|
| 42 |
private static final org.apache.thrift.protocol.TField GROSS_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("gross_price", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
|
42 |
private static final org.apache.thrift.protocol.TField GROSS_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("gross_price", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
|
| 43 |
private static final org.apache.thrift.protocol.TField CHEAPEST_BULK_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("cheapestBulkPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
|
43 |
private static final org.apache.thrift.protocol.TField CHEAPEST_BULK_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("cheapestBulkPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
|
| 44 |
private static final org.apache.thrift.protocol.TField PACK_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("packQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
|
44 |
private static final org.apache.thrift.protocol.TField PACK_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("packQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
|
| - |
|
45 |
private static final org.apache.thrift.protocol.TField NET_PRICING_AFTER_CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("netPricingAfterCashBack", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
|
| - |
|
46 |
private static final org.apache.thrift.protocol.TField SHOW_NET_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("showNetPrice", org.apache.thrift.protocol.TType.I64, (short)18);
|
| 45 |
|
47 |
|
| 46 |
private long _id; // required
|
48 |
private long _id; // required
|
| 47 |
private double available_price; // required
|
49 |
private double available_price; // required
|
| 48 |
private String marketPlaceUrl; // required
|
50 |
private String marketPlaceUrl; // required
|
| 49 |
private long in_stock; // required
|
51 |
private long in_stock; // required
|
| Line 57... |
Line 59... |
| 57 |
private String tagline; // required
|
59 |
private String tagline; // required
|
| 58 |
private String offer; // required
|
60 |
private String offer; // required
|
| 59 |
private double gross_price; // required
|
61 |
private double gross_price; // required
|
| 60 |
private double cheapestBulkPrice; // required
|
62 |
private double cheapestBulkPrice; // required
|
| 61 |
private long packQuantity; // required
|
63 |
private long packQuantity; // required
|
| - |
|
64 |
private double netPricingAfterCashBack; // required
|
| - |
|
65 |
private long showNetPrice; // required
|
| 62 |
|
66 |
|
| 63 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
67 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 64 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
68 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 65 |
_ID((short)1, "_id"),
|
69 |
_ID((short)1, "_id"),
|
| 66 |
AVAILABLE_PRICE((short)2, "available_price"),
|
70 |
AVAILABLE_PRICE((short)2, "available_price"),
|
| Line 75... |
Line 79... |
| 75 |
COD_AVAILABLE((short)11, "codAvailable"),
|
79 |
COD_AVAILABLE((short)11, "codAvailable"),
|
| 76 |
TAGLINE((short)12, "tagline"),
|
80 |
TAGLINE((short)12, "tagline"),
|
| 77 |
OFFER((short)13, "offer"),
|
81 |
OFFER((short)13, "offer"),
|
| 78 |
GROSS_PRICE((short)14, "gross_price"),
|
82 |
GROSS_PRICE((short)14, "gross_price"),
|
| 79 |
CHEAPEST_BULK_PRICE((short)15, "cheapestBulkPrice"),
|
83 |
CHEAPEST_BULK_PRICE((short)15, "cheapestBulkPrice"),
|
| 80 |
PACK_QUANTITY((short)16, "packQuantity");
|
84 |
PACK_QUANTITY((short)16, "packQuantity"),
|
| - |
|
85 |
NET_PRICING_AFTER_CASH_BACK((short)17, "netPricingAfterCashBack"),
|
| - |
|
86 |
SHOW_NET_PRICE((short)18, "showNetPrice");
|
| 81 |
|
87 |
|
| 82 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
88 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 83 |
|
89 |
|
| 84 |
static {
|
90 |
static {
|
| 85 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
91 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 122... |
Line 128... |
| 122 |
return GROSS_PRICE;
|
128 |
return GROSS_PRICE;
|
| 123 |
case 15: // CHEAPEST_BULK_PRICE
|
129 |
case 15: // CHEAPEST_BULK_PRICE
|
| 124 |
return CHEAPEST_BULK_PRICE;
|
130 |
return CHEAPEST_BULK_PRICE;
|
| 125 |
case 16: // PACK_QUANTITY
|
131 |
case 16: // PACK_QUANTITY
|
| 126 |
return PACK_QUANTITY;
|
132 |
return PACK_QUANTITY;
|
| - |
|
133 |
case 17: // NET_PRICING_AFTER_CASH_BACK
|
| - |
|
134 |
return NET_PRICING_AFTER_CASH_BACK;
|
| - |
|
135 |
case 18: // SHOW_NET_PRICE
|
| - |
|
136 |
return SHOW_NET_PRICE;
|
| 127 |
default:
|
137 |
default:
|
| 128 |
return null;
|
138 |
return null;
|
| 129 |
}
|
139 |
}
|
| 130 |
}
|
140 |
}
|
| 131 |
|
141 |
|
| Line 172... |
Line 182... |
| 172 |
private static final int __CASH_BACK_ISSET_ID = 5;
|
182 |
private static final int __CASH_BACK_ISSET_ID = 5;
|
| 173 |
private static final int __CODAVAILABLE_ISSET_ID = 6;
|
183 |
private static final int __CODAVAILABLE_ISSET_ID = 6;
|
| 174 |
private static final int __GROSS_PRICE_ISSET_ID = 7;
|
184 |
private static final int __GROSS_PRICE_ISSET_ID = 7;
|
| 175 |
private static final int __CHEAPESTBULKPRICE_ISSET_ID = 8;
|
185 |
private static final int __CHEAPESTBULKPRICE_ISSET_ID = 8;
|
| 176 |
private static final int __PACKQUANTITY_ISSET_ID = 9;
|
186 |
private static final int __PACKQUANTITY_ISSET_ID = 9;
|
| - |
|
187 |
private static final int __NETPRICINGAFTERCASHBACK_ISSET_ID = 10;
|
| - |
|
188 |
private static final int __SHOWNETPRICE_ISSET_ID = 11;
|
| 177 |
private BitSet __isset_bit_vector = new BitSet(10);
|
189 |
private BitSet __isset_bit_vector = new BitSet(12);
|
| 178 |
|
190 |
|
| 179 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
191 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 180 |
static {
|
192 |
static {
|
| 181 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
193 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 182 |
tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
194 |
tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 209... |
Line 221... |
| 209 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
221 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 210 |
tmpMap.put(_Fields.CHEAPEST_BULK_PRICE, new org.apache.thrift.meta_data.FieldMetaData("cheapestBulkPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
222 |
tmpMap.put(_Fields.CHEAPEST_BULK_PRICE, new org.apache.thrift.meta_data.FieldMetaData("cheapestBulkPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 211 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
223 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 212 |
tmpMap.put(_Fields.PACK_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("packQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
224 |
tmpMap.put(_Fields.PACK_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("packQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 213 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
225 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
226 |
tmpMap.put(_Fields.NET_PRICING_AFTER_CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("netPricingAfterCashBack", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
227 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| - |
|
228 |
tmpMap.put(_Fields.SHOW_NET_PRICE, new org.apache.thrift.meta_data.FieldMetaData("showNetPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
229 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 214 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
230 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 215 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
|
231 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
|
| 216 |
}
|
232 |
}
|
| 217 |
|
233 |
|
| 218 |
public LivePricing() {
|
234 |
public LivePricing() {
|
| Line 232... |
Line 248... |
| 232 |
long codAvailable,
|
248 |
long codAvailable,
|
| 233 |
String tagline,
|
249 |
String tagline,
|
| 234 |
String offer,
|
250 |
String offer,
|
| 235 |
double gross_price,
|
251 |
double gross_price,
|
| 236 |
double cheapestBulkPrice,
|
252 |
double cheapestBulkPrice,
|
| 237 |
long packQuantity)
|
253 |
long packQuantity,
|
| - |
|
254 |
double netPricingAfterCashBack,
|
| - |
|
255 |
long showNetPrice)
|
| 238 |
{
|
256 |
{
|
| 239 |
this();
|
257 |
this();
|
| 240 |
this._id = _id;
|
258 |
this._id = _id;
|
| 241 |
set_idIsSet(true);
|
259 |
set_idIsSet(true);
|
| 242 |
this.available_price = available_price;
|
260 |
this.available_price = available_price;
|
| Line 261... |
Line 279... |
| 261 |
setGross_priceIsSet(true);
|
279 |
setGross_priceIsSet(true);
|
| 262 |
this.cheapestBulkPrice = cheapestBulkPrice;
|
280 |
this.cheapestBulkPrice = cheapestBulkPrice;
|
| 263 |
setCheapestBulkPriceIsSet(true);
|
281 |
setCheapestBulkPriceIsSet(true);
|
| 264 |
this.packQuantity = packQuantity;
|
282 |
this.packQuantity = packQuantity;
|
| 265 |
setPackQuantityIsSet(true);
|
283 |
setPackQuantityIsSet(true);
|
| - |
|
284 |
this.netPricingAfterCashBack = netPricingAfterCashBack;
|
| - |
|
285 |
setNetPricingAfterCashBackIsSet(true);
|
| - |
|
286 |
this.showNetPrice = showNetPrice;
|
| - |
|
287 |
setShowNetPriceIsSet(true);
|
| 266 |
}
|
288 |
}
|
| 267 |
|
289 |
|
| 268 |
/**
|
290 |
/**
|
| 269 |
* Performs a deep copy on <i>other</i>.
|
291 |
* Performs a deep copy on <i>other</i>.
|
| 270 |
*/
|
292 |
*/
|
| Line 297... |
Line 319... |
| 297 |
this.offer = other.offer;
|
319 |
this.offer = other.offer;
|
| 298 |
}
|
320 |
}
|
| 299 |
this.gross_price = other.gross_price;
|
321 |
this.gross_price = other.gross_price;
|
| 300 |
this.cheapestBulkPrice = other.cheapestBulkPrice;
|
322 |
this.cheapestBulkPrice = other.cheapestBulkPrice;
|
| 301 |
this.packQuantity = other.packQuantity;
|
323 |
this.packQuantity = other.packQuantity;
|
| - |
|
324 |
this.netPricingAfterCashBack = other.netPricingAfterCashBack;
|
| - |
|
325 |
this.showNetPrice = other.showNetPrice;
|
| 302 |
}
|
326 |
}
|
| 303 |
|
327 |
|
| 304 |
public LivePricing deepCopy() {
|
328 |
public LivePricing deepCopy() {
|
| 305 |
return new LivePricing(this);
|
329 |
return new LivePricing(this);
|
| 306 |
}
|
330 |
}
|
| Line 331... |
Line 355... |
| 331 |
this.gross_price = 0.0;
|
355 |
this.gross_price = 0.0;
|
| 332 |
setCheapestBulkPriceIsSet(false);
|
356 |
setCheapestBulkPriceIsSet(false);
|
| 333 |
this.cheapestBulkPrice = 0.0;
|
357 |
this.cheapestBulkPrice = 0.0;
|
| 334 |
setPackQuantityIsSet(false);
|
358 |
setPackQuantityIsSet(false);
|
| 335 |
this.packQuantity = 0;
|
359 |
this.packQuantity = 0;
|
| - |
|
360 |
setNetPricingAfterCashBackIsSet(false);
|
| - |
|
361 |
this.netPricingAfterCashBack = 0.0;
|
| - |
|
362 |
setShowNetPriceIsSet(false);
|
| - |
|
363 |
this.showNetPrice = 0;
|
| 336 |
}
|
364 |
}
|
| 337 |
|
365 |
|
| 338 |
public long get_id() {
|
366 |
public long get_id() {
|
| 339 |
return this._id;
|
367 |
return this._id;
|
| 340 |
}
|
368 |
}
|
| Line 691... |
Line 719... |
| 691 |
|
719 |
|
| 692 |
public void setPackQuantityIsSet(boolean value) {
|
720 |
public void setPackQuantityIsSet(boolean value) {
|
| 693 |
__isset_bit_vector.set(__PACKQUANTITY_ISSET_ID, value);
|
721 |
__isset_bit_vector.set(__PACKQUANTITY_ISSET_ID, value);
|
| 694 |
}
|
722 |
}
|
| 695 |
|
723 |
|
| - |
|
724 |
public double getNetPricingAfterCashBack() {
|
| - |
|
725 |
return this.netPricingAfterCashBack;
|
| - |
|
726 |
}
|
| - |
|
727 |
|
| - |
|
728 |
public void setNetPricingAfterCashBack(double netPricingAfterCashBack) {
|
| - |
|
729 |
this.netPricingAfterCashBack = netPricingAfterCashBack;
|
| - |
|
730 |
setNetPricingAfterCashBackIsSet(true);
|
| - |
|
731 |
}
|
| - |
|
732 |
|
| - |
|
733 |
public void unsetNetPricingAfterCashBack() {
|
| - |
|
734 |
__isset_bit_vector.clear(__NETPRICINGAFTERCASHBACK_ISSET_ID);
|
| - |
|
735 |
}
|
| - |
|
736 |
|
| - |
|
737 |
/** Returns true if field netPricingAfterCashBack is set (has been assigned a value) and false otherwise */
|
| - |
|
738 |
public boolean isSetNetPricingAfterCashBack() {
|
| - |
|
739 |
return __isset_bit_vector.get(__NETPRICINGAFTERCASHBACK_ISSET_ID);
|
| - |
|
740 |
}
|
| - |
|
741 |
|
| - |
|
742 |
public void setNetPricingAfterCashBackIsSet(boolean value) {
|
| - |
|
743 |
__isset_bit_vector.set(__NETPRICINGAFTERCASHBACK_ISSET_ID, value);
|
| - |
|
744 |
}
|
| - |
|
745 |
|
| - |
|
746 |
public long getShowNetPrice() {
|
| - |
|
747 |
return this.showNetPrice;
|
| - |
|
748 |
}
|
| - |
|
749 |
|
| - |
|
750 |
public void setShowNetPrice(long showNetPrice) {
|
| - |
|
751 |
this.showNetPrice = showNetPrice;
|
| - |
|
752 |
setShowNetPriceIsSet(true);
|
| - |
|
753 |
}
|
| - |
|
754 |
|
| - |
|
755 |
public void unsetShowNetPrice() {
|
| - |
|
756 |
__isset_bit_vector.clear(__SHOWNETPRICE_ISSET_ID);
|
| - |
|
757 |
}
|
| - |
|
758 |
|
| - |
|
759 |
/** Returns true if field showNetPrice is set (has been assigned a value) and false otherwise */
|
| - |
|
760 |
public boolean isSetShowNetPrice() {
|
| - |
|
761 |
return __isset_bit_vector.get(__SHOWNETPRICE_ISSET_ID);
|
| - |
|
762 |
}
|
| - |
|
763 |
|
| - |
|
764 |
public void setShowNetPriceIsSet(boolean value) {
|
| - |
|
765 |
__isset_bit_vector.set(__SHOWNETPRICE_ISSET_ID, value);
|
| - |
|
766 |
}
|
| - |
|
767 |
|
| 696 |
public void setFieldValue(_Fields field, Object value) {
|
768 |
public void setFieldValue(_Fields field, Object value) {
|
| 697 |
switch (field) {
|
769 |
switch (field) {
|
| 698 |
case _ID:
|
770 |
case _ID:
|
| 699 |
if (value == null) {
|
771 |
if (value == null) {
|
| 700 |
unset_id();
|
772 |
unset_id();
|
| Line 821... |
Line 893... |
| 821 |
} else {
|
893 |
} else {
|
| 822 |
setPackQuantity((Long)value);
|
894 |
setPackQuantity((Long)value);
|
| 823 |
}
|
895 |
}
|
| 824 |
break;
|
896 |
break;
|
| 825 |
|
897 |
|
| - |
|
898 |
case NET_PRICING_AFTER_CASH_BACK:
|
| - |
|
899 |
if (value == null) {
|
| - |
|
900 |
unsetNetPricingAfterCashBack();
|
| - |
|
901 |
} else {
|
| - |
|
902 |
setNetPricingAfterCashBack((Double)value);
|
| - |
|
903 |
}
|
| - |
|
904 |
break;
|
| - |
|
905 |
|
| - |
|
906 |
case SHOW_NET_PRICE:
|
| - |
|
907 |
if (value == null) {
|
| - |
|
908 |
unsetShowNetPrice();
|
| - |
|
909 |
} else {
|
| - |
|
910 |
setShowNetPrice((Long)value);
|
| - |
|
911 |
}
|
| - |
|
912 |
break;
|
| - |
|
913 |
|
| 826 |
}
|
914 |
}
|
| 827 |
}
|
915 |
}
|
| 828 |
|
916 |
|
| 829 |
public Object getFieldValue(_Fields field) {
|
917 |
public Object getFieldValue(_Fields field) {
|
| 830 |
switch (field) {
|
918 |
switch (field) {
|
| Line 874... |
Line 962... |
| 874 |
return Double.valueOf(getCheapestBulkPrice());
|
962 |
return Double.valueOf(getCheapestBulkPrice());
|
| 875 |
|
963 |
|
| 876 |
case PACK_QUANTITY:
|
964 |
case PACK_QUANTITY:
|
| 877 |
return Long.valueOf(getPackQuantity());
|
965 |
return Long.valueOf(getPackQuantity());
|
| 878 |
|
966 |
|
| - |
|
967 |
case NET_PRICING_AFTER_CASH_BACK:
|
| - |
|
968 |
return Double.valueOf(getNetPricingAfterCashBack());
|
| - |
|
969 |
|
| - |
|
970 |
case SHOW_NET_PRICE:
|
| - |
|
971 |
return Long.valueOf(getShowNetPrice());
|
| - |
|
972 |
|
| 879 |
}
|
973 |
}
|
| 880 |
throw new IllegalStateException();
|
974 |
throw new IllegalStateException();
|
| 881 |
}
|
975 |
}
|
| 882 |
|
976 |
|
| 883 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
977 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 917... |
Line 1011... |
| 917 |
return isSetGross_price();
|
1011 |
return isSetGross_price();
|
| 918 |
case CHEAPEST_BULK_PRICE:
|
1012 |
case CHEAPEST_BULK_PRICE:
|
| 919 |
return isSetCheapestBulkPrice();
|
1013 |
return isSetCheapestBulkPrice();
|
| 920 |
case PACK_QUANTITY:
|
1014 |
case PACK_QUANTITY:
|
| 921 |
return isSetPackQuantity();
|
1015 |
return isSetPackQuantity();
|
| - |
|
1016 |
case NET_PRICING_AFTER_CASH_BACK:
|
| - |
|
1017 |
return isSetNetPricingAfterCashBack();
|
| - |
|
1018 |
case SHOW_NET_PRICE:
|
| - |
|
1019 |
return isSetShowNetPrice();
|
| 922 |
}
|
1020 |
}
|
| 923 |
throw new IllegalStateException();
|
1021 |
throw new IllegalStateException();
|
| 924 |
}
|
1022 |
}
|
| 925 |
|
1023 |
|
| 926 |
@Override
|
1024 |
@Override
|
| Line 1078... |
Line 1176... |
| 1078 |
return false;
|
1176 |
return false;
|
| 1079 |
if (this.packQuantity != that.packQuantity)
|
1177 |
if (this.packQuantity != that.packQuantity)
|
| 1080 |
return false;
|
1178 |
return false;
|
| 1081 |
}
|
1179 |
}
|
| 1082 |
|
1180 |
|
| - |
|
1181 |
boolean this_present_netPricingAfterCashBack = true;
|
| - |
|
1182 |
boolean that_present_netPricingAfterCashBack = true;
|
| - |
|
1183 |
if (this_present_netPricingAfterCashBack || that_present_netPricingAfterCashBack) {
|
| - |
|
1184 |
if (!(this_present_netPricingAfterCashBack && that_present_netPricingAfterCashBack))
|
| - |
|
1185 |
return false;
|
| - |
|
1186 |
if (this.netPricingAfterCashBack != that.netPricingAfterCashBack)
|
| - |
|
1187 |
return false;
|
| - |
|
1188 |
}
|
| - |
|
1189 |
|
| - |
|
1190 |
boolean this_present_showNetPrice = true;
|
| - |
|
1191 |
boolean that_present_showNetPrice = true;
|
| - |
|
1192 |
if (this_present_showNetPrice || that_present_showNetPrice) {
|
| - |
|
1193 |
if (!(this_present_showNetPrice && that_present_showNetPrice))
|
| - |
|
1194 |
return false;
|
| - |
|
1195 |
if (this.showNetPrice != that.showNetPrice)
|
| - |
|
1196 |
return false;
|
| - |
|
1197 |
}
|
| - |
|
1198 |
|
| 1083 |
return true;
|
1199 |
return true;
|
| 1084 |
}
|
1200 |
}
|
| 1085 |
|
1201 |
|
| 1086 |
@Override
|
1202 |
@Override
|
| 1087 |
public int hashCode() {
|
1203 |
public int hashCode() {
|
| Line 1254... |
Line 1370... |
| 1254 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.packQuantity, typedOther.packQuantity);
|
1370 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.packQuantity, typedOther.packQuantity);
|
| 1255 |
if (lastComparison != 0) {
|
1371 |
if (lastComparison != 0) {
|
| 1256 |
return lastComparison;
|
1372 |
return lastComparison;
|
| 1257 |
}
|
1373 |
}
|
| 1258 |
}
|
1374 |
}
|
| - |
|
1375 |
lastComparison = Boolean.valueOf(isSetNetPricingAfterCashBack()).compareTo(typedOther.isSetNetPricingAfterCashBack());
|
| - |
|
1376 |
if (lastComparison != 0) {
|
| - |
|
1377 |
return lastComparison;
|
| - |
|
1378 |
}
|
| - |
|
1379 |
if (isSetNetPricingAfterCashBack()) {
|
| - |
|
1380 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.netPricingAfterCashBack, typedOther.netPricingAfterCashBack);
|
| - |
|
1381 |
if (lastComparison != 0) {
|
| - |
|
1382 |
return lastComparison;
|
| - |
|
1383 |
}
|
| - |
|
1384 |
}
|
| - |
|
1385 |
lastComparison = Boolean.valueOf(isSetShowNetPrice()).compareTo(typedOther.isSetShowNetPrice());
|
| - |
|
1386 |
if (lastComparison != 0) {
|
| - |
|
1387 |
return lastComparison;
|
| - |
|
1388 |
}
|
| - |
|
1389 |
if (isSetShowNetPrice()) {
|
| - |
|
1390 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.showNetPrice, typedOther.showNetPrice);
|
| - |
|
1391 |
if (lastComparison != 0) {
|
| - |
|
1392 |
return lastComparison;
|
| - |
|
1393 |
}
|
| - |
|
1394 |
}
|
| 1259 |
return 0;
|
1395 |
return 0;
|
| 1260 |
}
|
1396 |
}
|
| 1261 |
|
1397 |
|
| 1262 |
public _Fields fieldForId(int fieldId) {
|
1398 |
public _Fields fieldForId(int fieldId) {
|
| 1263 |
return _Fields.findByThriftId(fieldId);
|
1399 |
return _Fields.findByThriftId(fieldId);
|
| Line 1393... |
Line 1529... |
| 1393 |
setPackQuantityIsSet(true);
|
1529 |
setPackQuantityIsSet(true);
|
| 1394 |
} else {
|
1530 |
} else {
|
| 1395 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1531 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1396 |
}
|
1532 |
}
|
| 1397 |
break;
|
1533 |
break;
|
| - |
|
1534 |
case 17: // NET_PRICING_AFTER_CASH_BACK
|
| - |
|
1535 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
| - |
|
1536 |
this.netPricingAfterCashBack = iprot.readDouble();
|
| - |
|
1537 |
setNetPricingAfterCashBackIsSet(true);
|
| - |
|
1538 |
} else {
|
| - |
|
1539 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1540 |
}
|
| - |
|
1541 |
break;
|
| - |
|
1542 |
case 18: // SHOW_NET_PRICE
|
| - |
|
1543 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
1544 |
this.showNetPrice = iprot.readI64();
|
| - |
|
1545 |
setShowNetPriceIsSet(true);
|
| - |
|
1546 |
} else {
|
| - |
|
1547 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1548 |
}
|
| - |
|
1549 |
break;
|
| 1398 |
default:
|
1550 |
default:
|
| 1399 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1551 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1400 |
}
|
1552 |
}
|
| 1401 |
iprot.readFieldEnd();
|
1553 |
iprot.readFieldEnd();
|
| 1402 |
}
|
1554 |
}
|
| Line 1466... |
Line 1618... |
| 1466 |
oprot.writeDouble(this.cheapestBulkPrice);
|
1618 |
oprot.writeDouble(this.cheapestBulkPrice);
|
| 1467 |
oprot.writeFieldEnd();
|
1619 |
oprot.writeFieldEnd();
|
| 1468 |
oprot.writeFieldBegin(PACK_QUANTITY_FIELD_DESC);
|
1620 |
oprot.writeFieldBegin(PACK_QUANTITY_FIELD_DESC);
|
| 1469 |
oprot.writeI64(this.packQuantity);
|
1621 |
oprot.writeI64(this.packQuantity);
|
| 1470 |
oprot.writeFieldEnd();
|
1622 |
oprot.writeFieldEnd();
|
| - |
|
1623 |
oprot.writeFieldBegin(NET_PRICING_AFTER_CASH_BACK_FIELD_DESC);
|
| - |
|
1624 |
oprot.writeDouble(this.netPricingAfterCashBack);
|
| - |
|
1625 |
oprot.writeFieldEnd();
|
| - |
|
1626 |
oprot.writeFieldBegin(SHOW_NET_PRICE_FIELD_DESC);
|
| - |
|
1627 |
oprot.writeI64(this.showNetPrice);
|
| - |
|
1628 |
oprot.writeFieldEnd();
|
| 1471 |
oprot.writeFieldStop();
|
1629 |
oprot.writeFieldStop();
|
| 1472 |
oprot.writeStructEnd();
|
1630 |
oprot.writeStructEnd();
|
| 1473 |
}
|
1631 |
}
|
| 1474 |
|
1632 |
|
| 1475 |
@Override
|
1633 |
@Override
|
| Line 1562... |
Line 1720... |
| 1562 |
first = false;
|
1720 |
first = false;
|
| 1563 |
if (!first) sb.append(", ");
|
1721 |
if (!first) sb.append(", ");
|
| 1564 |
sb.append("packQuantity:");
|
1722 |
sb.append("packQuantity:");
|
| 1565 |
sb.append(this.packQuantity);
|
1723 |
sb.append(this.packQuantity);
|
| 1566 |
first = false;
|
1724 |
first = false;
|
| - |
|
1725 |
if (!first) sb.append(", ");
|
| - |
|
1726 |
sb.append("netPricingAfterCashBack:");
|
| - |
|
1727 |
sb.append(this.netPricingAfterCashBack);
|
| - |
|
1728 |
first = false;
|
| - |
|
1729 |
if (!first) sb.append(", ");
|
| - |
|
1730 |
sb.append("showNetPrice:");
|
| - |
|
1731 |
sb.append(this.showNetPrice);
|
| - |
|
1732 |
first = false;
|
| 1567 |
sb.append(")");
|
1733 |
sb.append(")");
|
| 1568 |
return sb.toString();
|
1734 |
return sb.toString();
|
| 1569 |
}
|
1735 |
}
|
| 1570 |
|
1736 |
|
| 1571 |
public void validate() throws org.apache.thrift.TException {
|
1737 |
public void validate() throws org.apache.thrift.TException {
|