From 8a342681894fb74a6d25b4aae06a270c2dee85e6 Mon Sep 17 00:00:00 2001 From: Lenny Date: Wed, 17 Oct 2018 08:50:32 -0700 Subject: [PATCH] [@types/stripe] deleteExternalAccount should return IDeleteConfirmation (#29673) --- types/stripe/index.d.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 9b0fe09059..732a58fc7d 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -5493,8 +5493,8 @@ declare namespace Stripe { * currency is not the Stripe account's default currency. Otherwise, you must set another external account to be the default for the currency * before deleting it. */ - deleteExternalAccount(accId: string, id: string, options: HeaderOptions, response?: IResponseFn): Promise; - deleteExternalAccount(accId: string, id: string, response?: IResponseFn): Promise; + deleteExternalAccount(accId: string, id: string, options: HeaderOptions, response?: IResponseFn): Promise; + deleteExternalAccount(accId: string, id: string, response?: IResponseFn): Promise; /** * You can see a list of the bank accounts belonging to a managed account. Note that the 10 most recent external accounts are always @@ -7365,7 +7365,11 @@ declare namespace Stripe { (err: IStripeError, value: R): void; } - interface IDeleteConfirmation { id: string; deleted: boolean; } + interface IDeleteConfirmation { + id: string; + object: string; + deleted: boolean; + } /** * A filter on the list based on this object field. The value can