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:
parent
54f774bfeb
commit
0d9a6d246a
1 changed files with 4 additions and 4 deletions
|
@ -171,8 +171,8 @@ async fn create_billing_subscription(
|
||||||
enum ManageSubscriptionIntent {
|
enum ManageSubscriptionIntent {
|
||||||
/// The user intends to cancel their subscription.
|
/// The user intends to cancel their subscription.
|
||||||
Cancel,
|
Cancel,
|
||||||
/// The user intends to stop the cancelation of their subscription.
|
/// The user intends to stop the cancellation of their subscription.
|
||||||
StopCancelation,
|
StopCancellation,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
|
@ -221,7 +221,7 @@ async fn manage_billing_subscription(
|
||||||
.await?
|
.await?
|
||||||
.ok_or_else(|| anyhow!("subscription not found"))?;
|
.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)
|
let subscription_id = SubscriptionId::from_str(&subscription.stripe_subscription_id)
|
||||||
.context("failed to parse subscription ID")?;
|
.context("failed to parse subscription ID")?;
|
||||||
|
|
||||||
|
@ -273,7 +273,7 @@ async fn manage_billing_subscription(
|
||||||
),
|
),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
ManageSubscriptionIntent::StopCancelation => unreachable!(),
|
ManageSubscriptionIntent::StopCancellation => unreachable!(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut params = CreateBillingPortalSession::new(customer_id);
|
let mut params = CreateBillingPortalSession::new(customer_id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue