Ejemplo 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);
 }
Ejemplo n.º 2
0
 public Provider ToProvider(Provider existingProvider)
 {
     existingProvider.Name         = Name;
     existingProvider.BusinessName = BusinessName;
     existingProvider.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim();
     return(existingProvider);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 5
0
 public void FillBillingInfo(BillingInfo billingInfo)
 {
     OrderCommentsTextArea.SetText(billingInfo.OrderCommentsTextArea);
     BillingFirstName.SetText(billingInfo.FirstName);
     BillingLastName.SetText(billingInfo.LastName);
     BillingCompany.SetText(billingInfo.Company);
     BillingCountry.SelectByText(billingInfo.Country);
     BillingAddress1.SetText(billingInfo.Address1);
     BillingAddress2.SetText(billingInfo.Address2);
     BillingCity.SetText(billingInfo.City);
     BillingState.SelectByText(billingInfo.State);
     BillingZip.SetText(billingInfo.Zip);
     BillingPhone.SetPhone(billingInfo.Phone);
     BillingEmail.SetEmail(billingInfo.Email);
     if (billingInfo.ShouldCreateAccount)
     {
         CreateAccountCheckBox.Check();
     }
 }
Ejemplo n.º 6
0
 public string BillingEmailAddress()
 {
     return(BillingEmail?.ToLowerInvariant()?.Trim());
 }