| 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;
|
| 34141 |
tejus.loha |
42 |
public CustomerCreditNote badReturn(String loginMail,int fofoId, FoiBadReturnRequest foiBadReturnRequest)
|
|
|
43 |
throws ProfitMandiBusinessException;
|
| 25640 |
tejbeer |
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 |
|
| 32961 |
amit.gupta |
59 |
void processScratchOffer(FofoOrder fofoOrder) throws ProfitMandiBusinessException;
|
| 25640 |
tejbeer |
60 |
|
| 33895 |
ranu |
61 |
ScratchedGift getSelectedGift(double purchaseAmount,int fofoId) throws ProfitMandiBusinessException;
|
| 32961 |
amit.gupta |
62 |
|
| 32960 |
amit.gupta |
63 |
String getInvoiceNumber(int fofoId, String fofoStoreCode);
|
|
|
64 |
|
| 30157 |
manish |
65 |
|
|
|
66 |
public ResponseEntity<?> downloadReportInCsv( org.apache.commons.io.output.ByteArrayOutputStream baos , List<List<?>> rows,String fileName);
|
| 24917 |
tejbeer |
67 |
public boolean notifyColorChange(int orderId, int itemId) throws ProfitMandiBusinessException;
|
| 25640 |
tejbeer |
68 |
|
| 25083 |
amit.gupta |
69 |
public FofoOrder getOrderByInventoryItemId(int inventoryItemId) throws Exception;
|
| 27083 |
amit.gupta |
70 |
|
|
|
71 |
LocalDateTime getMaxSalesDate(int fofoId, LocalDateTime startDate, LocalDateTime endDate);
|
| 27516 |
amit.gupta |
72 |
|
| 30321 |
amit.gupta |
73 |
InvoicePdfModel getDummyPdfModel(String serialNumber) throws ProfitMandiBusinessException;
|
| 28166 |
tejbeer |
74 |
|
|
|
75 |
public Map<Integer, Long> carryBagCreditCount(int fofoId) throws ProfitMandiBusinessException;
|
| 29549 |
amit.gupta |
76 |
|
|
|
77 |
void reverseScheme(FofoOrder fofoOrder) throws ProfitMandiBusinessException;
|
| 32607 |
ranu |
78 |
|
|
|
79 |
void createMissingScratchOffers();
|
| 32724 |
amit.gupta |
80 |
|
|
|
81 |
boolean refundOrder(int orderId, String refundedBy, String refundReason) throws ProfitMandiBusinessException;
|
| 22859 |
ashik.ali |
82 |
}
|