Table of Contents

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

SubscriptionId string

The unique identifier of the subscription.

CustomerId string

The unique identifier of the customer.

CancellationReason string

The reason for cancellation, if provided.

EffectiveDate DateTimeOffset

The date when the cancellation takes effect.

ImmediateCancel bool

Whether the subscription was cancelled immediately.

Properties

CancellationReason

The reason for cancellation, if provided.

public string? CancellationReason { get; init; }

Property Value

string

CustomerId

The unique identifier of the customer.

public string CustomerId { get; init; }

Property Value

string

EffectiveDate

The date when the cancellation takes effect.

public DateTimeOffset EffectiveDate { 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

ImmediateCancel

Whether the subscription was cancelled immediately.

public bool ImmediateCancel { get; init; }

Property Value

bool

SubscriptionId

The unique identifier of the subscription.

public string SubscriptionId { get; init; }

Property Value

string