mirror of
https://github.com/bitwarden/server
synced 2026-01-08 19:43:34 +00:00
[PM-13999] Show estimated tax for taxable countries (#5077)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Bit.Core.Services;
|
||||
using Bit.Core.Billing.Services;
|
||||
using Bit.Core.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http.HttpResults;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -46,4 +47,15 @@ public class StripeController(
|
||||
|
||||
return TypedResults.Ok(setupIntent.ClientSecret);
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("~/tax/is-country-supported")]
|
||||
public IResult IsCountrySupported(
|
||||
[FromQuery] string country,
|
||||
[FromServices] ITaxService taxService)
|
||||
{
|
||||
var isSupported = taxService.IsSupported(country);
|
||||
|
||||
return TypedResults.Ok(isSupported);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user