Table of Contents

Class TenantPlanChangedEvent

Namespace
Compendium.Core.Domain.Events.Integration
Assembly
Compendium.Core.dll

Integration event raised when a tenant's plan is changed.

public sealed record TenantPlanChangedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<TenantPlanChangedEvent>
Inheritance
TenantPlanChangedEvent
Implements
Inherited Members

Constructors

TenantPlanChangedEvent(string, string, string?, string, string, DateTimeOffset)

Integration event raised when a tenant's plan is changed.

public TenantPlanChangedEvent(string TenantId, string Name, string? OldPlan, string NewPlan, string ChangeType, DateTimeOffset ChangedAt)

Parameters

TenantId string

The unique identifier of the tenant.

Name string

The name of the tenant.

OldPlan string

The previous plan.

NewPlan string

The new plan.

ChangeType string

The type of change (upgrade, downgrade, renewal).

ChangedAt DateTimeOffset

The timestamp when the plan was changed.

Properties

ChangeType

The type of change (upgrade, downgrade, renewal).

public string ChangeType { get; init; }

Property Value

string

ChangedAt

The timestamp when the plan was changed.

public DateTimeOffset ChangedAt { get; init; }

Property Value

DateTimeOffset

EventType

Gets the name of the event type for serialization and routing purposes.

public override string EventType { get; }

Property Value

string

Name

The name of the tenant.

public string Name { get; init; }

Property Value

string

NewPlan

The new plan.

public string NewPlan { get; init; }

Property Value

string

OldPlan

The previous plan.

public string? OldPlan { get; init; }

Property Value

string