mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
425d70f261
* Add Greenfield invoice refund endpoint See discussion here: https://github.com/btcpayserver/btcpayserver/discussions/4181 * add test * add docs
26 lines
649 B
C#
26 lines
649 B
C#
#nullable enable
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public enum RefundVariant
|
|
{
|
|
RateThen,
|
|
CurrentRate,
|
|
Fiat,
|
|
Custom,
|
|
NotSet
|
|
}
|
|
|
|
public class RefundInvoiceRequest
|
|
{
|
|
public string? Name { get; set; } = null;
|
|
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;
|
|
}
|
|
}
|