Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stripe.accounts.listExternalAccounts does not recognize "object" property for Stripe.ExternalAccountListParams #1351

Closed
stuyy opened this issue Feb 16, 2022 · 1 comment · Fixed by #1354
Assignees
Labels

Comments

@stuyy
Copy link

stuyy commented Feb 16, 2022

When trying to use the stripe.accounts.listExternalAccounts method with TypeScript, it does not recognize the "object" property as a valid property for ExternalAccountListParams. Using ts-ignore, I am able to successfully retrieve external accounts based on the type I want, card or bank_account. After testing, I was able to get a successful response for each value.

this.stripe.accounts.listExternalAccounts(accountId, {
    // @ts-ignore
    object: 'card',
});
@remi-stripe
Copy link
Contributor

@stuyy Thanks for the report! This is something we want to improve in the future so I'm going to tag as future but we likely won't get to that one soon unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants