1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 17:12:49 -05:00

stripe subscription creation

This commit is contained in:
Kyle Spearrin
2017-04-04 10:13:16 -04:00
parent 5187f4c15f
commit a4ef7c906e
10 changed files with 29 additions and 11 deletions

View File

@ -10,6 +10,7 @@ namespace Bit.Core.Models.Api
public string Name { get; set; }
public PlanType PlanType { get; set; }
public string Key { get; set; }
public string CardToken { get; set; }
public virtual OrganizationSignup ToOrganizationSignup(User user)
{
@ -18,7 +19,8 @@ namespace Bit.Core.Models.Api
Owner = user,
OwnerKey = Key,
Name = Name,
Plan = PlanType
Plan = PlanType,
PaymentToken = CardToken
};
}
}