createTakeaway

fun createTakeaway(id: OrderId, restaurantId: RestaurantId, customerId: CustomerId, items: List<OrderItem>, info: TakeawayInfo): OrderCreationResult

Creates a Takeaway 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 takeaway information.