Class InvoicePaidEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when an invoice is paid.
public sealed record InvoicePaidEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<InvoicePaidEvent>
- Inheritance
-
InvoicePaidEvent
- Implements
- Inherited Members
Constructors
InvoicePaidEvent(string, string, string, long, string, DateTimeOffset)
Integration event raised when an invoice is paid.
public InvoicePaidEvent(string InvoiceId, string CustomerId, string PaymentId, long Amount, string Currency, DateTimeOffset PaidAt)
Parameters
InvoiceIdstringThe unique identifier of the invoice.
CustomerIdstringThe unique identifier of the customer.
PaymentIdstringThe payment identifier used to pay the invoice.
AmountlongThe invoice amount in the smallest currency unit (e.g., cents).
CurrencystringThe currency code (e.g., USD, EUR).
PaidAtDateTimeOffsetThe timestamp when the invoice was paid.
Properties
Amount
The invoice 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 unique identifier of the invoice.
public string InvoiceId { get; init; }
Property Value
PaidAt
The timestamp when the invoice was paid.
public DateTimeOffset PaidAt { get; init; }
Property Value
PaymentId
The payment identifier used to pay the invoice.
public string PaymentId { get; init; }