| Line 18... |
Line 18... |
| 18 |
private int packQuantity;
|
18 |
private int packQuantity;
|
| 19 |
private int minBuyQuantity;
|
19 |
private int minBuyQuantity;
|
| 20 |
private BulkPricing[] bulkPricing;
|
20 |
private BulkPricing[] bulkPricing;
|
| 21 |
private String categoryName;
|
21 |
private String categoryName;
|
| 22 |
private double sellingPrice;
|
22 |
private double sellingPrice;
|
| - |
|
23 |
private double extendedWarrantyPrice;
|
| 23 |
private String title;
|
24 |
private String title;
|
| 24 |
private List<CartItemMessage> cartItemMessages;
|
25 |
private List<CartItemMessage> cartItemMessages;
|
| 25 |
private String color;
|
26 |
private String color;
|
| 26 |
private long quantity;
|
27 |
private long quantity;
|
| 27 |
private long catalogItemId;
|
28 |
private long catalogItemId;
|
| Line 32... |
Line 33... |
| 32 |
@Override
|
33 |
@Override
|
| 33 |
public boolean equals(Object o) {
|
34 |
public boolean equals(Object o) {
|
| 34 |
if (this == o) return true;
|
35 |
if (this == o) return true;
|
| 35 |
if (o == null || getClass() != o.getClass()) return false;
|
36 |
if (o == null || getClass() != o.getClass()) return false;
|
| 36 |
CartItemResponseModel that = (CartItemResponseModel) o;
|
37 |
CartItemResponseModel that = (CartItemResponseModel) o;
|
| 37 |
return itemId == that.itemId && maxQuantity == that.maxQuantity && estimate == that.estimate && quantityStep == that.quantityStep && packQuantity == that.packQuantity && minBuyQuantity == that.minBuyQuantity && Double.compare(that.sellingPrice, sellingPrice) == 0 && quantity == that.quantity && catalogItemId == that.catalogItemId && availability == that.availability && Objects.equals(imageUrl, that.imageUrl) && Objects.equals(dealText, that.dealText) && Arrays.equals(bulkPricing, that.bulkPricing) && Objects.equals(categoryName, that.categoryName) && Objects.equals(title, that.title) && Objects.equals(cartItemMessages, that.cartItemMessages) && Objects.equals(color, that.color) && Objects.equals(promiseDelivery, that.promiseDelivery);
|
38 |
return itemId == that.itemId && maxQuantity == that.maxQuantity && estimate == that.estimate && quantityStep == that.quantityStep && packQuantity == that.packQuantity && minBuyQuantity == that.minBuyQuantity && Double.compare(that.sellingPrice, sellingPrice) == 0 && Double.compare(that.extendedWarrantyPrice, extendedWarrantyPrice) == 0 && quantity == that.quantity && catalogItemId == that.catalogItemId && availability == that.availability && Objects.equals(imageUrl, that.imageUrl) && Objects.equals(dealText, that.dealText) && Arrays.equals(bulkPricing, that.bulkPricing) && Objects.equals(categoryName, that.categoryName) && Objects.equals(title, that.title) && Objects.equals(cartItemMessages, that.cartItemMessages) && Objects.equals(color, that.color) && Objects.equals(promiseDelivery, that.promiseDelivery);
|
| 38 |
}
|
39 |
}
|
| 39 |
|
40 |
|
| 40 |
@Override
|
41 |
@Override
|
| 41 |
public int hashCode() {
|
42 |
public int hashCode() {
|
| 42 |
int result = Objects.hash(imageUrl, dealText, itemId, maxQuantity, estimate, quantityStep, packQuantity, minBuyQuantity, categoryName, sellingPrice, title, cartItemMessages, color, quantity, catalogItemId, promiseDelivery, availability);
|
43 |
int result = Objects.hash(imageUrl, dealText, itemId, maxQuantity, estimate, quantityStep, packQuantity, minBuyQuantity, categoryName, sellingPrice, extendedWarrantyPrice, title, cartItemMessages, color, quantity, catalogItemId, promiseDelivery, availability);
|
| 43 |
result = 31 * result + Arrays.hashCode(bulkPricing);
|
44 |
result = 31 * result + Arrays.hashCode(bulkPricing);
|
| 44 |
return result;
|
45 |
return result;
|
| 45 |
}
|
46 |
}
|
| 46 |
|
47 |
|
| 47 |
@Override
|
48 |
@Override
|
| Line 56... |
Line 57... |
| 56 |
", packQuantity=" + packQuantity +
|
57 |
", packQuantity=" + packQuantity +
|
| 57 |
", minBuyQuantity=" + minBuyQuantity +
|
58 |
", minBuyQuantity=" + minBuyQuantity +
|
| 58 |
", bulkPricing=" + Arrays.toString(bulkPricing) +
|
59 |
", bulkPricing=" + Arrays.toString(bulkPricing) +
|
| 59 |
", categoryName='" + categoryName + '\'' +
|
60 |
", categoryName='" + categoryName + '\'' +
|
| 60 |
", sellingPrice=" + sellingPrice +
|
61 |
", sellingPrice=" + sellingPrice +
|
| - |
|
62 |
", extendedWarrantyPrice=" + extendedWarrantyPrice +
|
| 61 |
", title='" + title + '\'' +
|
63 |
", title='" + title + '\'' +
|
| 62 |
", cartItemMessages=" + cartItemMessages +
|
64 |
", cartItemMessages=" + cartItemMessages +
|
| 63 |
", color='" + color + '\'' +
|
65 |
", color='" + color + '\'' +
|
| 64 |
", quantity=" + quantity +
|
66 |
", quantity=" + quantity +
|
| 65 |
", catalogItemId=" + catalogItemId +
|
67 |
", catalogItemId=" + catalogItemId +
|
| Line 118... |
Line 120... |
| 118 |
|
120 |
|
| 119 |
public int getEstimate() {
|
121 |
public int getEstimate() {
|
| 120 |
return estimate;
|
122 |
return estimate;
|
| 121 |
}
|
123 |
}
|
| 122 |
|
124 |
|
| - |
|
125 |
public double getExtendedWarrantyPrice() {
|
| - |
|
126 |
return extendedWarrantyPrice;
|
| - |
|
127 |
}
|
| - |
|
128 |
|
| - |
|
129 |
public void setExtendedWarrantyPrice(double extendedWarrantyPrice) {
|
| - |
|
130 |
this.extendedWarrantyPrice = extendedWarrantyPrice;
|
| - |
|
131 |
}
|
| - |
|
132 |
|
| 123 |
public void setEstimate(int estimate) {
|
133 |
public void setEstimate(int estimate) {
|
| 124 |
this.estimate = estimate;
|
134 |
this.estimate = estimate;
|
| 125 |
}
|
135 |
}
|
| 126 |
|
136 |
|
| 127 |
public int getQuantityStep() {
|
137 |
public int getQuantityStep() {
|