Subversion Repositories SmartDukaan

Rev

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