diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 43d31d1900..8f545301d5 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -34,6 +34,7 @@ // Richard Ward // Aseel Al Dallal // Collin Pham +// Timon van Spronsen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -7245,7 +7246,7 @@ declare namespace Stripe { } /** Payment methods supported by Payment Intents. This is a subsetset of all Payment Method types. See https://stripe.com/docs/api/payment_methods/create#create_payment_method-type */ - type PaymentIntentPaymentMethodType = 'card' | 'card_present'; + type PaymentIntentPaymentMethodType = 'card' | 'ideal' | 'sepa_debit'; interface IPaymentMethodCardOptions { /** @@ -7612,7 +7613,7 @@ declare namespace Stripe { } /** Payment methods supported by Payment Intents. This is a subsetset of all Payment Method types. See https://stripe.com/docs/api/payment_methods/create#create_payment_method-type */ - type SetupIntentPaymentMethodType = 'card' | 'card_present' | 'sepa_debit'; + type SetupIntentPaymentMethodType = paymentIntents.PaymentIntentPaymentMethodType; interface ISetupIntent extends IResourceObject { /** diff --git a/types/stripe/stripe-tests.ts b/types/stripe/stripe-tests.ts index 529db13a4b..13fab9e3db 100644 --- a/types/stripe/stripe-tests.ts +++ b/types/stripe/stripe-tests.ts @@ -2077,7 +2077,7 @@ stripe.paymentIntents.create( { amount: 2000, currency: 'eur', - payment_method_types: ['card'], + payment_method_types: ['card', 'ideal', 'sepa_debit'], }, (err, intent) => {}, ); @@ -2086,7 +2086,7 @@ stripe.paymentIntents .create({ amount: 2000, currency: 'eur', - payment_method_types: ['card'], + payment_method_types: ['card', 'ideal', 'sepa_debit'], }) .then(intent => {});