Class OrderService
java.lang.Object
io.github.mspr4_2025.orders_service.service.OrderService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOrder
(OrderCreateDto orderCreate) void
deleteOrderByUid
(UUID uid) getOrderByUid
(UUID uid) void
updateOrderByUid
(UUID uid, OrderUpdateDto orderUpdate)
-
Constructor Details
-
OrderService
public OrderService()
-
-
Method Details
-
getAllOrders
-
getOrderByUid
public OrderEntity getOrderByUid(UUID uid) throws org.springframework.web.server.ResponseStatusException - Throws:
org.springframework.web.server.ResponseStatusException
- when no entity exist with the given uid. This exception is handled by the controllers, returning a response with the corresponding http status.
-
createOrder
-
deleteOrderByUid
-
updateOrderByUid
-