Table of Contents

Class PolicySimulationReceipt

Namespace
ReferenceApplication.Web.Governance.Simulation
Assembly
ReferenceApplication.Web.dll

The decision receipt that would be appended to the ledger.

public sealed record PolicySimulationReceipt : IEquatable<PolicySimulationReceipt>
Inheritance
PolicySimulationReceipt
Implements
Inherited Members

Constructors

PolicySimulationReceipt(string, string, string, DateTimeOffset, string, string, string?, string, string, IReadOnlyList<string>, string?, string?, string?, string?, string?, IReadOnlyDictionary<string, string>)

The decision receipt that would be appended to the ledger.

public PolicySimulationReceipt(string DecisionReceiptId, string EventId, string SchemaVersion, DateTimeOffset OccurredUtc, string ActorId, string ActorType, string? ActorDisplayName, string OperationName, string Outcome, IReadOnlyList<string> ReasonCodes, string? CorrelationId, string? DecisionStage, string? PolicyVersion, string? PolicyHash, string? CapabilityGrantId, IReadOnlyDictionary<string, string> Metadata)

Parameters

DecisionReceiptId string

The receipt identifier.

EventId string

The receipt event identifier.

SchemaVersion string

The receipt schema version.

OccurredUtc DateTimeOffset

When the decision occurred.

ActorId string

The governance actor identifier.

ActorType string

The governance actor type.

ActorDisplayName string

The actor display name, when known.

OperationName string

The governed operation name.

Outcome string

The decision outcome.

ReasonCodes IReadOnlyList<string>

The decision reason codes.

CorrelationId string

The simulated request's correlation identifier.

DecisionStage string

The governance stage that produced the receipt.

PolicyVersion string

The policy version.

PolicyHash string

The policy hash.

CapabilityGrantId string

The capability grant that authorized the decision, when one did.

Metadata IReadOnlyDictionary<string, string>

The receipt metadata.

Properties

ActorDisplayName

The actor display name, when known.

public string? ActorDisplayName { get; init; }

Property Value

string

ActorId

The governance actor identifier.

public string ActorId { get; init; }

Property Value

string

ActorType

The governance actor type.

public string ActorType { get; init; }

Property Value

string

CapabilityGrantId

The capability grant that authorized the decision, when one did.

public string? CapabilityGrantId { get; init; }

Property Value

string

CorrelationId

The simulated request's correlation identifier.

public string? CorrelationId { get; init; }

Property Value

string

DecisionReceiptId

The receipt identifier.

public string DecisionReceiptId { get; init; }

Property Value

string

DecisionStage

The governance stage that produced the receipt.

public string? DecisionStage { get; init; }

Property Value

string

EventId

The receipt event identifier.

public string EventId { get; init; }

Property Value

string

Metadata

The receipt metadata.

public IReadOnlyDictionary<string, string> Metadata { get; init; }

Property Value

IReadOnlyDictionary<string, string>

OccurredUtc

When the decision occurred.

public DateTimeOffset OccurredUtc { get; init; }

Property Value

DateTimeOffset

OperationName

The governed operation name.

public string OperationName { get; init; }

Property Value

string

Outcome

The decision outcome.

public string Outcome { get; init; }

Property Value

string

PolicyHash

The policy hash.

public string? PolicyHash { get; init; }

Property Value

string

PolicyVersion

The policy version.

public string? PolicyVersion { get; init; }

Property Value

string

ReasonCodes

The decision reason codes.

public IReadOnlyList<string> ReasonCodes { get; init; }

Property Value

IReadOnlyList<string>

SchemaVersion

The receipt schema version.

public string SchemaVersion { get; init; }

Property Value

string