From e7c1014f96dd59317e899affd697eae63cfee810 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Thu, 8 Sep 2022 10:20:36 -0500 Subject: [PATCH] [EC-484] Remove getBilling API (#2250) * [EC-484] Remove getBilling API * Formatting --- src/Api/Controllers/AccountsController.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/Api/Controllers/AccountsController.cs b/src/Api/Controllers/AccountsController.cs index 74aa469c98..5d7e6511a9 100644 --- a/src/Api/Controllers/AccountsController.cs +++ b/src/Api/Controllers/AccountsController.cs @@ -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 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 GetSubscription() {