-
Notifications
You must be signed in to change notification settings - Fork 74
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
[feat] Consolidate SmartRate functions, add new functions #566
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good. As discussed, we'll hold off until this goes GA to merge in and release. I feel splitting SmartRate to its own service is a good idea especially as the product matures and more functionality becomes available. Since everything is static now, it doesn't make sense to keep it in the Shipment service because you have to pass in the shipment ID anyway now, it no longer inherently belongs to Shipment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code seems good, just two questions. I will approve when the endpoints are in GA
I'd like this PR to follow the conventions set in the Python one so the experience is consistent across libs, namely the location of the functions in two separate services (keeping the existing functions in the Shipment service), renaming them, and not overloading the functions even though that's a feature of this language (to ensure consistency). |
0e0f589
to
04e19a2
Compare
EasyPost.Tests/ServicesTests/WithParameters/SmartRateServiceTest.cs
Outdated
Show resolved
Hide resolved
EasyPost.Tests/ServicesTests/WithParameters/ShipmentServiceTest.cs
Outdated
Show resolved
Hide resolved
… date - Clarify existing endpoint to get estimated delivery date based on ship date - Consolidate SmartRate-related functions into new SmartRate service - Mark legacy SmartRate functions and classes with obsolete warnings - Update unit tests accordingly
…ivery date or recommend ship date based on carrier + route rather than shipment) - Consolidate and standardize naming for SmartRate functions - Add unit tests, record cassettes as needed
- Keep shipment-related smart rate functions in Shipment service - Deprecate existing "estimate delivery date" functions in Shipment service - Adjust unit test locations accordingly, re-record cassettes
53b4269
to
f1f4c05
Compare
- Handle deprecated classes as needed, mitigations (non-breaking) - Update tests, cassettes as needed
Description
SmartRate
service for interacting with the SmartRate APIEstimateDeliveryDate
function to estimate delivery date based on a list of carriers, to/from ZIP codes and a planned ship date (no existing shipment required).RecommendShipDate
function to to recommend ship date based on a list of carriers, to/from ZIP codes and a planned ship date (no existing shipment required).EstimateDeliveryDate
function inShipment
service to estimate delivery date for a shipment based on a planned ship date.RecommendShipDateForShipment
function inShipment
service to recommend ship date for a shipment based on a desired delivery date.Testing
Pull Request Type
Please select the option(s) that are relevant to this PR.