2017-09-27 14:18:09 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-05-10 16:02:49 +09:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2017-09-27 14:18:09 +09:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
2019-04-12 00:13:14 -05:00
|
|
|
|
using BTCPayServer.Services.Apps;
|
2019-06-25 20:41:32 +02:00
|
|
|
|
using BTCPayServer.Validation;
|
2017-12-04 00:55:39 +09:00
|
|
|
|
using Newtonsoft.Json;
|
2017-09-27 14:18:09 +09:00
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Services
|
|
|
|
|
{
|
|
|
|
|
public class PoliciesSettings
|
|
|
|
|
{
|
2018-05-10 16:02:49 +09:00
|
|
|
|
[Display(Name = "Requires a confirmation mail for registering")]
|
2019-04-11 16:30:23 -05:00
|
|
|
|
public bool RequiresConfirmedEmail { get; set; }
|
2017-12-04 00:55:39 +09:00
|
|
|
|
|
|
|
|
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
2018-05-10 16:02:49 +09:00
|
|
|
|
[Display(Name = "Disable registration")]
|
2017-12-04 00:55:39 +09:00
|
|
|
|
public bool LockSubscription { get; set; }
|
2019-04-11 16:30:23 -05:00
|
|
|
|
|
2019-03-06 12:33:48 +01:00
|
|
|
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
|
|
|
|
[Display(Name = "Discourage search engines from indexing this site")]
|
|
|
|
|
public bool DiscourageSearchEngines { get; set; }
|
2019-08-20 10:38:15 +02:00
|
|
|
|
[Display(Name = "Allow non-admins to use the internal lightning node in their stores")]
|
|
|
|
|
public bool AllowLightningInternalNodeForAll { get; set; }
|
2019-12-18 22:28:03 +09:00
|
|
|
|
[Display(Name = "Allow non-admins to create hot wallets for their stores")]
|
|
|
|
|
public bool AllowHotWalletForAll { get; set; }
|
2020-04-13 08:48:35 +02:00
|
|
|
|
[Display(Name = "Allow non-admins to import their hot wallets to the node wallet")]
|
|
|
|
|
public bool AllowHotWalletRPCImportForAll { get; set; }
|
2019-12-16 09:32:43 +01:00
|
|
|
|
|
2019-04-11 16:30:23 -05:00
|
|
|
|
[Display(Name = "Display app on website root")]
|
2019-04-12 00:13:14 -05:00
|
|
|
|
public string RootAppId { get; set; }
|
|
|
|
|
public AppType? RootAppType { get; set; }
|
2019-06-25 20:41:32 +02:00
|
|
|
|
|
|
|
|
|
public List<DomainToAppMappingItem> DomainToAppMapping { get; set; } = new List<DomainToAppMappingItem>();
|
|
|
|
|
|
|
|
|
|
public class DomainToAppMappingItem
|
|
|
|
|
{
|
|
|
|
|
[Display(Name = "Domain")][Required][HostName] public string Domain { get; set; }
|
|
|
|
|
[Display(Name = "App")][Required] public string AppId { get; set; }
|
|
|
|
|
|
|
|
|
|
public AppType AppType { get; set; }
|
|
|
|
|
}
|
2017-10-27 17:53:04 +09:00
|
|
|
|
}
|
2017-09-27 14:18:09 +09:00
|
|
|
|
}
|