mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
[Features] Subscriptions
This commit is contained in:
23
BTCPayServer.Client/Models/SubscriberModel.cs
Normal file
23
BTCPayServer.Client/Models/SubscriberModel.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Client.Models;
|
||||
|
||||
public class SubscriberModel
|
||||
{
|
||||
public CustomerModel Customer { get; set; }
|
||||
public OfferingModel Offer { get; set; }
|
||||
public SubscriptionPlanModel Plan { get; set; }
|
||||
|
||||
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
||||
public DateTimeOffset? PeriodEnd { get; set; }
|
||||
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
||||
public DateTimeOffset? TrialEnd { get; set; }
|
||||
|
||||
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
||||
public DateTimeOffset? GracePeriodEnd { get; set; }
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
public bool IsSuspended { get; set; }
|
||||
public string SuspensionReason { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user