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

[BUG]: Incorrect types for CollectBankAccountTokenResult #342

Closed
CJEnright opened this issue Aug 16, 2022 · 2 comments · Fixed by #343
Closed

[BUG]: Incorrect types for CollectBankAccountTokenResult #342

CJEnright opened this issue Aug 16, 2022 · 2 comments · Fixed by #343
Labels
bug Something isn't working

Comments

@CJEnright
Copy link

CJEnright commented Aug 16, 2022

What happened?

CollectBankAccountTokenResult has the token field typed as string, however the actual api response has an object:

{
    "id": "btok_...",
    "object": "token",
    "bank_account": {
        "id": "ba_...",
        "object": "bank_account",
        "account_holder_name": null,
        "account_holder_type": null,
        "account_type": null,
        "bank_name": "STRIPE TEST BANK",
        "country": "US",
        "currency": "usd",
        "last4": "...",
        "name": null,
        "routing_number": "...",
        "status": "new"
    },
    "client_ip": "...",
    "created": ...,
    "livemode": false,
    "type": "bank_account",
    "used": false
}

Looks like the docs also agree it's not a string:

  • result.token: a bank account Token.

Environment

API version 2020-08-27

Reproduction

No response

@bcobb-stripe
Copy link
Contributor

Thanks for reporting @CJEnright!

@CJEnright
Copy link
Author

Thanks for reporting @CJEnright!

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants