1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 23:52:50 -05:00

organization signup apis and data model changes

This commit is contained in:
Kyle Spearrin
2017-03-03 00:07:11 -05:00
parent b18b6a44ef
commit 29e3605576
20 changed files with 371 additions and 131 deletions

View File

@ -0,0 +1,20 @@
using Bit.Core.Domains;
using System;
namespace Bit.Core.Models.Business
{
public class OrganizationSignup
{
public string Name { get; set; }
public User Owner { get; set; }
public string OwnerKey { get; set; }
public Enums.PlanType Plan { get; set; }
public PaymentDetails Payment { get; set; }
public class PaymentDetails
{
public string Name { get; set; }
public string Token { get; set; }
}
}
}

View File

@ -0,0 +1,15 @@
using Bit.Core.Enums;
using System;
namespace Bit.Core.Models.StaticStore
{
public class Plan
{
public PlanType Type { get; set; }
public short MaxUsers { get; set; }
public decimal Price { get; set; }
public TimeSpan? Trial { get; set; }
public Func<TimeSpan> Cycle { get; set; }
public bool Disabled { get; set; }
}
}