btcpayserver/BTCPayServer/Plugins/PointOfSale/Models/ViewPointOfSaleViewModel.cs

71 lines
2.6 KiB
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
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
{
public enum ItemPriceType
{
Topup,
Minimum,
Fixed
}
2021-12-31 16:59:02 +09:00
public ItemPriceType Type { get; set; }
2018-04-03 11:50:41 +09:00
public string Formatted { get; set; }
public decimal? Value { get; set; }
2018-04-03 11:50:41 +09:00
}
public string Description { get; set; }
2018-04-03 11:50:41 +09:00
public string Id { get; set; }
public string Image { get; set; }
2018-04-03 11:50:41 +09:00
public ItemPrice Price { get; set; }
public string Title { get; set; }
public string BuyButtonText { get; set; }
public int? Inventory { get; set; } = null;
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
}
public class CurrencyInfoData
{
public bool Prefixed { get; set; }
public string CurrencySymbol { get; set; }
public string ThousandSeparator { get; set; }
public string DecimalSeparator { get; set; }
public int Divisibility { get; set; }
public bool SymbolSpace { get; set; }
}
public CurrencyInfoData CurrencyInfo { get; set; }
public PosViewType ViewType { get; set; }
2018-04-26 22:09:18 +09:00
public bool ShowCustomAmount { get; set; }
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; }
public string CurrencyCode { get; set; }
public string CurrencySymbol { get; set; }
public string AppId { get; set; }
public string ButtonText { get; set; }
public string CustomButtonText { get; set; }
public string CustomTipText { get; set; }
public int[] CustomTipPercentages { get; set; }
[Display(Name = "Custom CSS URL")]
public string CustomCSSLink { get; set; }
public string CustomLogoLink { get; set; }
public string Description { get; set; }
[Display(Name = "Custom CSS Code")]
public string EmbeddedCSS { get; set; }
public RequiresRefundEmail RequiresRefundEmail { get; set; } = RequiresRefundEmail.InheritFromStore;
public string StoreId { get; set; }
2018-04-03 11:50:41 +09:00
}
}