Skip to content

Commit

Permalink
API Updates (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Aug 27, 2021
1 parent fd0a597 commit 2b91bf7
Showing 1 changed file with 84 additions and 0 deletions.
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

0 comments on commit 2b91bf7

Please sign in to comment.