subscription license code additions
This commit is contained in:
@@ -93,7 +93,7 @@ Plugins:
|
||||
sb.AppendLine("Temporary license for evaluation");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// if (f.Feature == QBI_FEATURE_NAME)
|
||||
// {
|
||||
// sb.AppendLine("QuickBooks desktop integration option");
|
||||
@@ -277,14 +277,14 @@ Plugins:
|
||||
// k.Id = $"00-{sId}";
|
||||
k.RegisteredTo = CompanyName;
|
||||
k.DbId = dbid;
|
||||
k.Perpetual=Perpetual;
|
||||
k.Perpetual = Perpetual;
|
||||
|
||||
//trial period time limit
|
||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
||||
|
||||
//flag as trial key not regular key
|
||||
k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
||||
|
||||
|
||||
|
||||
//add every possible feature
|
||||
//k.Features.Add(new LicenseFeature() { Feature = QBI_FEATURE_NAME, Count = 0 });
|
||||
@@ -341,6 +341,9 @@ Plugins:
|
||||
w.WritePropertyName("DBID");
|
||||
w.WriteValue(k.DbId);
|
||||
|
||||
w.WritePropertyName("Perpetual");
|
||||
w.WriteValue(k.Perpetual);
|
||||
|
||||
w.WritePropertyName("LicenseExpiration");
|
||||
w.WriteValue(k.LicenseExpiration);
|
||||
|
||||
@@ -458,8 +461,9 @@ oArP0E2Vbow3JMxq/oeXmHbrLMLQfYyXwFmciLFigOtkd45bfHdrbA==
|
||||
|
||||
|
||||
|
||||
|
||||
public static string GetRavenTestKey(string dbid)
|
||||
//this is for development purposes only
|
||||
//No external usage
|
||||
public static string GetRavenTestKey(string dbid, bool Perpetual)
|
||||
{
|
||||
|
||||
//Build a sample test key, sign it and return it
|
||||
@@ -467,13 +471,10 @@ oArP0E2Vbow3JMxq/oeXmHbrLMLQfYyXwFmciLFigOtkd45bfHdrbA==
|
||||
k.LicenseFormat = "8";
|
||||
k.RegisteredTo = "GZ TestCo Inc.";
|
||||
k.DbId = dbid;
|
||||
// k.Features.Add(new LicenseFeature() { Feature = QBI_FEATURE_NAME, Count = 0 });
|
||||
// k.Features.Add(new LicenseFeature() { Feature = QBOI_FEATURE_NAME, Count = 0 });
|
||||
// k.Features.Add(new LicenseFeature() { Feature = OLI_FEATURE_NAME, Count = 0 });
|
||||
k.Perpetual = Perpetual;
|
||||
k.Features.Add(new LicenseFeature() { Feature = SERVICE_TECHS_FEATURE_NAME, Count = 100 });
|
||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddMonths(1);
|
||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
||||
k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
||||
// k.Features.Add(new LicenseFeature() { Feature = SUBSCRIPTION_FEATURE_NAME, Count = 0 });
|
||||
return GenerateRavenKey(k);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user