Package com.yummynoodlebar.events.orders

Examples of com.yummynoodlebar.events.orders.RequestOrderStatusEvent


  }

  @ModelAttribute("orderStatus")
  private OrderStatus getOrderStatus(@PathVariable("orderId") String orderId) {
    OrderDetailsEvent orderDetailsEvent = orderService.requestOrderDetails(new RequestOrderDetailsEvent(UUID.fromString(orderId)));
    OrderStatusEvent orderStatusEvent = orderService.requestOrderStatus(new RequestOrderStatusEvent(UUID.fromString(orderId)));
    OrderStatus status = new OrderStatus();
    status.setName(orderDetailsEvent.getOrderDetails().getName());
    status.setOrderId(orderId);
    status.setStatus(orderStatusEvent.getOrderStatus().getStatus());
    return status;
View Full Code Here

TOP

Related Classes of com.yummynoodlebar.events.orders.RequestOrderStatusEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.