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>
{
{WebhookEventType.InvoiceCreated, "A new invoice has been created"},
{WebhookEventType.InvoiceReceivedPayment, "A new payment has been received"},
{WebhookEventType.InvoicePaymentSettled, "A payment has been settled"},
{WebhookEventType.InvoiceProcessing, "An invoice is processing"},
{WebhookEventType.InvoiceExpired, "An invoice has expired"},
{WebhookEventType.InvoiceSettled, "An invoice has been settled"},
{WebhookEventType.InvoiceInvalid, "An invoice became invalid"},
{WebhookEventType.InvoiceCreated, "Invoice - Created"},
{WebhookEventType.InvoiceReceivedPayment, "Invoice - Received Payment"},
{WebhookEventType.InvoicePaymentSettled, "Invoice - Payment Settled"},
{WebhookEventType.InvoiceProcessing, "Invoice - Is Processing"},
{WebhookEventType.InvoiceExpired, "Invoice - Expired"},
{WebhookEventType.InvoiceSettled, "Invoice - Is Settled"},
{WebhookEventType.InvoiceInvalid, "Invoice - Became Invalid"},
};
}

View File

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

View File

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