OrderCreationResult

sealed interface OrderCreationResult

Represents the result of an order creation operation.

This sealed interface defines the possible outcomes of creating an order. It can either be a success, containing the created Order, or a failure, indicating the reason for the failure.

Inheritors

Types

Link copied to clipboard
sealed interface Failure : OrderCreationResult
Link copied to clipboard
data class Success(val order: Order) : OrderCreationResult