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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user