Result

sealed interface Result

Represents the result of the discard order operation. It can be either a success or a failure with specific reasons.

  • Success: The order was successfully discarded.

  • Failure: The attempt to discard the order failed, with specific reasons:

  • OrderNotFound: No order exists with the provided identifier.

  • OrderNotCancellable: The order cannot be discarded because it has already been processed or is in a state that does not allow cancellation.

Inheritors

Types

Link copied to clipboard
sealed interface Failure : DiscardOrder.Result
Link copied to clipboard