Phase 50 complete: - add conditional waybill push for allegro orders only - add retry on ALLEGRO_HTTP_401 and non-critical failure handling - add unit tests and update architecture/changelog docs
1.2 KiB
1.2 KiB
phase, plan, status, completed
| phase | plan | status | completed |
|---|---|---|---|
| 50-allegro-shipment-waybill-push | 01 | completed | 2026-03-28 |
Phase 50 Plan 01 Summary
Result
- Dodano automatyczny push numeru przesylki do Allegro (
POST /order/checkout-forms/{id}/shipments) po uzyskaniutracking_number. - Push wykonuje sie tylko dla zamowien Allegro (
orders.source='allegro') z niepustymsource_order_id. - Blad pushu jest niekrytyczny - lokalna paczka pozostaje utworzona.
- Dodano retry pushu po
ALLEGRO_HTTP_401z odswiezeniem tokenu.
Acceptance Criteria
- AC-1: Pass
- AC-2: Pass
- AC-3: Pass
- AC-4: Pass
Verification
C:\xampp\php\php.exe -l src/Modules/Shipments/AllegroShipmentService.phpPASSC:\xampp\php\php.exe -l tests/Unit/AllegroShipmentServiceTest.phpPASSC:\xampp\php\php.exe vendor/bin/phpunit --filter AllegroShipmentServiceTest --testdoxPASS (4 tests, 54 assertions)sonar-scannerPASS (analysis successful): https://sonar.project-pro.pl/dashboard?id=orderPRO
Files
src/Modules/Shipments/AllegroShipmentService.phptests/Unit/AllegroShipmentServiceTest.phpDOCS/ARCHITECTURE.mdDOCS/TECH_CHANGELOG.md
Notes
- Brak zmian schematu DB.
- Brak checkpointow manualnych (plan autonomiczny).