Skip to content

Commit

Permalink
Codegen for openapi 710d2de
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Aug 25, 2021
1 parent fd0a597 commit dd9d7ba
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 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,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<string>;
}

type Mode = 'at_period_end' | 'immediately';

type ProrationBehavior =
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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<Array<string>>;
}

type Mode = 'at_period_end' | 'immediately';

type ProrationBehavior =
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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<Array<string>>;
}

type Mode = 'at_period_end' | 'immediately';

type ProrationBehavior =
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec

///<reference path='../lib.d.ts' />
///<reference path='../net/net.d.ts' />
///<reference path='../net.d.ts' />
///<reference path='../shared.d.ts' />
///<reference path='../Errors.d.ts' />
///<reference path='../OAuth.d.ts' />
Expand Down

0 comments on commit dd9d7ba

Please sign in to comment.