Subversion Repositories SmartDukaan

Rev

Rev 28653 | Rev 33172 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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