Beispiel #1
0
        public virtual OrganizationSignup ToOrganizationSignup(User user)
        {
            var orgSignup = new OrganizationSignup
            {
                Owner               = user,
                OwnerKey            = Key,
                Name                = Name,
                Plan                = PlanType,
                PaymentMethodType   = PaymentMethodType,
                PaymentToken        = PaymentToken,
                AdditionalSeats     = AdditionalSeats,
                MaxAutoscaleSeats   = MaxAutoscaleSeats,
                AdditionalStorageGb = AdditionalStorageGb.GetValueOrDefault(0),
                PremiumAccessAddon  = PremiumAccessAddon,
                BillingEmail        = BillingEmail,
                BusinessName        = BusinessName,
                CollectionName      = CollectionName,
                TaxInfo             = new TaxInfo
                {
                    TaxIdNumber              = TaxIdNumber,
                    BillingAddressLine1      = BillingAddressLine1,
                    BillingAddressLine2      = BillingAddressLine2,
                    BillingAddressCity       = BillingAddressCity,
                    BillingAddressState      = BillingAddressState,
                    BillingAddressPostalCode = BillingAddressPostalCode,
                    BillingAddressCountry    = BillingAddressCountry,
                },
            };

            Keys?.ToOrganizationSignup(orgSignup);

            return(orgSignup);
        }
Beispiel #2
0
 public OrganizationUpgrade ToOrganizationUpgrade()
 {
     return(new OrganizationUpgrade
     {
         AdditionalSeats = AdditionalSeats,
         AdditionalStorageGb = AdditionalStorageGb.GetValueOrDefault(),
         BusinessName = BusinessName,
         Plan = PlanType,
         PremiumAccessAddon = PremiumAccessAddon
     });
 }
 public OrganizationUpgrade ToOrganizationUpgrade()
 {
     return(new OrganizationUpgrade
     {
         AdditionalSeats = AdditionalSeats,
         AdditionalStorageGb = AdditionalStorageGb.GetValueOrDefault(),
         BusinessName = BusinessName,
         Plan = PlanType,
         PremiumAccessAddon = PremiumAccessAddon,
         TaxInfo = new TaxInfo()
         {
             BillingAddressCountry = BillingAddressCountry,
             BillingAddressPostalCode = BillingAddressPostalCode
         }
     });
 }
 public virtual OrganizationSignup ToOrganizationSignup(User user)
 {
     return(new OrganizationSignup
     {
         Owner = user,
         OwnerKey = Key,
         Name = Name,
         Plan = PlanType,
         PaymentToken = PaymentToken,
         AdditionalSeats = AdditionalSeats,
         AdditionalStorageGb = AdditionalStorageGb.GetValueOrDefault(0),
         BillingEmail = BillingEmail,
         BusinessName = BusinessName,
         CollectionName = CollectionName
     });
 }