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