1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-02 13:53:23 +01:00
bitwarden-server/src/Core/Services/IOrganizationService.cs

24 lines
1.3 KiB
C#
Raw Normal View History

using System.Threading.Tasks;
using Bit.Core.Models.Business;
2017-03-09 03:45:08 +01:00
using Bit.Core.Models.Table;
using System;
2017-03-10 05:58:43 +01:00
using System.Collections.Generic;
namespace Bit.Core.Services
{
public interface IOrganizationService
{
2017-04-06 22:52:39 +02:00
Task<OrganizationBilling> GetBillingAsync(Organization organization);
2017-04-08 22:41:40 +02:00
Task ReplacePaymentMethodAsync(Guid organizationId, string paymentToken);
2017-04-09 00:15:20 +02:00
Task CancelSubscriptionAsync(Guid organizationId, bool endOfPeriod = false);
Task<Tuple<Organization, OrganizationUser>> SignUpAsync(OrganizationSignup organizationSignup);
Task<OrganizationUser> InviteUserAsync(Guid organizationId, Guid invitingUserId, string email,
Enums.OrganizationUserType type, IEnumerable<SubvaultUser> subvaults);
Task ResendInviteAsync(Guid organizationId, Guid invitingUserId, Guid organizationUserId);
2017-03-05 03:28:41 +01:00
Task<OrganizationUser> AcceptUserAsync(Guid organizationUserId, User user, string token);
Task<OrganizationUser> ConfirmUserAsync(Guid organizationId, Guid organizationUserId, string key, Guid confirmingUserId);
Task SaveUserAsync(OrganizationUser user, Guid savingUserId, IEnumerable<SubvaultUser> subvaults);
Task DeleteUserAsync(Guid organizationId, Guid organizationUserId, Guid deletingUserId);
}
}