Table of Contents

Class ConsentRecord

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Represents a consent record for GDPR Article 7 compliance.

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

Properties

ExpiresAt

Gets the timestamp when consent expires, if applicable.

public DateTimeOffset? ExpiresAt { get; init; }

Property Value

DateTimeOffset?

GrantedAt

Gets the timestamp when consent was granted.

public DateTimeOffset GrantedAt { get; init; }

Property Value

DateTimeOffset

IsWithdrawn

Gets a value indicating whether the consent has been withdrawn.

public bool IsWithdrawn { get; init; }

Property Value

bool

LegalBasis

Gets the legal basis for the consent.

public LegalBasis LegalBasis { get; init; }

Property Value

LegalBasis

Purpose

Gets the processing purpose for which consent is granted.

public required string Purpose { get; init; }

Property Value

string

SubjectId

Gets the data subject identifier.

public required string SubjectId { get; init; }

Property Value

string

WithdrawnAt

Gets the timestamp when consent was withdrawn, if applicable.

public DateTimeOffset? WithdrawnAt { get; init; }

Property Value

DateTimeOffset?