Payment

@Description(value = "The payment of an order through the payment gateway")
class Payment(state: PaymentState)

The payment of an order, after the classic eShop's PaymentProcessor; its id is the order's:

REQUESTED -> SUCCEEDED -> REFUNDED
\-> FAILED

Recording an outcome the payment already has changes nothing, so a command sent again is harmless; recording the other outcome is a rejection.

Constructors

Link copied to clipboard
constructor(state: PaymentState)

Types

Link copied to clipboard
object Rejections

The codes the aggregate rejects a command with, by their local names: the compiler and the kernel name them <context>.payment.<code>, as its peers read them from the api's generated contract.

Functions