1
0
mirror of https://github.com/bitwarden/server synced 2025-12-19 01:33:20 +00:00

Revert "[PM-18028] Attempting to enable automatic tax on customer with invali…" (#5375)

This reverts commit 678d5d5d63.
This commit is contained in:
Jonas Hendrickx
2025-02-06 17:11:20 +01:00
committed by GitHub
parent 678d5d5d63
commit a1ef07ea69
8 changed files with 35 additions and 155 deletions

View File

@@ -1,16 +0,0 @@
using Bit.Core.Billing.Constants;
using Stripe;
namespace Bit.Core.Billing.Extensions;
public static class CustomerExtensions
{
/// <summary>
/// Determines if a Stripe customer supports automatic tax
/// </summary>
/// <param name="customer"></param>
/// <returns></returns>
public static bool HasTaxLocationVerified(this Customer customer) =>
customer?.Tax?.AutomaticTax == StripeConstants.AutomaticTaxStatus.Supported;
}