Subversion Repositories SmartDukaan

Rev

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

Rev 23638 Rev 23654
Line 1... Line 1...
1
package com.spice.profitmandi.service.order;
1
package com.spice.profitmandi.service.order;
2
 
2
 
3
import java.util.List;
3
import java.util.List;
4
import java.util.Map;
4
import java.util.Map;
5
 
5
 
-
 
6
import org.springframework.core.io.InputStreamResource;
-
 
7
import org.springframework.http.ResponseEntity;
6
import org.springframework.stereotype.Service;
8
import org.springframework.stereotype.Service;
7
 
9
 
8
import com.spice.profitmandi.common.enumuration.SearchType;
10
import com.spice.profitmandi.common.enumuration.SearchType;
9
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
11
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
10
import com.spice.profitmandi.common.model.CartFofo;
12
import com.spice.profitmandi.common.model.CartFofo;
11
import com.spice.profitmandi.common.model.CreateOrderRequest;
13
import com.spice.profitmandi.common.model.CreateOrderRequest;
-
 
14
import com.spice.profitmandi.common.model.CreditNotePdfModel;
12
import com.spice.profitmandi.common.model.CustomCustomer;
15
import com.spice.profitmandi.common.model.CustomCustomer;
13
import com.spice.profitmandi.common.model.FoiBadReturnRequest;
16
import com.spice.profitmandi.common.model.FoiBadReturnRequest;
14
import com.spice.profitmandi.common.model.PdfModel;
17
import com.spice.profitmandi.common.model.PdfModel;
15
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
18
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
-
 
19
import com.spice.profitmandi.dao.entity.fofo.CustomerCreditNote;
16
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
20
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
17
 
21
 
18
@Service
22
@Service
19
public interface OrderService {
23
public interface OrderService {
20
	public int createOrder(CreateOrderRequest createOrderRequest, int fofoId) throws ProfitMandiBusinessException;
24
	public int createOrder(CreateOrderRequest createOrderRequest, int fofoId) throws ProfitMandiBusinessException;
Line 26... Line 30...
26
	public List<FofoOrderItem> getByOrderId(int orderId)throws ProfitMandiBusinessException;
30
	public List<FofoOrderItem> getByOrderId(int orderId)throws ProfitMandiBusinessException;
27
	public Map<String, Object> getSaleHistory(int fofoId, SearchType searchType, String searchValue, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
31
	public Map<String, Object> getSaleHistory(int fofoId, SearchType searchType, String searchValue, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
28
	public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
32
	public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
29
	public int generatePrebookingOrdersOtp(String customerEmailId, String customerMobileNumber, Map<Integer, Float> itemIdAdvanceAmount) throws ProfitMandiBusinessException;
33
	public int generatePrebookingOrdersOtp(String customerEmailId, String customerMobileNumber, Map<Integer, Float> itemIdAdvanceAmount) throws ProfitMandiBusinessException;
30
	public String validateOtp(String customerEmailId, String customerMobileNumber, int otpId, String otp) throws ProfitMandiBusinessException;
34
	public String validateOtp(String customerEmailId, String customerMobileNumber, int otpId, String otp) throws ProfitMandiBusinessException;
31
	public void badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest) throws ProfitMandiBusinessException;
35
	public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest) throws ProfitMandiBusinessException;
-
 
36
	public CreditNotePdfModel getCreditNotePdfModel(int customerCreditNoteId) throws ProfitMandiBusinessException;
32
}
37
}