This commit is contained in:
2023-01-23 01:45:03 +00:00
parent ec6ec2701e
commit 040d8ca836
2 changed files with 62 additions and 50 deletions

View File

@@ -195,7 +195,10 @@ namespace Sockeye.Biz
{
var CustomerName = jCustomer["name"].Value<string>();
if (multiSite)
{
CustomerName += " - " + jSite["name"].Value<string>();
log.LogInformation($"RFImport MULTISITE CUSTOMER: {CustomerName}");
}
long CurrentCustomerId = 0;
//Create customer if we don't have one already
@@ -222,9 +225,12 @@ namespace Sockeye.Biz
if (jSite["hosted"].Value<bool>() == true)
c.Tags.Add("hosted");
var adminEmail = jCustomer["adminEmail"].Value<string>();
if (!string.IsNullOrWhiteSpace(adminEmail))
c.Notes += "\nAdmin Email: " + adminEmail;
//In rockfish there were support emails that were people allowed to be contacting us on behalf of the customer
var supportEmail = jCustomer["supportEmail"].Value<string>();
if (!string.IsNullOrWhiteSpace(supportEmail))
c.Notes += "\nSupport Emails: " + supportEmail;
//in Rockfish the admin email is the main license related contact and technically the only person responsible to contact us
//usually the same as the purchase email
c.EmailAddress = jCustomer["adminEmail"].Value<string>();
CustomerBiz biz = CustomerBiz.GetBiz(ct);
var NewObject = await biz.CreateAsync(c);