1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00
This commit is contained in:
Jonas Hendrickx 2024-11-19 13:52:16 +01:00
parent e77430823c
commit 8e79be49e8

View File

@ -1,6 +1,4 @@
using Bit.Api.Billing.Models.Responses; using Bit.Core.Services;
using Bit.Core.Billing.Services;
using Bit.Core.Services;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http.HttpResults; using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
@ -10,8 +8,7 @@ namespace Bit.Api.Billing.Controllers;
[Authorize("Application")] [Authorize("Application")]
public class StripeController( public class StripeController(
IStripeAdapter stripeAdapter, IStripeAdapter stripeAdapter) : Controller
ITaxService taxService) : Controller
{ {
[HttpPost] [HttpPost]
[Route("~/setup-intent/bank-account")] [Route("~/setup-intent/bank-account")]
@ -49,13 +46,4 @@ public class StripeController(
return TypedResults.Ok(setupIntent.ClientSecret); return TypedResults.Ok(setupIntent.ClientSecret);
} }
[HttpGet]
[AllowAnonymous]
[Route("~/tax/id-types")]
public IResult GetTaxIdTypes()
{
var response = TaxIdTypesResponse.From(taxService.GetTaxIdTypes());
return TypedResults.Ok(response);
}
} }