execute

abstract fun execute(command: PayOrderCommand): PayOrder.Result

Executes the pay order use case.

Return

A Result indicating the outcome of the operation, which can be either success with the order ID or failure with specific reasons.

Parameters

command

The command containing the necessary information to pay for the order.