| Line 265... |
Line 265... |
| 265 |
|
265 |
|
| 266 |
public static final String APP_DOWNLOAD_BILLING_TEMPLATE_ID = "1507163542403945677";
|
266 |
public static final String APP_DOWNLOAD_BILLING_TEMPLATE_ID = "1507163542403945677";
|
| 267 |
|
267 |
|
| 268 |
public static final String APP_DOWNLOAD_BILLING_OFFER = "Dear Customer, Thank you for purchasing from SmartDukaan pls click %s to download our app to see you invoice and special offers. SmartDukaan";
|
268 |
public static final String APP_DOWNLOAD_BILLING_OFFER = "Dear Customer, Thank you for purchasing from SmartDukaan pls click %s to download our app to see you invoice and special offers. SmartDukaan";
|
| 269 |
|
269 |
|
| 270 |
// Define eligible partners for LED & Microwave Oven
|
- |
|
| 271 |
private static final Set<Integer> PREMIUM_ELIGIBLE_PARTNERS = new HashSet<>(Arrays.asList(175139287, 159690067));
|
- |
|
| 272 |
|
- |
|
| 273 |
static Map<Double, List<ScratchedGift>> GIFT_SERIES = new TreeMap<>(Comparator.reverseOrder());
|
270 |
static Map<Double, List<ScratchedGift>> GIFT_SERIES = new TreeMap<>(Comparator.reverseOrder());
|
| 274 |
private final Map<Integer, LocalDate> partnerNeckbandTracking = new HashMap<>();
|
271 |
private final Map<Integer, LocalDate> partnerNeckbandTracking = new HashMap<>();
|
| 275 |
|
272 |
|
| - |
|
273 |
// Define eligible partners for LED & Microwave Oven
|
| - |
|
274 |
private static final Set<Integer> PREMIUM_ELIGIBLE_PARTNERS = new HashSet<>(Arrays.asList(175139287, 159690067));
|
| - |
|
275 |
private static Map<ScratchedGift, Integer> GIFT_QUANTITIES = new HashMap<>();
|
| - |
|
276 |
private final Map<ScratchedGift, LocalDate> premiumGiftTracking = new HashMap<>();
|
| - |
|
277 |
List<Double> PRICE_RANGE = Arrays.asList(0.0, Double.MAX_VALUE);
|
| - |
|
278 |
|
| 276 |
static {
|
279 |
static {
|
| 277 |
GIFT_QUANTITIES.put(ScratchedGift.ACCESSORIES_50_PERCENT_OFF, 500);
|
280 |
GIFT_QUANTITIES.put(ScratchedGift.ACCESSORIES_50_PERCENT_OFF, 500);
|
| 278 |
GIFT_QUANTITIES.put(ScratchedGift.NECK_BAND, 280);
|
281 |
GIFT_QUANTITIES.put(ScratchedGift.NECK_BAND, 280);
|
| 279 |
GIFT_QUANTITIES.put(ScratchedGift.LED, 1);
|
282 |
GIFT_QUANTITIES.put(ScratchedGift.LED, 1);
|
| 280 |
GIFT_QUANTITIES.put(ScratchedGift.MICROWAVE_OVEN, 1);
|
283 |
GIFT_QUANTITIES.put(ScratchedGift.MICROWAVE_OVEN, 1);
|
| Line 361... |
Line 364... |
| 361 |
// }
|
364 |
// }
|
| 362 |
scratchOfferRepository.persist(so2);
|
365 |
scratchOfferRepository.persist(so2);
|
| 363 |
}
|
366 |
}
|
| 364 |
}
|
367 |
}
|
| 365 |
|
368 |
|
| 366 |
private static Map<ScratchedGift, Integer> GIFT_QUANTITIES = new HashMap<>();
|
- |
|
| 367 |
|
- |
|
| 368 |
private final Map<ScratchedGift, LocalDate> premiumGiftTracking = new HashMap<>();
|
- |
|
| 369 |
List<Double> PRICE_RANGE = Arrays.asList(0.0, Double.MAX_VALUE);
|
- |
|
| 370 |
|
- |
|
| 371 |
|
369 |
|
| 372 |
@Override
|
370 |
@Override
|
| 373 |
public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals) throws Exception {
|
371 |
public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals) throws Exception {
|
| 374 |
LOGGER.info("fofoId -- {} Order Request -- {}", fofoId, createOrderRequest);
|
372 |
LOGGER.info("fofoId -- {} Order Request -- {}", fofoId, createOrderRequest);
|
| 375 |
CustomCustomer customCustomer = createOrderRequest.getCustomer();
|
373 |
CustomCustomer customCustomer = createOrderRequest.getCustomer();
|