Subversion Repositories SmartDukaan

Rev

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

Rev 28166 Rev 28653
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;
-
 
4
 
3
import org.springframework.stereotype.Service;
5
import org.springframework.stereotype.Service;
4
 
6
 
-
 
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
 
5
@Service
11
@Service
6
public interface CartService {
12
public interface CartService {
7
	CartModel addToCart(int cartId, int itemId, int quantity, float sellingPrice);
13
	CartModel addToCart(int cartId, int itemId, int quantity, float sellingPrice);
8
 
-
 
-
 
14
	boolean clearCart(int cartId) throws ProfitMandiBusinessException;
9
	CartModel removeFromCart(int cartId, int itemId);
15
	CartModel removeFromCart(int cartId, int itemId);
10
 
-
 
11
	void clearCart(int cartId);
-
 
12
 
-
 
13
	CartModel getCart(int cartId);
16
	CartModel getCart(int cartId);
-
 
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;
14
 
20
 
15
	void addShoppingBag(int cartId, long qty);
21
	void addShoppingBag(int cartId, long qty);
16
 
22
 
17
}
23
}