Class SubscriptionCreatedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a subscription is created.
public sealed record SubscriptionCreatedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<SubscriptionCreatedEvent>
- Inheritance
-
SubscriptionCreatedEvent
- Implements
- Inherited Members
Constructors
SubscriptionCreatedEvent(string, string, string, string, DateTimeOffset, DateTimeOffset)
Integration event raised when a subscription is created.
public SubscriptionCreatedEvent(string SubscriptionId, string CustomerId, string PlanId, string Status, DateTimeOffset BillingPeriodStart, DateTimeOffset BillingPeriodEnd)
Parameters
SubscriptionIdstringThe unique identifier of the subscription.
CustomerIdstringThe unique identifier of the customer.
PlanIdstringThe identifier of the subscribed plan.
StatusstringThe status of the subscription.
BillingPeriodStartDateTimeOffsetThe start date of the billing period.
BillingPeriodEndDateTimeOffsetThe end date of the billing period.
Properties
BillingPeriodEnd
The end date of the billing period.
public DateTimeOffset BillingPeriodEnd { get; init; }
Property Value
BillingPeriodStart
The start date of the billing period.
public DateTimeOffset BillingPeriodStart { 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
PlanId
The identifier of the subscribed plan.
public string PlanId { get; init; }
Property Value
Status
The status of the subscription.
public string Status { get; init; }
Property Value
SubscriptionId
The unique identifier of the subscription.
public string SubscriptionId { get; init; }