Added PayfastPaymentConfirmationReceivedEvent
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-06-01 22:51:49 +02:00
parent ac31c6ada8
commit 45c2e8310a
4 changed files with 144 additions and 1 deletions
@@ -0,0 +1,22 @@
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);
}