goshippo / shippo-javascript-sdk

MIT License
7 stars 1 forks source link

CommercialInvoice Returning Boolean Validation #31

Closed richardebrain closed 4 months ago

richardebrain commented 4 months ago

I have recently started testing with your api and i was stucked for days on international shipping.

In your code documentation , it says commercialInvoice is a type of string both in documentation and sdk installed but upon testing , i get error that it is a type of boolean from the backend , but on the frontend sdk , it's a type of string and it's even optional..

I have attach several screenshot to explain further more , i am behind on this task for a client ,kindly look into it

Screenshot 2024-05-11 at 00 09 31 Screenshot 2024-05-10 at 23 58 58 Screenshot 2024-05-10 at 23 59 08 Screenshot 2024-05-10 at 23 59 20

shippo-lueders commented 4 months ago

Thanks for reporting, should be fixed by https://www.npmjs.com/package/shippo/v/2.2.4

richardebrain commented 4 months ago

Thanks alot , upgraded to the new version and it worked ...