mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
[@types/stripe] deleteExternalAccount should return IDeleteConfirmation (#29673)
This commit is contained in:
Vendored
+7
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user