Table of Contents

Class SubscriptionTrialEndedEvent

Namespace
Compendium.Core.Domain.Events.Integration
Assembly
Compendium.Core.dll

Integration event raised when a subscription trial ends.

public sealed record SubscriptionTrialEndedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<SubscriptionTrialEndedEvent>
Inheritance
SubscriptionTrialEndedEvent
Implements
Inherited Members

Constructors

SubscriptionTrialEndedEvent(string, string, DateTimeOffset, bool)

Integration event raised when a subscription trial ends.

public SubscriptionTrialEndedEvent(string SubscriptionId, string CustomerId, DateTimeOffset TrialEnd, bool ConvertedToPaid)

Parameters

SubscriptionId string

The unique identifier of the subscription.

CustomerId string

The unique identifier of the customer.

TrialEnd DateTimeOffset

The end date of the trial period.

ConvertedToPaid bool

Whether the subscription converted to a paid subscription.

Properties

ConvertedToPaid

Whether the subscription converted to a paid subscription.

public bool ConvertedToPaid { get; init; }

Property Value

bool

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

SubscriptionId

The unique identifier of the subscription.

public string SubscriptionId { get; init; }

Property Value

string

TrialEnd

The end date of the trial period.

public DateTimeOffset TrialEnd { get; init; }

Property Value

DateTimeOffset