Single-instance globalna konfiguracja polkurier.pl jako alternatywa dla Apaczki: szyfrowany login + Token API, karta w hubie integracji i realny test polaczenia przez apimetod=test_auth_api zweryfikowany na zywym koncie operatora (Autoryzacja: 1). ShipmentProviderRegistry netkniety - PolkurierShipmentService/ TrackingService w kolejnych fazach. Kluczowe ustalenia kontraktu API (z SDK polkurier-sdk): - POST https://api.polkurier.pl/ (jeden endpoint) - JSON body: {authorization:{login,token}, apimetod, data} - Sukces: top-level status === 'success' (nie 'ok') - Blad: tresc w polu 'response' envelope'a - Content-Type: application/json (strict, bez charset suffix) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
2026-05-14
Co zrobiono
- [Phase 127, Plan 01] polkurier.pl Integration Foundation — pojedyncza globalna konfiguracja brokera kurierskiego polkurier (login + Token API zaszyfrowany przez
IntegrationSecretCipher), karta w hubie integracji obok Apaczki, realny test polaczenia przezapimetod=test_auth_api. Zweryfikowane na zywym koncie operatora (Autoryzacja: 1). - Task 1: Migracja DDL (
polkurier_integration_settings+ seedintegrations.type='polkurier') +PolkurierIntegrationRepository(single-instance, mirror HostedSMS/SMSPLANET). - Task 2:
PolkurierApiClient(POST dohttps://api.polkurier.pl/, JSON envelope{authorization, apimetod, data}) +PolkurierIntegrationController+ widok formularza + 3 routy + i18n. - Task 3: Wpiecie polkuriera do
IntegrationsHubController(buildPolkurierRow(), kolejnosc: po Apaczce) + aktualizacja.paul/codebase/{db_schema,architecture,tech_changelog}.md. - Auto-fix (live debugging):
status='success'zamiast'ok'(ResponseStatus z SDK),Content-Type: application/jsonbez charset suffix (polkurier strict), parser bledu z polaresponseenvelope'a. - Scope deviation vs PLAN: kolumna
logindodana (API wymaga login+token), kolumnaenvironmentpominieta (polkurier nie ma sandbox).
Zmienione pliki
database/migrations/20260514_000114_create_polkurier_integration_settings.sqlsrc/Modules/Settings/PolkurierIntegrationRepository.phpsrc/Modules/Settings/PolkurierApiClient.phpsrc/Modules/Settings/PolkurierIntegrationController.phpresources/views/settings/polkurier.phproutes/web.phpsrc/Modules/Settings/IntegrationsHubController.phpresources/lang/pl.php.paul/codebase/db_schema.md.paul/codebase/architecture.md.paul/codebase/tech_changelog.md.paul/STATE.md.paul/ROADMAP.md.paul/phases/127-polkurier-integration-foundation/127-01-PLAN.md.paul/phases/127-polkurier-integration-foundation/127-01-SUMMARY.md