Refactoring of Webhooks and Email Rules (#6954)

This commit is contained in:
Nicolas Dorier
2025-10-19 22:31:24 +09:00
committed by GitHub
parent 6b727dd192
commit e8282ca849
101 changed files with 2700 additions and 1611 deletions

View 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;
}
}