Result

sealed interface Result

Represents the result of the get order details operation. It can be either a success with the order details or a failure indicating that the order was not found.

  • Success: Contains the OrderDto with the details of the retrieved order.

  • Failure: Indicates that the order was not found in the system.

  • OrderNotFound: No order exists with the provided identifier.

Inheritors

Types

Link copied to clipboard
sealed interface Failure : GetOrderDetails.Result
Link copied to clipboard
data class Success(val order: OrderDto) : GetOrderDetails.Result