Table of Contents

Class ErasureRequest

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

Represents a GDPR Article 17 erasure request.

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

Remarks

The request captures all information needed to process an erasure:

  • Data subject identification
  • Legal basis for erasure
  • Scope and categories
  • Audit trail information

Properties

DataCategories

Gets specific data categories to erase (null = all personal data).

public IReadOnlyList<string>? DataCategories { get; init; }

Property Value

IReadOnlyList<string>

DataSubjectId

Gets the data subject identifier (user ID, email, etc.).

public required string DataSubjectId { get; init; }

Property Value

string

ExternalReference

Gets the external ticket/case reference for audit trail.

public string? ExternalReference { get; init; }

Property Value

string

GracePeriodOverride

Gets an override for the grace period (null = use default).

public TimeSpan? GracePeriodOverride { get; init; }

Property Value

TimeSpan?

IdType

Gets the type of identifier used to identify the data subject.

public required DataSubjectIdType IdType { get; init; }

Property Value

DataSubjectIdType

LegalBasis

Gets the legal basis for the request (Article 17(1) grounds).

public required ErasureLegalBasis LegalBasis { get; init; }

Property Value

ErasureLegalBasis

Metadata

Gets additional metadata for the request.

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

Property Value

IReadOnlyDictionary<string, string>

RequestId

Gets the unique identifier for this request.

public Guid RequestId { get; init; }

Property Value

Guid

RequestedAt

Gets the timestamp when the request was created.

public DateTimeOffset RequestedAt { get; init; }

Property Value

DateTimeOffset

RequestedBy

Gets the identity of the operator who initiated the request.

public required string RequestedBy { get; init; }

Property Value

string

Scope

Gets the scope of erasure (User, Tenant, or Selective).

public ErasureScope Scope { get; init; }

Property Value

ErasureScope

TenantId

Gets the tenant context for multi-tenant scenarios.

public string? TenantId { get; init; }

Property Value

string