feat: migrate AFP SDK to new origin and destination fields#569
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates Anywhere Freight Pricing (AFP) SDK request/response fields from legacy origin_*/destination_* (e.g. origin_port, destination_id) to standardized origin/destination across endpoint types, endpoint methods, tests, and example notebooks.
Changes:
- Updated AFP TypedDict route schemas and endpoint method parameters/payload keys to use
origin/destination. - Updated docstrings, tests, and notebook examples to match the new request fields and response headers.
- Refreshed notebook cached outputs to reflect updated AFP responses.
Reviewed changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| vortexasdk/endpoints/anywhere_freight_pricing_types.py | Updates AFP route TypedDicts to origin/destination. |
| vortexasdk/endpoints/anywhere_freight_pricing_top_ports_origin.py | Renames destination_id to destination and updates payload/logging/docs. |
| vortexasdk/endpoints/anywhere_freight_pricing_top_ports_destination.py | Renames origin_id to origin and updates payload/logging/docs. |
| vortexasdk/endpoints/anywhere_freight_pricing_price_timeseries.py | Updates documentation/examples to origin/destination route keys. |
| vortexasdk/endpoints/anywhere_freight_pricing_post_price_details.py | Updates documentation/examples to origin/destination route keys. |
| vortexasdk/endpoints/anywhere_freight_pricing_get_price_details.py | Renames origin_port/destination_port params to origin/destination and updates query params/docs. |
| vortexasdk/endpoints/anywhere_freight_pricing_forecast_timeseries.py | Updates documentation/examples to origin/destination route keys. |
| vortexasdk/endpoints/anywhere_freight_pricing_forecast_explanation.py | Renames origin_port/destination_port params to origin/destination and updates query params/docs. |
| tests/endpoints/test_anywhere_freight_pricing_top_ports_origin.py | Updates tests to call destination=. |
| tests/endpoints/test_anywhere_freight_pricing_top_ports_destination.py | Updates tests to call origin=. |
| tests/endpoints/test_anywhere_freight_pricing_price_timeseries.py | Updates tests to send/assert origin/destination. |
| tests/endpoints/test_anywhere_freight_pricing_post_price_details.py | Updates tests to send/assert origin/destination (including df column expectations). |
| tests/endpoints/test_anywhere_freight_pricing_get_price_details.py | Updates tests to call/assert origin/destination (including df column expectations). |
| tests/endpoints/test_anywhere_freight_pricing_forecast_timeseries.py | Updates tests to send/assert origin/destination. |
| tests/endpoints/test_anywhere_freight_pricing_forecast_explanation.py | Updates tests to call origin=/destination=. |
| docs/examples/try_me_out/anywhere_freight_pricing_top_ports_origin.ipynb | Updates example usage to destination=. |
| docs/examples/try_me_out/anywhere_freight_pricing_top_ports_destination.ipynb | Updates example usage to origin=. |
| docs/examples/try_me_out/anywhere_freight_pricing_price_timeseries.ipynb | Updates example routes to origin/destination. |
| docs/examples/try_me_out/anywhere_freight_pricing_post_price_details.ipynb | Updates example routes to origin/destination and refreshes cached output. |
| docs/examples/try_me_out/anywhere_freight_pricing_get_price_details.ipynb | Updates example usage to origin=/destination= and refreshes cached output. |
| docs/examples/try_me_out/anywhere_freight_pricing_forecast_timeseries.ipynb | Updates example routes to origin/destination. |
| docs/examples/try_me_out/anywhere_freight_pricing_forecast_explanation.ipynb | Updates example usage to origin=/destination=. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot stopped work on behalf of
JakeGrievesVortexa due to an error
June 24, 2026 16:14
Copilot stopped work on behalf of
JakeGrievesVortexa due to an error
June 24, 2026 16:14
valeriiashmyhlo
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RELATED TICKETS
! Do not post related PRs here, unless they are open source !
CHANGELOG
TESTS
COMMENTS