return OrderDetailsEvent.notFound(requestOrderDetailsEvent.getKey());
}
return new OrderDetailsEvent(
requestOrderDetailsEvent.getKey(),
order.toOrderDetails());
}
@Override
public OrderUpdatedEvent setOrderPayment(SetOrderPaymentEvent setOrderPaymentEvent) {
Order order = orderRepository.findById(setOrderPaymentEvent.getKey());