Improve documentation of Refund API in Greenfield (#4372)

This commit is contained in:
Nicolas Dorier
2022-11-28 20:58:18 +09:00
committed by GitHub
parent 3370240541
commit ddcfa735e0
5 changed files with 115 additions and 48 deletions

View File

@@ -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; }
}
}