mirror of
https://github.com/bitwarden/server
synced 2025-12-22 19:23:45 +00:00
Milestone 2C Update (#6560)
* fix(billing): milestone update * tests(billing): update tests
This commit is contained in:
@@ -177,7 +177,8 @@ public class UpcomingInvoiceHandler(
|
||||
Discounts =
|
||||
[
|
||||
new SubscriptionDiscountOptions { Coupon = CouponIDs.Milestone2SubscriptionDiscount }
|
||||
]
|
||||
],
|
||||
ProrationBehavior = "none"
|
||||
});
|
||||
}
|
||||
catch (Exception exception)
|
||||
|
||||
@@ -123,9 +123,7 @@ public class PricingClient(
|
||||
return [CurrentPremiumPlan];
|
||||
}
|
||||
|
||||
var milestone2Feature = featureService.IsEnabled(FeatureFlagKeys.PM23341_Milestone_2);
|
||||
|
||||
var response = await httpClient.GetAsync($"plans/premium?milestone2={milestone2Feature}");
|
||||
var response = await httpClient.GetAsync("plans/premium");
|
||||
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
|
||||
@@ -268,7 +268,8 @@ public class UpcomingInvoiceHandlerTests
|
||||
Arg.Is("sub_123"),
|
||||
Arg.Is<SubscriptionUpdateOptions>(o =>
|
||||
o.Items[0].Id == priceSubscriptionId &&
|
||||
o.Items[0].Price == priceId));
|
||||
o.Items[0].Price == priceId &&
|
||||
o.ProrationBehavior == "none"));
|
||||
|
||||
// Verify the updated invoice email was sent
|
||||
await _mailer.Received(1).SendEmail(
|
||||
|
||||
Reference in New Issue
Block a user