Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1226

Merged
merged 3 commits into from
Aug 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions types/2020-08-27/BillingPortal/Configurations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ declare module 'stripe' {
}

interface SubscriptionCancel {
cancellation_reason?: SubscriptionCancel.CancellationReason;

/**
* Whether the feature is enabled.
*/
Expand All @@ -143,6 +145,30 @@ 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<CancellationReason.Option>;
}

namespace CancellationReason {
type Option =
| 'customer_service'
| 'low_quality'
| 'missing_features'
| 'other'
| 'switched_service'
| 'too_complex'
| 'too_expensive'
| 'unused';
}

type Mode = 'at_period_end' | 'immediately';

type ProrationBehavior =
Expand Down Expand Up @@ -316,6 +342,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.
*/
Expand All @@ -333,6 +364,30 @@ 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<Array<CancellationReason.Option>>;
}

namespace CancellationReason {
type Option =
| 'customer_service'
| 'low_quality'
| 'missing_features'
| 'other'
| 'switched_service'
| 'too_complex'
| 'too_expensive'
| 'unused';
}

type Mode = 'at_period_end' | 'immediately';

type ProrationBehavior =
Expand Down Expand Up @@ -518,6 +573,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.
*/
Expand All @@ -535,6 +595,30 @@ 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<Array<CancellationReason.Option>>;
}

namespace CancellationReason {
type Option =
| 'customer_service'
| 'low_quality'
| 'missing_features'
| 'other'
| 'switched_service'
| 'too_complex'
| 'too_expensive'
| 'unused';
}

type Mode = 'at_period_end' | 'immediately';

type ProrationBehavior =
Expand Down