}
@Override
public OrderStatusEvent requestOrderStatus(RequestOrderStatusEvent requestOrderDetailsEvent) {
OrderStatus orderStatus = orderStatusRepository.findLatestById(requestOrderDetailsEvent.getKey());
if (orderStatus == null) {
return OrderStatusEvent.notFound(requestOrderDetailsEvent.getKey());
}
return new OrderStatusEvent(requestOrderDetailsEvent.getKey(), orderStatus.toStatusDetails());
}