Result

sealed interface Result

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

  • Success: The takeaway order information was successfully updated.

  • Failure: The attempt to update the takeaway order information failed, with specific reasons:

  • OrderNotFound: No order exists with the provided identifier.

  • Unauthorized: The user does not have permission to update the order information.

  • InvalidDate: The provided date for pickup is invalid (e.g., in the past).

Inheritors

Types

Link copied to clipboard
Link copied to clipboard