mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[PM-5766] Automatic Tax Feature Flag (#3729)
* Added feature flag constant * Wrapped Automatic Tax logic behind feature flag * Only getting customer if feature is anabled. * Enabled feature flag in unit tests * Made IPaymentService scoped * Added missing StripeFacade calls
This commit is contained in:
@ -701,6 +701,7 @@ public class StripePaymentServiceTests
|
||||
{
|
||||
organization.GatewaySubscriptionId = null;
|
||||
var stripeAdapter = sutProvider.GetDependency<IStripeAdapter>();
|
||||
var featureService = sutProvider.GetDependency<IFeatureService>();
|
||||
stripeAdapter.CustomerGetAsync(default).ReturnsForAnyArgs(new Stripe.Customer
|
||||
{
|
||||
Id = "C-1",
|
||||
@ -723,6 +724,7 @@ public class StripePaymentServiceTests
|
||||
AmountDue = 0
|
||||
});
|
||||
stripeAdapter.SubscriptionCreateAsync(default).ReturnsForAnyArgs(new Stripe.Subscription { });
|
||||
featureService.IsEnabled(FeatureFlagKeys.PM5766AutomaticTax).Returns(true);
|
||||
|
||||
var upgrade = new OrganizationUpgrade()
|
||||
{
|
||||
|
Reference in New Issue
Block a user