| 26522 |
amit.gupta |
1 |
package com.spice.profitmandi.dao.cart;
|
|
|
2 |
|
| 28653 |
amit.gupta |
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 35690 |
amit |
4 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 35945 |
amit |
5 |
import com.spice.profitmandi.dao.entity.user.CartLine;
|
| 28653 |
amit.gupta |
6 |
import com.spice.profitmandi.dao.model.CartItem;
|
|
|
7 |
import com.spice.profitmandi.dao.model.CartResponse;
|
| 33172 |
tejus.loha |
8 |
import com.spice.profitmandi.dao.model.UserCart;
|
| 29327 |
tejbeer |
9 |
import com.spice.profitmandi.service.inventory.FocusedShortageModel;
|
| 33172 |
tejus.loha |
10 |
import org.springframework.stereotype.Service;
|
| 28653 |
amit.gupta |
11 |
|
| 33172 |
tejus.loha |
12 |
import java.util.List;
|
|
|
13 |
import java.util.Map;
|
|
|
14 |
|
| 26522 |
amit.gupta |
15 |
@Service
|
|
|
16 |
public interface CartService {
|
|
|
17 |
CartModel addToCart(int cartId, int itemId, int quantity, float sellingPrice);
|
| 29327 |
tejbeer |
18 |
|
| 28653 |
amit.gupta |
19 |
boolean clearCart(int cartId) throws ProfitMandiBusinessException;
|
| 29327 |
tejbeer |
20 |
|
| 26522 |
amit.gupta |
21 |
CartModel removeFromCart(int cartId, int itemId);
|
| 29327 |
tejbeer |
22 |
|
| 26522 |
amit.gupta |
23 |
CartModel getCart(int cartId);
|
| 29327 |
tejbeer |
24 |
|
| 28653 |
amit.gupta |
25 |
CartResponse getCartValidation(int cartId) throws ProfitMandiBusinessException;
|
| 29327 |
tejbeer |
26 |
|
| 28653 |
amit.gupta |
27 |
void addItemsToCart(int cartId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
|
| 29327 |
tejbeer |
28 |
|
| 28653 |
amit.gupta |
29 |
void addAddressToCart(int cartId, long addressId) throws ProfitMandiBusinessException;
|
| 28166 |
tejbeer |
30 |
|
|
|
31 |
void addShoppingBag(int cartId, long qty);
|
|
|
32 |
|
| 29327 |
tejbeer |
33 |
List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap)
|
|
|
34 |
throws ProfitMandiBusinessException;
|
|
|
35 |
|
| 35690 |
amit |
36 |
List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap,
|
|
|
37 |
Map<Integer, Long> inStockItemModel, Map<Integer, Long> itempendingIndent,
|
|
|
38 |
Map<Integer, Long> grnItemPendingOrders, FofoStore fofoStore,
|
|
|
39 |
List<String> retailerBlockBrands, Map<Integer, Integer> focusedModelMap)
|
|
|
40 |
throws ProfitMandiBusinessException;
|
|
|
41 |
|
| 33172 |
tejus.loha |
42 |
UserCart setCartItems(int fofoId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
|
| 35945 |
amit |
43 |
|
|
|
44 |
void updateCartItem(int cartId, int itemId, int quantity, float sellingPrice) throws ProfitMandiBusinessException;
|
|
|
45 |
|
|
|
46 |
void removeCartItem(int cartId, int itemId) throws ProfitMandiBusinessException;
|
|
|
47 |
|
|
|
48 |
List<CartLine> getCartItems(int cartId) throws ProfitMandiBusinessException;
|
| 26522 |
amit.gupta |
49 |
}
|