Table of Contents

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

SubscriptionId string

The unique identifier of the subscription.

CustomerId string

The unique identifier of the customer.

PlanId string

The identifier of the subscribed plan.

PreviousPlanId string

The identifier of the previous plan, if changed.

Status string

The status of the subscription.

ChangeType string

The 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

string

CustomerId

The unique identifier of the customer.

public string CustomerId { get; init; }

Property Value

string

EventType

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

public override string EventType { get; }

Property Value

string

PlanId

The identifier of the subscribed plan.

public string PlanId { get; init; }

Property Value

string

PreviousPlanId

The identifier of the previous plan, if changed.

public string? PreviousPlanId { get; init; }

Property Value

string

Status

The status of the subscription.

public string Status { get; init; }

Property Value

string

SubscriptionId

The unique identifier of the subscription.

public string SubscriptionId { get; init; }

Property Value

string