Table of Contents

Class SubscriptionPausedEvent

Namespace
Compendium.Core.Domain.Events.Integration
Assembly
Compendium.Core.dll

Integration event raised when a subscription is paused.

public sealed record SubscriptionPausedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<SubscriptionPausedEvent>
Inheritance
SubscriptionPausedEvent
Implements
Inherited Members

Constructors

SubscriptionPausedEvent(string, string, DateTimeOffset, DateTimeOffset?)

Integration event raised when a subscription is paused.

public SubscriptionPausedEvent(string SubscriptionId, string CustomerId, DateTimeOffset PausedAt, DateTimeOffset? ResumeAt)

Parameters

SubscriptionId string

The unique identifier of the subscription.

CustomerId string

The unique identifier of the customer.

PausedAt DateTimeOffset

The timestamp when the subscription was paused.

ResumeAt DateTimeOffset?

The timestamp when the subscription will resume, if scheduled.

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

PausedAt

The timestamp when the subscription was paused.

public DateTimeOffset PausedAt { get; init; }

Property Value

DateTimeOffset

ResumeAt

The timestamp when the subscription will resume, if scheduled.

public DateTimeOffset? ResumeAt { get; init; }

Property Value

DateTimeOffset?

SubscriptionId

The unique identifier of the subscription.

public string SubscriptionId { get; init; }

Property Value

string