feat(127): polkurier integration foundation
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>
This commit is contained in:
@@ -586,6 +586,7 @@ return [
|
||||
'shoppro' => 'shopPRO',
|
||||
'hostedsms' => 'HostedSMS',
|
||||
'smsplanet' => 'SMSPLANET',
|
||||
'polkurier' => 'polkurier.pl',
|
||||
'shoppro_instances' => ':count instancji',
|
||||
],
|
||||
'status' => [
|
||||
@@ -741,6 +742,47 @@ return [
|
||||
'test_failed' => 'Nie udalo sie polaczyc z API Apaczka.',
|
||||
],
|
||||
],
|
||||
'polkurier' => [
|
||||
'title' => 'Integracja polkurier.pl',
|
||||
'description' => 'Broker kurierski polkurier.pl - alternatywa dla Apaczki. Token API generujesz w Panel Klienta > Ustawienia > Token API.',
|
||||
'config' => [
|
||||
'title' => 'Konfiguracja API',
|
||||
],
|
||||
'test' => [
|
||||
'title' => 'Test polaczenia',
|
||||
'description' => 'Test realnie wywoluje metode test_auth_api w API polkurier (bez tworzenia przesylki).',
|
||||
],
|
||||
'fields' => [
|
||||
'login' => 'Login (e-mail z panelu klienta)',
|
||||
'api_token' => 'Token API',
|
||||
'default_label_format' => 'Domyslny format etykiety',
|
||||
'is_active' => 'Integracja aktywna',
|
||||
],
|
||||
'hints' => [
|
||||
'login' => 'Login uzywany przy generowaniu Token API w Panel Klienta polkurier.',
|
||||
],
|
||||
'token' => [
|
||||
'saved' => 'Token API jest zapisany. Pozostaw pole puste, aby nie zmieniac.',
|
||||
'missing' => 'Brak zapisanego Token API.',
|
||||
],
|
||||
'status' => [
|
||||
'token' => 'Token API',
|
||||
'active' => 'Aktywna',
|
||||
'saved' => 'zapisany',
|
||||
'missing' => 'brak',
|
||||
'last_test' => 'Ostatni test',
|
||||
],
|
||||
'actions' => [
|
||||
'save' => 'Zapisz ustawienia polkurier',
|
||||
'send_test' => 'Testuj polaczenie',
|
||||
],
|
||||
'flash' => [
|
||||
'saved' => 'Ustawienia polkurier zostaly zapisane.',
|
||||
'save_failed' => 'Nie udalo sie zapisac ustawien polkurier.',
|
||||
'test_success' => 'Polaczenie z polkurier dziala. :message',
|
||||
'test_failed' => 'Nie udalo sie polaczyc z API polkurier.',
|
||||
],
|
||||
],
|
||||
'hostedsms' => [
|
||||
'title' => 'Integracja HostedSMS',
|
||||
'description' => 'Konfiguracja konta HostedSMS do wysylki SMS z orderPRO.',
|
||||
|
||||
Reference in New Issue
Block a user