Last change
on this file was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 20 months ago |
code added, trial 2
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | package com.example.fooddeliverysystem.service;
|
---|
2 |
|
---|
3 | import com.example.fooddeliverysystem.exceptions.FoodItemNotFoundException;
|
---|
4 | import com.example.fooddeliverysystem.exceptions.OrderNotFoundException;
|
---|
5 | import com.example.fooddeliverysystem.exceptions.SalePlaceNotFoundException;
|
---|
6 | import com.example.fooddeliverysystem.model.Order;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 |
|
---|
10 | public interface OrderService {
|
---|
11 |
|
---|
12 | void placeOrder(String typeOfPayment, Long salePlaceId, List<Long> foodIds, List<Integer> foodPrices, List<Integer> foodQuantities, String username) throws SalePlaceNotFoundException;
|
---|
13 |
|
---|
14 | Order changeOrderStatus(Long orderId, String status);
|
---|
15 |
|
---|
16 | Integer calculateCostOfOrder(Long orderId) throws FoodItemNotFoundException;
|
---|
17 | List<Order> findAllOrdersReadyToBeDelivered();
|
---|
18 |
|
---|
19 | List<Order> findAllOrdersForDeliver(String username);
|
---|
20 |
|
---|
21 | Order updateOrderDeliver(String username, Long orderId);
|
---|
22 |
|
---|
23 | Order findOrderById(Long orderId) throws OrderNotFoundException;
|
---|
24 |
|
---|
25 | List<Order> findAllOrdersForCustomer(String username);
|
---|
26 |
|
---|
27 | void saveOrder(Order order);
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.