From 6cb436565f3f27b9eef39f491983e2b71010e067 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 6 May 2025 11:21:22 -0400 Subject: [PATCH] collab: Disable usage-based billing thresholds (#30016) This PR disables the usage-based billing thresholds. Release Notes: - N/A --- crates/collab/src/stripe_billing.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/collab/src/stripe_billing.rs b/crates/collab/src/stripe_billing.rs index 4b901669f81b46c57de0c5d5d530156e3ecc0f94..2e83bc116e2620f8e85936ccf6a1741f8b42cf51 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 {