mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Unifying the format of WebhookEventTypes display text
This commit is contained in:
@@ -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"},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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"},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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"}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user