1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| private boolean isEligible(final BookedItems bookedItem) {
if (ALLOWED_TYPES.stream().anyMatch(cartItem.getProductType()::equalsIgnoreCase)) {
List<HomeProduct> listHomeProducts = cartItem.getProducts().getHomeProducts();
for (int counter = 0; counter < listHomeProducts.size(); counter++) {
List<CartTicketInfo> listCartTicketInfo = listHomeProducts.get(counter).getCartTicketInfoList();
for (int counter2 = 0; counter2 < listCartTicketInfo.size(); counter2++) {
if (listCartTicketInfo.get(counter2).getIsUnusedTicket()) {
return true;
}
}
}
}
return false;
}
}
|