Result

sealed interface Result

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

  • Success: The delivery information was successfully updated.

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

  • OrderNotFound: No order exists with the provided identifier.

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

  • InvalidDate: The provided delivery date is invalid (e.g., in the past or too soon).

Inheritors

Types

Link copied to clipboard
Link copied to clipboard