Subversion Repositories SmartDukaan

Rev

Rev 33172 | Rev 35945 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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;
28653 amit.gupta 5
import com.spice.profitmandi.dao.model.CartItem;
6
import com.spice.profitmandi.dao.model.CartResponse;
33172 tejus.loha 7
import com.spice.profitmandi.dao.model.UserCart;
29327 tejbeer 8
import com.spice.profitmandi.service.inventory.FocusedShortageModel;
33172 tejus.loha 9
import org.springframework.stereotype.Service;
28653 amit.gupta 10
 
33172 tejus.loha 11
import java.util.List;
12
import java.util.Map;
13
 
26522 amit.gupta 14
@Service
15
public interface CartService {
16
	CartModel addToCart(int cartId, int itemId, int quantity, float sellingPrice);
29327 tejbeer 17
 
28653 amit.gupta 18
	boolean clearCart(int cartId) throws ProfitMandiBusinessException;
29327 tejbeer 19
 
26522 amit.gupta 20
	CartModel removeFromCart(int cartId, int itemId);
29327 tejbeer 21
 
26522 amit.gupta 22
	CartModel getCart(int cartId);
29327 tejbeer 23
 
28653 amit.gupta 24
	CartResponse getCartValidation(int cartId) throws ProfitMandiBusinessException;
29327 tejbeer 25
 
28653 amit.gupta 26
	void addItemsToCart(int cartId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
29327 tejbeer 27
 
28653 amit.gupta 28
	void addAddressToCart(int cartId, long addressId) throws ProfitMandiBusinessException;
28166 tejbeer 29
 
30
	void addShoppingBag(int cartId, long qty);
31
 
29327 tejbeer 32
	List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap)
33
			throws ProfitMandiBusinessException;
34
 
35690 amit 35
	List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap,
36
			Map<Integer, Long> inStockItemModel, Map<Integer, Long> itempendingIndent,
37
			Map<Integer, Long> grnItemPendingOrders, FofoStore fofoStore,
38
			List<String> retailerBlockBrands, Map<Integer, Integer> focusedModelMap)
39
			throws ProfitMandiBusinessException;
40
 
33172 tejus.loha 41
    UserCart setCartItems(int fofoId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
26522 amit.gupta 42
}