From dd9d7baa24c6b4847e840fa09d77c09012635680 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Wed, 25 Aug 2021 16:56:23 -0400 Subject: [PATCH 1/3] Codegen for openapi 710d2de --- .../BillingPortal/Configurations.d.ts | 48 +++++++++++++++++++ types/2020-08-27/index.d.ts | 2 +- 2 files changed, 49 insertions(+), 1 deletion(-) 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 /// -/// +/// /// /// /// From 5e75289b341da08024e50c6dea55c5e8cea37c89 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Thu, 26 Aug 2021 18:44:29 -0400 Subject: [PATCH 2/3] Codegen for openapi 08c7d26 --- .../BillingPortal/Configurations.d.ts | 42 +++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/types/2020-08-27/BillingPortal/Configurations.d.ts b/types/2020-08-27/BillingPortal/Configurations.d.ts index 25a75535c2..6bdfc44764 100644 --- a/types/2020-08-27/BillingPortal/Configurations.d.ts +++ b/types/2020-08-27/BillingPortal/Configurations.d.ts @@ -154,7 +154,19 @@ declare module 'stripe' { /** * Which cancellation reasons will be given as options to the customer. */ - options: Array; + options: Array; + } + + namespace CancellationReason { + type Option = + | 'customer_service' + | 'low_quality' + | 'missing_features' + | 'other' + | 'switched_service' + | 'too_complex' + | 'too_expensive' + | 'unused'; } type Mode = 'at_period_end' | 'immediately'; @@ -361,7 +373,19 @@ declare module 'stripe' { /** * Which cancellation reasons will be given as options to the customer. */ - options: Stripe.Emptyable>; + options: Stripe.Emptyable>; + } + + namespace CancellationReason { + type Option = + | 'customer_service' + | 'low_quality' + | 'missing_features' + | 'other' + | 'switched_service' + | 'too_complex' + | 'too_expensive' + | 'unused'; } type Mode = 'at_period_end' | 'immediately'; @@ -580,7 +604,19 @@ declare module 'stripe' { /** * Which cancellation reasons will be given as options to the customer. */ - options?: Stripe.Emptyable>; + options?: Stripe.Emptyable>; + } + + namespace CancellationReason { + type Option = + | 'customer_service' + | 'low_quality' + | 'missing_features' + | 'other' + | 'switched_service' + | 'too_complex' + | 'too_expensive' + | 'unused'; } type Mode = 'at_period_end' | 'immediately'; From 4ef0f3b867da6e99a5fcc38462e527a63aed3137 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Thu, 26 Aug 2021 19:09:03 -0400 Subject: [PATCH 3/3] Fix --- types/2020-08-27/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/2020-08-27/index.d.ts b/types/2020-08-27/index.d.ts index e90eb5a1ff..94dd90936e 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 /// -/// +/// /// /// ///