| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.dao.cart;
|
1 |
package com.spice.profitmandi.dao.cart;
|
| 2 |
|
2 |
|
| 3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 4 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
4 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| - |
|
5 |
import com.spice.profitmandi.dao.entity.user.CartLine;
|
| - |
|
6 |
import com.spice.profitmandi.dao.model.CarryBagQuote;
|
| 5 |
import com.spice.profitmandi.dao.model.CartItem;
|
7 |
import com.spice.profitmandi.dao.model.CartItem;
|
| 6 |
import com.spice.profitmandi.dao.model.CartResponse;
|
8 |
import com.spice.profitmandi.dao.model.CartResponse;
|
| 7 |
import com.spice.profitmandi.dao.model.UserCart;
|
9 |
import com.spice.profitmandi.dao.model.UserCart;
|
| 8 |
import com.spice.profitmandi.service.inventory.FocusedShortageModel;
|
10 |
import com.spice.profitmandi.service.inventory.FocusedShortageModel;
|
| 9 |
import org.springframework.stereotype.Service;
|
11 |
import org.springframework.stereotype.Service;
|
| Line 27... |
Line 29... |
| 27 |
|
29 |
|
| 28 |
void addItemsToCart(int cartId, int fofoId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
|
30 |
void addItemsToCart(int cartId, int fofoId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
|
| 29 |
|
31 |
|
| 30 |
void addAddressToCart(int cartId, long addressId) throws ProfitMandiBusinessException;
|
32 |
void addAddressToCart(int cartId, long addressId) throws ProfitMandiBusinessException;
|
| 31 |
|
33 |
|
| 32 |
void addShoppingBag(int cartId, long qty);
|
34 |
/** How the carry bags among these item quantities are charged - see CarryBagQuote. */
|
| - |
|
35 |
CarryBagQuote getCarryBagQuote(int fofoId, Map<Integer, Integer> itemQty) throws ProfitMandiBusinessException;
|
| - |
|
36 |
|
| - |
|
37 |
/** The cart lines to raise orders from: the carry bag line split into its flat priced and listing priced parts. */
|
| - |
|
38 |
List<CartLine> splitCarryBagLine(int fofoId, List<CartLine> cartLines) throws ProfitMandiBusinessException;
|
| 33 |
|
39 |
|
| 34 |
List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap)
|
40 |
List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap)
|
| 35 |
throws ProfitMandiBusinessException;
|
41 |
throws ProfitMandiBusinessException;
|
| 36 |
|
42 |
|
| 37 |
List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap,
|
43 |
List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap,
|