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 #1138

Merged
merged 1 commit into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
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
33 changes: 33 additions & 0 deletions types/2020-08-27/BillingPortal/Configurations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ declare module 'stripe' {

subscription_cancel: Features.SubscriptionCancel;

subscription_pause: Features.SubscriptionPause;

subscription_update: Features.SubscriptionUpdate;
}

Expand Down Expand Up @@ -149,6 +151,13 @@ declare module 'stripe' {
| 'none';
}

interface SubscriptionPause {
/**
* Whether the feature is enabled.
*/
enabled: boolean;
}

interface SubscriptionUpdate {
/**
* The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable.
Expand Down Expand Up @@ -257,6 +266,11 @@ declare module 'stripe' {
*/
subscription_cancel?: Features.SubscriptionCancel;

/**
* Information about pausing subscriptions in the portal.
*/
subscription_pause?: Features.SubscriptionPause;

/**
* Information about updating subscriptions in the portal.
*/
Expand Down Expand Up @@ -327,6 +341,13 @@ declare module 'stripe' {
| 'none';
}

interface SubscriptionPause {
/**
* Whether the feature is enabled.
*/
enabled?: boolean;
}

interface SubscriptionUpdate {
/**
* The types of subscription updates that are supported. When empty, subscriptions are not updateable.
Expand Down Expand Up @@ -447,6 +468,11 @@ declare module 'stripe' {
*/
subscription_cancel?: Features.SubscriptionCancel;

/**
* Information about pausing subscriptions in the portal.
*/
subscription_pause?: Features.SubscriptionPause;

/**
* Information about updating subscriptions in the portal.
*/
Expand Down Expand Up @@ -517,6 +543,13 @@ declare module 'stripe' {
| 'none';
}

interface SubscriptionPause {
/**
* Whether the feature is enabled.
*/
enabled?: boolean;
}

interface SubscriptionUpdate {
/**
* The types of subscription updates that are supported. When empty, subscriptions are not updateable.
Expand Down
2 changes: 2 additions & 0 deletions types/2020-08-27/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ declare module 'stripe' {

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*
*/
fingerprint?: string | null;

Expand Down
6 changes: 6 additions & 0 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,8 @@ declare module 'stripe' {

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*
*/
fingerprint?: string | null;

Expand Down Expand Up @@ -937,6 +939,8 @@ declare module 'stripe' {

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*
*/
fingerprint: string | null;

Expand Down Expand Up @@ -1263,6 +1267,8 @@ declare module 'stripe' {

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*
*/
fingerprint: string | null;

Expand Down
2 changes: 2 additions & 0 deletions types/2020-08-27/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ declare module 'stripe' {

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*
*/
fingerprint?: string | null;

Expand Down