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

@@ -8,7 +8,7 @@ namespace BTCPayServer.Client.Models
public class CreatePullPaymentRequest
{
public string Name { get; set; }
[JsonProperty(ItemConverterType = typeof(DecimalStringJsonConverter))]
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
public decimal Amount { get; set; }
public string Currency { get; set; }
[JsonConverter(typeof(TimeSpanJsonConverter))]