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
SessionIdstringThe unique identifier of the checkout session.
CustomerIdstringThe unique identifier of the customer.
SubscriptionIdstringThe subscription identifier, if a subscription was created.
AmountlongThe amount paid in the smallest currency unit (e.g., cents).
CurrencystringThe currency code (e.g., USD, EUR).
ProductIdstringThe product identifier.
VariantIdstringThe product variant identifier.
Properties
Amount
The amount paid in the smallest currency unit (e.g., cents).
public long Amount { get; init; }
Property Value
Currency
The currency code (e.g., USD, EUR).
public string Currency { 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
ProductId
The product identifier.
public string ProductId { get; init; }
Property Value
SessionId
The unique identifier of the checkout session.
public string SessionId { get; init; }
Property Value
SubscriptionId
The subscription identifier, if a subscription was created.
public string? SubscriptionId { get; init; }
Property Value
VariantId
The product variant identifier.
public string? VariantId { get; init; }