2021-07-23 03:57:19 -07:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2020-05-26 16:48:47 +02:00
|
|
|
using BTCPayServer.Services.Apps;
|
2018-04-03 11:50:41 +09:00
|
|
|
|
2022-07-18 20:51:53 +02:00
|
|
|
namespace BTCPayServer.Plugins.PointOfSale.Models
|
2018-04-03 11:50:41 +09:00
|
|
|
{
|
|
|
|
public class ViewPointOfSaleViewModel
|
|
|
|
{
|
|
|
|
public class Item
|
|
|
|
{
|
|
|
|
public class ItemPrice
|
|
|
|
{
|
2021-10-11 12:46:05 +02:00
|
|
|
public enum ItemPriceType
|
|
|
|
{
|
|
|
|
Topup,
|
|
|
|
Minimum,
|
|
|
|
Fixed
|
|
|
|
}
|
2021-12-31 16:59:02 +09:00
|
|
|
|
2021-10-11 12:46:05 +02:00
|
|
|
public ItemPriceType Type { get; set; }
|
2018-04-03 11:50:41 +09:00
|
|
|
public string Formatted { get; set; }
|
2021-10-11 12:46:05 +02:00
|
|
|
public decimal? Value { get; set; }
|
2018-04-03 11:50:41 +09:00
|
|
|
}
|
2018-11-10 14:38:26 +08:00
|
|
|
public string Description { get; set; }
|
2018-04-03 11:50:41 +09:00
|
|
|
public string Id { get; set; }
|
2018-11-10 14:38:26 +08:00
|
|
|
public string Image { get; set; }
|
2018-04-03 11:50:41 +09:00
|
|
|
public ItemPrice Price { get; set; }
|
|
|
|
public string Title { get; set; }
|
2021-02-18 10:54:06 +01:00
|
|
|
public string BuyButtonText { get; set; }
|
2019-09-02 15:37:52 +02:00
|
|
|
public int? Inventory { get; set; } = null;
|
2020-05-19 20:54:24 +02:00
|
|
|
public string[] PaymentMethods { get; set; }
|
2021-09-12 21:59:18 -07:00
|
|
|
public bool Disabled { get; set; } = false;
|
2018-04-03 11:50:41 +09:00
|
|
|
}
|
2018-11-15 21:31:38 -06:00
|
|
|
|
2018-12-04 13:04:26 +09:00
|
|
|
public class CurrencyInfoData
|
|
|
|
{
|
|
|
|
public bool Prefixed { get; set; }
|
|
|
|
public string CurrencySymbol { get; set; }
|
|
|
|
public string ThousandSeparator { get; set; }
|
|
|
|
public string DecimalSeparator { get; set; }
|
2018-12-18 00:25:17 +09:00
|
|
|
public int Divisibility { get; set; }
|
|
|
|
public bool SymbolSpace { get; set; }
|
2018-12-04 13:04:26 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
public CurrencyInfoData CurrencyInfo { get; set; }
|
|
|
|
|
2020-05-26 17:38:30 +02:00
|
|
|
public PosViewType ViewType { get; set; }
|
2018-04-26 22:09:18 +09:00
|
|
|
public bool ShowCustomAmount { get; set; }
|
2019-02-25 14:11:03 +08:00
|
|
|
public bool ShowDiscount { get; set; }
|
|
|
|
public bool EnableTips { get; set; }
|
2018-04-26 22:09:18 +09:00
|
|
|
public string Step { get; set; }
|
2018-04-03 11:50:41 +09:00
|
|
|
public string Title { get; set; }
|
|
|
|
public Item[] Items { get; set; }
|
2018-12-01 12:59:45 +08:00
|
|
|
public string CurrencyCode { get; set; }
|
2018-11-15 21:31:38 -06:00
|
|
|
public string CurrencySymbol { get; set; }
|
2018-12-04 13:04:26 +09:00
|
|
|
public string AppId { get; set; }
|
2018-11-16 20:39:43 -06:00
|
|
|
public string ButtonText { get; set; }
|
|
|
|
public string CustomButtonText { get; set; }
|
2018-11-27 14:14:32 +08:00
|
|
|
public string CustomTipText { get; set; }
|
2018-12-19 14:07:05 +08:00
|
|
|
public int[] CustomTipPercentages { get; set; }
|
2018-11-16 20:39:43 -06:00
|
|
|
|
2021-07-23 03:57:19 -07:00
|
|
|
[Display(Name = "Custom CSS URL")]
|
2018-11-16 20:39:43 -06:00
|
|
|
public string CustomCSSLink { get; set; }
|
2020-09-21 14:06:31 +08:00
|
|
|
public string CustomLogoLink { get; set; }
|
2019-08-19 07:13:42 +02:00
|
|
|
public string Description { get; set; }
|
2021-07-23 03:57:19 -07:00
|
|
|
[Display(Name = "Custom CSS Code")]
|
2019-08-19 07:13:42 +02:00
|
|
|
public string EmbeddedCSS { get; set; }
|
2021-10-27 07:32:56 -07:00
|
|
|
public RequiresRefundEmail RequiresRefundEmail { get; set; } = RequiresRefundEmail.InheritFromStore;
|
2022-05-27 16:26:31 +09:00
|
|
|
public string StoreId { get; set; }
|
2018-04-03 11:50:41 +09:00
|
|
|
}
|
2021-09-05 15:19:27 -07:00
|
|
|
}
|