Table of Contents

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

SubscriptionId string

The unique identifier of the subscription.

CustomerId string

The unique identifier of the customer.

PlanId string

The identifier of the subscribed plan.

Status string

The status of the subscription.

BillingPeriodStart DateTimeOffset

The start date of the billing period.

BillingPeriodEnd DateTimeOffset

The end date of the billing period.

Properties

BillingPeriodEnd

The end date of the billing period.

public DateTimeOffset BillingPeriodEnd { get; init; }

Property Value

DateTimeOffset

BillingPeriodStart

The start date of the billing period.

public DateTimeOffset BillingPeriodStart { get; init; }

Property Value

DateTimeOffset

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

Status

The status of the subscription.

public string Status { get; init; }

Property Value

string

SubscriptionId

The unique identifier of the subscription.

public string SubscriptionId { get; init; }

Property Value

string