Class SubscriptionCancelledEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a subscription is cancelled.
public sealed record SubscriptionCancelledEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<SubscriptionCancelledEvent>
- Inheritance
-
SubscriptionCancelledEvent
- Implements
- Inherited Members
Constructors
SubscriptionCancelledEvent(string, string, string?, DateTimeOffset, bool)
Integration event raised when a subscription is cancelled.
public SubscriptionCancelledEvent(string SubscriptionId, string CustomerId, string? CancellationReason, DateTimeOffset EffectiveDate, bool ImmediateCancel)
Parameters
SubscriptionIdstringThe unique identifier of the subscription.
CustomerIdstringThe unique identifier of the customer.
CancellationReasonstringThe reason for cancellation, if provided.
EffectiveDateDateTimeOffsetThe date when the cancellation takes effect.
ImmediateCancelboolWhether the subscription was cancelled immediately.
Properties
CancellationReason
The reason for cancellation, if provided.
public string? CancellationReason { get; init; }
Property Value
CustomerId
The unique identifier of the customer.
public string CustomerId { get; init; }
Property Value
EffectiveDate
The date when the cancellation takes effect.
public DateTimeOffset EffectiveDate { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
ImmediateCancel
Whether the subscription was cancelled immediately.
public bool ImmediateCancel { get; init; }
Property Value
SubscriptionId
The unique identifier of the subscription.
public string SubscriptionId { get; init; }