| Line 7... |
Line 7... |
| 7 |
public class CustomFofoOrderItem {
|
7 |
public class CustomFofoOrderItem {
|
| 8 |
private int itemId;
|
8 |
private int itemId;
|
| 9 |
private int poiId;
|
9 |
private int poiId;
|
| 10 |
private List<String> customSerialNumbers;
|
10 |
private List<String> customSerialNumbers;
|
| 11 |
private int quantity;
|
11 |
private int quantity;
|
| - |
|
12 |
private int customerOfferItemId;
|
| 12 |
private float sellingPrice;
|
13 |
private float sellingPrice;
|
| 13 |
private float discountAmount;
|
14 |
private float discountAmount;
|
| 14 |
private boolean prebookingOrder;
|
15 |
private boolean prebookingOrder;
|
| 15 |
private Set<SerialNumberDetail> serialNumberDetails;
|
16 |
private Set<SerialNumberDetail> serialNumberDetails;
|
| 16 |
|
17 |
|
| Line 51... |
Line 52... |
| 51 |
}
|
52 |
}
|
| 52 |
public void setSerialNumberDetails(Set<SerialNumberDetail> serialNumberDetails) {
|
53 |
public void setSerialNumberDetails(Set<SerialNumberDetail> serialNumberDetails) {
|
| 53 |
this.serialNumberDetails = serialNumberDetails;
|
54 |
this.serialNumberDetails = serialNumberDetails;
|
| 54 |
}
|
55 |
}
|
| 55 |
|
56 |
|
| - |
|
57 |
public int getCustomerOfferItemId() {
|
| - |
|
58 |
return customerOfferItemId;
|
| - |
|
59 |
}
|
| - |
|
60 |
|
| - |
|
61 |
public void setCustomerOfferItemId(int customerOfferItemId) {
|
| - |
|
62 |
this.customerOfferItemId = customerOfferItemId;
|
| - |
|
63 |
}
|
| - |
|
64 |
|
| 56 |
@Override
|
65 |
@Override
|
| 57 |
public String toString() {
|
66 |
public String toString() {
|
| 58 |
return "CustomFofoOrderItem{" +
|
67 |
return "CustomFofoOrderItem{" +
|
| 59 |
"itemId=" + itemId +
|
68 |
"itemId=" + itemId +
|
| 60 |
"poiId=" + poiId +
|
69 |
", poiId=" + poiId +
|
| 61 |
", customSerialNumbers=" + customSerialNumbers +
|
70 |
", customSerialNumbers=" + customSerialNumbers +
|
| 62 |
", quantity=" + quantity +
|
71 |
", quantity=" + quantity +
|
| - |
|
72 |
", customerOfferItemId=" + customerOfferItemId +
|
| 63 |
", sellingPrice=" + sellingPrice +
|
73 |
", sellingPrice=" + sellingPrice +
|
| 64 |
", discountAmount=" + discountAmount +
|
74 |
", discountAmount=" + discountAmount +
|
| 65 |
", prebookingOrder=" + prebookingOrder +
|
75 |
", prebookingOrder=" + prebookingOrder +
|
| 66 |
", serialNumberDetails=" + serialNumberDetails +
|
76 |
", serialNumberDetails=" + serialNumberDetails +
|
| 67 |
'}';
|
77 |
'}';
|
| Line 70... |
Line 80... |
| 70 |
@Override
|
80 |
@Override
|
| 71 |
public boolean equals(Object o) {
|
81 |
public boolean equals(Object o) {
|
| 72 |
if (this == o) return true;
|
82 |
if (this == o) return true;
|
| 73 |
if (o == null || getClass() != o.getClass()) return false;
|
83 |
if (o == null || getClass() != o.getClass()) return false;
|
| 74 |
CustomFofoOrderItem that = (CustomFofoOrderItem) o;
|
84 |
CustomFofoOrderItem that = (CustomFofoOrderItem) o;
|
| 75 |
return itemId == that.itemId && poiId == that.poiId && quantity == that.quantity && Float.compare(sellingPrice, that.sellingPrice) == 0 && Float.compare(discountAmount, that.discountAmount) == 0 && prebookingOrder == that.prebookingOrder && Objects.equals(customSerialNumbers, that.customSerialNumbers) && Objects.equals(serialNumberDetails, that.serialNumberDetails);
|
85 |
return itemId == that.itemId && poiId == that.poiId && quantity == that.quantity && customerOfferItemId == that.customerOfferItemId && Float.compare(sellingPrice, that.sellingPrice) == 0 && Float.compare(discountAmount, that.discountAmount) == 0 && prebookingOrder == that.prebookingOrder && Objects.equals(customSerialNumbers, that.customSerialNumbers) && Objects.equals(serialNumberDetails, that.serialNumberDetails);
|
| 76 |
}
|
86 |
}
|
| 77 |
|
87 |
|
| 78 |
@Override
|
88 |
@Override
|
| 79 |
public int hashCode() {
|
89 |
public int hashCode() {
|
| 80 |
return Objects.hash(itemId,poiId, customSerialNumbers, quantity, sellingPrice, discountAmount, prebookingOrder, serialNumberDetails);
|
90 |
return Objects.hash(itemId, poiId, customSerialNumbers, quantity, customerOfferItemId, sellingPrice, discountAmount, prebookingOrder, serialNumberDetails);
|
| 81 |
}
|
91 |
}
|
| 82 |
|
92 |
|
| 83 |
public List<String> getCustomSerialNumbers() {
|
93 |
public List<String> getCustomSerialNumbers() {
|
| 84 |
return customSerialNumbers;
|
94 |
return customSerialNumbers;
|
| 85 |
}
|
95 |
}
|