[@types/stripe] deleteExternalAccount should return IDeleteConfirmation (#29673)

This commit is contained in:
Lenny
2018-10-17 08:50:32 -07:00
committed by Sheetal Nandi
parent 5ae6d3dd4f
commit 8a34268189
+7 -3
View File
@@ -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<cards.ICard | bankAccounts.IBankAccount>): Promise<cards.ICard | bankAccounts.IBankAccount>;
deleteExternalAccount(accId: string, id: string, response?: IResponseFn<cards.ICard | bankAccounts.IBankAccount>): Promise<cards.ICard | bankAccounts.IBankAccount>;
deleteExternalAccount(accId: string, id: string, options: HeaderOptions, response?: IResponseFn<IDeleteConfirmation>): Promise<IDeleteConfirmation>;
deleteExternalAccount(accId: string, id: string, response?: IResponseFn<IDeleteConfirmation>): Promise<IDeleteConfirmation>;
/**
* 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