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
TenantIdstringThe unique identifier of the tenant.
NamestringThe name of the tenant.
OldPlanstringThe previous plan.
NewPlanstringThe new plan.
ChangeTypestringThe type of change (upgrade, downgrade, renewal).
ChangedAtDateTimeOffsetThe timestamp when the plan was changed.
Properties
ChangeType
The type of change (upgrade, downgrade, renewal).
public string ChangeType { get; init; }
Property Value
ChangedAt
The timestamp when the plan was changed.
public DateTimeOffset ChangedAt { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
Name
The name of the tenant.
public string Name { get; init; }
Property Value
NewPlan
The new plan.
public string NewPlan { get; init; }
Property Value
OldPlan
The previous plan.
public string? OldPlan { get; init; }