source: src/main/java/com/example/fooddeliverysystem/service/OrderService.java

Last change on this file was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 18 months ago

code added, trial 2

  • Property mode set to 100644
File size: 1.0 KB
Line 
1package com.example.fooddeliverysystem.service;
2
3import com.example.fooddeliverysystem.exceptions.FoodItemNotFoundException;
4import com.example.fooddeliverysystem.exceptions.OrderNotFoundException;
5import com.example.fooddeliverysystem.exceptions.SalePlaceNotFoundException;
6import com.example.fooddeliverysystem.model.Order;
7
8import java.util.List;
9
10public 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.