< Summary

Information
Class: AsiBackbone.Core.Audit.AuditLedgerRecord
Assembly: AsiBackbone.Core
File(s): /home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.Core/Audit/AuditLedgerRecord.cs
Line coverage
100%
Covered lines: 188
Uncovered lines: 0
Coverable lines: 188
Total lines: 537
Line coverage: 100%
Branch coverage
89%
Covered branches: 43
Total branches: 48
Branch coverage: 89.5%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%
.ctor(...)100%44100%
AsiBackbone.Core.Audit.IDecisionReceipt.get_CapabilityGrantId()100%11100%
get_HasReasonCodes()100%11100%
get_HasMetadata()100%11100%
FromDecisionReceipt(...)100%66100%
NormalizeIdentifier(...)100%22100%
NormalizeOptional(...)100%22100%
NormalizeNonNegative(...)50%22100%
NormalizeNonNegative(...)50%22100%
NormalizeRiskScore(...)62.5%88100%
NormalizeReasonCodes(...)100%66100%
NormalizeMetadata(...)100%1616100%

File(s)

/home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.Core/Audit/AuditLedgerRecord.cs

#LineLine coverage
 1using System.Collections.ObjectModel;
 2using AsiBackbone.Core.Actors;
 3using AsiBackbone.Core.Serialization;
 4using SigningMetadataValue = AsiBackbone.Core.Signing.SigningMetadata;
 5
 6namespace AsiBackbone.Core.Audit;
 7
 8/// <summary>
 9/// Represents a persistence-ready audit ledger record captured from AsiBackbone decision receipt.
 10/// </summary>
 11public sealed class AuditLedgerRecord : IDecisionReceipt
 12{
 413    private static readonly ReadOnlyCollection<string> EmptyReasonCodes =
 414        Array.AsReadOnly(Array.Empty<string>());
 15
 416    private static readonly IReadOnlyDictionary<string, string> EmptyMetadata =
 417        new ReadOnlyDictionary<string, string>(
 418            new Dictionary<string, string>(StringComparer.Ordinal));
 19
 9020    private AuditLedgerRecord(
 9021        string recordId,
 9022        string? schemaVersion,
 9023        string eventId,
 9024        string? decisionReceiptId,
 9025        DateTimeOffset occurredUtc,
 9026        DateTimeOffset recordedUtc,
 9027        string actorId,
 9028        GovernanceActorType actorType,
 9029        string? actorDisplayName,
 9030        string operationName,
 9031        string outcome,
 9032        IReadOnlyList<string> reasonCodes,
 9033        string? correlationId,
 9034        string? traceId,
 9035        string? spanId,
 9036        string? parentSpanId,
 9037        long? decisionLatencyMs,
 9038        string? constraintSetHash,
 9039        int? constraintCount,
 9040        double? riskScore,
 9041        string? policyScope,
 9042        string? tenantHash,
 9043        string? organizationHash,
 9044        string? emitterStatus,
 9045        string? emitterProvider,
 9046        long? outboxSequence,
 9047        string? gatewayExecutionId,
 9048        string? decisionStage,
 9049        string? policyVersion,
 9050        string? policyHash,
 9051        string? handshakeId,
 9052        string? acknowledgmentId,
 9053        string? capabilityTokenId,
 9054        string? previousRecordHash,
 9055        string? recordHash,
 9056        string? signatureKeyId,
 9057        string? signatureAlgorithm,
 9058        string? signatureValue,
 9059        string? signingHash,
 9060        string? signatureKeyVersion,
 9061        string? signatureProvider,
 9062        DateTimeOffset? signedUtc,
 9063        IReadOnlyDictionary<string, string> metadata)
 64    {
 9065        ArgumentException.ThrowIfNullOrWhiteSpace(recordId);
 9066        ArgumentException.ThrowIfNullOrWhiteSpace(eventId);
 8967        ArgumentException.ThrowIfNullOrWhiteSpace(actorId);
 8868        ArgumentException.ThrowIfNullOrWhiteSpace(operationName);
 8769        ArgumentException.ThrowIfNullOrWhiteSpace(outcome);
 70
 8671        RecordId = recordId.Trim();
 8672        SchemaVersion = GovernanceSchemaVersions.Normalize(schemaVersion);
 8673        EventId = eventId.Trim();
 8674        DecisionReceiptId = NormalizeOptional(decisionReceiptId) ?? EventId;
 8675        OccurredUtc = occurredUtc.ToUniversalTime();
 8676        RecordedUtc = recordedUtc.ToUniversalTime();
 8677        ActorId = actorId.Trim();
 8678        ActorType = actorType;
 8679        ActorDisplayName = NormalizeOptional(actorDisplayName);
 8680        OperationName = operationName.Trim();
 8681        Outcome = outcome.Trim();
 8682        ReasonCodes = reasonCodes;
 8683        CorrelationId = NormalizeOptional(correlationId);
 8684        TraceId = NormalizeOptional(traceId);
 8685        SpanId = NormalizeOptional(spanId);
 8686        ParentSpanId = NormalizeOptional(parentSpanId);
 8687        DecisionLatencyMs = NormalizeNonNegative(decisionLatencyMs, nameof(decisionLatencyMs));
 8688        ConstraintSetHash = NormalizeOptional(constraintSetHash);
 8689        ConstraintCount = NormalizeNonNegative(constraintCount, nameof(constraintCount));
 8690        RiskScore = NormalizeRiskScore(riskScore);
 8691        PolicyScope = NormalizeOptional(policyScope);
 8692        TenantHash = NormalizeOptional(tenantHash);
 8693        OrganizationHash = NormalizeOptional(organizationHash);
 8694        EmitterStatus = NormalizeOptional(emitterStatus);
 8695        EmitterProvider = NormalizeOptional(emitterProvider);
 8696        OutboxSequence = NormalizeNonNegative(outboxSequence, nameof(outboxSequence));
 8697        GatewayExecutionId = NormalizeOptional(gatewayExecutionId);
 8698        DecisionStage = NormalizeOptional(decisionStage);
 8699        PolicyVersion = NormalizeOptional(policyVersion);
 86100        PolicyHash = NormalizeOptional(policyHash);
 86101        HandshakeId = NormalizeOptional(handshakeId);
 86102        AcknowledgmentId = NormalizeOptional(acknowledgmentId);
 86103        CapabilityTokenId = NormalizeOptional(capabilityTokenId);
 86104        PreviousRecordHash = NormalizeOptional(previousRecordHash);
 86105        RecordHash = NormalizeOptional(recordHash);
 86106        SignatureKeyId = NormalizeOptional(signatureKeyId);
 86107        SignatureAlgorithm = NormalizeOptional(signatureAlgorithm);
 86108        SignatureValue = NormalizeOptional(signatureValue);
 86109        SigningHash = NormalizeOptional(signingHash);
 86110        SignatureKeyVersion = NormalizeOptional(signatureKeyVersion);
 86111        SignatureProvider = NormalizeOptional(signatureProvider);
 86112        SignedUtc = signedUtc?.ToUniversalTime();
 86113        SigningMetadata = SigningMetadataValue.Create(
 86114            SigningHash,
 86115            null,
 86116            SignatureValue,
 86117            SignatureAlgorithm,
 86118            SignatureKeyId,
 86119            SignatureKeyVersion,
 86120            SignatureProvider,
 86121            SignedUtc);
 86122        Metadata = metadata;
 86123    }
 124
 125    /// <summary>
 126    /// Gets the unique identifier of this ledger record.
 127    /// </summary>
 128    /// <remarks>
 129    /// A new identifier is generated when none is supplied to <see cref="FromDecisionReceipt" />.
 130    /// </remarks>
 131    public string RecordId { get; }
 132
 133    /// <summary>
 134    /// Gets the normalized serialized schema version for the record shape.
 135    /// </summary>
 136    public string SchemaVersion { get; }
 137
 138    /// <summary>
 139    /// Gets the stable audit event identifier copied from the source decision receipt.
 140    /// </summary>
 141    public string EventId { get; }
 142
 143    /// <summary>
 144    /// Gets the decision receipt identifier copied from the source receipt.
 145    /// </summary>
 146    /// <remarks>
 147    /// Falls back to <see cref="EventId" /> when the source receipt does not supply a distinct identifier, so this
 148    /// value is never <see langword="null" />.
 149    /// </remarks>
 150    public string DecisionReceiptId { get; }
 151
 152    /// <summary>
 153    /// Gets the UTC timestamp when the audited event occurred.
 154    /// </summary>
 155    public DateTimeOffset OccurredUtc { get; }
 156
 157    /// <summary>
 158    /// Gets the UTC timestamp when this record was captured for the ledger.
 159    /// </summary>
 160    public DateTimeOffset RecordedUtc { get; }
 161
 162    /// <summary>
 163    /// Gets the stable actor identifier associated with the event.
 164    /// </summary>
 165    public string ActorId { get; }
 166
 167    /// <summary>
 168    /// Gets the actor type associated with the event.
 169    /// </summary>
 170    public GovernanceActorType ActorType { get; }
 171
 172    /// <summary>
 173    /// Gets the optional display name or label associated with the actor.
 174    /// </summary>
 175    public string? ActorDisplayName { get; }
 176
 177    /// <summary>
 178    /// Gets the operation name associated with the audited event.
 179    /// </summary>
 180    public string OperationName { get; }
 181
 182    /// <summary>
 183    /// Gets the governance, constraint, or host-defined outcome associated with the event.
 184    /// </summary>
 185    public string Outcome { get; }
 186
 187    /// <summary>
 188    /// Gets the trimmed, non-empty machine-readable reason codes associated with the event.
 189    /// </summary>
 190    public IReadOnlyList<string> ReasonCodes { get; }
 191
 192    /// <summary>
 193    /// Gets the correlation identifier associated with the event, when supplied by the host.
 194    /// </summary>
 195    public string? CorrelationId { get; }
 196
 197    /// <summary>
 198    /// Gets the trace identifier associated with the event, when supplied by the host.
 199    /// </summary>
 200    public string? TraceId { get; }
 201
 202    /// <summary>
 203    /// Gets the span identifier associated with the event, when supplied by the host or observability adapter.
 204    /// </summary>
 205    public string? SpanId { get; }
 206
 207    /// <summary>
 208    /// Gets the parent span identifier associated with the event, when supplied by the host or observability adapter.
 209    /// </summary>
 210    public string? ParentSpanId { get; }
 211
 212    /// <summary>
 213    /// Gets the non-negative decision latency in milliseconds, when supplied by the host.
 214    /// </summary>
 215    public long? DecisionLatencyMs { get; }
 216
 217    /// <summary>
 218    /// Gets the hash of the evaluated constraint set, when supplied by the host.
 219    /// </summary>
 220    public string? ConstraintSetHash { get; }
 221
 222    /// <summary>
 223    /// Gets the non-negative number of constraints evaluated for the decision, when supplied by the host.
 224    /// </summary>
 225    public int? ConstraintCount { get; }
 226
 227    /// <summary>
 228    /// Gets the finite, non-negative host-defined risk score associated with the decision, when supplied by the host.
 229    /// </summary>
 230    public double? RiskScore { get; }
 231
 232    /// <summary>
 233    /// Gets the policy scope associated with the decision, when supplied by the host.
 234    /// </summary>
 235    public string? PolicyScope { get; }
 236
 237    /// <summary>
 238    /// Gets the privacy-preserving tenant hash associated with the decision, when supplied by the host.
 239    /// </summary>
 240    public string? TenantHash { get; }
 241
 242    /// <summary>
 243    /// Gets the privacy-preserving organization hash associated with the decision, when supplied by the host.
 244    /// </summary>
 245    public string? OrganizationHash { get; }
 246
 247    /// <summary>
 248    /// Gets the provider-neutral emitter status, when supplied by the host or outbox provider.
 249    /// </summary>
 250    public string? EmitterStatus { get; }
 251
 252    /// <summary>
 253    /// Gets the provider-neutral emitter provider name, when supplied by the host or outbox provider.
 254    /// </summary>
 255    public string? EmitterProvider { get; }
 256
 257    /// <summary>
 258    /// Gets the non-negative outbox sequence associated with the event, when supplied by the host or outbox provider.
 259    /// </summary>
 260    public long? OutboxSequence { get; }
 261
 262    /// <summary>
 263    /// Gets the gateway execution identifier associated with the event, when supplied by the host or gateway provider.
 264    /// </summary>
 265    public string? GatewayExecutionId { get; }
 266
 267    /// <summary>
 268    /// Gets the provider-neutral decision stage associated with the event, when supplied by the host.
 269    /// </summary>
 270    public string? DecisionStage { get; }
 271
 272    /// <summary>
 273    /// Gets the policy version associated with the event, when supplied by the host.
 274    /// </summary>
 275    public string? PolicyVersion { get; }
 276
 277    /// <summary>
 278    /// Gets the policy hash associated with the event, when supplied by the host.
 279    /// </summary>
 280    public string? PolicyHash { get; }
 281
 282    /// <summary>
 283    /// Gets the liability handshake identifier linked to this record, when supplied.
 284    /// </summary>
 285    public string? HandshakeId { get; }
 286
 287    /// <summary>
 288    /// Gets the handshake acknowledgment identifier linked to this record, when supplied.
 289    /// </summary>
 290    public string? AcknowledgmentId { get; }
 291
 292    /// <summary>
 293    /// Gets the capability token or grant identifier linked to this record, when supplied.
 294    /// </summary>
 295    public string? CapabilityTokenId { get; }
 296
 297    /// <inheritdoc />
 33298    string? IDecisionReceipt.CapabilityGrantId => CapabilityTokenId;
 299
 300    /// <summary>
 301    /// Gets the hash of the preceding ledger record, when the host chains records for tamper evidence.
 302    /// </summary>
 303    public string? PreviousRecordHash { get; }
 304
 305    /// <summary>
 306    /// Gets the hash of this ledger record, when computed by the host or ledger store.
 307    /// </summary>
 308    public string? RecordHash { get; }
 309
 310    /// <summary>
 311    /// Gets the hash that was signed or is intended to be signed, when supplied by the host or signing provider.
 312    /// </summary>
 313    public string? SigningHash { get; }
 314
 315    /// <summary>
 316    /// Gets the identifier of the key used to sign the record, when signed.
 317    /// </summary>
 318    public string? SignatureKeyId { get; }
 319
 320    /// <summary>
 321    /// Gets the version of the key used to sign the record, when supplied.
 322    /// </summary>
 323    public string? SignatureKeyVersion { get; }
 324
 325    /// <summary>
 326    /// Gets the signature algorithm used to sign the record, when signed.
 327    /// </summary>
 328    public string? SignatureAlgorithm { get; }
 329
 330    /// <summary>
 331    /// Gets the encoded signature value for the record, when signed.
 332    /// </summary>
 333    public string? SignatureValue { get; }
 334
 335    /// <summary>
 336    /// Gets the name of the signing provider that produced the signature, when supplied.
 337    /// </summary>
 338    public string? SignatureProvider { get; }
 339
 340    /// <summary>
 341    /// Gets the UTC timestamp when the record was signed, when supplied.
 342    /// </summary>
 343    public DateTimeOffset? SignedUtc { get; }
 344
 345    /// <summary>
 346    /// Gets the provider-neutral signing metadata assembled from the individual signature properties on this record.
 347    /// </summary>
 348    public SigningMetadataValue SigningMetadata { get; }
 349
 350    /// <summary>
 351    /// Gets the framework-neutral audit metadata, merged from the source receipt and any additional metadata supplied
 352    /// when the record was created.
 353    /// </summary>
 354    public IReadOnlyDictionary<string, string> Metadata { get; }
 355
 356    /// <summary>
 357    /// Gets a value indicating whether the record carries at least one reason code.
 358    /// </summary>
 6359    public bool HasReasonCodes => ReasonCodes.Count > 0;
 360
 361    /// <summary>
 362    /// Gets a value indicating whether the record carries at least one metadata entry.
 363    /// </summary>
 10364    public bool HasMetadata => Metadata.Count > 0;
 365
 366    /// <summary>
 367    /// Creates a persistence-ready ledger record from a decision receipt, attaching optional handshake, capability,
 368    /// hash-chain, and signature references.
 369    /// </summary>
 370    /// <param name="receipt">The decision receipt to capture.</param>
 371    /// <param name="recordId">The ledger record identifier; a new identifier is generated when omitted or blank.</param
 372    /// <param name="recordedUtc">The capture timestamp; defaults to the current UTC time.</param>
 373    /// <param name="handshakeId">The optional liability handshake identifier to link.</param>
 374    /// <param name="acknowledgmentId">The optional handshake acknowledgment identifier to link.</param>
 375    /// <param name="capabilityTokenId">
 376    /// The optional capability token or grant identifier to link. When omitted or blank, the receipt's
 377    /// <see cref="IDecisionReceipt.CapabilityGrantId" /> is used.
 378    /// </param>
 379    /// <param name="previousRecordHash">The optional hash of the preceding ledger record.</param>
 380    /// <param name="recordHash">The optional hash of this ledger record.</param>
 381    /// <param name="signatureKeyId">The optional identifier of the signing key.</param>
 382    /// <param name="signatureAlgorithm">The optional signature algorithm.</param>
 383    /// <param name="signatureValue">The optional encoded signature value.</param>
 384    /// <param name="signingHash">The optional hash that was signed.</param>
 385    /// <param name="signatureKeyVersion">The optional version of the signing key.</param>
 386    /// <param name="signatureProvider">The optional name of the signing provider.</param>
 387    /// <param name="signedUtc">The optional UTC timestamp when the record was signed.</param>
 388    /// <param name="metadata">Optional metadata merged over the receipt metadata; entries with the same key win.</param
 389    /// <param name="schemaVersion">The schema version; defaults to the receipt schema version.</param>
 390    /// <returns>A normalized ledger record with optional values trimmed and blank values treated as absent.</returns>
 391    /// <exception cref="ArgumentNullException"><paramref name="receipt" /> is <see langword="null" />.</exception>
 392    /// <exception cref="ArgumentException">A required receipt value, such as the event, actor, operation, or outcome, i
 393    /// <exception cref="ArgumentOutOfRangeException">A receipt latency, constraint count, outbox sequence, or risk scor
 394    public static AuditLedgerRecord FromDecisionReceipt(
 395        IDecisionReceipt receipt,
 396        string? recordId = null,
 397        DateTimeOffset? recordedUtc = null,
 398        string? handshakeId = null,
 399        string? acknowledgmentId = null,
 400        string? capabilityTokenId = null,
 401        string? previousRecordHash = null,
 402        string? recordHash = null,
 403        string? signatureKeyId = null,
 404        string? signatureAlgorithm = null,
 405        string? signatureValue = null,
 406        string? signingHash = null,
 407        string? signatureKeyVersion = null,
 408        string? signatureProvider = null,
 409        DateTimeOffset? signedUtc = null,
 410        IReadOnlyDictionary<string, string>? metadata = null,
 411        string? schemaVersion = null)
 412    {
 91413        ArgumentNullException.ThrowIfNull(receipt);
 414
 90415        return new AuditLedgerRecord(
 90416            NormalizeIdentifier(recordId),
 90417            schemaVersion ?? receipt.SchemaVersion,
 90418            receipt.EventId,
 90419            receipt.DecisionReceiptId,
 90420            receipt.OccurredUtc,
 90421            recordedUtc ?? DateTimeOffset.UtcNow,
 90422            receipt.ActorId,
 90423            receipt.ActorType,
 90424            receipt.ActorDisplayName,
 90425            receipt.OperationName,
 90426            receipt.Outcome,
 90427            NormalizeReasonCodes(receipt.ReasonCodes),
 90428            receipt.CorrelationId,
 90429            receipt.TraceId,
 90430            receipt.SpanId,
 90431            receipt.ParentSpanId,
 90432            receipt.DecisionLatencyMs,
 90433            receipt.ConstraintSetHash,
 90434            receipt.ConstraintCount,
 90435            receipt.RiskScore,
 90436            receipt.PolicyScope,
 90437            receipt.TenantHash,
 90438            receipt.OrganizationHash,
 90439            receipt.EmitterStatus,
 90440            receipt.EmitterProvider,
 90441            receipt.OutboxSequence,
 90442            receipt.GatewayExecutionId,
 90443            receipt.DecisionStage,
 90444            receipt.PolicyVersion,
 90445            receipt.PolicyHash,
 90446            handshakeId,
 90447            acknowledgmentId,
 90448            string.IsNullOrWhiteSpace(capabilityTokenId) ? receipt.CapabilityGrantId : capabilityTokenId,
 90449            previousRecordHash,
 90450            recordHash,
 90451            signatureKeyId,
 90452            signatureAlgorithm,
 90453            signatureValue,
 90454            signingHash,
 90455            signatureKeyVersion,
 90456            signatureProvider,
 90457            signedUtc,
 90458            NormalizeMetadata(receipt.Metadata, metadata));
 459    }
 460
 461    private static string NormalizeIdentifier(string? identifier)
 462    {
 90463        return string.IsNullOrWhiteSpace(identifier)
 90464            ? Guid.NewGuid().ToString("N")
 90465            : identifier.Trim();
 466    }
 467
 468    private static string? NormalizeOptional(string? value)
 469    {
 2322470        return string.IsNullOrWhiteSpace(value)
 2322471            ? null
 2322472            : value.Trim();
 473    }
 474
 475    private static long? NormalizeNonNegative(long? value, string parameterName)
 476    {
 172477        return value < 0
 172478            ? throw new ArgumentOutOfRangeException(parameterName, value, "Value must be greater than or equal to zero."
 172479            : value;
 480    }
 481
 482    private static int? NormalizeNonNegative(int? value, string parameterName)
 483    {
 86484        return value < 0
 86485            ? throw new ArgumentOutOfRangeException(parameterName, value, "Value must be greater than or equal to zero."
 86486            : value;
 487    }
 488
 489    private static double? NormalizeRiskScore(double? riskScore)
 490    {
 86491        return riskScore is null
 86492            ? null
 86493            : double.IsNaN(riskScore.Value) || double.IsInfinity(riskScore.Value) || riskScore.Value < 0
 86494            ? throw new ArgumentOutOfRangeException(nameof(riskScore), riskScore, "Risk score must be a finite value gre
 86495            : riskScore;
 496    }
 497
 498    private static ReadOnlyCollection<string> NormalizeReasonCodes(IEnumerable<string>? reasonCodes)
 499    {
 90500        string[] normalizedReasonCodes = reasonCodes?
 90501            .Where(reasonCode => !string.IsNullOrWhiteSpace(reasonCode))
 90502            .Select(reasonCode => reasonCode.Trim())
 90503            .ToArray() ?? [];
 504
 90505        return normalizedReasonCodes.Length == 0
 90506            ? EmptyReasonCodes
 90507            : Array.AsReadOnly(normalizedReasonCodes);
 508    }
 509
 510    private static IReadOnlyDictionary<string, string> NormalizeMetadata(
 511        params IReadOnlyDictionary<string, string>?[] metadataSets)
 512    {
 90513        Dictionary<string, string> normalizedMetadata = new(StringComparer.Ordinal);
 514
 540515        foreach (IReadOnlyDictionary<string, string>? metadata in metadataSets)
 516        {
 180517            if (metadata is null || metadata.Count == 0)
 518            {
 519                continue;
 520            }
 521
 228522            foreach (KeyValuePair<string, string> item in metadata)
 523            {
 70524                if (string.IsNullOrWhiteSpace(item.Key))
 525                {
 526                    continue;
 527                }
 528
 67529                normalizedMetadata[item.Key.Trim()] = item.Value?.Trim() ?? string.Empty;
 530            }
 531        }
 532
 90533        return normalizedMetadata.Count == 0
 90534            ? EmptyMetadata
 90535            : new ReadOnlyDictionary<string, string>(normalizedMetadata);
 536    }
 537}

Methods/Properties

.cctor()
.ctor(System.String,System.String,System.String,System.String,System.DateTimeOffset,System.DateTimeOffset,System.String,AsiBackbone.Core.Actors.GovernanceActorType,System.String,System.String,System.String,System.Collections.Generic.IReadOnlyList`1<System.String>,System.String,System.String,System.String,System.String,System.Nullable`1<System.Int64>,System.String,System.Nullable`1<System.Int32>,System.Nullable`1<System.Double>,System.String,System.String,System.String,System.String,System.String,System.Nullable`1<System.Int64>,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.Nullable`1<System.DateTimeOffset>,System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.String>)
AsiBackbone.Core.Audit.IDecisionReceipt.get_CapabilityGrantId()
get_HasReasonCodes()
get_HasMetadata()
FromDecisionReceipt(AsiBackbone.Core.Audit.IDecisionReceipt,System.String,System.Nullable`1<System.DateTimeOffset>,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.Nullable`1<System.DateTimeOffset>,System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.String>,System.String)
NormalizeIdentifier(System.String)
NormalizeOptional(System.String)
NormalizeNonNegative(System.Nullable`1<System.Int64>,System.String)
NormalizeNonNegative(System.Nullable`1<System.Int32>,System.String)
NormalizeRiskScore(System.Nullable`1<System.Double>)
NormalizeReasonCodes(System.Collections.Generic.IEnumerable`1<System.String>)
NormalizeMetadata(System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.String>[])