Skip to content

Add trackByTrackingNumber method (v0.5.0)#5

Merged
freshlogic merged 4 commits into
mainfrom
add-track
May 21, 2026
Merged

Add trackByTrackingNumber method (v0.5.0)#5
freshlogic merged 4 commits into
mainfrom
add-track

Conversation

@farhatraiyan

@farhatraiyan farhatraiyan commented May 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add trackByTrackingNumber(trackRequest, options) — calls the FedEx Track API (POST /track/v1/trackingnumbers), matching the API operation name Track by Tracking Number. Same passthrough pattern as the other methods: the caller supplies the full request body and the package forwards it verbatim.
  • Track API (Basic Integrated Visibility) uses separate FedEx project credentials (FEDEX_TRACK_API_KEY / FEDEX_TRACK_SECRET_KEY), added as repo secrets and wired into CI.
  • Integration test uses sandbox mock tracking number 613746411451; mocked tests cover delivered Ground shipment (weight, dimensions, service type), in-transit SmartPost shipment (weight only, no dimensions), header/method, errors envelope, and non-2xx responses.

Test plan

  • Mocked tests pass locally (trackByTrackingNumber (mocked) ✓); live tests pass in CI with the FEDEX_TRACK_API_KEY / FEDEX_TRACK_SECRET_KEY secrets
  • ESLint clean

🤖 Generated with Claude Code

farhatraiyan and others added 3 commits May 21, 2026 10:22
Calls POST /track/v1/trackingnumbers (Basic Integrated Visibility).
Same passthrough pattern as existing methods. Track API requires
separate FedEx project credentials (FEDEX_TRACK_API_KEY/SECRET_KEY).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coveralls

coveralls commented May 21, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 26238201495

Coverage remained the same at 100.0%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: 45 of 45 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 324
Covered Lines: 324
Line Coverage: 100.0%
Relevant Branches: 50
Covered Branches: 50
Branch Coverage: 100.0%
Branches in Coverage %: Yes
Coverage Strength: 16.95 hits per line

💛 - Coveralls

Match the FedEx API operation name "Track by Tracking Number".
https://developer.fedex.com/wirc/browser/#operation/Track%20by%20Tracking%20Number

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@freshlogic freshlogic changed the title Add track method (v0.5.0) Add trackByTrackingNumber method (v0.5.0) May 21, 2026
@freshlogic freshlogic merged commit 81fc264 into main May 21, 2026
2 checks passed
@freshlogic freshlogic deleted the add-track branch May 21, 2026 16:22
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