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

Merged
merged 1 commit into from
Dec 17, 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
18 changes: 18 additions & 0 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ declare module 'stripe' {
*/
payment_method_types: Array<string>;

/**
* If present, this property tells you about the processing state of the payment.
*/
processing: PaymentIntent.Processing | null;

/**
* Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
*/
Expand Down Expand Up @@ -776,6 +781,19 @@ declare module 'stripe' {
}
}

interface Processing {
card?: Processing.Card;

/**
* Type of the next action to perform, one of `card`.
*/
type: string;
}

namespace Processing {
interface Card {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there nothing in this?

}

type SetupFutureUsage = 'off_session' | 'on_session';

interface Shipping {
Expand Down