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

@@ -6,7 +6,7 @@ namespace BTCPayServer.Client.Models
public class CreatePayoutRequest
{
public string Destination { get; set; }
[JsonConverter(typeof(DecimalStringJsonConverter))]
[JsonConverter(typeof(NumericStringJsonConverter))]
public decimal? Amount { get; set; }
public string PaymentMethod { get; set; }
}