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
SubscriptionIdstringThe unique identifier of the subscription.
CustomerIdstringThe unique identifier of the customer.
PausedAtDateTimeOffsetThe timestamp when the subscription was paused.
ResumeAtDateTimeOffset?The timestamp when the subscription will resume, if scheduled.
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
PausedAt
The timestamp when the subscription was paused.
public DateTimeOffset PausedAt { get; init; }
Property Value
ResumeAt
The timestamp when the subscription will resume, if scheduled.
public DateTimeOffset? ResumeAt { get; init; }
Property Value
SubscriptionId
The unique identifier of the subscription.
public string SubscriptionId { get; init; }