| 26522 |
amit.gupta |
1 |
package com.spice.profitmandi.dao.cart;
|
|
|
2 |
|
| 28653 |
amit.gupta |
3 |
import java.util.List;
|
|
|
4 |
|
| 26522 |
amit.gupta |
5 |
import org.springframework.stereotype.Service;
|
|
|
6 |
|
| 28653 |
amit.gupta |
7 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
8 |
import com.spice.profitmandi.dao.model.CartItem;
|
|
|
9 |
import com.spice.profitmandi.dao.model.CartResponse;
|
|
|
10 |
|
| 26522 |
amit.gupta |
11 |
@Service
|
|
|
12 |
public interface CartService {
|
|
|
13 |
CartModel addToCart(int cartId, int itemId, int quantity, float sellingPrice);
|
| 28653 |
amit.gupta |
14 |
boolean clearCart(int cartId) throws ProfitMandiBusinessException;
|
| 26522 |
amit.gupta |
15 |
CartModel removeFromCart(int cartId, int itemId);
|
|
|
16 |
CartModel getCart(int cartId);
|
| 28653 |
amit.gupta |
17 |
CartResponse getCartValidation(int cartId) throws ProfitMandiBusinessException;
|
|
|
18 |
void addItemsToCart(int cartId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
|
|
|
19 |
void addAddressToCart(int cartId, long addressId) throws ProfitMandiBusinessException;
|
| 28166 |
tejbeer |
20 |
|
|
|
21 |
void addShoppingBag(int cartId, long qty);
|
|
|
22 |
|
| 26522 |
amit.gupta |
23 |
}
|