feat: exposed invoice accounting endpoint to facilitate refund on btcpayserver app project (#6818)

* feat: exposed invoice accounting endpoint to facilitate refund on btcpayserver app project

* merge from master

* refactor: optimizations

* refactor: added documentation, test assertions and renamed endpoint

* refactor: updated documentation based on code rabbit improvement suggestions

* refactor: updated refund properties terminology
This commit is contained in:
Israel Ulelu
2025-07-14 01:46:28 +01:00
committed by GitHub
parent 88394f77ac
commit b445f32b65
6 changed files with 190 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
namespace BTCPayServer.Client.Models
{
public class InvoiceRefundTriggerData
{
public decimal PaymentAmountNow { get; set; } = 0m;
public string CurrentRateText { get; set; }
public decimal PaymentAmountThen { get; set; } = 0m;
public decimal InvoiceAmount { get; set; } = 0m;
public decimal? OverpaidPaymentAmount { get; set; } = null;
public string InvoiceCurrency { get; set; } = string.Empty;
public string PaymentCurrency { get; set; } = string.Empty;
public int PaymentCurrencyDivisibility { get; set; }
public int InvoiceCurrencyDivisibility { get; set; }
}
}