Result

sealed interface Result

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

  • Success: The order items were successfully updated.

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

  • OrderNotFound: No order exists with the provided identifier.

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

  • EmptyItems: The provided list of items is empty, which is not allowed for an order.

Inheritors

Types

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