mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
rename converter
This commit is contained in:
@@ -7,7 +7,7 @@ namespace BTCPayServer.Client.Models
|
|||||||
{
|
{
|
||||||
public class CreateInvoiceRequest
|
public class CreateInvoiceRequest
|
||||||
{
|
{
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public decimal Amount { get; set; }
|
public decimal Amount { get; set; }
|
||||||
|
|
||||||
public string Currency { get; set; }
|
public string Currency { get; set; }
|
||||||
@@ -31,7 +31,7 @@ namespace BTCPayServer.Client.Models
|
|||||||
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
||||||
public DateTimeOffset? ExpirationTime { get; set; }
|
public DateTimeOffset? ExpirationTime { get; set; }
|
||||||
|
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public double? PaymentTolerance { get; set; }
|
public double? PaymentTolerance { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,22 +20,22 @@ namespace BTCPayServer.Client.Models
|
|||||||
public string Destination { get; set; }
|
public string Destination { get; set; }
|
||||||
public string PaymentLink { get; set; }
|
public string PaymentLink { get; set; }
|
||||||
|
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public decimal Rate { get; set; }
|
public decimal Rate { get; set; }
|
||||||
|
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public decimal PaymentMethodPaid { get; set; }
|
public decimal PaymentMethodPaid { get; set; }
|
||||||
|
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public decimal TotalPaid { get; set; }
|
public decimal TotalPaid { get; set; }
|
||||||
|
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public decimal Due { get; set; }
|
public decimal Due { get; set; }
|
||||||
|
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public decimal Amount { get; set; }
|
public decimal Amount { get; set; }
|
||||||
|
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public decimal NetworkFee { get; set; }
|
public decimal NetworkFee { get; set; }
|
||||||
|
|
||||||
public List<Payment> Payments { get; set; }
|
public List<Payment> Payments { get; set; }
|
||||||
@@ -47,10 +47,10 @@ namespace BTCPayServer.Client.Models
|
|||||||
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
||||||
public DateTime ReceivedDate { get; set; }
|
public DateTime ReceivedDate { get; set; }
|
||||||
|
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public decimal Value { get; set; }
|
public decimal Value { get; set; }
|
||||||
|
|
||||||
[JsonProperty(ItemConverterType = typeof(DecimalDoubleStringJsonConverter))]
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||||||
public decimal Fee { get; set; }
|
public decimal Fee { get; set; }
|
||||||
|
|
||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
|
|||||||
Reference in New Issue
Block a user