Subversion Repositories SmartDukaan

Rev

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

Rev 32607 Rev 32724
Line 15... Line 15...
15
import java.util.List;
15
import java.util.List;
16
import java.util.Map;
16
import java.util.Map;
17
 
17
 
18
@Service
18
@Service
19
public interface OrderService {
19
public interface OrderService {
20
	public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals)
20
	int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals)
21
			throws ProfitMandiBusinessException;
21
			throws ProfitMandiBusinessException;
22
 
22
 
23
	public void updateCustomerDetails(CustomCustomer customCustomer, String invoiceNumber)
23
	void updateCustomerDetails(CustomCustomer customCustomer, String invoiceNumber)
24
			throws ProfitMandiBusinessException;
24
			throws ProfitMandiBusinessException;
25
 
25
 
26
	public InvoicePdfModel getInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
26
	InvoicePdfModel getInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
27
 
27
 
28
	public InvoicePdfModel getInvoicePdfModel(int orderId) throws ProfitMandiBusinessException;
28
	InvoicePdfModel getInvoicePdfModel(int orderId) throws ProfitMandiBusinessException;
29
 
29
 
30
	public String getBillingAddress(CustomerAddress customerAddress);
30
	String getBillingAddress(CustomerAddress customerAddress);
31
 
31
 
32
	public List<CartFofo> cartCheckout(String cartJson) throws ProfitMandiBusinessException;
32
	List<CartFofo> cartCheckout(String cartJson) throws ProfitMandiBusinessException;
33
 
33
 
34
	public List<FofoOrderItem> getByOrderId(int orderId) throws ProfitMandiBusinessException;
34
	List<FofoOrderItem> getByOrderId(int orderId) throws ProfitMandiBusinessException;
35
 
35
 
36
	public Map<String, Object> getSaleHistory(int fofoId, SearchType searchType, String searchValue,
36
	Map<String, Object> getSaleHistory(int fofoId, SearchType searchType, String searchValue,
37
			LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
37
                                       LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
38
 
38
 
39
	public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue,
39
	public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue,
40
													   LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
40
													   LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
41
 
41
 
42
	public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest)
42
	public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest)
Line 71... Line 71...
71
	public Map<Integer, Long> carryBagCreditCount(int fofoId) throws ProfitMandiBusinessException;
71
	public Map<Integer, Long> carryBagCreditCount(int fofoId) throws ProfitMandiBusinessException;
72
 
72
 
73
	void reverseScheme(FofoOrder fofoOrder) throws ProfitMandiBusinessException;
73
	void reverseScheme(FofoOrder fofoOrder) throws ProfitMandiBusinessException;
74
 
74
 
75
	void createMissingScratchOffers();
75
	void createMissingScratchOffers();
-
 
76
 
-
 
77
	boolean refundOrder(int orderId, String refundedBy, String refundReason) throws ProfitMandiBusinessException;
76
}
78
}