mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Refactoring of Webhooks and Email Rules (#6954)
This commit is contained in:
14
BTCPayServer/Plugins/Emails/EmailsExtensions.cs
Normal file
14
BTCPayServer/Plugins/Emails/EmailsExtensions.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using BTCPayServer.Plugins.Emails.Views;
|
||||
|
||||
namespace BTCPayServer;
|
||||
|
||||
public static class EmailsExtensions
|
||||
{
|
||||
public static List<EmailTriggerViewModel.PlaceHolder> AddStoresPlaceHolders(this List<EmailTriggerViewModel.PlaceHolder> placeholders)
|
||||
{
|
||||
placeholders.Insert(0, new("{Store.Name}", "The name of the store"));
|
||||
placeholders.Insert(0, new("{Store.Id}", "The id of the store"));
|
||||
return placeholders;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user