Package com.yummynoodlebar.events.orders

Examples of com.yummynoodlebar.events.orders.OrderCreatedEvent


  public static final BigDecimal COST = new BigDecimal("10.99");
  public static final int MINUTES_TO_PREPARE = 5;
  public static final String STATUS_RECEIVED = "RECEIVED";

  public static OrderCreatedEvent newOrder(UUID id) {
    return new OrderCreatedEvent(id, new OrderDetails());
  }
View Full Code Here


        customer.getName());

    OrderDetails order = basket
        .createOrderDetailsWithCustomerInfo(customer);

    OrderCreatedEvent event = orderService
        .createOrder(new CreateOrderEvent(order));

    UUID key = event.getNewOrderKey();

    redirectAttrs.addFlashAttribute("message",
        "Your order has been accepted!");

    basket.clear();
View Full Code Here

TOP

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

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.