Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.service.order;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.spice.profitmandi.common.enumuration.SearchType;
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.CartFofo;
import com.spice.profitmandi.common.model.CreateOrderRequest;
import com.spice.profitmandi.common.model.CustomCustomer;
import com.spice.profitmandi.common.model.PdfModel;
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;

@Service
public interface OrderService {
        public int createOrder(CreateOrderRequest createOrderRequest, int fofoId) throws ProfitMandiBusinessException;
        public void updateCustomerDetails(CustomCustomer customCustomer, String invoiceNumber) throws ProfitMandiBusinessException;
        public PdfModel getInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
        public PdfModel getInvoicePdfModel(int orderId) throws ProfitMandiBusinessException;
        public String getBillingAddress(CustomerAddress customerAddress);
        public List<CartFofo> cartCheckout(String cartJson) throws ProfitMandiBusinessException;
        public List<FofoOrderItem> getByOrderId(int orderId)throws ProfitMandiBusinessException;
        public Map<String, Object> getSaleHistory(int fofoId, SearchType searchType, String searchValue, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
        public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
        public int generatePrebookingOrdersOtp(String customerEmailId, String customerMobileNumber, Map<Integer, Float> itemIdAdvanceAmount) throws ProfitMandiBusinessException;
        public String validateOtp(String customerEmailId, String customerMobileNumber, int otpId, String otp) throws ProfitMandiBusinessException;
}