Skip to content

support 2026-07 version#29

Open
1415003719 wants to merge 2 commits into
2026-07from
generate/2026-07
Open

support 2026-07 version#29
1415003719 wants to merge 2 commits into
2026-07from
generate/2026-07

Conversation

@1415003719

Copy link
Copy Markdown
Contributor

Summary

Regenerate the SDK for API version 2026-07 (10.0.0) with AfterShip/sdk-generator from OAS production/2026-07.

Changes vs 9.0.0 (2026-01)

All changes match the 2026-07 migration guide — no breaking type renames:

  • Base URL → /tracking/2026-07/, package version → 10.0.0
  • New models: tracking_shipment_dimensions, tracking_multi_piece_info (+pieces/type), tracking_proof_of_delivery, tracking_shipment_direction (also on create/update requests), tracking_return_shipment, tracking_forward_shipment
  • New fields: checkpoint.hash, customers[].id
  • New delivery sub-statuses need no code change (subtag is a plain string)
  • New tests/ dir (auth/configuration unit tests) from generator supporting files

Verification

  • python -m compileall passes; installed into a venv and exercised all 16 OAS operations against the live API with a test org key: full tracking write lifecycle (create → get → update → mark-completed → retrack → delete), couriers, courier-connections, EDD; all responses deserialized into pydantic types, all errors surfaced as typed BadRequestError with correct meta_code
  • New-field round-trip verified: shipment_direction and customers[].id written and read back successfully; test data cleaned up

🤖 Generated with Claude Code

Watson Zuo and others added 2 commits July 10, 2026 13:53
Generated with AfterShip/sdk-generator from OAS production/2026-07.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@1415003719

Copy link
Copy Markdown
Contributor Author

Applied make format (ruff check --fix + ruff format) per the SDK 代码格式化说明 — formatted files are now byte-identical to 9.0.0 style for unchanged models.

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.

2 participants