You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you take a look and check why it is optional and either :
update the doc
remove the optional
Thanks !
To Reproduce
constaccount: Stripe.Account=retrieveAccount();constdefault_currency: string=account.default_currency;// error : account.default_currency can be undefined
Expected behavior
default_currency must not be optional
Code snippets
No response
OS
whatever
Node version
whatever
Library version
v10 and later
API version
2022-08-01
Additional context
No response
The text was updated successfully, but these errors were encountered:
@QuentinLemCode Github issues are limited to bugs or feature requests with the stripe-node SDK itself. Your ask seems to be about our public docs which is better directed at our support team for help instead: https://support.stripe.com/contact
Just to unblock you, I don't think we'll change the docs for now. What you're asking is to document whether a property can be null or optional (not returned at all). But this is not something our API Reference supports just yet unfortunately. We do hope to add this in the future but have no timeline for that just yet unfortunately. Reporting it to our support team is the best way to flag your interest for this improvement.
Describe the bug
Hello,
On the Account object, the type of default_currency is optional
https://github.com/stripe/stripe-node/blob/master/types/Accounts.d.ts#L59
However, the documentation says that it must be a currency
https://stripe.com/docs/api/accounts/object#account_object-default_currency
This has been introduced by this PR : #1493
Can you take a look and check why it is optional and either :
Thanks !
To Reproduce
Expected behavior
default_currency must not be optional
Code snippets
No response
OS
whatever
Node version
whatever
Library version
v10 and later
API version
2022-08-01
Additional context
No response
The text was updated successfully, but these errors were encountered: