1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-25 03:21:46 +01:00

[EC-484] Remove getBilling API (#2250)

* [EC-484] Remove getBilling API

* Formatting
This commit is contained in:
Vincent Salucci 2022-09-08 10:20:36 -05:00 committed by GitHub
parent e2eb0de384
commit e7c1014f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -622,21 +622,6 @@ public class AccountsController : Controller
};
}
[Obsolete("2022-04-01 Use separate Billing History/Payment APIs, left for backwards compatability with older clients")]
[HttpGet("billing")]
[SelfHosted(NotSelfHostedOnly = true)]
public async Task<BillingResponseModel> GetBilling()
{
var user = await _userService.GetUserByPrincipalAsync(User);
if (user == null)
{
throw new UnauthorizedAccessException();
}
var billingInfo = await _paymentService.GetBillingAsync(user);
return new BillingResponseModel(billingInfo);
}
[HttpGet("subscription")]
public async Task<SubscriptionResponseModel> GetSubscription()
{