execute
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.
Return
A Result sealed interface representing either success with the order details or failure if the order was not found.
Parameters
command
The command containing the information needed to retrieve the order details.