1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

[PM-18578] Don't enable automatic tax for non-taxable non-US businesses during invoice.upcoming (#5443)

* Only enable automatic tax for US subscriptions or EU subscriptions that are taxable.

* Run dotnet format
This commit is contained in:
Alex Morask
2025-02-25 13:36:12 -05:00
committed by GitHub
parent 66feebd358
commit 622ef902ed
2 changed files with 113 additions and 112 deletions

View File

@ -5,6 +5,15 @@ namespace Bit.Core.Billing.Extensions;
public static class CustomerExtensions
{
public static bool HasBillingLocation(this Customer customer)
=> customer is
{
Address:
{
Country: not null and not "",
PostalCode: not null and not ""
}
};
/// <summary>
/// Determines if a Stripe customer supports automatic tax