execute

open override fun execute(command: DiscardOrderCommand): DiscardOrder.Result

Executes the discard order use case.

Return

A Result indicating the outcome of the operation, which can be either success or failure with specific reasons.

Parameters

command

The command containing the necessary information to discard the order.