Class SubscriptionTrialStartedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a subscription enters a trial period.
public sealed record SubscriptionTrialStartedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<SubscriptionTrialStartedEvent>
- Inheritance
-
SubscriptionTrialStartedEvent
- Implements
- Inherited Members
Constructors
SubscriptionTrialStartedEvent(string, string, string, DateTimeOffset, DateTimeOffset)
Integration event raised when a subscription enters a trial period.
public SubscriptionTrialStartedEvent(string SubscriptionId, string CustomerId, string PlanId, DateTimeOffset TrialStart, DateTimeOffset TrialEnd)
Parameters
SubscriptionIdstringThe unique identifier of the subscription.
CustomerIdstringThe unique identifier of the customer.
PlanIdstringThe identifier of the subscribed plan.
TrialStartDateTimeOffsetThe start date of the trial period.
TrialEndDateTimeOffsetThe end date of the trial period.
Properties
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
PlanId
The identifier of the subscribed plan.
public string PlanId { get; init; }
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; }
Property Value
TrialStart
The start date of the trial period.
public DateTimeOffset TrialStart { get; init; }