Interface OrderService


public interface OrderService
The interface OrderService defines a service to manage the orders of a bookstore.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancelOrder(long id)
    Tries to cancel an order.
    findOrder(long id)
    Finds an order by identifier.
    placeOrder(long customerId, List<OrderItem> items)
    Places an order with the bookstore.
    searchOrders(long customerId, int year)
    Searches for orders by customer and year.