Table of Contents

Class PaymentSucceededEvent

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

Integration event raised when a payment succeeds.

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

Constructors

PaymentSucceededEvent(string, string, string?, long, string, string, string?)

Integration event raised when a payment succeeds.

public PaymentSucceededEvent(string PaymentId, string CustomerId, string? SubscriptionId, long Amount, string Currency, string PaymentMethod, string? InvoiceId)

Parameters

PaymentId string

The unique identifier of the payment.

CustomerId string

The unique identifier of the customer.

SubscriptionId string

The subscription identifier, if applicable.

Amount long

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

Currency string

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

PaymentMethod string

The payment method used.

InvoiceId string

The invoice identifier, if applicable.

Properties

Amount

The payment amount 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

InvoiceId

The invoice identifier, if applicable.

public string? InvoiceId { get; init; }

Property Value

string

PaymentId

The unique identifier of the payment.

public string PaymentId { get; init; }

Property Value

string

PaymentMethod

The payment method used.

public string PaymentMethod { get; init; }

Property Value

string

SubscriptionId

The subscription identifier, if applicable.

public string? SubscriptionId { get; init; }

Property Value

string