PlaceOrderUseCase

Use case implementation for placing an order.

This class handles the business logic for creating a new order based on the provided command. It interacts with the OrderRepository to save the order and returns the result of the operation.

Constructors

Link copied to clipboard
constructor(repository: OrderRepository)

Functions

Link copied to clipboard
open override fun execute(command: PlaceOrderCommand): PlaceOrder.Result

Executes the place order use case.