| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.service.order;
|
1 |
package com.spice.profitmandi.service.order;
|
| 2 |
|
2 |
|
| 3 |
import java.time.LocalDate;
|
- |
|
| 4 |
import java.time.LocalDateTime;
|
- |
|
| 5 |
import java.util.List;
|
- |
|
| 6 |
import java.util.Map;
|
- |
|
| 7 |
|
- |
|
| 8 |
import org.springframework.http.ResponseEntity;
|
- |
|
| 9 |
import org.springframework.stereotype.Service;
|
- |
|
| 10 |
|
- |
|
| 11 |
import com.spice.profitmandi.common.enumuration.SearchType;
|
3 |
import com.spice.profitmandi.common.enumuration.SearchType;
|
| 12 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
4 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 13 |
import com.spice.profitmandi.common.model.CartFofo;
|
5 |
import com.spice.profitmandi.common.model.*;
|
| 14 |
import com.spice.profitmandi.common.model.CreateOrderRequest;
|
- |
|
| 15 |
import com.spice.profitmandi.common.model.CreditNotePdfModel;
|
- |
|
| 16 |
import com.spice.profitmandi.common.model.CustomCustomer;
|
- |
|
| 17 |
import com.spice.profitmandi.common.model.FoiBadReturnRequest;
|
- |
|
| 18 |
import com.spice.profitmandi.common.model.PdfModel;
|
- |
|
| 19 |
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
|
6 |
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
|
| 20 |
import com.spice.profitmandi.dao.entity.fofo.CustomerCreditNote;
|
7 |
import com.spice.profitmandi.dao.entity.fofo.CustomerCreditNote;
|
| 21 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
|
8 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
|
| 22 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
|
9 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
|
| - |
|
10 |
import org.springframework.http.ResponseEntity;
|
| - |
|
11 |
import org.springframework.stereotype.Service;
|
| - |
|
12 |
|
| - |
|
13 |
import java.time.LocalDate;
|
| - |
|
14 |
import java.time.LocalDateTime;
|
| - |
|
15 |
import java.util.List;
|
| - |
|
16 |
import java.util.Map;
|
| 23 |
|
17 |
|
| 24 |
@Service
|
18 |
@Service
|
| 25 |
public interface OrderService {
|
19 |
public interface OrderService {
|
| 26 |
public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals)
|
20 |
public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals)
|
| 27 |
throws ProfitMandiBusinessException;
|
21 |
throws ProfitMandiBusinessException;
|
| 28 |
|
22 |
|
| 29 |
public void updateCustomerDetails(CustomCustomer customCustomer, String invoiceNumber)
|
23 |
public void updateCustomerDetails(CustomCustomer customCustomer, String invoiceNumber)
|
| 30 |
throws ProfitMandiBusinessException;
|
24 |
throws ProfitMandiBusinessException;
|
| 31 |
|
25 |
|
| 32 |
public PdfModel getInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
|
26 |
public InvoicePdfModel getInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
|
| 33 |
|
27 |
|
| 34 |
public PdfModel getInsuranceInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
|
28 |
public InvoicePdfModel getInsuranceInvoicePdfModel(int fofoId, int orderId) throws ProfitMandiBusinessException;
|
| 35 |
|
29 |
|
| 36 |
public PdfModel getInvoicePdfModel(int orderId) throws ProfitMandiBusinessException;
|
30 |
public InvoicePdfModel getInvoicePdfModel(int orderId) throws ProfitMandiBusinessException;
|
| 37 |
|
31 |
|
| 38 |
public String getBillingAddress(CustomerAddress customerAddress);
|
32 |
public String getBillingAddress(CustomerAddress customerAddress);
|
| 39 |
|
33 |
|
| 40 |
public List<CartFofo> cartCheckout(String cartJson) throws ProfitMandiBusinessException;
|
34 |
public List<CartFofo> cartCheckout(String cartJson) throws ProfitMandiBusinessException;
|
| 41 |
|
35 |
|
| Line 70... |
Line 64... |
| 70 |
|
64 |
|
| 71 |
public FofoOrder getOrderByInventoryItemId(int inventoryItemId) throws Exception;
|
65 |
public FofoOrder getOrderByInventoryItemId(int inventoryItemId) throws Exception;
|
| 72 |
|
66 |
|
| 73 |
LocalDateTime getMaxSalesDate(int fofoId, LocalDateTime startDate, LocalDateTime endDate);
|
67 |
LocalDateTime getMaxSalesDate(int fofoId, LocalDateTime startDate, LocalDateTime endDate);
|
| 74 |
|
68 |
|
| 75 |
PdfModel getDummyPdfModel(String serialNumber) throws ProfitMandiBusinessException;
|
69 |
InvoicePdfModel getDummyPdfModel(String serialNumber) throws ProfitMandiBusinessException;
|
| 76 |
|
70 |
|
| 77 |
public Map<Integer, Long> carryBagCreditCount(int fofoId) throws ProfitMandiBusinessException;
|
71 |
public Map<Integer, Long> carryBagCreditCount(int fofoId) throws ProfitMandiBusinessException;
|
| 78 |
|
72 |
|
| 79 |
void reverseScheme(FofoOrder fofoOrder) throws ProfitMandiBusinessException;
|
73 |
void reverseScheme(FofoOrder fofoOrder) throws ProfitMandiBusinessException;
|
| 80 |
}
|
74 |
}
|