mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 10:32:13 +01:00
28 lines
542 B
C#
28 lines
542 B
C#
|
using Newtonsoft.Json;
|
||
|
using Newtonsoft.Json.Converters;
|
||
|
|
||
|
namespace BTCPayServer.Client.Models;
|
||
|
|
||
|
public class LedgerEntryData
|
||
|
{
|
||
|
public string Asset { get; }
|
||
|
public decimal Qty { get; }
|
||
|
|
||
|
[JsonConverter(typeof(StringEnumConverter))]
|
||
|
public LedgerEntryType Type { get; }
|
||
|
|
||
|
public LedgerEntryData(string asset, decimal qty, LedgerEntryType type)
|
||
|
{
|
||
|
Asset = asset;
|
||
|
Qty = qty;
|
||
|
Type = type;
|
||
|
}
|
||
|
|
||
|
public enum LedgerEntryType
|
||
|
{
|
||
|
Trade = 0,
|
||
|
Fee = 1,
|
||
|
Withdrawal = 2
|
||
|
}
|
||
|
}
|