public Dictionary<string, string> NewApplicationHasGuarantor(EmailContent emailContent) { var dict = new Dictionary<string, string> { {"email", emailContent.TenantEmailAddress}, //segment ID {"tenantEmail", emailContent.TenantEmailAddress }, {"hasGuarantor", "true"}, {"hasOnlyDeclinedGuarantors", "false"} }; return dict; }
public Dictionary<string, string> LandlordNewPropertySubmission(EmailContent emailContent) { var dict = new Dictionary<string, string> { { "email", emailContent.TenantEmailAddress }, {"landlordEmail", emailContent.TenantEmailAddress}, {"landlordFirstName", emailContent.TenantFirstName}, {"landlordMobileNumber", emailContent.TenantTelephoneNumber}, {"landlordReference", emailContent.ApplicationReference}, { "hadNewSubmittedProperty", true.ToString() } }; return dict; }
public Dictionary<string, string> BookAViewing(EmailContent emailContent) { var dict = new Dictionary<string, string> { {"email", emailContent.TenantEmailAddress}, //segment ID {"tenantEmail", emailContent.TenantEmailAddress}, {"tenantFirstName", emailContent.TenantFirstName}, {"tenantMobileNumber", emailContent.TenantTelephoneNumber}, {"applicationReference", emailContent.ApplicationReference}, {"hasBooking", "false"}, {"propertyReference", emailContent.PropertyReference }, {"propertyAddress1", emailContent.PropertyAddress1 }, { "propertyAddress2", emailContent.PropertyAddress2 } }; return dict; }
public static EmailContent BookAViewing(Customer tenant, string applicationReference, Property property) { var emailContent = new EmailContent(); emailContent.TenantEmailAddress = tenant.Email; emailContent.TenantFirstName = string.IsNullOrEmpty(tenant.KnownAs) ? NameHelper.Capitalize(tenant.GivenName) : NameHelper.Capitalize(tenant.KnownAs); emailContent.TenantTelephoneNumber = tenant.TelephoneNumber; emailContent.ApplicationReference = applicationReference; emailContent.PropertyReference = property.PropertyReference; emailContent.PropertyAddress1 = property.AddressLine1; emailContent.PropertyAddress2 = property.AddressLine2; return emailContent; }
public Dictionary<string, string> NewApplicationNoGuarantor(EmailContent emailContent) { var dict = new Dictionary<string, string> { {"email", emailContent.TenantEmailAddress}, //segment ID {"tenantEmail", emailContent.TenantEmailAddress}, {"tenantFirstName", emailContent.TenantFirstName}, {"tenantMobileNumber", emailContent.TenantTelephoneNumber}, {"applicationReference", emailContent.ApplicationReference}, { "guarantorRegistrationShortUrl", emailContent.ShortUrls.FirstOrDefault(s => s.Type == ShortUrlType.GuarantorRegistration)?.Value }, {"hasGuarantor", "false"} }; return dict; }
public static EmailContent NewProperty(ApplicationSummary applicationSummary) { var emailContent = new EmailContent(); var tenant = applicationSummary.Customers.FirstOrDefault( s => EnumHelper<RoleType>.Parse(s.RoleType) == RoleType.MasterTenant); emailContent.ApplicationReference = applicationSummary.ApplicationReference; emailContent.TenantTelephoneNumber = tenant.TelephoneNumber; emailContent.ShortUrls = new List<ShortUrl>(); emailContent.ShortUrls.AddRange(applicationSummary.ShortUrls); emailContent.TenantEmailAddress = tenant.Email; emailContent.TenantFirstName = string.IsNullOrEmpty(tenant.KnownAs) ? NameHelper.Capitalize(tenant.GivenName) : NameHelper.Capitalize(tenant.KnownAs); emailContent.PropertyReference = applicationSummary.PropertyReference; return emailContent; }
public static EmailContent GuarantorDeclined(Customer tenant, string applicationReference, string registrationUrl) { var emailContent = new EmailContent(); emailContent.ShortUrls = new List<ShortUrl>(); emailContent.ShortUrls.Add(new ShortUrl { Type = ShortUrlType.GuarantorRegistration, Value = registrationUrl }); emailContent.TenantEmailAddress = tenant.Email; emailContent.TenantFirstName = string.IsNullOrEmpty(tenant.KnownAs) ? NameHelper.Capitalize(tenant.GivenName) : NameHelper.Capitalize(tenant.KnownAs); emailContent.TenantTelephoneNumber = tenant.TelephoneNumber; emailContent.ApplicationReference = applicationReference; return emailContent; }
public Dictionary<string, string> TenantMyMatchesHasGuarantor(EmailContent emailContent) { var dict = new Dictionary<string, string> { {"email", emailContent.TenantEmailAddress}, //segment ID {"tenantEmail", emailContent.TenantEmailAddress}, {"hasGuarantor", "true"}, {"tenantFirstName", emailContent.TenantFirstName}, {"tenantMobileNumber", emailContent.TenantTelephoneNumber}, {"applicationReference", emailContent.ApplicationReference}, { "myMatchesShortUrl", emailContent.ShortUrls.FirstOrDefault(s => s.Type == ShortUrlType.TenantPropertyMatches)?.Value }, {"propertyReference", emailContent.PropertyReference } }; return dict; }