public OrderRst()

in sources/coffeeshop/orders-application/src/main/java/solid/humank/coffeeshop/order/datacontracts/results/OrderRst.java [34:45]


    public OrderRst(Order order) {

        items = new ArrayList<>();
        this.id = order.getId().toString();
        this.status = order.getStatus().getValue();
        order.getOrderItems().stream().forEach(orderItem -> {
            orderItem.toString();
            items.add(new OrderItemRst(orderItem));
        });
        this.createdDate = order.getCreatedDate();
        this.modifiedDate = order.getModifiedDate();
    }