GetOrderDetailsUseCase

Use case implementation for retrieving the details of a specific order.

This class handles the business logic for fetching order details based on the provided order ID. It interacts with the OrderRepository to retrieve order data and convert it to a DTO format.

Constructors

Link copied to clipboard
constructor(repository: OrderRepository)

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.