#Eranga

1 messages · Page 1 of 1 (latest)

gaunt flareBOT
short basalt
#

In which scenarios, status could be null

#

Also the Status type has 6 values

#

Could you help me figure out this?

smoky plover
#

I think the Doc is correct and TypeScript might be mis-configured

short basalt
#

How about deleted status?

short basalt
smoky plover
#

I am not sure myself and looking into it. My understanding is we don't have a deleted status for Invoice regardless of any server/client language

short basalt
#

Cool, I read somewhere that draft invoices could be deleted. So maybe deleted status could be coming from that

#

I'll wait for your answer 👼

smoky plover
short basalt
#

Cool, I'll delete a draft invoice and see.

#

For the null issue, shouldn't the typescript file be generated from the actual SDK code?

smoky plover
#

Can you tell me which file are you looking at, inside the Node JS SDK?

short basalt
#

Another weird thing is that, I see the delete button for draft invoices only for some

smoky plover
#

Thanks! I found that Invoice which doesn't belong to Subscription can be deleted as the Doc says. But its Id should disappear, not moving it to an deleted status at all

#

It's standalone Invoice vs Subscription Invoice

short basalt
#

Cool, what you meant is once deleted, it will be deleted forever, right?

#

So there is no deleted status at all

smoky plover
#

I believe so. Probably the TypeScript SDK is not up-to-date

short basalt
#

Cool, thank you @smoky plover for your help.

#

I was going to create an issue, but looks like someone beat me to it

#

But the Golang SDK also has deleted status

#

I'll add an issue for that