public Organization ToOrganization(Organization existingOrganization) { existingOrganization.Name = Name; existingOrganization.BusinessName = BusinessName; existingOrganization.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim(); existingOrganization.PlanType = PlanType.Value; existingOrganization.Plan = Plan; existingOrganization.Seats = Seats; existingOrganization.MaxCollections = MaxCollections; existingOrganization.UsePolicies = UsePolicies; existingOrganization.UseSso = UseSso; existingOrganization.UseKeyConnector = UseKeyConnector; existingOrganization.UseScim = UseScim; existingOrganization.UseGroups = UseGroups; existingOrganization.UseDirectory = UseDirectory; existingOrganization.UseEvents = UseEvents; existingOrganization.UseTotp = UseTotp; existingOrganization.Use2fa = Use2fa; existingOrganization.UseApi = UseApi; existingOrganization.UseResetPassword = UseResetPassword; existingOrganization.SelfHost = SelfHost; existingOrganization.UsersGetPremium = UsersGetPremium; existingOrganization.MaxStorageGb = MaxStorageGb; existingOrganization.Gateway = Gateway; existingOrganization.GatewayCustomerId = GatewayCustomerId; existingOrganization.GatewaySubscriptionId = GatewaySubscriptionId; existingOrganization.Enabled = Enabled; existingOrganization.LicenseKey = LicenseKey; existingOrganization.ExpirationDate = ExpirationDate; existingOrganization.MaxAutoscaleSeats = MaxAutoscaleSeats; return(existingOrganization); }
public Provider ToProvider(Provider existingProvider) { existingProvider.Name = Name; existingProvider.BusinessName = BusinessName; existingProvider.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim(); return(existingProvider); }
public Provider ToProvider(Provider existingProvider) { existingProvider.Name = Name; existingProvider.BusinessName = BusinessName; existingProvider.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim(); existingProvider.UseEvents = UseEvents; existingProvider.Enabled = Enabled; return(existingProvider); }
public virtual Organization ToOrganization(Organization existingOrganization, GlobalSettings globalSettings) { if (!globalSettings.SelfHosted) { // These items come from the license file existingOrganization.Name = Name; existingOrganization.BusinessName = BusinessName; existingOrganization.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim(); } existingOrganization.Identifier = Identifier; return(existingOrganization); }
public string BillingEmailAddress() { return(BillingEmail?.ToLowerInvariant()?.Trim()); }