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

Merged
merged 1 commit into from
Jun 23, 2022
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
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v159
v160
14 changes: 14 additions & 0 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3557,6 +3557,11 @@ declare module 'stripe' {
*/
application_fee_amount?: Stripe.Emptyable<number>;

/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: PaymentIntentUpdateParams.CaptureMethod;

/**
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
*/
Expand Down Expand Up @@ -3653,6 +3658,8 @@ declare module 'stripe' {
}

namespace PaymentIntentUpdateParams {
type CaptureMethod = 'automatic' | 'manual';

interface PaymentMethodData {
/**
* If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
Expand Down Expand Up @@ -5311,6 +5318,11 @@ declare module 'stripe' {
}

interface PaymentIntentConfirmParams {
/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: PaymentIntentConfirmParams.CaptureMethod;

/**
* Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication).
*/
Expand Down Expand Up @@ -5397,6 +5409,8 @@ declare module 'stripe' {
}

namespace PaymentIntentConfirmParams {
type CaptureMethod = 'automatic' | 'manual';

interface MandateData1 {
/**
* This hash contains details about the customer acceptance of the Mandate.
Expand Down