mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 23:54:26 +01:00
subs
This commit is contained in:
19
Plugins/BTCPayServer.Plugins.Subscriptions/Subscription.cs
Normal file
19
Plugins/BTCPayServer.Plugins.Subscriptions/Subscription.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace BTCPayServer.Plugins.Subscriptions;
|
||||
|
||||
public class Subscription
|
||||
|
||||
|
||||
{
|
||||
public string Email { get; set; }
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public SubscriptionStatus Status { get; set; }
|
||||
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
||||
public DateTimeOffset Start { get; set; }
|
||||
public List<SubscriptionPaymentHistory> Payments { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user