Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 5
0
 public string BillingEmailAddress()
 {
     return(BillingEmail?.ToLowerInvariant()?.Trim());
 }