app/BTCPayApp.UI/Models/TransactionModel.cs
2025-01-23 19:02:35 +01:00

30 lines
693 B
C#

using BTCPayApp.Core.BTCPayServer;
using BTCPayApp.Core.Data;
using BTCPayServer.Lightning;
namespace BTCPayApp.UI.Models;
public enum TransactionPaymentMethod
{
Onchain,
Lightning
}
public enum TransactionType
{
Send,
Receive
}
public class TransactionModel
{
public string? Id { get; set; }
public required LightMoney Value { get; set; }
public required string Status { get; set; }
public DateTimeOffset Timestamp { get; set; }
public TransactionType Type { get; set; }
public TransactionPaymentMethod PaymentMethod { get; set; }
public AppLightningPayment? LightningPayment { get; set; }
public TxResp? OnchainTransaction { get; set; }
}