feat: Add User-Agent header to Allegro API requests
- Implemented buildUserAgent() method in AllegroApiClient, AllegroOAuthClient, and AllegroTrackingService to include User-Agent header in all HTTP requests to Allegro API. - Updated .env.example to include APP_VERSION and ALLEGRO_USER_AGENT_URL for configuration. - Created public /info page to provide application details required by Allegro, including app name, version, description, and contact information. - Added minimalist layout for public pages to ensure a professional appearance. - Ensured all changes comply with Allegro's API requirements for User-Agent header.
This commit is contained in:
@@ -13,10 +13,34 @@
|
||||
- Cleanup pliku etykiety z dysku, activity log shipment_deleted
|
||||
- Przycisk "Usun" z potwierdzeniem OrderProAlerts.confirm w tabeli przesylek
|
||||
|
||||
- [Phase 88, Plan 01] Dodanie naglowka User-Agent do wszystkich requestow Allegro API
|
||||
- Dodano buildUserAgent() do AllegroApiClient, AllegroOAuthClient, AllegroTrackingService
|
||||
- Dodano zmienne APP_VERSION i ALLEGRO_USER_AGENT_URL do .env/.env.example
|
||||
- Format: orderPRO/1.0.0 (+https://orderpro.pl/info)
|
||||
|
||||
- [Phase 89, Plan 01] Publiczna strona /info dla Allegro User-Agent URL
|
||||
- InfoController + widok info/allegro.php + layout public.php
|
||||
- Route GET /info bez authMiddleware
|
||||
- Tresc: opis wewnetrznej aplikacji Project PRO, integracja z Allegro API, kontakt
|
||||
|
||||
- [Bugfix] Warunek payment_status w automatyzacji nie dzialal z eventem order.imported
|
||||
- Dodano `new_payment_status` do kontekstu triggera `order.imported` w AllegroOrderImportService i ShopproOrdersSyncService
|
||||
- Wartosc pochodzi z mapped order (`payment_status`: 0/1/2) — zgodna z istniejacym evaluatePaymentStatusCondition
|
||||
|
||||
## Zmienione pliki
|
||||
|
||||
- `src/Modules/Info/InfoController.php`
|
||||
- `resources/views/info/allegro.php`
|
||||
- `resources/views/layouts/public.php`
|
||||
- `src/Modules/Settings/AllegroApiClient.php`
|
||||
- `src/Modules/Settings/AllegroOAuthClient.php`
|
||||
- `src/Modules/Shipments/AllegroTrackingService.php`
|
||||
- `.env.example`
|
||||
- `.env`
|
||||
- `src/Modules/Shipments/ApaczkaShipmentService.php`
|
||||
- `src/Modules/Shipments/ShipmentPackageRepository.php`
|
||||
- `src/Modules/Shipments/ShipmentController.php`
|
||||
- `routes/web.php`
|
||||
- `resources/views/orders/show.php`
|
||||
- `src/Modules/Settings/AllegroOrderImportService.php`
|
||||
- `src/Modules/Settings/ShopproOrdersSyncService.php`
|
||||
|
||||
Reference in New Issue
Block a user