Table of Contents

Class CheckoutCompletedEvent

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

Integration event raised when a checkout session is completed.

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

Constructors

CheckoutCompletedEvent(string, string, string?, long, string, string, string?)

Integration event raised when a checkout session is completed.

public CheckoutCompletedEvent(string SessionId, string CustomerId, string? SubscriptionId, long Amount, string Currency, string ProductId, string? VariantId)

Parameters

SessionId string

The unique identifier of the checkout session.

CustomerId string

The unique identifier of the customer.

SubscriptionId string

The subscription identifier, if a subscription was created.

Amount long

The amount paid in the smallest currency unit (e.g., cents).

Currency string

The currency code (e.g., USD, EUR).

ProductId string

The product identifier.

VariantId string

The product variant identifier.

Properties

Amount

The amount paid in the smallest currency unit (e.g., cents).

public long Amount { get; init; }

Property Value

long

Currency

The currency code (e.g., USD, EUR).

public string Currency { get; init; }

Property Value

string

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

ProductId

The product identifier.

public string ProductId { get; init; }

Property Value

string

SessionId

The unique identifier of the checkout session.

public string SessionId { get; init; }

Property Value

string

SubscriptionId

The subscription identifier, if a subscription was created.

public string? SubscriptionId { get; init; }

Property Value

string

VariantId

The product variant identifier.

public string? VariantId { get; init; }

Property Value

string