createDelivery
fun createDelivery(id: OrderId, restaurantId: RestaurantId, customerId: CustomerId, items: List<OrderItem>, info: DeliveryInfo): OrderCreationResult
Creates a Delivery order with the specified parameters.
Return
An OrderCreationResult indicating success or failure of the order creation.
Parameters
id
The unique identifier for the order.
restaurantId
The unique identifier for the restaurant.
customerId
The unique identifier for the customer.
items
The list of order items.
info
The delivery information.