mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
* Add grouping by payment methods * Add filtering by pull payment state * Hide "Archive" button for archived pull payments * Don't show payment methods bar if there is only one * Add "All" payment method option * Remove filtering by payment method * Update state queries to not run on the client * Add filtering by future pull payments
35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using System;
|
|
using BTCPayServer.Client.JsonConverters;
|
|
using BTCPayServer.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public enum PullPaymentState
|
|
{
|
|
Active,
|
|
Expired,
|
|
Archived,
|
|
Future
|
|
}
|
|
public class PullPaymentData
|
|
{
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset StartsAt { get; set; }
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset? ExpiresAt { get; set; }
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string Currency { get; set; }
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal Amount { get; set; }
|
|
[JsonConverter(typeof(TimeSpanJsonConverter.Seconds))]
|
|
public TimeSpan? Period { get; set; }
|
|
[JsonConverter(typeof(TimeSpanJsonConverter.Days))]
|
|
[JsonProperty("BOLT11Expiration")]
|
|
public TimeSpan BOLT11Expiration { get; set; }
|
|
public bool Archived { get; set; }
|
|
public string ViewLink { get; set; }
|
|
}
|
|
}
|