1
0
mirror of https://github.com/bitwarden/server synced 2025-12-18 17:23:28 +00:00

api endpoints for seats, upgrade, and cancel org

This commit is contained in:
Kyle Spearrin
2017-04-10 11:49:53 -04:00
parent f8baf3abb3
commit ce93d4b07e
5 changed files with 76 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ using Bit.Core.Models.Business;
using Bit.Core.Models.Table;
using System;
using System.Collections.Generic;
using Bit.Core.Enums;
namespace Bit.Core.Services
{
@@ -11,6 +12,8 @@ namespace Bit.Core.Services
Task<OrganizationBilling> GetBillingAsync(Organization organization);
Task ReplacePaymentMethodAsync(Guid organizationId, string paymentToken);
Task CancelSubscriptionAsync(Guid organizationId, bool endOfPeriod = false);
Task UpgradePlanAsync(Guid organizationId, PlanType plan, int additionalSeats);
Task AdjustSeatsAsync(Guid organizationId, int seatAdjustment);
Task<Tuple<Organization, OrganizationUser>> SignUpAsync(OrganizationSignup organizationSignup);
Task<OrganizationUser> InviteUserAsync(Guid organizationId, Guid invitingUserId, string email,
Enums.OrganizationUserType type, IEnumerable<SubvaultUser> subvaults);