Class SubscriptionUpdatedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a subscription is updated.
public sealed record SubscriptionUpdatedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<SubscriptionUpdatedEvent>
- Inheritance
-
SubscriptionUpdatedEvent
- Implements
- Inherited Members
Constructors
SubscriptionUpdatedEvent(string, string, string, string?, string, string)
Integration event raised when a subscription is updated.
public SubscriptionUpdatedEvent(string SubscriptionId, string CustomerId, string PlanId, string? PreviousPlanId, string Status, string ChangeType)
Parameters
SubscriptionIdstringThe unique identifier of the subscription.
CustomerIdstringThe unique identifier of the customer.
PlanIdstringThe identifier of the subscribed plan.
PreviousPlanIdstringThe identifier of the previous plan, if changed.
StatusstringThe status of the subscription.
ChangeTypestringThe type of change (e.g., upgrade, downgrade, renewal).
Properties
ChangeType
The type of change (e.g., upgrade, downgrade, renewal).
public string ChangeType { get; init; }
Property Value
CustomerId
The unique identifier of the customer.
public string CustomerId { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
PlanId
The identifier of the subscribed plan.
public string PlanId { get; init; }
Property Value
PreviousPlanId
The identifier of the previous plan, if changed.
public string? PreviousPlanId { get; init; }
Property Value
Status
The status of the subscription.
public string Status { get; init; }
Property Value
SubscriptionId
The unique identifier of the subscription.
public string SubscriptionId { get; init; }