Table of Contents

Class RefundIssuedEvent

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

Integration event raised when a refund is issued.

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

Constructors

RefundIssuedEvent(string, string, string, long, string, string?, bool)

Integration event raised when a refund is issued.

public RefundIssuedEvent(string RefundId, string PaymentId, string CustomerId, long Amount, string Currency, string? Reason, bool IsPartial)

Parameters

RefundId string

The unique identifier of the refund.

PaymentId string

The original payment identifier.

CustomerId string

The unique identifier of the customer.

Amount long

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

Currency string

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

Reason string

The reason for the refund.

IsPartial bool

Whether this is a partial refund.

Properties

Amount

The refund 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

IsPartial

Whether this is a partial refund.

public bool IsPartial { get; init; }

Property Value

bool

PaymentId

The original payment identifier.

public string PaymentId { get; init; }

Property Value

string

Reason

The reason for the refund.

public string? Reason { get; init; }

Property Value

string

RefundId

The unique identifier of the refund.

public string RefundId { get; init; }

Property Value

string