Class PlaceOrderService
java.lang.Object
com.dmasone.identity.orders.application.PlaceOrderService
Primary order placement use case. It coordinates module boundaries by asking
catalog to reserve stock through an application service, saving the order,
and then publishing an internal event for payment. When clients provide an
idempotency key, retries return the original order without reserving stock or
publishing payment-triggering events again.
-
Constructor Summary
ConstructorsConstructorDescriptionPlaceOrderService(StockReservationService stockReservationService, OrderRepository orderRepository, EventPublisher eventPublisher, Clock clock) -
Method Summary
-
Constructor Details
-
Method Details
-
placeOrder
-