GetOrderDetails

interface GetOrderDetails

Use case for retrieving the details of a specific order. This interface defines the contract for fetching

Inheritors

Types

Link copied to clipboard
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.

Functions

Link copied to clipboard

Executes the use case to retrieve order details based on the provided command. The command contains the necessary information to identify the order, such as the order ID and user ID. The result of the execution is a sealed interface that can represent either a successful retrieval of the order details or a failure scenario where the order was not found.