Skip to content

feat: migrate AFP SDK to new origin and destination fields#569

Merged
JakeGrievesVortexa merged 4 commits into
masterfrom
rnd-22152
Jun 25, 2026
Merged

feat: migrate AFP SDK to new origin and destination fields#569
JakeGrievesVortexa merged 4 commits into
masterfrom
rnd-22152

Conversation

@JakeGrievesVortexa

Copy link
Copy Markdown
Contributor

RELATED TICKETS

! Do not post related PRs here, unless they are open source !

CHANGELOG

  • Migrating all AFP origin_id, origin_port, destination_id, destination_port params -> origin, destination for standardisation in the code base
  • Migrated test suite to test against new headers and the new AFP responses (origin/ destination over the original origin_id ect)
  • Reran the appropriate ipynb files so cached output matches new responses

TESTS

  • Tested in pytest against new AFP responses.
  • Tested locally

COMMENTS

  • N/A

Copilot AI review requested due to automatic review settings June 24, 2026 11:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread vortexasdk/endpoints/anywhere_freight_pricing_forecast_timeseries.py Outdated
@JakeGrievesVortexa
JakeGrievesVortexa merged commit 25c6205 into master Jun 25, 2026
11 of 12 checks passed
@JakeGrievesVortexa
JakeGrievesVortexa deleted the rnd-22152 branch June 25, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants