1
0
mirror of https://github.com/bitwarden/server synced 2025-12-15 07:43:54 +00:00

apis for subscription vs billing

This commit is contained in:
Kyle Spearrin
2019-02-18 15:40:47 -05:00
parent 5945c39b32
commit b036657d78
14 changed files with 353 additions and 340 deletions

View File

@@ -1207,8 +1207,8 @@ namespace Bit.Core.Services
throw new BadRequestException("Invalid installation id");
}
var billingInfo = await _paymentService.GetBillingAsync(organization);
return new OrganizationLicense(organization, billingInfo, installationId, _licensingService);
var subInfo = await _paymentService.GetSubscriptionAsync(organization);
return new OrganizationLicense(organization, subInfo, installationId, _licensingService);
}
public async Task ImportAsync(Guid organizationId,