| 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 |
|
|
|
8 |
import org.springframework.stereotype.Service;
|
|
|
9 |
|
| 23202 |
ashik.ali |
10 |
import com.spice.profitmandi.common.enumuration.SearchType;
|
| 22859 |
ashik.ali |
11 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
12 |
import com.spice.profitmandi.common.model.CartFofo;
|
|
|
13 |
import com.spice.profitmandi.common.model.CreateOrderRequest;
|
| 23654 |
amit.gupta |
14 |
import com.spice.profitmandi.common.model.CreditNotePdfModel;
|
| 23582 |
ashik.ali |
15 |
import com.spice.profitmandi.common.model.CustomCustomer;
|
| 23638 |
amit.gupta |
16 |
import com.spice.profitmandi.common.model.FoiBadReturnRequest;
|
| 22859 |
ashik.ali |
17 |
import com.spice.profitmandi.common.model.PdfModel;
|
|
|
18 |
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
|
| 23654 |
amit.gupta |
19 |
import com.spice.profitmandi.dao.entity.fofo.CustomerCreditNote;
|
| 25083 |
amit.gupta |
20 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
|
| 22925 |
ashik.ali |
21 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
|
| 22859 |
ashik.ali |
22 |
|
|
|
23 |
@Service
|
|
|
24 |
public interface OrderService {
|
| 25640 |
tejbeer |
25 |
public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals)
|
|
|
26 |
throws ProfitMandiBusinessException;
|
|
|
27 |
|
|
|
28 |
public void updateCustomerDetails(CustomCustomer customCustomer, String invoiceNumber)
|
|
|
29 |
throws ProfitMandiBusinessException;
|
|
|
30 |
|
| 22859 |
ashik.ali |
31 |
public PdfModel getInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
|
| 25640 |
tejbeer |
32 |
|
| 23595 |
ashik.ali |
33 |
public PdfModel getInvoicePdfModel(int orderId) throws ProfitMandiBusinessException;
|
| 25640 |
tejbeer |
34 |
|
| 22859 |
ashik.ali |
35 |
public String getBillingAddress(CustomerAddress customerAddress);
|
| 25640 |
tejbeer |
36 |
|
| 22859 |
ashik.ali |
37 |
public List<CartFofo> cartCheckout(String cartJson) throws ProfitMandiBusinessException;
|
| 25640 |
tejbeer |
38 |
|
|
|
39 |
public List<FofoOrderItem> getByOrderId(int orderId) throws ProfitMandiBusinessException;
|
|
|
40 |
|
|
|
41 |
public Map<String, Object> getSaleHistory(int fofoId, SearchType searchType, String searchValue,
|
|
|
42 |
LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
|
|
|
43 |
|
|
|
44 |
public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue,
|
|
|
45 |
LocalDateTime startDate, LocalDateTime endDate, int offset, int limit) throws ProfitMandiBusinessException;
|
|
|
46 |
|
|
|
47 |
public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest)
|
|
|
48 |
throws ProfitMandiBusinessException;
|
|
|
49 |
|
| 23654 |
amit.gupta |
50 |
public CreditNotePdfModel getCreditNotePdfModel(int customerCreditNoteId) throws ProfitMandiBusinessException;
|
| 25640 |
tejbeer |
51 |
|
|
|
52 |
public void cancelOrder(List<String> invoiceNumbers) throws Exception;
|
|
|
53 |
|
| 24271 |
amit.gupta |
54 |
public float getSales(int fofoId, LocalDateTime startDate, LocalDateTime endDate);
|
| 25640 |
tejbeer |
55 |
|
| 24271 |
amit.gupta |
56 |
public float getSales(int fofoId, LocalDate onDate);
|
| 25640 |
tejbeer |
57 |
|
| 24271 |
amit.gupta |
58 |
public float getSales(LocalDateTime onDate);
|
| 25640 |
tejbeer |
59 |
|
| 24271 |
amit.gupta |
60 |
public float getSales(LocalDateTime startDate, LocalDateTime endDate);
|
| 25640 |
tejbeer |
61 |
|
| 24807 |
amit.gupta |
62 |
String getInvoiceNumber(int fofoId, String fofoStoreCode);
|
| 25640 |
tejbeer |
63 |
|
| 24917 |
tejbeer |
64 |
public boolean notifyColorChange(int orderId, int itemId) throws ProfitMandiBusinessException;
|
| 25640 |
tejbeer |
65 |
|
| 25083 |
amit.gupta |
66 |
public FofoOrder getOrderByInventoryItemId(int inventoryItemId) throws Exception;
|
| 25640 |
tejbeer |
67 |
|
|
|
68 |
|
| 22859 |
ashik.ali |
69 |
}
|