collab: Fix spelling of "cancellation" (#15569)

English is hard.

In US English the forms of "cancel" are as follows:

- `cancel`
- `cancels`
- `canceling`
- `canceled`
- `cancellation`

Note that `cancellation` _does_ use the double `l`, which all the rest
of the forms do not.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-31 17:36:26 -04:00 committed by GitHub
parent 54f774bfeb
commit 0d9a6d246a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,8 +171,8 @@ async fn create_billing_subscription(
enum ManageSubscriptionIntent {
/// The user intends to cancel their subscription.
Cancel,
/// The user intends to stop the cancelation of their subscription.
StopCancelation,
/// The user intends to stop the cancellation of their subscription.
StopCancellation,
}
#[derive(Debug, Deserialize)]
@ -221,7 +221,7 @@ async fn manage_billing_subscription(
.await?
.ok_or_else(|| anyhow!("subscription not found"))?;
if body.intent == ManageSubscriptionIntent::StopCancelation {
if body.intent == ManageSubscriptionIntent::StopCancellation {
let subscription_id = SubscriptionId::from_str(&subscription.stripe_subscription_id)
.context("failed to parse subscription ID")?;
@ -273,7 +273,7 @@ async fn manage_billing_subscription(
),
..Default::default()
},
ManageSubscriptionIntent::StopCancelation => unreachable!(),
ManageSubscriptionIntent::StopCancellation => unreachable!(),
};
let mut params = CreateBillingPortalSession::new(customer_id);