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
RefundIdstringThe unique identifier of the refund.
PaymentIdstringThe original payment identifier.
CustomerIdstringThe unique identifier of the customer.
AmountlongThe refund amount in the smallest currency unit (e.g., cents).
CurrencystringThe currency code (e.g., USD, EUR).
ReasonstringThe reason for the refund.
IsPartialboolWhether 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
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
IsPartial
Whether this is a partial refund.
public bool IsPartial { get; init; }
Property Value
PaymentId
The original payment identifier.
public string PaymentId { get; init; }
Property Value
Reason
The reason for the refund.
public string? Reason { get; init; }
Property Value
RefundId
The unique identifier of the refund.
public string RefundId { get; init; }