Kavita+ Overhaul & New Changelog (#3507)
This commit is contained in:
parent
d880c1690c
commit
a5707617f2
249 changed files with 14775 additions and 2300 deletions
9
API/DTOs/KavitaPlus/License/EncryptLicenseDto.cs
Normal file
9
API/DTOs/KavitaPlus/License/EncryptLicenseDto.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
namespace API.DTOs.KavitaPlus.License;
|
||||
|
||||
public class EncryptLicenseDto
|
||||
{
|
||||
public required string License { get; set; }
|
||||
public required string InstallId { get; set; }
|
||||
public required string EmailId { get; set; }
|
||||
public string? DiscordId { get; set; }
|
||||
}
|
35
API/DTOs/KavitaPlus/License/LicenseInfoDto.cs
Normal file
35
API/DTOs/KavitaPlus/License/LicenseInfoDto.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
|
||||
namespace API.DTOs.KavitaPlus.License;
|
||||
|
||||
public class LicenseInfoDto
|
||||
{
|
||||
/// <summary>
|
||||
/// If cancelled, will represent cancellation date. If not, will represent repayment date
|
||||
/// </summary>
|
||||
public DateTime ExpirationDate { get; set; }
|
||||
/// <summary>
|
||||
/// If cancelled or not
|
||||
/// </summary>
|
||||
public bool IsActive { get; set; }
|
||||
/// <summary>
|
||||
/// If will be or is cancelled
|
||||
/// </summary>
|
||||
public bool IsCancelled { get; set; }
|
||||
/// <summary>
|
||||
/// Is the installed version valid for Kavita+ (aka within 3 releases)
|
||||
/// </summary>
|
||||
public bool IsValidVersion { get; set; }
|
||||
/// <summary>
|
||||
/// The email on file
|
||||
/// </summary>
|
||||
public string RegisteredEmail { get; set; }
|
||||
/// <summary>
|
||||
/// Number of months user has been subscribed
|
||||
/// </summary>
|
||||
public int TotalMonthsSubbed { get; set; }
|
||||
/// <summary>
|
||||
/// A license is stored within Kavita
|
||||
/// </summary>
|
||||
public bool HasLicense { get; set; }
|
||||
}
|
7
API/DTOs/KavitaPlus/License/LicenseValidDto.cs
Normal file
7
API/DTOs/KavitaPlus/License/LicenseValidDto.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace API.DTOs.KavitaPlus.License;
|
||||
|
||||
public class LicenseValidDto
|
||||
{
|
||||
public required string License { get; set; }
|
||||
public required string InstallId { get; set; }
|
||||
}
|
8
API/DTOs/KavitaPlus/License/ResetLicenseDto.cs
Normal file
8
API/DTOs/KavitaPlus/License/ResetLicenseDto.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace API.DTOs.KavitaPlus.License;
|
||||
|
||||
public class ResetLicenseDto
|
||||
{
|
||||
public required string License { get; set; }
|
||||
public required string InstallId { get; set; }
|
||||
public required string EmailId { get; set; }
|
||||
}
|
17
API/DTOs/KavitaPlus/License/UpdateLicenseDto.cs
Normal file
17
API/DTOs/KavitaPlus/License/UpdateLicenseDto.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
namespace API.DTOs.KavitaPlus.License;
|
||||
|
||||
public class UpdateLicenseDto
|
||||
{
|
||||
/// <summary>
|
||||
/// License Key received from Kavita+
|
||||
/// </summary>
|
||||
public required string License { get; set; }
|
||||
/// <summary>
|
||||
/// Email registered with Stripe
|
||||
/// </summary>
|
||||
public required string Email { get; set; }
|
||||
/// <summary>
|
||||
/// Optional DiscordId
|
||||
/// </summary>
|
||||
public string? DiscordId { get; set; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue