mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
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:
15
BTCPayServer.Client/Models/InvoiceRefundTriggerData.cs
Normal file
15
BTCPayServer.Client/Models/InvoiceRefundTriggerData.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user