Greenfield: App endpoints for sales statistics (#6103)

This commit is contained in:
d11n
2024-09-12 09:17:16 +02:00
committed by GitHub
parent 36bada8feb
commit 666445e8f7
13 changed files with 394 additions and 59 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace BTCPayServer.Client.Models;
public class AppSalesStats
{
public int SalesCount { get; set; }
public IEnumerable<AppSalesStatsItem> Series { get; set; }
}
public class AppSalesStatsItem
{
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
public DateTime Date { get; set; }
public string Label { get; set; }
public int SalesCount { get; set; }
}