| 26522 |
amit.gupta |
1 |
package com.spice.profitmandi.dao.cart;
|
|
|
2 |
|
| 28653 |
amit.gupta |
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
4 |
import com.spice.profitmandi.dao.model.CartItem;
|
|
|
5 |
import com.spice.profitmandi.dao.model.CartResponse;
|
| 33172 |
tejus.loha |
6 |
import com.spice.profitmandi.dao.model.UserCart;
|
| 29327 |
tejbeer |
7 |
import com.spice.profitmandi.service.inventory.FocusedShortageModel;
|
| 33172 |
tejus.loha |
8 |
import org.springframework.stereotype.Service;
|
| 28653 |
amit.gupta |
9 |
|
| 33172 |
tejus.loha |
10 |
import java.util.List;
|
|
|
11 |
import java.util.Map;
|
|
|
12 |
|
| 26522 |
amit.gupta |
13 |
@Service
|
|
|
14 |
public interface CartService {
|
|
|
15 |
CartModel addToCart(int cartId, int itemId, int quantity, float sellingPrice);
|
| 29327 |
tejbeer |
16 |
|
| 28653 |
amit.gupta |
17 |
boolean clearCart(int cartId) throws ProfitMandiBusinessException;
|
| 29327 |
tejbeer |
18 |
|
| 26522 |
amit.gupta |
19 |
CartModel removeFromCart(int cartId, int itemId);
|
| 29327 |
tejbeer |
20 |
|
| 26522 |
amit.gupta |
21 |
CartModel getCart(int cartId);
|
| 29327 |
tejbeer |
22 |
|
| 28653 |
amit.gupta |
23 |
CartResponse getCartValidation(int cartId) throws ProfitMandiBusinessException;
|
| 29327 |
tejbeer |
24 |
|
| 28653 |
amit.gupta |
25 |
void addItemsToCart(int cartId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
|
| 29327 |
tejbeer |
26 |
|
| 28653 |
amit.gupta |
27 |
void addAddressToCart(int cartId, long addressId) throws ProfitMandiBusinessException;
|
| 28166 |
tejbeer |
28 |
|
|
|
29 |
void addShoppingBag(int cartId, long qty);
|
|
|
30 |
|
| 29327 |
tejbeer |
31 |
List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap)
|
|
|
32 |
throws ProfitMandiBusinessException;
|
|
|
33 |
|
| 33172 |
tejus.loha |
34 |
UserCart setCartItems(int fofoId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
|
| 26522 |
amit.gupta |
35 |
}
|