Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

collab: Disable usage-based billing thresholds (#30016)

Marshall Bowers6cb436565f3f
diff --git a/crates/collab/src/stripe_billing.rs b/crates/collab/src/stripe_billing.rs
index 4b901669f81..2e83bc116e2 100644
--- a/crates/collab/src/stripe_billing.rs
+++ b/crates/collab/src/stripe_billing.rs
@@ -260,7 +260,7 @@ impl StripeBilling {
const BILLING_THRESHOLD_IN_CENTS: i64 = 20 * 100;
let price_per_unit = price.unit_amount.unwrap_or_default();
- let units_for_billing_threshold = BILLING_THRESHOLD_IN_CENTS / price_per_unit;
+ let _units_for_billing_threshold = BILLING_THRESHOLD_IN_CENTS / price_per_unit;
stripe::Subscription::update(
&self.client,
@@ -268,9 +268,6 @@ impl StripeBilling {
stripe::UpdateSubscription {
items: Some(vec![stripe::UpdateSubscriptionItems {
price: Some(price.id.to_string()),
- billing_thresholds: Some(stripe::SubscriptionItemBillingThresholds {
- usage_gte: Some(units_for_billing_threshold),
- }),
..Default::default()
}]),
trial_settings: Some(stripe::UpdateSubscriptionTrialSettings {