-
Notifications
You must be signed in to change notification settings - Fork 53
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]: can't pass in endshipperId parameter when buying a shipment #478
Comments
Hey Eng, Braxton here from Technical Support! The customer originally reached out to Support about this, and it looks like this should work but we may not be mapping it correctly somehow. I can confirm the user is on the latest version of the NodeJS library as well! Let me know if you have any questions on my end! |
The function is set up to accept an optional EndShipper ID, but the TypeScript documentation is outdated. Functionally, it should work, unless TypeScript violations are halting your application from compiling. We are patching the TypeScript definition currently. |
@nwithan8 do you have an ETA on when a release with these changes is created? |
We are drafting up a release currently, hope to get it out either today or tomorrow. |
@stevensecreti v7.5.3 is now available and features the fixed TypeScript definition. |
Software Version
7.5.2
Language Version
Typescript 5.6.2, NodeJS 20.11.0, npm 10.8.1
Operating System
N/A, issue recreated on Windows 11, latest MacOS
What happened?
endshipperId
to EasyPost Node.js module,Shipment.buy
call3.Typescript error:
Expected 2-3 arguments, but got 4.ts(2554)
Our Code:
EasyPost Node.JS Module Code:
Shipment.d.ts
:What was expected?
According to this guide, we should be able to pass the endshipper id (received from EasyPost) here, when buying a shipment.
Sample Code
Relevant logs
The text was updated successfully, but these errors were encountered: