Balance history
This commit is contained in:
24
NostrStreamer/ApiModel/BalanceHistoryItem.cs
Normal file
24
NostrStreamer/ApiModel/BalanceHistoryItem.cs
Normal 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; }
|
||||
}
|
Reference in New Issue
Block a user