Table of Contents

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

SubscriptionId string

The unique identifier of the subscription.

CustomerId string

The unique identifier of the customer.

PlanId string

The identifier of the subscribed plan.

TrialStart DateTimeOffset

The start date of the trial period.

TrialEnd DateTimeOffset

The end date of the trial period.

Properties

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

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

TrialStart

The start date of the trial period.

public DateTimeOffset TrialStart { get; init; }

Property Value

DateTimeOffset