#simeng

1 messages · Page 1 of 1 (latest)

frigid karmaBOT
rugged raven
#

I can't think of any scenario that the status will be null off top of my head either. Is there any issue that you're facing?

glad chasm
#

Just the type assertion. I have it set as not null in DB as well. But the Stripe.Checkout.Session (I posted above) showing the field can be null. So there gonna be a type mismatch

#

So just double-check whether I should handle the null value or not.

#

Please let me know if it is ok for me to just somehow ignore or overwrite the nullable type. Also, it would be much appreciated if the type can be fixed on the next stripe-node SDK release maybe? Thx

rugged raven
#

Thanks for sharing! I'd recommend taking care of null value as the spec suggested. It's likely that there are some scenarios that null can be returned, but I'm aware of. If you wish to find out more, I'd suggest writing to our Support https://support.stripe.com/contact, so that they can check with relevant team.

glad chasm
#

sure thing. thx