Skip to content

Add Brenger API v2 client and models#2

Open
mrlkn wants to merge 1 commit intomasterfrom
feat/v2-api-support
Open

Add Brenger API v2 client and models#2
mrlkn wants to merge 1 commit intomasterfrom
feat/v2-api-support

Conversation

@mrlkn
Copy link
Member

@mrlkn mrlkn commented Feb 8, 2026

Summary

  • Add v2 Pydantic models for the new Brenger partner API (V2Address, V2Stop, V2Item, V2ShipmentCreateRequest, etc.)
  • Add BrengerV2APIClient with endpoints: get_quote, create_shipment, get_shipment_status, cancel_shipment, get_refund
  • Bump version to 2.0.0
  • Keep v1 client and models intact for backward compatibility

Test plan

  • Verify v2 client connects to Brenger staging API
  • Test create_shipment with valid payload
  • Confirm v1 client still works unchanged

🤖 Generated with Claude Code

- Add 13 v2 Pydantic models (V2Address, V2Stop, V2Item, V2Price, etc.)
- Add BrengerV2APIClient with endpoints: quote, create_shipment,
  get_shipment_status, cancel_shipment, get_refund
- Use exclude_none=True in JSON serialization to avoid sending null
  for optional fields
- V2Item.category defaults to "other" (required by API)
- Bump version to 2.0.0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant