mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-12 19:02:01 +01:00
25 lines
806 B
C#
25 lines
806 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BTCPayServer.Client.Models;
|
|
using BTCPayServer.NTag424;
|
|
|
|
namespace BTCPayServer.Plugins.BoltcardBalance.ViewModels
|
|
{
|
|
public class BalanceViewModel
|
|
{
|
|
public class Transaction
|
|
{
|
|
public DateTimeOffset Date { get; set; }
|
|
public bool Positive => Balance >= 0;
|
|
public decimal Balance { get; set; }
|
|
public PayoutState Status { get; internal set; }
|
|
}
|
|
public string Currency { get; set; }
|
|
public decimal AmountDue { get; set; }
|
|
public List<Transaction> Transactions { get; set; } = new List<Transaction>();
|
|
public string LNUrlBech32 { get; set; }
|
|
public string LNUrlPay { get; set; }
|
|
|
|
public BoltcardKeys? Keys { get; set; }
|
|
}
|
|
}
|