| 23365 |
ashik.ali |
1 |
package com.spice.profitmandi.service.order;
|
| 22859 |
ashik.ali |
2 |
|
|
|
3 |
import java.util.List;
|
| 23202 |
ashik.ali |
4 |
import java.util.Map;
|
| 22859 |
ashik.ali |
5 |
|
|
|
6 |
import org.springframework.stereotype.Service;
|
|
|
7 |
|
| 23202 |
ashik.ali |
8 |
import com.spice.profitmandi.common.enumuration.SearchType;
|
| 22859 |
ashik.ali |
9 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
10 |
import com.spice.profitmandi.common.model.CartFofo;
|
|
|
11 |
import com.spice.profitmandi.common.model.CreateOrderRequest;
|
| 23654 |
amit.gupta |
12 |
import com.spice.profitmandi.common.model.CreditNotePdfModel;
|
| 23582 |
ashik.ali |
13 |
import com.spice.profitmandi.common.model.CustomCustomer;
|
| 23638 |
amit.gupta |
14 |
import com.spice.profitmandi.common.model.FoiBadReturnRequest;
|
| 22859 |
ashik.ali |
15 |
import com.spice.profitmandi.common.model.PdfModel;
|
|
|
16 |
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
|
| 23654 |
amit.gupta |
17 |
import com.spice.profitmandi.dao.entity.fofo.CustomerCreditNote;
|
| 22925 |
ashik.ali |
18 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
|
| 22859 |
ashik.ali |
19 |
|
|
|
20 |
@Service
|
|
|
21 |
public interface OrderService {
|
|
|
22 |
public int createOrder(CreateOrderRequest createOrderRequest, int fofoId) throws ProfitMandiBusinessException;
|
| 23582 |
ashik.ali |
23 |
public void updateCustomerDetails(CustomCustomer customCustomer, String invoiceNumber) throws ProfitMandiBusinessException;
|
| 22859 |
ashik.ali |
24 |
public PdfModel getInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
|
| 23595 |
ashik.ali |
25 |
public PdfModel getInvoicePdfModel(int orderId) throws ProfitMandiBusinessException;
|
| 22859 |
ashik.ali |
26 |
public String getBillingAddress(CustomerAddress customerAddress);
|
|
|
27 |
public List<CartFofo> cartCheckout(String cartJson) throws ProfitMandiBusinessException;
|
| 22925 |
ashik.ali |
28 |
public List<FofoOrderItem> getByOrderId(int orderId)throws ProfitMandiBusinessException;
|
| 23202 |
ashik.ali |
29 |
public Map<String, Object> getSaleHistory(int fofoId, SearchType searchType, String searchValue, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
|
|
|
30 |
public Map<String, Object> getSaleHistoryPaginated(int fofoId, SearchType searchType, String searchValue, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
|
| 23418 |
ashik.ali |
31 |
public int generatePrebookingOrdersOtp(String customerEmailId, String customerMobileNumber, Map<Integer, Float> itemIdAdvanceAmount) throws ProfitMandiBusinessException;
|
|
|
32 |
public String validateOtp(String customerEmailId, String customerMobileNumber, int otpId, String otp) throws ProfitMandiBusinessException;
|
| 23654 |
amit.gupta |
33 |
public CustomerCreditNote badReturn(int fofoId, FoiBadReturnRequest foiBadReturnRequest) throws ProfitMandiBusinessException;
|
|
|
34 |
public CreditNotePdfModel getCreditNotePdfModel(int customerCreditNoteId) throws ProfitMandiBusinessException;
|
| 22859 |
ashik.ali |
35 |
}
|