This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user