OrderItem

data class OrderItem(val menuItemId: MenuItemId, val quantity: Int)

Represents an item in an order, consisting of a menu item ID and the quantity ordered.

Constructors

Link copied to clipboard
constructor(menuItemId: MenuItemId, quantity: Int)

Properties

Link copied to clipboard

The unique identifier of the menu item being ordered.

Link copied to clipboard

The quantity of the menu item being ordered.

Functions

Link copied to clipboard
Link copied to clipboard

Converts an OrderItem domain model to its corresponding OrderItemDto.