mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
39 lines
1002 B
C#
39 lines
1002 B
C#
using System.Collections.Generic;
|
|
using BTCPayServer.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace BTCPayServer.Client.Models;
|
|
|
|
public enum AppItemPriceType
|
|
{
|
|
Fixed,
|
|
Topup,
|
|
Minimum
|
|
}
|
|
|
|
public class AppItem
|
|
{
|
|
public string Id { get; set; }
|
|
public string Title { get; set; }
|
|
public bool Disabled { get; set; }
|
|
public string Description { get; set; }
|
|
public string[] Categories { get; set; }
|
|
public string Image { get; set; }
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public AppItemPriceType PriceType { get; set; }
|
|
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal? Price { get; set; }
|
|
public string BuyButtonText { get; set; }
|
|
public int? Inventory { get; set; }
|
|
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal? TaxRate { get; set; }
|
|
|
|
[JsonExtensionData]
|
|
public Dictionary<string, JToken> AdditionalData { get; set; }
|
|
}
|