PayOrder

interface PayOrder

Use case for paying an order. This is typically used when a customer wants to pay for an existing order.

Inheritors

Types

Link copied to clipboard
sealed interface Result

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

Functions

Link copied to clipboard
abstract fun execute(command: PayOrderCommand): PayOrder.Result

Executes the pay order use case.