Subversion Repositories SmartDukaan

Rev

Rev 37143 | 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;
37792 amit 5
import com.spice.profitmandi.dao.entity.user.CartLine;
6
import com.spice.profitmandi.dao.model.CarryBagQuote;
28653 amit.gupta 7
import com.spice.profitmandi.dao.model.CartItem;
8
import com.spice.profitmandi.dao.model.CartResponse;
33172 tejus.loha 9
import com.spice.profitmandi.dao.model.UserCart;
29327 tejbeer 10
import com.spice.profitmandi.service.inventory.FocusedShortageModel;
33172 tejus.loha 11
import org.springframework.stereotype.Service;
28653 amit.gupta 12
 
33172 tejus.loha 13
import java.util.List;
14
import java.util.Map;
15
 
26522 amit.gupta 16
@Service
17
public interface CartService {
18
	CartModel addToCart(int cartId, int itemId, int quantity, float sellingPrice);
29327 tejbeer 19
 
28653 amit.gupta 20
	boolean clearCart(int cartId) throws ProfitMandiBusinessException;
29327 tejbeer 21
 
26522 amit.gupta 22
	CartModel removeFromCart(int cartId, int itemId);
29327 tejbeer 23
 
26522 amit.gupta 24
	CartModel getCart(int cartId);
29327 tejbeer 25
 
28653 amit.gupta 26
	CartResponse getCartValidation(int cartId) throws ProfitMandiBusinessException;
29327 tejbeer 27
 
28653 amit.gupta 28
	void addItemsToCart(int cartId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
29327 tejbeer 29
 
37143 amit 30
	void addItemsToCart(int cartId, int fofoId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
31
 
28653 amit.gupta 32
	void addAddressToCart(int cartId, long addressId) throws ProfitMandiBusinessException;
28166 tejbeer 33
 
37792 amit 34
	/** How the carry bags among these item quantities are charged - see CarryBagQuote. */
35
	CarryBagQuote getCarryBagQuote(int fofoId, Map<Integer, Integer> itemQty) throws ProfitMandiBusinessException;
28166 tejbeer 36
 
37792 amit 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;
39
 
29327 tejbeer 40
	List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap)
41
			throws ProfitMandiBusinessException;
42
 
35690 amit 43
	List<FocusedShortageModel> focusedModelShortageValidation(int fofoId, Map<Integer, Integer> catalogCartQtyMap,
44
			Map<Integer, Long> inStockItemModel, Map<Integer, Long> itempendingIndent,
45
			Map<Integer, Long> grnItemPendingOrders, FofoStore fofoStore,
46
			List<String> retailerBlockBrands, Map<Integer, Integer> focusedModelMap)
47
			throws ProfitMandiBusinessException;
48
 
33172 tejus.loha 49
    UserCart setCartItems(int fofoId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
26522 amit.gupta 50
}