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