diff --git a/types/2020-08-27/BillingPortal/Configurations.d.ts b/types/2020-08-27/BillingPortal/Configurations.d.ts index 8b53ec9f71..25a75535c2 100644 --- a/types/2020-08-27/BillingPortal/Configurations.d.ts +++ b/types/2020-08-27/BillingPortal/Configurations.d.ts @@ -126,6 +126,8 @@ declare module 'stripe' { } interface SubscriptionCancel { + cancellation_reason?: SubscriptionCancel.CancellationReason; + /** * Whether the feature is enabled. */ @@ -143,6 +145,18 @@ declare module 'stripe' { } namespace SubscriptionCancel { + interface CancellationReason { + /** + * Whether the feature is enabled. + */ + enabled: boolean; + + /** + * Which cancellation reasons will be given as options to the customer. + */ + options: Array; + } + type Mode = 'at_period_end' | 'immediately'; type ProrationBehavior = @@ -316,6 +330,11 @@ declare module 'stripe' { } interface SubscriptionCancel { + /** + * Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer + */ + cancellation_reason?: SubscriptionCancel.CancellationReason; + /** * Whether the feature is enabled. */ @@ -333,6 +352,18 @@ declare module 'stripe' { } namespace SubscriptionCancel { + interface CancellationReason { + /** + * Whether the feature is enabled. + */ + enabled: boolean; + + /** + * Which cancellation reasons will be given as options to the customer. + */ + options: Stripe.Emptyable>; + } + type Mode = 'at_period_end' | 'immediately'; type ProrationBehavior = @@ -518,6 +549,11 @@ declare module 'stripe' { } interface SubscriptionCancel { + /** + * Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer + */ + cancellation_reason?: SubscriptionCancel.CancellationReason; + /** * Whether the feature is enabled. */ @@ -535,6 +571,18 @@ declare module 'stripe' { } namespace SubscriptionCancel { + interface CancellationReason { + /** + * Whether the feature is enabled. + */ + enabled: boolean; + + /** + * Which cancellation reasons will be given as options to the customer. + */ + options?: Stripe.Emptyable>; + } + type Mode = 'at_period_end' | 'immediately'; type ProrationBehavior = diff --git a/types/2020-08-27/index.d.ts b/types/2020-08-27/index.d.ts index 94dd90936e..e90eb5a1ff 100644 --- a/types/2020-08-27/index.d.ts +++ b/types/2020-08-27/index.d.ts @@ -1,7 +1,7 @@ // File generated from our OpenAPI spec /// -/// +/// /// /// ///