Subversion Repositories SmartDukaan

Rev

Rev 31030 | Rev 32607 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23365 ashik.ali 1
package com.spice.profitmandi.service.order;
22859 ashik.ali 2
 
23202 ashik.ali 3
import com.spice.profitmandi.common.enumuration.SearchType;
22859 ashik.ali 4
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
30321 amit.gupta 5
import com.spice.profitmandi.common.model.*;
22859 ashik.ali 6
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
23654 amit.gupta 7
import com.spice.profitmandi.dao.entity.fofo.CustomerCreditNote;
25083 amit.gupta 8
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
22925 ashik.ali 9
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
30321 amit.gupta 10
import org.springframework.http.ResponseEntity;
11
import org.springframework.stereotype.Service;
22859 ashik.ali 12
 
30321 amit.gupta 13
import java.time.LocalDate;
14
import java.time.LocalDateTime;
15
import java.util.List;
16
import java.util.Map;
17
 
22859 ashik.ali 18
@Service
19
public interface OrderService {
25640 tejbeer 20
	public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals)
21
			throws ProfitMandiBusinessException;
22
 
23
	public void updateCustomerDetails(CustomCustomer customCustomer, String invoiceNumber)
24
			throws ProfitMandiBusinessException;
25
 
30321 amit.gupta 26
	public InvoicePdfModel getInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
25640 tejbeer 27
 
30321 amit.gupta 28
	public InvoicePdfModel getInvoicePdfModel(int orderId) throws ProfitMandiBusinessException;
25640 tejbeer 29
 
22859 ashik.ali 30
	public String getBillingAddress(CustomerAddress customerAddress);
25640 tejbeer 31
 
22859 ashik.ali 32
	public List<CartFofo> cartCheckout(String cartJson) throws ProfitMandiBusinessException;
25640 tejbeer 33
 
34
	public List<FofoOrderItem> getByOrderId(int orderId) throws ProfitMandiBusinessException;
35
 
36
	public Map<String, Object> getSaleHistory(int fofoId, SearchType searchType, String searchValue,
37
			LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
38
 
39
	public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue,
31030 amit.gupta 40
													   LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
25640 tejbeer 41
 
42
	public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest)
43
			throws ProfitMandiBusinessException;
44
 
23654 amit.gupta 45
	public CreditNotePdfModel getCreditNotePdfModel(int customerCreditNoteId) throws ProfitMandiBusinessException;
25640 tejbeer 46
 
29549 amit.gupta 47
	public void cancelOrder(List<String> invoiceNumbers) throws ProfitMandiBusinessException;
25640 tejbeer 48
 
31030 amit.gupta 49
	void reverseActivationScheme(List<Integer> inventoryItemIds) throws ProfitMandiBusinessException;
50
 
24271 amit.gupta 51
	public float getSales(int fofoId, LocalDateTime startDate, LocalDateTime endDate);
25640 tejbeer 52
 
24271 amit.gupta 53
	public float getSales(int fofoId, LocalDate onDate);
25640 tejbeer 54
 
24271 amit.gupta 55
	public float getSales(LocalDateTime onDate);
25640 tejbeer 56
 
24271 amit.gupta 57
	public float getSales(LocalDateTime startDate, LocalDateTime endDate);
25640 tejbeer 58
 
24807 amit.gupta 59
	String getInvoiceNumber(int fofoId, String fofoStoreCode);
25640 tejbeer 60
 
30157 manish 61
 
62
	public ResponseEntity<?> downloadReportInCsv( org.apache.commons.io.output.ByteArrayOutputStream baos , List<List<?>> rows,String fileName);
24917 tejbeer 63
	public boolean notifyColorChange(int orderId, int itemId) throws ProfitMandiBusinessException;
25640 tejbeer 64
 
25083 amit.gupta 65
	public FofoOrder getOrderByInventoryItemId(int inventoryItemId) throws Exception;
27083 amit.gupta 66
 
67
	LocalDateTime getMaxSalesDate(int fofoId, LocalDateTime startDate, LocalDateTime endDate);
27516 amit.gupta 68
 
30321 amit.gupta 69
	InvoicePdfModel getDummyPdfModel(String serialNumber) throws ProfitMandiBusinessException;
28166 tejbeer 70
 
71
	public Map<Integer, Long> carryBagCreditCount(int fofoId) throws ProfitMandiBusinessException;
29549 amit.gupta 72
 
73
	void reverseScheme(FofoOrder fofoOrder) throws ProfitMandiBusinessException;
22859 ashik.ali 74
}