Make Decimal json converter work for other number types

This commit is contained in:
Kukks
2020-07-29 08:44:52 +02:00
parent c06c5d4104
commit 7230a91b4f
9 changed files with 78 additions and 52 deletions

View File

@@ -14,7 +14,7 @@ namespace BTCPayServer.Client.Models
public string Id { get; set; }
public string Name { get; set; }
public string Currency { get; set; }
[JsonConverter(typeof(DecimalStringJsonConverter))]
[JsonConverter(typeof(NumericStringJsonConverter))]
public decimal Amount { get; set; }
[JsonConverter(typeof(TimeSpanJsonConverter))]
public TimeSpan? Period { get; set; }