diff --git a/BTCPayServer.Client/Models/StoreRateResult.cs b/BTCPayServer.Client/Models/StoreRateResult.cs index eddc22714..71128fbee 100644 --- a/BTCPayServer.Client/Models/StoreRateResult.cs +++ b/BTCPayServer.Client/Models/StoreRateResult.cs @@ -1,10 +1,13 @@ using System.Collections.Generic; +using BTCPayServer.JsonConverters; +using Newtonsoft.Json; namespace BTCPayServer.Client.Models; public class StoreRateResult { public string CurrencyPair { get; set; } + [JsonConverter(typeof(NumericStringJsonConverter))] public decimal? Rate { get; set; } public List Errors { get; set; } } diff --git a/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json b/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json index 3911323a1..4e9bf8b43 100644 --- a/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json +++ b/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json @@ -1260,6 +1260,7 @@ "rate": { "type": "string", "format": "decimal", + "example": "64392.23", "description": "The rate between this payment method's currency and the invoice currency" }, "paymentMethodPaid": { diff --git a/BTCPayServer/wwwroot/swagger/v1/swagger.template.stores-rates-config.json b/BTCPayServer/wwwroot/swagger/v1/swagger.template.stores-rates-config.json index da1bae3f7..8423604b6 100644 --- a/BTCPayServer/wwwroot/swagger/v1/swagger.template.stores-rates-config.json +++ b/BTCPayServer/wwwroot/swagger/v1/swagger.template.stores-rates-config.json @@ -238,8 +238,9 @@ "description": "Errors relating to this currency pair fetching based on your config" }, "rate": { - "type": "number", - "example": 24520.23, + "type": "string", + "format": "decimal", + "example": "64392.23", "description": "the rate fetched based on the currency pair" } }