feat(111): payment transition event for Allegro+shopPRO re-import

Re-import zamowienia wykrywa tranzycje payment_status 0/1->2 i emituje
payment.status_changed, dzieki czemu chain reguly automatyzacji #7 zmienia
status na w_realizacji.

- OrderImportRepository: rozdzielenie paymentTransition (event 0/1->2) i
  statusOverwriteAllowed (preservacja status_code z Phase 62)
- AllegroOrderImportService + ShopproOrdersSyncService: emit
  payment.status_changed na re-imporcie (gate !wasCreated && wasPaymentTransition)
- bin/backfill_payment_transition_111.php: jednorazowy CLI dla zamowien
  payment_status=2 && status_code='nieoplacone' (Allegro + shopPRO)
- Naprawa luki znalezionej w analizie zamowienia #864

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-05 23:35:14 +02:00
parent 0da0241ebf
commit 5cf531d718
12 changed files with 691 additions and 31 deletions

View File

@@ -9,34 +9,33 @@ See: .paul/PROJECT.md (updated 2026-04-28)
## Current Position
Milestone: v3.4 Statistics Summary - COMPLETE
Phase: 110 of 110 - COMPLETE
Plan: 110-01 - COMPLETE
Version: 3.4.0
Status: v3.4 shipped - gotowy do nastepnego milestone
Last activity: 2026-04-28 - UNIFY Phase 110 / v3.4 milestone complete
Milestone: v3.5 Payment Transition Event (hotfix) — COMPLETE
Phase: 111 of 111 (Payment Transition Event) — COMPLETE
Plan: 111-01 COMPLETE
Status: v3.5 shipped, awaiting transition (commit) i nastepny milestone
Last activity: 2026-05-05 — UNIFY Phase 111 / Plan 111-01 complete
Progress:
- Milestone v3.4: [##########] 100% (1/1 phases, 1/1 plans)
- Milestone v3.5: [##########] 100% (1/1 phases, 1/1 plans)
- Phase 111: [##########] 100%
## Loop Position
Current loop state:
```
v3.4 milestone:
Phase 110 (Statistics Summary):
Plan 110-01: PLAN done APPLY done UNIFY done
-> Phase 110 closed
-> v3.4 milestone closed
v3.5 milestone:
Phase 111 (Payment Transition Event):
Plan 111-01: PLAN done APPLY done UNIFY done
-> Phase 111 closed
-> v3.5 milestone closed (pending transition commit)
```
## Session Continuity
Last session: 2026-04-28
Stopped at: v3.4 milestone closed
Next action: /paul:milestone - wybor i zaplanowanie nastepnego milestone
Resume file: .paul/phases/110-statistics-summary/110-01-SUMMARY.md
Last session: 2026-05-05
Stopped at: v3.5 milestone closed
Next action: transition-phase (PROJECT/ROADMAP update + git commit), nastepnie /paul:milestone
Resume file: .paul/phases/111-payment-transition-event/111-01-SUMMARY.md
## Git State