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:
20
src/Core/Models/Business/OrganizationSignup.cs
Normal file
20
src/Core/Models/Business/OrganizationSignup.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
}
|
15
src/Core/Models/StaticStore/Plan.cs
Normal file
15
src/Core/Models/StaticStore/Plan.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user