Add ability to require refund email from app level (#3013)

* Add ability to require refund email from app level

* Add ability request refund email when creating invoice manually

* Adjust labels

* Add UI tests

* Add Greenfield API support

* Rename RequiresRefundEmailType to RequiresRefundEmail

* Fix build

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
This commit is contained in:
Umar Bolatov
2021-10-27 07:32:56 -07:00
committed by GitHub
parent 0b5d0349d4
commit 8f117b5079
21 changed files with 137 additions and 16 deletions

View File

@@ -4,6 +4,7 @@ using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using BTCPayServer.Validation;
using Microsoft.AspNetCore.Mvc.Rendering;
using BTCPayServer.Services.Apps;
namespace BTCPayServer.Models.InvoicingModels
{
@@ -87,5 +88,11 @@ namespace BTCPayServer.Models.InvoicingModels
{
get; set;
}
[Display(Name = "Require Refund Email")]
public RequiresRefundEmail RequiresRefundEmail
{
get; set;
}
}
}