2022-05-01 22:28:27 -07:00
|
|
|
using System;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public class AppDataBase
|
|
|
|
{
|
|
|
|
public string Id { get; set; }
|
|
|
|
public string AppType { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string StoreId { get; set; }
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
|
|
public DateTimeOffset Created { get; set; }
|
|
|
|
}
|
2023-01-06 14:18:07 +01:00
|
|
|
|
2022-05-01 22:28:27 -07:00
|
|
|
public class PointOfSaleAppData : AppDataBase
|
|
|
|
{
|
2023-02-07 00:01:53 -08:00
|
|
|
public string Title { get; set; }
|
|
|
|
public string DefaultView { get; set; }
|
|
|
|
public bool ShowCustomAmount { get; set; }
|
|
|
|
public bool ShowDiscount { get; set; }
|
|
|
|
public bool EnableTips { get; set; }
|
|
|
|
public string Currency { get; set; }
|
|
|
|
public object Items { get; set; }
|
|
|
|
public string FixedAmountPayButtonText { get; set; }
|
|
|
|
public string CustomAmountPayButtonText { get; set; }
|
|
|
|
public string TipText { get; set; }
|
|
|
|
public string CustomCSSLink { get; set; }
|
|
|
|
public string NotificationUrl { get; set; }
|
|
|
|
public string RedirectUrl { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
public string EmbeddedCSS { get; set; }
|
|
|
|
public bool? RedirectAutomatically { get; set; }
|
|
|
|
public bool? RequiresRefundEmail { get; set; }
|
2022-05-01 22:28:27 -07:00
|
|
|
}
|
2022-11-17 21:20:07 -08:00
|
|
|
|
|
|
|
public class CrowdfundAppData : AppDataBase
|
|
|
|
{
|
2023-02-07 00:01:53 -08:00
|
|
|
public string Title { get; set; }
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
public bool EnforceTargetAmount { get; set; }
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
|
|
public DateTimeOffset? StartDate { get; set; }
|
|
|
|
public string TargetCurrency { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
|
|
public DateTimeOffset? EndDate { get; set; }
|
|
|
|
public decimal? TargetAmount { get; set; }
|
|
|
|
public string CustomCSSLink { get; set; }
|
|
|
|
public string MainImageUrl { get; set; }
|
|
|
|
public string EmbeddedCSS { get; set; }
|
|
|
|
public string NotificationUrl { get; set; }
|
|
|
|
public string Tagline { get; set; }
|
|
|
|
public object Perks { get; set; }
|
|
|
|
public bool DisqusEnabled { get; set; }
|
|
|
|
public string DisqusShortname { get; set; }
|
|
|
|
public bool SoundsEnabled { get; set; }
|
|
|
|
public bool AnimationsEnabled { get; set; }
|
|
|
|
public int ResetEveryAmount { get; set; }
|
|
|
|
public string ResetEvery { get; set; }
|
|
|
|
public bool DisplayPerksValue { get; set; }
|
|
|
|
public bool DisplayPerksRanking { get; set; }
|
|
|
|
public bool SortPerksByPopularity { get; set; }
|
|
|
|
public string[] Sounds { get; set; }
|
|
|
|
public string[] AnimationColors { get; set; }
|
2022-11-17 21:20:07 -08:00
|
|
|
}
|
2022-05-01 22:28:27 -07:00
|
|
|
}
|