This commit is contained in:
@@ -246,7 +246,7 @@ namespace Sockeye.Biz
|
||||
p.Active = true;//not entirely true but we can always deactivate there aren't many products
|
||||
p.VendorId = 1;
|
||||
p.OurCode = p.VendorCode = jPurchase["productCode"].Value<string>();
|
||||
p.Group = ProductGroupFromProductCode(p.OurCode);
|
||||
p.PGroup = ProductGroupFromProductCode(p.OurCode);
|
||||
|
||||
if (p.VendorCode == "301028468")//subscription yearly
|
||||
{
|
||||
@@ -271,7 +271,7 @@ namespace Sockeye.Biz
|
||||
var s = new Purchase();
|
||||
s.VendorId = 1;
|
||||
s.ProductId = p.Id;
|
||||
s.Group = p.Group;
|
||||
s.PGroup = p.PGroup;
|
||||
s.CustomerId = CurrentCustomerId;
|
||||
s.CancelDate = DateUtil.EpochToDateNullIsNull(jPurchase["cancelDate"].Value<long?>());
|
||||
s.CouponCode = jPurchase["couponCode"].Value<string>();
|
||||
@@ -542,7 +542,7 @@ namespace Sockeye.Biz
|
||||
var jKey = JObject.Parse(keyNoWS);
|
||||
l.LicenseExpire = DateTime.MaxValue.ToUniversalTime();
|
||||
l.MaintenanceExpire = jKey["AyaNovaLicenseKey"]["Expires"].Value<DateTime>().ToUniversalTime();
|
||||
l.Group = ProductGroup.AyaNova7;
|
||||
l.PGroup = ProductGroup.AyaNova7;
|
||||
l.FetchCode = jLicense["code"].Value<string>();
|
||||
l.Tags.Add("v7");
|
||||
}
|
||||
@@ -560,7 +560,7 @@ namespace Sockeye.Biz
|
||||
var jKey = JObject.Parse(keyNoWS);
|
||||
l.LicenseExpire = DateTime.MaxValue.ToUniversalTime();
|
||||
l.MaintenanceExpire = jKey["AyaNovaLiteLicenseKey"]["Expires"].Value<DateTime>().ToUniversalTime();
|
||||
l.Group = ProductGroup.AyaNova7;
|
||||
l.PGroup = ProductGroup.AyaNova7;
|
||||
l.FetchCode = jLicense["code"].Value<string>();
|
||||
l.Tags.Add("v7");
|
||||
l.Tags.Add("lite");
|
||||
@@ -592,9 +592,9 @@ namespace Sockeye.Biz
|
||||
l.DbId = jKey["Key"]["DBID"].Value<string>();
|
||||
l.LicenseExpire = jKey["Key"]["LicenseExpiration"].Value<DateTime>().ToUniversalTime();
|
||||
if (jKey["Key"]["Perpetual"].Value<bool>())
|
||||
l.Group = ProductGroup.RavenPerpetual;
|
||||
l.PGroup = ProductGroup.RavenPerpetual;
|
||||
else
|
||||
l.Group = ProductGroup.RavenSubscription;
|
||||
l.PGroup = ProductGroup.RavenSubscription;
|
||||
l.MaintenanceExpire = jKey["Key"]["MaintenanceExpiration"].Value<DateTime>().ToUniversalTime();
|
||||
l.Tags.Add("raven");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user