mirror of
https://github.com/bitwarden/server
synced 2025-12-18 01:03:17 +00:00
Add resend sponsorship offer api endpoint
This commit is contained in:
@@ -91,6 +91,7 @@ namespace Bit.Core.Services
|
||||
{
|
||||
sponsorship = await _organizationSponsorshipRepository.CreateAsync(sponsorship);
|
||||
|
||||
await SendSponsorshipOfferAsync(sponsoringOrg, sponsorship);
|
||||
await _mailService.SendFamiliesForEnterpriseOfferEmailAsync(sponsoredEmail, sponsoringOrg.Name,
|
||||
RedemptionToken(sponsorship.Id, sponsorshipType));
|
||||
}
|
||||
@@ -104,6 +105,12 @@ namespace Bit.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
public async Task SendSponsorshipOfferAsync(Organization sponsoringOrg, OrganizationSponsorship sponsorship)
|
||||
{
|
||||
await _mailService.SendFamiliesForEnterpriseOfferEmailAsync(sponsorship.OfferedToEmail, sponsoringOrg.Name,
|
||||
RedemptionToken(sponsorship.Id, sponsorship.PlanSponsorshipType.Value));
|
||||
}
|
||||
|
||||
public async Task SetUpSponsorshipAsync(OrganizationSponsorship sponsorship, Organization sponsoredOrganization)
|
||||
{
|
||||
if (sponsorship.PlanSponsorshipType == null)
|
||||
|
||||
Reference in New Issue
Block a user