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
SubscriptionIdstringThe unique identifier of the subscription.
CustomerIdstringThe unique identifier of the customer.
TrialEndDateTimeOffsetThe end date of the trial period.
ConvertedToPaidboolWhether the subscription converted to a paid subscription.
Properties
ConvertedToPaid
Whether the subscription converted to a paid subscription.
public bool ConvertedToPaid { 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
SubscriptionId
The unique identifier of the subscription.
public string SubscriptionId { get; init; }
Property Value
TrialEnd
The end date of the trial period.
public DateTimeOffset TrialEnd { get; init; }