mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
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; }
|
|
}
|