Files
components/LiteCharms.Features.MidrandBooks/Payments/Events/PayfastPaymentConfirmationReceivedEvent.cs
T
Khwezi Mngoma 45c2e8310a
continuous-integration/drone/pr Build is passing
Added PayfastPaymentConfirmationReceivedEvent
2026-06-01 22:51:49 +02:00

23 lines
755 B
C#

using LiteCharms.Features.Abstractions;
using LiteCharms.Features.Models;
namespace LiteCharms.Features.MidrandBooks.Payments.Events;
public sealed class PayfastPaymentConfirmationReceivedEvent : EventBase, IEvent
{
public string Name { get; set; } = nameof(PayfastPaymentConfirmationReceivedEvent);
public PayfastWebhookPayload? Payload { get; set; }
public PayfastPaymentConfirmationReceivedEvent() { }
private PayfastPaymentConfirmationReceivedEvent(PayfastWebhookPayload? payload, string paymentId)
{
Payload = payload;
CorrelationId = paymentId;
}
public static PayfastPaymentConfirmationReceivedEvent Create(PayfastWebhookPayload? payload, string paymentId) =>
new(payload, paymentId);
}