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
PaymentIdstringThe unique identifier of the payment.
CustomerIdstringThe unique identifier of the customer.
SubscriptionIdstringThe subscription identifier, if applicable.
AmountlongThe payment amount in the smallest currency unit (e.g., cents).
CurrencystringThe currency code (e.g., USD, EUR).
PaymentMethodstringThe payment method used.
InvoiceIdstringThe invoice identifier, if applicable.
Properties
Amount
The payment amount 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
InvoiceId
The invoice identifier, if applicable.
public string? InvoiceId { get; init; }
Property Value
PaymentId
The unique identifier of the payment.
public string PaymentId { get; init; }
Property Value
PaymentMethod
The payment method used.
public string PaymentMethod { get; init; }
Property Value
SubscriptionId
The subscription identifier, if applicable.
public string? SubscriptionId { get; init; }