Result

sealed interface Result

Represents the result of attempting to advance the order status.

  • Success: The order status was successfully advanced.

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

  • OrderNotFound: No order exists with the provided identifier.

  • InvalidTransition: The requested status transition is not valid from the current state of the order.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard