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

WIP: scaffolding for families for enterprise sponsorship flow

This commit is contained in:
Matt Gibson
2021-10-30 13:34:03 -04:00
parent dea366828b
commit 0255a2ea15
7 changed files with 258 additions and 28 deletions

View File

@@ -1,7 +1,12 @@
using System.Threading.Tasks;
using Bit.Core.Models.Table;
namespace Bit.Core.Services
{
public interface IOrganizationSponsorshipService
{
Task OfferSponsorshipAsync(Organization sponsoringOrg, OrganizationUser sponsoringOrgUser, string sponsoredEmail);
Task SetUpSponsorshipAsync(OrganizationSponsorship sponsorship, Organization sponsoredOrganization);
Task RemoveSponsorshipAsync(OrganizationSponsorship sponsorship);
}
}

View File

@@ -1,3 +1,6 @@
using System;
using System.Threading.Tasks;
using Bit.Core.Models.Table;
using Bit.Core.Repositories;
namespace Bit.Core.Services
@@ -10,5 +13,24 @@ namespace Bit.Core.Services
{
_organizationSponsorshipRepository = organizationSponsorshipRepository;
}
public async Task OfferSponsorshipAsync(Organization sponsoringOrg, OrganizationUser sponsoringOrgUser, string sponsoredEmail)
{
// TODO: send sponsorship email, update sponsorship with offered email
throw new NotImplementedException();
}
public async Task SetUpSponsorshipAsync(OrganizationSponsorship sponsorship, Organization sponsoredOrganization)
{
// TODO: set up sponsorship
throw new NotImplementedException();
}
public async Task RemoveSponsorshipAsync(OrganizationSponsorship sponsorship)
{
// TODO: remove sponsorship
throw new NotImplementedException();
}
}
}