diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 8cac20b9ce..ea21c79d11 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for stripe 6.30 +// Type definitions for stripe 6.31 // Project: https://github.com/stripe/stripe-node/ // Definitions by: William Johnston // Peter Harris @@ -25,6 +25,7 @@ // Joshua Feltimo // Josiah // Oleg Vaskevich +// Ethan Setnik // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -194,6 +195,12 @@ declare namespace Stripe { * This field is null unless business_type is set to individual. */ individual?: IIndividual; + + /** + * External accounts (bank accounts and debit cards) currently + * attached to this account + */ + external_accounts?: IList; } interface IAccountCreationOptions extends IAccountUpdateOptions { diff --git a/types/stripe/stripe-tests.ts b/types/stripe/stripe-tests.ts index d3fa12535d..142306038b 100644 --- a/types/stripe/stripe-tests.ts +++ b/types/stripe/stripe-tests.ts @@ -763,8 +763,11 @@ stripe.accounts.retrieve( ); stripe.accounts.retrieve( "acct_17wV8KBoqMA9o2xk").then( - (account) => { + account => { // asynchronously called + + // account should have external_accounts property + account.external_accounts; // $ExpectType IList } );