Interface OrderManagement
- All Known Implementing Classes:
OrderApplicationService
public interface OrderManagement
Module API for placing and retrieving orders.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves an order by identifier.placeOrder(OrderCommand command) Places an order after customer validation and pricing.
-
Method Details
-
placeOrder
Places an order after customer validation and pricing.- Parameters:
command- order placement command- Returns:
- submitted order summary
- Throws:
ResourceNotFoundException- when the customer or a product cannot be foundBusinessRuleViolationException- when the order command is invalid
-
getOrder
Retrieves an order by identifier.- Parameters:
orderId- order identifier- Returns:
- submitted order summary
- Throws:
ResourceNotFoundException- when the order does not exist
-