| Line 269... |
Line 269... |
| 269 |
|
269 |
|
| 270 |
// Define eligible partners for LED & Microwave Oven
|
270 |
// Define eligible partners for LED & Microwave Oven
|
| 271 |
private static final Set<Integer> PREMIUM_ELIGIBLE_PARTNERS = new HashSet<>(Arrays.asList(175139287, 159690067));
|
271 |
private static final Set<Integer> PREMIUM_ELIGIBLE_PARTNERS = new HashSet<>(Arrays.asList(175139287, 159690067));
|
| 272 |
|
272 |
|
| 273 |
static Map<Double, List<ScratchedGift>> GIFT_SERIES = new TreeMap<>(Comparator.reverseOrder());
|
273 |
static Map<Double, List<ScratchedGift>> GIFT_SERIES = new TreeMap<>(Comparator.reverseOrder());
|
| - |
|
274 |
private final Map<Integer, LocalDate> partnerNeckbandTracking = new HashMap<>();
|
| 274 |
|
275 |
|
| 275 |
static {
|
276 |
static {
|
| 276 |
GIFT_QUANTITIES.put(ScratchedGift.ACCESSORIES_50_PERCENT_OFF, 500);
|
277 |
GIFT_QUANTITIES.put(ScratchedGift.ACCESSORIES_50_PERCENT_OFF, 500);
|
| 277 |
GIFT_QUANTITIES.put(ScratchedGift.NECK_BAND, 280);
|
278 |
GIFT_QUANTITIES.put(ScratchedGift.NECK_BAND, 280);
|
| 278 |
GIFT_QUANTITIES.put(ScratchedGift.LED, 1);
|
279 |
GIFT_QUANTITIES.put(ScratchedGift.LED, 1);
|
| Line 282... |
Line 283... |
| 282 |
static {
|
283 |
static {
|
| 283 |
GIFT_SERIES.put(0.0, Arrays.asList(ScratchedGift.ACCESSORIES_50_PERCENT_OFF, ScratchedGift.NECK_BAND));
|
284 |
GIFT_SERIES.put(0.0, Arrays.asList(ScratchedGift.ACCESSORIES_50_PERCENT_OFF, ScratchedGift.NECK_BAND));
|
| 284 |
GIFT_SERIES.put(50001.0, Arrays.asList(ScratchedGift.ACCESSORIES_50_PERCENT_OFF, ScratchedGift.NECK_BAND, ScratchedGift.MICROWAVE_OVEN, ScratchedGift.LED));
|
285 |
GIFT_SERIES.put(50001.0, Arrays.asList(ScratchedGift.ACCESSORIES_50_PERCENT_OFF, ScratchedGift.NECK_BAND, ScratchedGift.MICROWAVE_OVEN, ScratchedGift.LED));
|
| 285 |
}
|
286 |
}
|
| 286 |
|
287 |
|
| 287 |
private final Map<Integer, LocalDate> partnerNeckbandTracking = new HashMap<>();
|
- |
|
| 288 |
|
- |
|
| 289 |
private void persistNonSerializedWithCustomSerialNumber(CustomFofoOrderItem customFofoOrderItem, int orderItemId) {
|
288 |
private void persistNonSerializedWithCustomSerialNumber(CustomFofoOrderItem customFofoOrderItem, int orderItemId) {
|
| 290 |
// Create a new instance of FofoNonSerializeSerial
|
289 |
// Create a new instance of FofoNonSerializeSerial
|
| 291 |
for (String accSerialNumber : customFofoOrderItem.getCustomSerialNumbers()) {
|
290 |
for (String accSerialNumber : customFofoOrderItem.getCustomSerialNumbers()) {
|
| 292 |
if (!accSerialNumber.isEmpty()) {
|
291 |
if (!accSerialNumber.isEmpty()) {
|
| 293 |
FofoNonSerializeSerial nonSerializeSerial = new FofoNonSerializeSerial();
|
292 |
FofoNonSerializeSerial nonSerializeSerial = new FofoNonSerializeSerial();
|
| Line 363... |
Line 362... |
| 363 |
scratchOfferRepository.persist(so2);
|
362 |
scratchOfferRepository.persist(so2);
|
| 364 |
}
|
363 |
}
|
| 365 |
}
|
364 |
}
|
| 366 |
|
365 |
|
| 367 |
private static Map<ScratchedGift, Integer> GIFT_QUANTITIES = new HashMap<>();
|
366 |
private static Map<ScratchedGift, Integer> GIFT_QUANTITIES = new HashMap<>();
|
| - |
|
367 |
|
| 368 |
private final Map<ScratchedGift, LocalDate> premiumGiftTracking = new HashMap<>();
|
368 |
private final Map<ScratchedGift, LocalDate> premiumGiftTracking = new HashMap<>();
|
| 369 |
List<Double> PRICE_RANGE = Arrays.asList(0.0, Double.MAX_VALUE);
|
369 |
List<Double> PRICE_RANGE = Arrays.asList(0.0, Double.MAX_VALUE);
|
| 370 |
|
370 |
|
| 371 |
|
371 |
|
| 372 |
@Override
|
372 |
@Override
|