Balance history

This commit is contained in:
2024-07-19 14:47:37 +01:00
parent ae4f594394
commit e7a688dd63
3 changed files with 95 additions and 5 deletions

View File

@ -0,0 +1,24 @@
using Newtonsoft.Json;
namespace NostrStreamer.ApiModel;
public enum BalanceHistoryItemType
{
Credit,
Debit
}
public class BalanceHistoryItem
{
[JsonProperty("created")]
public DateTime Created { get; init; }
[JsonProperty("type")]
public BalanceHistoryItemType Type { get; init; }
[JsonProperty("amount")]
public decimal Amount { get; init; }
[JsonProperty("desc")]
public string? Description { get; init; }
}