Unifying the format of WebhookEventTypes display text

This commit is contained in:
rockstardev
2025-03-15 03:56:16 -05:00
parent 5ce8648bd2
commit 629087a054
3 changed files with 14 additions and 14 deletions

View File

@@ -22,13 +22,13 @@ public class InvoiceWebhookProvider : WebhookProvider<InvoiceEvent>
{ {
return new Dictionary<string, string> return new Dictionary<string, string>
{ {
{WebhookEventType.InvoiceCreated, "A new invoice has been created"}, {WebhookEventType.InvoiceCreated, "Invoice - Created"},
{WebhookEventType.InvoiceReceivedPayment, "A new payment has been received"}, {WebhookEventType.InvoiceReceivedPayment, "Invoice - Received Payment"},
{WebhookEventType.InvoicePaymentSettled, "A payment has been settled"}, {WebhookEventType.InvoicePaymentSettled, "Invoice - Payment Settled"},
{WebhookEventType.InvoiceProcessing, "An invoice is processing"}, {WebhookEventType.InvoiceProcessing, "Invoice - Is Processing"},
{WebhookEventType.InvoiceExpired, "An invoice has expired"}, {WebhookEventType.InvoiceExpired, "Invoice - Expired"},
{WebhookEventType.InvoiceSettled, "An invoice has been settled"}, {WebhookEventType.InvoiceSettled, "Invoice - Is Settled"},
{WebhookEventType.InvoiceInvalid, "An invoice became invalid"}, {WebhookEventType.InvoiceInvalid, "Invoice - Became Invalid"},
}; };
} }

View File

@@ -18,10 +18,10 @@ public class PaymentRequestWebhookProvider: WebhookProvider<PaymentRequestEvent>
{ {
return new Dictionary<string, string>() return new Dictionary<string, string>()
{ {
{WebhookEventType.PaymentRequestCreated, "Payment Request Created"}, {WebhookEventType.PaymentRequestCreated, "Payment Request - Created"},
{WebhookEventType.PaymentRequestUpdated, "Payment Request Updated"}, {WebhookEventType.PaymentRequestUpdated, "Payment Request - Updated"},
{WebhookEventType.PaymentRequestArchived, "Payment Request Archived"}, {WebhookEventType.PaymentRequestArchived, "Payment Request - Archived"},
{WebhookEventType.PaymentRequestStatusChanged, "Payment Request Status Changed"}, {WebhookEventType.PaymentRequestStatusChanged, "Payment Request - Status Changed"},
}; };
} }

View File

@@ -36,9 +36,9 @@ public class PayoutWebhookProvider(EventAggregator eventAggregator, ILogger<Payo
{ {
return new Dictionary<string, string>() return new Dictionary<string, string>()
{ {
{WebhookEventType.PayoutCreated, "A payout has been created"}, {WebhookEventType.PayoutCreated, "Payout - Created"},
{WebhookEventType.PayoutApproved, "A payout has been approved"}, {WebhookEventType.PayoutApproved, "Payout - Approved"},
{WebhookEventType.PayoutUpdated, "A payout was updated"} {WebhookEventType.PayoutUpdated, "Payout - Updated"}
}; };
} }