Subversion Repositories SmartDukaan

Rev

Rev 28166 | Rev 29327 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.cart;

import java.util.List;

import org.springframework.stereotype.Service;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.dao.model.CartItem;
import com.spice.profitmandi.dao.model.CartResponse;

@Service
public interface CartService {
        CartModel addToCart(int cartId, int itemId, int quantity, float sellingPrice);
        boolean clearCart(int cartId) throws ProfitMandiBusinessException;
        CartModel removeFromCart(int cartId, int itemId);
        CartModel getCart(int cartId);
        CartResponse getCartValidation(int cartId) throws ProfitMandiBusinessException;
        void addItemsToCart(int cartId, List<CartItem> cartItems) throws ProfitMandiBusinessException;
        void addAddressToCart(int cartId, long addressId) throws ProfitMandiBusinessException;

        void addShoppingBag(int cartId, long qty);

}