Table of Contents

Class PostSettlementActionEvent

Namespace
NArk.Core.Events
Assembly
NArk.Core.dll

Raised after the settlement engine attempted a settlement, whether it succeeded or failed. Register an IEventHandler<TEvent> for it to record transfers, notify a user, or drive a retry of your own.

public record PostSettlementActionEvent : IEquatable<PostSettlementActionEvent>
Inheritance
PostSettlementActionEvent
Implements
Inherited Members

Constructors

PostSettlementActionEvent(SettlementRequest, SettlementResult?, ActionState, string?)

Raised after the settlement engine attempted a settlement, whether it succeeded or failed. Register an IEventHandler<TEvent> for it to record transfers, notify a user, or drive a retry of your own.

public PostSettlementActionEvent(SettlementRequest Request, SettlementResult? Result, ActionState State, string? FailReason)

Parameters

Request SettlementRequest

The settlement that was attempted.

Result SettlementResult

The outcome when State is successful; otherwise null.

State ActionState

Whether the settlement succeeded.

FailReason string

Failure message when the settlement failed; otherwise null.

Properties

FailReason

Failure message when the settlement failed; otherwise null.

public string? FailReason { get; init; }

Property Value

string

Request

The settlement that was attempted.

public SettlementRequest Request { get; init; }

Property Value

SettlementRequest

Result

The outcome when State is successful; otherwise null.

public SettlementResult? Result { get; init; }

Property Value

SettlementResult

State

Whether the settlement succeeded.

public ActionState State { get; init; }

Property Value

ActionState