Table of Contents

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

InvoiceId string

The unique identifier of the invoice.

CustomerId string

The unique identifier of the customer.

PaymentId string

The payment identifier used to pay the invoice.

Amount long

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

Currency string

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

PaidAt DateTimeOffset

The 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

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 unique identifier of the invoice.

public string InvoiceId { get; init; }

Property Value

string

PaidAt

The timestamp when the invoice was paid.

public DateTimeOffset PaidAt { get; init; }

Property Value

DateTimeOffset

PaymentId

The payment identifier used to pay the invoice.

public string PaymentId { get; init; }

Property Value

string