mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Improve documentation of Refund API in Greenfield (#4372)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#nullable enable
|
||||
using BTCPayServer.JsonConverters;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
@@ -9,17 +10,18 @@ namespace BTCPayServer.Client.Models
|
||||
RateThen,
|
||||
CurrentRate,
|
||||
Fiat,
|
||||
Custom,
|
||||
NotSet
|
||||
Custom
|
||||
}
|
||||
|
||||
public class RefundInvoiceRequest
|
||||
{
|
||||
public string? Name { get; set; } = null;
|
||||
public string? PaymentMethod { get; set; }
|
||||
public string? Description { get; set; } = null;
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public RefundVariant RefundVariant { get; set; } = RefundVariant.NotSet;
|
||||
public decimal CustomAmount { get; set; } = 0;
|
||||
public string? CustomCurrency { get; set; } = null;
|
||||
public RefundVariant? RefundVariant { get; set; }
|
||||
[JsonConverter(typeof(NumericStringJsonConverter))]
|
||||
public decimal? CustomAmount { get; set; }
|
||||
public string? CustomCurrency { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user