mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
[Features] Subscriptions
This commit is contained in:
38
BTCPayServer.Client/Models/SubscriptionPlanModel.cs
Normal file
38
BTCPayServer.Client/Models/SubscriptionPlanModel.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using BTCPayServer.JsonConverters;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace BTCPayServer.Client.Models;
|
||||
|
||||
public class SubscriptionPlanModel
|
||||
{
|
||||
public enum PlanStatus
|
||||
{
|
||||
Active,
|
||||
Retired
|
||||
}
|
||||
|
||||
public enum RecurringInterval
|
||||
{
|
||||
Monthly,
|
||||
Quarterly,
|
||||
Yearly,
|
||||
Lifetime
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public PlanStatus Status { get; set; }
|
||||
[JsonConverter(typeof(NumericStringJsonConverter))]
|
||||
public decimal Price { get; set; }
|
||||
public string Currency { get; set; }
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public RecurringInterval RecurringType { get; set; }
|
||||
public int GracePeriodDays { get; set; }
|
||||
public int TrialDays { get; set; }
|
||||
public string Description { get; set; }
|
||||
public int MemberCount { get; set; }
|
||||
public bool OptimisticActivation { get; set; }
|
||||
public string[] Entitlements { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user