aktualizacja modułu dpd
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
if (!defined('_PS_VERSION_'))
|
||||
exit;
|
||||
|
||||
|
||||
|
||||
require_once(_DPDPOLAND_CLASSES_DIR_.'Configuration.php');
|
||||
require_once(_DPDPOLAND_MODULE_DIR_.'dpdpoland.php');
|
||||
|
||||
class DpdPolandLog
|
||||
{
|
||||
{
|
||||
const LOG_DEBUG = 'LOG_DEBUG';
|
||||
const LOG_ERROR = 'LOG_ERROR';
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>dpdpoland</name>
|
||||
<displayName><![CDATA[DPD Polska Sp. z o.o.]]></displayName>
|
||||
<version><![CDATA[1.4.4]]></version>
|
||||
<description><![CDATA[DPD Polska Moduł Wysyłek]]></description>
|
||||
<author><![CDATA[DPD Polska Sp. z o.o.]]></author>
|
||||
<tab><![CDATA[shipping_logistics]]></tab>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>1</need_instance>
|
||||
<name>dpdpoland</name>
|
||||
<displayName><![CDATA[DPD Polska Sp. z o.o.]]></displayName>
|
||||
<version><![CDATA[1.4.4]]></version>
|
||||
<description><![CDATA[DPD Polska Moduł Wysyłek]]></description>
|
||||
<author><![CDATA[DPD Polska Sp. z o.o.]]></author>
|
||||
<tab><![CDATA[shipping_logistics]]></tab>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>1</need_instance>
|
||||
<limited_countries></limited_countries>
|
||||
</module>
|
||||
@@ -336,7 +336,7 @@ class DpdPoland extends CarrierModule
|
||||
`id_sender_address` int(11) NOT NULL,
|
||||
`cud` tinyint(1) NOT NULL,
|
||||
`rod` tinyint(1) NOT NULL,
|
||||
`dpde` tinyint(1) NOT NULL,
|
||||
`dpde` tinyint(1) NOT NULL,
|
||||
`dpdnd` tinyint(1) NOT NULL,
|
||||
`duty` tinyint(1) NOT NULL,
|
||||
`duty_amount` decimal(17,2) DEFAULT NULL,
|
||||
@@ -1741,7 +1741,7 @@ class DpdPoland extends CarrierModule
|
||||
|
||||
return Db::getInstance()->getValue('
|
||||
SELECT `id_reference`
|
||||
FROM `' . _DB_PREFIX_ . 'carrier`
|
||||
FROM `' . _DB_PREFIX_ . 'carrier`
|
||||
WHERE `id_carrier`=' . (int)$id_carrier
|
||||
);
|
||||
}
|
||||
@@ -2578,8 +2578,18 @@ class DpdPoland extends CarrierModule
|
||||
*/
|
||||
public function getOrderShippingCostExternal($cart)
|
||||
{
|
||||
if (!$this->soapClientExists() || !$this->checkModuleAvailability())
|
||||
if (!$this->soapClientExists()) {
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: SOAP client not exists - returning false');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$this->checkModuleAvailability()) {
|
||||
$plCountry = Country::getByIso(self::POLAND_ISO_CODE);
|
||||
$plnCurrency = Currency::getIdByIsoCode(_DPDPOLAND_CURRENCY_ISO_);
|
||||
$curlExists = function_exists('curl_init');
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: Module not available - PL country: ' . ($plCountry ? $plCountry : 'NOT FOUND') . ', PLN currency: ' . ($plnCurrency ? $plnCurrency : 'NOT FOUND') . ', CURL: ' . ($curlExists ? 'YES' : 'NO'));
|
||||
return false;
|
||||
}
|
||||
|
||||
$disabled_countries_ids = DpdPolandCountry::getDisabledCountriesIDs();
|
||||
|
||||
@@ -2595,20 +2605,27 @@ class DpdPoland extends CarrierModule
|
||||
}
|
||||
|
||||
if (!$id_method = self::getMethodIdByCarrierId($this->id_carrier)) {
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: No method found for carrier ' . $this->id_carrier . ' - returning false');
|
||||
self::$carriers[$this->id_carrier] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$id_country || in_array($id_country, $disabled_countries_ids) && $id_method == _DPDPOLAND_CLASSIC_ID_)
|
||||
if (!$id_country || in_array($id_country, $disabled_countries_ids) && $id_method == _DPDPOLAND_CLASSIC_ID_) {
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: Country disabled or invalid - id_country: ' . $id_country . ', method: ' . $id_method);
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($id_country)
|
||||
$zone = Country::getIdZone($id_country);
|
||||
else
|
||||
else {
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: No country - returning false');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$this->id_carrier)
|
||||
if (!$this->id_carrier) {
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: No id_carrier set - returning false');
|
||||
return false;
|
||||
}
|
||||
|
||||
$is_poland_country = $this->isPolandCountry((int)$id_country);
|
||||
|
||||
@@ -2617,6 +2634,7 @@ class DpdPoland extends CarrierModule
|
||||
!$is_poland_country && $id_method == _DPDPOLAND_STANDARD_ID_ ||
|
||||
!$is_poland_country && $id_method == _DPDPOLAND_PUDO_ID_
|
||||
) {
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: Country/method mismatch - is_poland: ' . ($is_poland_country ? 'YES' : 'NO') . ', method: ' . $id_method);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2627,26 +2645,50 @@ class DpdPoland extends CarrierModule
|
||||
|
||||
if (Configuration::get(DpdPolandConfiguration::PRICE_CALCULATION_TYPE) == DpdPolandConfiguration::PRICE_CALCULATION_PRESTASHOP) {
|
||||
$carrier = new Carrier($this->id_carrier);
|
||||
$price = $carrier->getDeliveryPriceByWeight($total_weight, $zone);
|
||||
|
||||
// Check carrier billing method: 1 = by weight, 2 = by price
|
||||
if ($carrier->shipping_method == Carrier::SHIPPING_METHOD_PRICE) {
|
||||
// Calculate by cart price
|
||||
$order_total = $cart->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING);
|
||||
$price = $carrier->getDeliveryPriceByPrice($order_total, $zone);
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: PrestaShop calc BY PRICE - carrier: ' . $this->id_carrier . ', order_total: ' . $order_total . ', zone: ' . $zone . ', price: ' . ($price === false ? 'FALSE' : $price));
|
||||
} else {
|
||||
// Calculate by weight (default)
|
||||
$price = $carrier->getDeliveryPriceByWeight($total_weight, $zone);
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: PrestaShop calc BY WEIGHT - carrier: ' . $this->id_carrier . ', weight: ' . $total_weight . ', zone: ' . $zone . ', price: ' . ($price === false ? 'FALSE' : $price));
|
||||
}
|
||||
|
||||
if ($price === false) {
|
||||
$method_name = ($carrier->shipping_method == Carrier::SHIPPING_METHOD_PRICE) ? 'price ranges' : 'weight ranges';
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: No price found - check carrier ' . $method_name . ' in PrestaShop');
|
||||
self::$carriers[$this->id_carrier] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
$id_currency_pl = Currency::getIdByIsoCode(_DPDPOLAND_CURRENCY_ISO_, (int)$this->context->shop->id);
|
||||
$currency_from = new Currency((int)$id_currency_pl);
|
||||
$currency_to = $this->context->currency;
|
||||
|
||||
self::$carriers[$this->id_carrier] = Tools::convertPriceFull($price, $currency_from, $currency_to);
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: SUCCESS - final price: ' . self::$carriers[$this->id_carrier]);
|
||||
return self::$carriers[$this->id_carrier];
|
||||
}
|
||||
|
||||
$price = DpdPolandCSV::getPrice($total_weight, $id_method, $cart);
|
||||
|
||||
if ($price === false)
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: CSV calc - weight: ' . $total_weight . ', method: ' . $id_method . ', price: ' . ($price === false ? 'FALSE' : $price));
|
||||
|
||||
if ($price === false) {
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: No CSV price found - check CSV import in module config');
|
||||
return false;
|
||||
}
|
||||
|
||||
$id_currency_pl = Currency::getIdByIsoCode(_DPDPOLAND_CURRENCY_ISO_, (int)$this->context->shop->id);
|
||||
$currency_from = new Currency((int)$id_currency_pl);
|
||||
$currency_to = $this->context->currency;
|
||||
|
||||
self::$carriers[$this->id_carrier] = Tools::convertPriceFull($price, $currency_from, $currency_to);
|
||||
DpdPolandLog::addLog('getOrderShippingCostExternal: SUCCESS - final price: ' . self::$carriers[$this->id_carrier]);
|
||||
return self::$carriers[$this->id_carrier];
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
[ViewState]
|
||||
Mode=
|
||||
Vid=
|
||||
FolderType=NotSpecified
|
||||
File diff suppressed because it is too large
Load Diff
48
modules/dpdshipping/CHANGELOG.txt
Normal file
48
modules/dpdshipping/CHANGELOG.txt
Normal file
@@ -0,0 +1,48 @@
|
||||
Changelog:
|
||||
v2.0.2 - 27.11.2025
|
||||
- Support for decimal product quantities
|
||||
|
||||
v2.0.1 - 25.10.2025
|
||||
- Support for Prestashop 9
|
||||
|
||||
v2.0.0 - 20.10.2025
|
||||
- Support for Prestashop 9
|
||||
|
||||
v1.6.6 - 15.10.2025
|
||||
- Special Price for Swip Box
|
||||
|
||||
v1.6.5 - 07.10.2025
|
||||
- Fixes
|
||||
|
||||
v1.6.4 - 06.10.2025
|
||||
- Support for EMPIK integration
|
||||
|
||||
v1.5.0 - 12.08.2025
|
||||
- DPD Poland - Swip box shipping method
|
||||
|
||||
v1.4.0 - 9.04.2025
|
||||
- Block confirm order without Pickup Point for custom checkout - Easycheckout
|
||||
- Block confirm order without Pickup Point for custom checkout - One Page Checkout - PrestaTeam - Prestashop 1.7
|
||||
- Block confirm order without Pickup Point for custom checkout - One Page Checkout - PrestaTeam - Prestashop 8
|
||||
- Block confirm order without Pickup Point for custom checkout - The Checkout - PrestaSmart
|
||||
- Block confirm order without Pickup Point for custom checkout - One Page Checkout - PrestaSmart
|
||||
|
||||
v1.3.1 - 28.02.2025
|
||||
- Declared value service - get amount and currency
|
||||
|
||||
v1.3.0 - 18.01.2025
|
||||
- Multistore support
|
||||
- Special Price import and export with support pagination
|
||||
- Generate shipping - Pickup map for receiver country
|
||||
- Order courier fix
|
||||
- Get pickup number for old carriers
|
||||
- Change join carrier method
|
||||
|
||||
v1.2.0 - 22.11.2024
|
||||
- Hide generate shipping form if carrier is not DPD
|
||||
|
||||
v1.1.5 - 24.09.2024
|
||||
- Set default package weight when product weight is <= 0
|
||||
|
||||
v1.1.4 - 30.07.2024
|
||||
- Show courier pickup option for one time range
|
||||
98
modules/dpdshipping/LICENCE.txt
Normal file
98
modules/dpdshipping/LICENCE.txt
Normal file
@@ -0,0 +1,98 @@
|
||||
LICENCJA PUBLICZNA UNII EUROPEJSKIEJ wersja 1.2
|
||||
EUPL © Unia Europejska 2007, 2016
|
||||
Niniejsza licencja publiczna Unii Europejskiej („EUPL”) stosowana jest w odniesieniu do utworu (w rozumieniu definicji poniżej) udostępnianego na warunkach niniejszej licencji. Każde wykorzystanie utworu inne niż dozwolone na mocy niniejszej licencji jest zakazane (w zakresie, w jakim takie wykorzystanie wchodzi w zakres prawa przysługującego posiadaczowi praw autorskich do utworu). Utwór jest udostępniany na warunkach niniejszej licencji, jeżeli licencjodawca (w rozumieniu definicji poniżej) umieści następującą wzmiankę bezpośrednio po informacji o prawach autorskich do utworu:
|
||||
Na licencji EUPL
|
||||
lub w jakikolwiek inny sposób wyrazi swój zamiar udzielenia licencji na podstawie EUPL.
|
||||
|
||||
1.Definicje
|
||||
W niniejszej licencji stosuje się następujące definicje:
|
||||
— licencja:niniejsza licencja,
|
||||
— utwór oryginalny:utwór lub oprogramowanie rozpowszechniane lub udostępniane przez licencjodawcę na podstawie niniejszej licencji, dostępne w postaci kodu źródłowego, a także – stosownie do przypadku – kodu wykonywalnego,
|
||||
— utwory zależne:utwory lub oprogramowanie, które mogą zostać opracowane przez licencjobiorcę na podstawie utworu oryginalnego lub modyfikacji utworu oryginalnego. Niniejsza licencja nie określa zakresu modyfikacji lub zależności od utworu oryginalnego, wymaganego dla sklasyfikowania utworu jako utworu zależnego; zakres taki wynika z przepisów prawa autorskiego obowiązującego w państwie, o którym mowa w pkt 15,
|
||||
— „utwór”:utwór oryginalny lub związane z nim utwory zależne,
|
||||
— „kod źródłowy”:postać utworu czytelna dla człowieka, najdogodniejsza do analizy i modyfikacji,
|
||||
— „kod wykonywalny”:każdy kod, który został zasadniczo skompilowany i który jako program przeznaczony jest do interpretacji przez komputer,
|
||||
— „licencjodawca”:osoba fizyczna bądź prawna, która rozpowszechnia lub udostępnia utwór na podstawie licencji,
|
||||
— „współautor (współautorzy)”:każda osoba fizyczna lub prawna, która modyfikuje utwór na podstawie licencji lub w inny sposób przyczynia się do stworzenia utworu zależnego,
|
||||
— „licencjobiorca”:każda osoba fizyczna lub prawna, która w jakimkolwiek zakresie korzysta z utworu na warunkach licencji,
|
||||
—„rozpowszechnianie” lub „udostępnianie”:każdy przypadek sprzedaży, przekazania, wypożyczenia, najmu, rozpowszechnienia, udostępnienia, nadania lub innego oddania kopii utworu do dyspozycji innej osobie fizycznej bądź prawnej lub zapewnienia im dostępu do jego istotnych funkcji w trybie on-line lub off-line.
|
||||
|
||||
2.Zakres praw przyznawanych na mocy licencji
|
||||
Licencjodawca niniejszym udziela licencjobiorcy obowiązującej na całym świecie, bezpłatnej, niewyłącznej licencji, obejmującej prawo do udzielania dalszych licencji, na wykonywanie następujących czynności przez okres obowiązywania praw autorskich do utworu oryginalnego:
|
||||
— korzystanie z utworu we wszelkich okolicznościach i do wszelkich celów,
|
||||
— zwielokrotnianie utworu,
|
||||
— modyfikacja utworu oryginalnego oraz opracowywanie utworów zależnych na podstawie utworu,
|
||||
— publiczne udostępnianie, w tym, stosownie do przypadku, prawo do publicznego udostępniania lub prezentacji utworu lub jego kopii oraz publicznego wykonywania utworu,
|
||||
— rozpowszechnianie utworu lub jego kopii,
|
||||
— wypożyczanie i najem utworu lub jego kopii,
|
||||
— sublicencjonowanie praw do utworu lub jego kopii.
|
||||
Powyższe prawa mogą być wykonywane bez względu na nośnik, rodzaj wsparcia i format, znany obecnie lub opracowany w przyszłości, w zakresie dozwolonym przepisami obowiązującego prawa. W państwach, w których przysługują autorskie prawa osobiste, licencjodawca zrzeka się przysługującego mu uprawnienia do wykonywania swoich autorskich praw osobistych w zakresie dozwolonym obowiązującymi przepisami w celu umożliwienia skutecznego udzielenia licencji w zakresie autorskich praw majątkowych wyszczególnionych powyżej. Licencjodawca niniejszym przyznaje licencjobiorcy bezpłatne, niewyłączne prawa do eksploatacji wszelkich patentów posiadanych przez licencjodawcę w zakresie niezbędnym do korzystania z praw do utworu przyznanych na mocy niniejszej licencji.
|
||||
|
||||
3.Udostępnienie kodu źródłowego
|
||||
Licencjodawca może udostępnić utwór w postaci kodu źródłowego lub kodu wykonywalnego. Jeżeli utwór udostępnia się w postaci kodu wykonywalnego, licencjodawca udostępnia jednocześnie kopię kodu źródłowego utworu w formie przeznaczonej do odczytu maszynowego wraz z każdą kopią utworu, którą licencjodawca rozpowszechnia, bądź wskazuje, w adnotacji następującej po informacji o prawach autorskich dołączonej do utworu, repozytorium, w którym łatwo i bezpłatnie dostępny jest kod źródłowy w czasie, w którym licencjodawca rozpowszechnia lub udostępnia utwór.
|
||||
|
||||
4.Ograniczenia praw autorskich
|
||||
Żadne z postanowień niniejszej licencji nie ma na celu pozbawienia licencjobiorcy korzyści wynikających z wszelkich wyjątków lub ograniczeń w stosunku do wyłącznych praw przysługujących właścicielom praw do utworu, ani korzyści płynących z faktu wyczerpania powyższych praw lub innych stosownych ograniczeń tych praw.
|
||||
|
||||
5.Obowiązki licencjobiorcy
|
||||
Przyznanie praw, o których mowa powyżej, podlega określonym ograniczeniom i obowiązkom nałożonym na licencjobiorcę. Obowiązki te obejmują:
|
||||
|
||||
Prawo do autorstwa utworu: Licencjobiorca zobowiązuje się pozostawić w niezmienionej formie wszelkie informacje o prawach autorskich, patentach lub znakach towarowych oraz wszelkie adnotacje dotyczące licencji i wyłączenia gwarancji. Licencjobiorca zobowiązany jest dołączać kopię takich informacji i adnotacji oraz kopię licencji do każdej kopii utworu przez niego rozpowszechnianej lub udostępnianej. Licencjobiorca musi zadbać o to, aby wszelkie utwory zależne opatrzone zostały w widocznym miejscu informacją, że utwór uległ modyfikacji, wraz z datą takiej modyfikacji.
|
||||
|
||||
Klauzula zakazu wprowadzania zmian i ograniczeń do licencji („copyleft”): Jeżeli licencjobiorca rozpowszechnia lub udostępnia kopie utworów oryginalnych lub utworów zależnych, takie rozpowszechnianie lub udostępnianie musi odbywać się na warunkach niniejszej licencji lub późniejszej wersji niniejszej licencji, chyba że rozpowszechnianie utworu oryginalnego wyraźnie odbywa się wyłącznie na podstawie niniejszej wersji licencji – na przykład poprzez dodanie zastrzeżenia „wyłącznie na podstawie EUPL wersja 1.2”. Licencjobiorca (działając w charakterze licencjodawcy) nie może oferować ani nakładać na utwór ani na utwór zależny żadnych dodatkowych postanowień ani warunków zmieniających bądź ograniczających warunki licencji.
|
||||
|
||||
Klauzula zgodności: Jeżeli licencjobiorca rozpowszechnia lub udostępnia utwory zależne lub ich kopie opracowane na podstawie utworu i innego utworu licencjonowanego na mocy zgodnej licencji, takie rozpowszechnianie lub udostępnianie może odbywać się na warunkach wspomnianej zgodnej licencji. Do celów niniejszej klauzuli termin „zgodna licencja” obejmuje licencje wymienione w załączniku do niniejszej licencji. Jeżeli obowiązki licencjobiorcy wynikające ze zgodnej licencji są sprzeczne z jego obowiązkami wynikającymi z niniejszej licencji, obowiązki określone w zgodnej licencji mają charakter nadrzędny.
|
||||
|
||||
Udostępnienie kodu źródłowego: Rozpowszechniając lub udostępniając kopie utworu, licencjobiorca udostępnia przeznaczoną do odczytu maszynowego kopię kodu źródłowego lub wskazuje repozytorium, w którym ten kod będzie łatwo i bezpłatnie dostępny w czasie, w którym licencjobiorca rozpowszechnia lub udostępnia utwór.
|
||||
|
||||
Ochrona prawna: Niniejsza licencja nie upoważnia do korzystania z nazw handlowych, znaków towarowych, znaków usługowych ani nazw licencjodawcy, z wyjątkiem przypadków uzasadnionego i zwyczajowo przyjętego opisu pochodzenia utworu i powielania treści informacji o prawach autorskich.
|
||||
|
||||
6.Ciąg autorstwa
|
||||
Pierwotny licencjodawca gwarantuje, że prawa autorskie do utworu oryginalnego przyznane na mocy niniejszej licencji stanowią jego własność lub że posiada je na mocy stosownej licencji oraz że jest uprawniony i upoważniony do udzielania licencji. Każdy współautor gwarantuje, że prawa autorskie do modyfikacji, jakie wprowadza do utworu, stanowią jego własność lub że posiada je na mocy stosownej licencji oraz że jest uprawniony i upoważniony do udzielania licencji. Każdorazowo gdy licencjobiorca akceptuje licencję, pierwotny licencjodawca i późniejsi współautorzy udzielają licencjobiorcy licencji w stosunku do ich wkładu w utwór na warunkach niniejszej licencji.
|
||||
|
||||
7.Wyłączenie gwarancji
|
||||
Utwór ma charakter utworu nieukończonego, wciąż udoskonalanego przez wielu współautorów. Nie stanowi on utworu gotowego i dlatego może posiadać wady lub błędy właściwe dla tej formy opracowywania utworów. Z powyższych względów utwór przekazuje się na mocy licencji w postaci, w jakiej jest udostępniany, i bez jakichkolwiek gwarancji dotyczących utworu, w tym między innymi bez gwarancji przydatności handlowej, gwarancji przydatności do określonego celu, gwarancji braku wad lub błędów, gwarancji dokładności, gwarancji braku naruszenia praw własności intelektualnej innych niż prawa autorskie, o których mowa w pkt 6 niniejszej licencji. Niniejsze wyłączenie gwarancji stanowi istotny element licencji oraz warunek przyznania jakichkolwiek praw do utworu.
|
||||
|
||||
8.Wyłączenie odpowiedzialności
|
||||
Z zastrzeżeniem przypadków działań umyślnych na szkodę osób fizycznych lub szkód wyrządzonych bezpośrednio osobom fizycznym, licencjodawca w żadnym wypadku nie ponosi odpowiedzialności za bezpośrednie lub pośrednie, majątkowe lub osobiste szkody dowolnego rodzaju powstałe w związku z licencją lub eksploatacją utworu, w tym między innymi za szkody związane z utratą wartości firmy, przerwami w pracy, awarią bądź zakłóceniami pracy komputera, utratą danych ani za wszelkie inne szkody gospodarcze, nawet jeżeli licencjodawca został poinformowany o możliwości ich wystąpienia. Licencjodawca ponosi jednak odpowiedzialność zgodnie z ustawowymi przepisami regulującymi kwestie odpowiedzialności za produkt w zakresie, w jakim takie przepisy mają zastosowanie do utworu.
|
||||
|
||||
9.Dodatkowe umowy
|
||||
Rozpowszechniając utwór, licencjobiorca może postanowić o zawarciu dodatkowej umowy określającej zobowiązania lub świadczenia zgodne z niniejszą licencją. Przyjmując takie zobowiązania, licencjobiorca może występować jedynie we własnym imieniu i na własną odpowiedzialność, a nie w imieniu pierwotnego licencjodawcy ani żadnego innego współautora, oraz tylko pod warunkiem że licencjobiorca zobowiąże się względem każdego współautora do wypłacenia mu rekompensaty, jego obrony i zwolnienia go z odpowiedzialności, jeśli w związku z faktem, że licencjobiorca przyjął dodatkowe zobowiązania lub gwarancje, po stronie takiego współautora powstanie odpowiedzialność lub wysunięte zostaną wobec niego roszczenia.
|
||||
|
||||
10.Akceptacja licencji
|
||||
Postanowienia niniejszej licencji mogą zostać zaakceptowane poprzez kliknięcie ikony „Wyrażam zgodę” umieszczonej na dole okna, w którym wyświetlono pełną treść niniejszej licencji, lub poprzez potwierdzenie własnej zgody w jakikolwiek inny podobny sposób zgodny z przepisami obowiązującego prawa. Kliknięcie takiej ikony jest równoznaczne z wyraźną i nieodwołalną akceptacją niniejszej licencji oraz wszystkich jej warunków. Analogicznie, nieodwołalną akceptację przez licencjobiorcę niniejszej licencji i wszystkich jej warunków stanowi także wykonanie jakiegokolwiek prawa przyznanego licencjobiorcy na mocy pkt 2 niniejszej licencji, takie jak wykorzystanie utworu, opracowanie przez licencjobiorcę utworu zależnego bądź rozpowszechnienie lub udostępnienie przez licencjobiorcę utworu lub jego kopii.
|
||||
|
||||
11.Podawanie informacji do publicznej wiadomości
|
||||
W przypadku rozpowszechniania lub udostępniania przez licencjobiorcę utworu drogą komunikacji elektronicznej (na przykład poprzez oferowanie utworu do pobrania z lokalizacji zdalnej), w obrębie kanału rozpowszechniania lub nośnika (na przykład witryny internetowej) należy przynajmniej podać do wiadomości publicznej informacje wymagane przepisami obowiązującego prawa dotyczące licencjodawcy, licencji oraz sposobu, w jaki może zostać udostępniona, zawarta, przechowywana i zwielokrotniana przez licencjobiorcę.
|
||||
|
||||
12.Wygaśnięcie licencji
|
||||
Licencja i prawa przyznane na jej mocy wygasają automatycznie z chwilą naruszenia przez licencjobiorcę warunków licencji. Takie wygaśnięcie nie skutkuje jednak wygaśnięciem licencji przysługującej którejkolwiek z osób, które otrzymały utwór od licencjobiorcy na mocy licencji, pod warunkiem że takie osoby nadal przestrzegają w pełni postanowień licencji.
|
||||
|
||||
13.Postanowienia różne
|
||||
Nie naruszając postanowień pkt 9, licencja stanowi całość porozumienia między stronami w odniesieniu do utworu. Jeżeli jakiekolwiek postanowienie licencji okaże się nieważne lub niewykonalne na gruncie obowiązującego prawa, pozostaje to bez wpływu na ważność lub wykonalność licencji jako całości. Takie nieważne lub niewykonalne postanowienie należy interpretować lub dostosować w taki sposób, by zapewnić jego ważność i wykonalność. Komisja Europejska może publikować inne wersje językowe lub nowe wersje niniejszej licencji bądź zaktualizowane wersje załącznika, jeżeli jest to konieczne i uzasadnione, bez zawężania zakresu praw przyznanych na mocy licencji. Nowe wersje licencji publikuje się pod niepowtarzalnym numerem wersji. Wszystkie zatwierdzone przez Komisję Europejską wersje językowe niniejszej licencji mają taką samą wartość. Strony mogą korzystać z dowolnej wybranej przez siebie wersji językowej.
|
||||
|
||||
14.Jurysdykcja
|
||||
Bez uszczerbku dla szczegółowych uzgodnień między stronami,
|
||||
— wszelkie spory sądowe związane z interpretacją niniejszej licencji, wynikłe między instytucjami, organami, urzędami lub agencjami Unii Europejskiej jako licencjodawcą a dowolnym licencjobiorcą, podlegają jurysdykcji Trybunału Sprawiedliwości Unii Europejskiej, zgodnie z postanowieniami art. 272 Traktatu o funkcjonowaniu Unii Europejskiej,
|
||||
— wszelkie spory sądowe związane z interpretacją niniejszej licencji, wynikłe między innymi stronami, podlegają wyłącznej jurysdykcji sądu właściwego miejscowo dla miejsca zamieszkania licencjodawcy bądź jego głównego miejsca prowadzenia działalności gospodarczej.
|
||||
|
||||
15.Prawo właściwe
|
||||
Bez uszczerbku dla szczegółowych uzgodnień między stronami,
|
||||
— prawem właściwym dla wykonania niniejszej licencji jest prawo państwa członkowskiego Unii Europejskiej, w którym zamieszkuje lub posiada swą siedzibę (statutową) licencjodawca,
|
||||
— prawem właściwym dla wykonania niniejszej licencji jest prawo belgijskie, jeżeli licencjodawca nie ma miejsca zamieszkania lub siedziby (statutowej) na terenie państwa członkowskiego Unii Europejskiej.
|
||||
|
||||
|
||||
Załącznik
|
||||
„Zgodne licencje” w rozumieniu pkt 5 EUPL to:
|
||||
— GNU General Public License (GPL) wersja 2, wersja 3
|
||||
— GNU Affero General Public License (AGPL) wersja 3
|
||||
— Open Software License (OSL) wersja 2.1, wersja 3.0
|
||||
— Eclipse Public License (EPL) wersja 1.0
|
||||
— CeCILL wersja 2.0, wersja 2.1
|
||||
— Mozilla Public Licence (MPL) wersja 2
|
||||
— GNU Lesser General Public Licence (LGPL) wersja 2.1, wersja 3
|
||||
— Creative Commons Attribution-ShareAlike wersja 3.0 Unported (CC BY-SA 3.0) w odniesieniu do utworów innych niż oprogramowanie
|
||||
— licencja publiczna Unii Europejskiej (EUPL) wersja 1.1, wersja 1.2
|
||||
— Québec Free and Open-Source Licence – Reciprocity (LiLiQ-R) lub Strong Reciprocity (LiLiQ-R+).
|
||||
Komisja Europejska może zaktualizować ten załącznik, aby uwzględnić w nim późniejsze wersje wyżej wymienionych licencji bez sporządzania nowej wersji EUPL, o ile te nowe wersje przyznają prawa przewidziane w pkt 2 niniejszej licencji oraz chronią kod źródłowy wchodzący w jej zakres przed wyłącznym przywłaszczeniem.
|
||||
Wszelkie inne zmiany lub uzupełnienia niniejszego załącznika wymagają sporządzenia nowej wersji EUPL. 19.5.2017 L 128/64 Dziennik Urzędowy Unii Europejskiej PL
|
||||
13
modules/dpdshipping/README.md
Normal file
13
modules/dpdshipping/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
## Troubleshooting
|
||||
|
||||
1. **Clear Cache**:
|
||||
- To clear the cache, run the following command in the main PrestaShop directory:
|
||||
```bash
|
||||
php bin/console cache:clear
|
||||
```
|
||||
|
||||
2. **Update Libraries**:
|
||||
- To update the libraries, run the following command in the `modules/dpdshipping` directory:
|
||||
```bash
|
||||
composer install
|
||||
```
|
||||
23
modules/dpdshipping/composer.json
Normal file
23
modules/dpdshipping/composer.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "dpdpoland/dpdshipping",
|
||||
"description": "Moduł Wysyłkowy - DPD Polska sp. z o. o.",
|
||||
"license": "AFL-3.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "DPD Poland sp. z o.o."
|
||||
}
|
||||
],
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"DpdShipping\\": "src/"
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.0"
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
"prepend-autoloader": false
|
||||
},
|
||||
"type": "prestashop-module"
|
||||
}
|
||||
998
modules/dpdshipping/composer.lock
generated
Normal file
998
modules/dpdshipping/composer.lock
generated
Normal file
@@ -0,0 +1,998 @@
|
||||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "427332ba9bda24dc56ebb379caf743c6",
|
||||
"packages": [],
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "prestashop/php-dev-tools",
|
||||
"version": "v5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/PrestaShop/php-dev-tools.git",
|
||||
"reference": "4b284d9b07a274505c81144536924eb4014e6fbf"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/PrestaShop/php-dev-tools/zipball/4b284d9b07a274505c81144536924eb4014e6fbf",
|
||||
"reference": "4b284d9b07a274505c81144536924eb4014e6fbf",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"symfony/console": "~3.2 || ~4.0 || ~5.0 || ~6.0 || ~7.0",
|
||||
"symfony/filesystem": "~3.2 || ~4.0 || ~5.0 || ~6.0 || ~7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^3.2"
|
||||
},
|
||||
"suggest": {
|
||||
"phpstan/phpstan": "^0.12",
|
||||
"prestashop/autoindex": "^2.0",
|
||||
"prestashop/header-stamp": "^2.0",
|
||||
"squizlabs/php_codesniffer": "^3.4"
|
||||
},
|
||||
"bin": [
|
||||
"bin/prestashop-coding-standards"
|
||||
],
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PrestaShop\\CodingStandards\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PrestaShop"
|
||||
}
|
||||
],
|
||||
"description": "PrestaShop coding standards",
|
||||
"support": {
|
||||
"issues": "https://github.com/PrestaShop/php-dev-tools/issues",
|
||||
"source": "https://github.com/PrestaShop/php-dev-tools/tree/v5"
|
||||
},
|
||||
"time": "2024-05-23T12:27:45+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/container",
|
||||
"version": "1.1.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/container.git",
|
||||
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea",
|
||||
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.4.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Container\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common Container Interface (PHP FIG PSR-11)",
|
||||
"homepage": "https://github.com/php-fig/container",
|
||||
"keywords": [
|
||||
"PSR-11",
|
||||
"container",
|
||||
"container-interface",
|
||||
"container-interop",
|
||||
"psr"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/php-fig/container/issues",
|
||||
"source": "https://github.com/php-fig/container/tree/1.1.2"
|
||||
},
|
||||
"time": "2021-11-05T16:50:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/console",
|
||||
"version": "v5.4.40",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/console.git",
|
||||
"reference": "aa73115c0c24220b523625bfcfa655d7d73662dd"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/console/zipball/aa73115c0c24220b523625bfcfa655d7d73662dd",
|
||||
"reference": "aa73115c0c24220b523625bfcfa655d7d73662dd",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"symfony/deprecation-contracts": "^2.1|^3",
|
||||
"symfony/polyfill-mbstring": "~1.0",
|
||||
"symfony/polyfill-php73": "^1.9",
|
||||
"symfony/polyfill-php80": "^1.16",
|
||||
"symfony/service-contracts": "^1.1|^2|^3",
|
||||
"symfony/string": "^5.1|^6.0"
|
||||
},
|
||||
"conflict": {
|
||||
"psr/log": ">=3",
|
||||
"symfony/dependency-injection": "<4.4",
|
||||
"symfony/dotenv": "<5.1",
|
||||
"symfony/event-dispatcher": "<4.4",
|
||||
"symfony/lock": "<4.4",
|
||||
"symfony/process": "<4.4"
|
||||
},
|
||||
"provide": {
|
||||
"psr/log-implementation": "1.0|2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"psr/log": "^1|^2",
|
||||
"symfony/config": "^4.4|^5.0|^6.0",
|
||||
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
|
||||
"symfony/event-dispatcher": "^4.4|^5.0|^6.0",
|
||||
"symfony/lock": "^4.4|^5.0|^6.0",
|
||||
"symfony/process": "^4.4|^5.0|^6.0",
|
||||
"symfony/var-dumper": "^4.4|^5.0|^6.0"
|
||||
},
|
||||
"suggest": {
|
||||
"psr/log": "For using the console logger",
|
||||
"symfony/event-dispatcher": "",
|
||||
"symfony/lock": "",
|
||||
"symfony/process": ""
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Component\\Console\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"/Tests/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Fabien Potencier",
|
||||
"email": "fabien@symfony.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Eases the creation of beautiful and testable command line interfaces",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"cli",
|
||||
"command-line",
|
||||
"console",
|
||||
"terminal"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/console/tree/v5.4.40"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-05-31T14:33:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/deprecation-contracts",
|
||||
"version": "v2.5.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/deprecation-contracts.git",
|
||||
"reference": "80d075412b557d41002320b96a096ca65aa2c98d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d",
|
||||
"reference": "80d075412b557d41002320b96a096ca65aa2c98d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "2.5-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/contracts",
|
||||
"url": "https://github.com/symfony/contracts"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"function.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "A generic function and convention to trigger deprecation notices",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.3"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2023-01-24T14:02:46+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/filesystem",
|
||||
"version": "v5.4.40",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/filesystem.git",
|
||||
"reference": "26dd9912df6940810ea00f8f53ad48d6a3424995"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/filesystem/zipball/26dd9912df6940810ea00f8f53ad48d6a3424995",
|
||||
"reference": "26dd9912df6940810ea00f8f53ad48d6a3424995",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"symfony/polyfill-ctype": "~1.8",
|
||||
"symfony/polyfill-mbstring": "~1.8",
|
||||
"symfony/polyfill-php80": "^1.16"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/process": "^5.4|^6.4"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Component\\Filesystem\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"/Tests/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Fabien Potencier",
|
||||
"email": "fabien@symfony.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Provides basic utilities for the filesystem",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/filesystem/tree/v5.4.40"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-05-31T14:33:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-ctype",
|
||||
"version": "v1.29.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||
"reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4",
|
||||
"reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"provide": {
|
||||
"ext-ctype": "*"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-ctype": "For best performance"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Ctype\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Gert de Pagter",
|
||||
"email": "BackEndTea@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for ctype functions",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"ctype",
|
||||
"polyfill",
|
||||
"portable"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-01-29T20:11:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-intl-grapheme",
|
||||
"version": "v1.29.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
|
||||
"reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32a9da87d7b3245e09ac426c83d334ae9f06f80f",
|
||||
"reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-intl": "For best performance"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Intl\\Grapheme\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for intl's grapheme_* functions",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"grapheme",
|
||||
"intl",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.29.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-01-29T20:11:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-intl-normalizer",
|
||||
"version": "v1.29.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
||||
"reference": "bc45c394692b948b4d383a08d7753968bed9a83d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d",
|
||||
"reference": "bc45c394692b948b4d383a08d7753968bed9a83d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-intl": "For best performance"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Intl\\Normalizer\\": ""
|
||||
},
|
||||
"classmap": [
|
||||
"Resources/stubs"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for intl's Normalizer class and related functions",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"intl",
|
||||
"normalizer",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-01-29T20:11:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
"version": "v1.29.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||
"reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
|
||||
"reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"provide": {
|
||||
"ext-mbstring": "*"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "For best performance"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Mbstring\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for the Mbstring extension",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"mbstring",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-01-29T20:11:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php73",
|
||||
"version": "v1.29.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php73.git",
|
||||
"reference": "21bd091060673a1177ae842c0ef8fe30893114d2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/21bd091060673a1177ae842c0ef8fe30893114d2",
|
||||
"reference": "21bd091060673a1177ae842c0ef8fe30893114d2",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Php73\\": ""
|
||||
},
|
||||
"classmap": [
|
||||
"Resources/stubs"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-php73/tree/v1.29.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-01-29T20:11:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php80",
|
||||
"version": "v1.29.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php80.git",
|
||||
"reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b",
|
||||
"reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Php80\\": ""
|
||||
},
|
||||
"classmap": [
|
||||
"Resources/stubs"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ion Bazan",
|
||||
"email": "ion.bazan@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-01-29T20:11:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/service-contracts",
|
||||
"version": "v2.5.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/service-contracts.git",
|
||||
"reference": "a2329596ddc8fd568900e3fc76cba42489ecc7f3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/a2329596ddc8fd568900e3fc76cba42489ecc7f3",
|
||||
"reference": "a2329596ddc8fd568900e3fc76cba42489ecc7f3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"psr/container": "^1.1",
|
||||
"symfony/deprecation-contracts": "^2.1|^3"
|
||||
},
|
||||
"conflict": {
|
||||
"ext-psr": "<1.1|>=2"
|
||||
},
|
||||
"suggest": {
|
||||
"symfony/service-implementation": ""
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "2.5-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/contracts",
|
||||
"url": "https://github.com/symfony/contracts"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Contracts\\Service\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Generic abstractions related to writing services",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"abstractions",
|
||||
"contracts",
|
||||
"decoupling",
|
||||
"interfaces",
|
||||
"interoperability",
|
||||
"standards"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/service-contracts/tree/v2.5.3"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2023-04-21T15:04:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/string",
|
||||
"version": "v5.4.40",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/string.git",
|
||||
"reference": "142877285aa974a6f7685e292ab5ba9aae86b143"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/string/zipball/142877285aa974a6f7685e292ab5ba9aae86b143",
|
||||
"reference": "142877285aa974a6f7685e292ab5ba9aae86b143",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"symfony/polyfill-ctype": "~1.8",
|
||||
"symfony/polyfill-intl-grapheme": "~1.0",
|
||||
"symfony/polyfill-intl-normalizer": "~1.0",
|
||||
"symfony/polyfill-mbstring": "~1.0",
|
||||
"symfony/polyfill-php80": "~1.15"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/translation-contracts": ">=3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/error-handler": "^4.4|^5.0|^6.0",
|
||||
"symfony/http-client": "^4.4|^5.0|^6.0",
|
||||
"symfony/translation-contracts": "^1.1|^2",
|
||||
"symfony/var-exporter": "^4.4|^5.0|^6.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"Resources/functions.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Symfony\\Component\\String\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"/Tests/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"grapheme",
|
||||
"i18n",
|
||||
"string",
|
||||
"unicode",
|
||||
"utf-8",
|
||||
"utf8"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/string/tree/v5.4.40"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-05-31T14:33:22+00:00"
|
||||
}
|
||||
],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
"php": ">=7.1.0"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
||||
35
modules/dpdshipping/config.xml
Normal file
35
modules/dpdshipping/config.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
~ /**
|
||||
~ Copyright 2024 DPD Polska Sp. z o.o.
|
||||
~
|
||||
~ NOTICE OF LICENSE
|
||||
~
|
||||
~ Licensed under the EUPL-1.2 or later.
|
||||
~ You may not use this work except in compliance with the Licence.
|
||||
~
|
||||
~ You may obtain a copy of the Licence at:
|
||||
~ https://joinup.ec.europa.eu/software/page/eupl
|
||||
~ It is also bundled with this package in the file LICENSE.txt
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the Licence is distributed on an AS IS basis,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the Licence for the specific language governing permissions
|
||||
~ and limitations under the Licence.
|
||||
~
|
||||
~ @author DPD Polska Sp. z o.o.
|
||||
~ @copyright 2024 DPD Polska Sp. z o.o.
|
||||
~ @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
-->
|
||||
<module>
|
||||
<name>dpdshipping</name>
|
||||
<displayName><![CDATA[Moduł Wysyłkowy - DPD Polska sp. z o. o.]]></displayName>
|
||||
<version><![CDATA[2.0.2]]></version>
|
||||
<description><![CDATA[Moduł Wysyłkowy - DPD Polska sp. z o. o.]]></description>
|
||||
<author><![CDATA[DPD Poland sp. z o. o.]]></author>
|
||||
<tab><![CDATA[shipping_logistics]]></tab>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>1</need_instance>
|
||||
<limited_countries></limited_countries>
|
||||
</module>
|
||||
33
modules/dpdshipping/config/index.php
Normal file
33
modules/dpdshipping/config/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
216
modules/dpdshipping/config/routes.yml
Normal file
216
modules/dpdshipping/config/routes.yml
Normal file
@@ -0,0 +1,216 @@
|
||||
### Shipping history
|
||||
|
||||
dpdshipping_shipping_history_search_form:
|
||||
path: /dpdshipping/shipping-history
|
||||
methods: [ POST ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryController::searchAction'
|
||||
|
||||
dpdshipping_shipping_history_form:
|
||||
path: /dpdshipping/shipping-history
|
||||
methods: [ GET ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryController::index'
|
||||
# Needed to work with tab system
|
||||
_legacy_controller: AdminDpdShippingShippingHistoryForm
|
||||
_legacy_link: AdminDpdShippingShippingHistoryForm
|
||||
|
||||
dpdshipping_shipping_history_print_labels_form:
|
||||
path: /dpdshipping/shipping-history/print-label
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryController::printLabelActionAjax'
|
||||
|
||||
dpdshipping_shipping_history_print_protocols_form:
|
||||
path: /dpdshipping/shipping-history/print-protocol
|
||||
methods: [ POST ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryController::printProtocolActionAjax'
|
||||
|
||||
dpdshipping_shipping_history_delete_form:
|
||||
path: /dpdshipping/shipping-history/delete
|
||||
methods: [ POST, DELETE ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryController::deleteAction'
|
||||
|
||||
dpdshipping_shipping_history_details_form:
|
||||
path: /dpdshipping/shipping-history/details
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryDetailController::index
|
||||
|
||||
### Pickup courier
|
||||
|
||||
dpdshipping_pickup_courier_search_form:
|
||||
path: /dpdshipping/pickupCourier
|
||||
methods: [ POST ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\PickupCourier\DpdShippingPickupCourierController::searchAction'
|
||||
|
||||
dpdshipping_pickup_courier_form:
|
||||
path: /dpdshipping/pickupCourier
|
||||
methods: [ GET ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\PickupCourier\DpdShippingPickupCourierController::index
|
||||
|
||||
dpdshipping_pickup_courier_edit_form:
|
||||
path: /dpdshipping/pickupCourierEdit
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\PickupCourier\DpdShippingPickupCourierController::edit
|
||||
|
||||
dpdshipping_pickup_courier_get_pickup_courier_settings_ajax:
|
||||
path: /dpdshipping/pickupCourier/settings
|
||||
methods: [ GET ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\PickupCourier\DpdShippingPickupCourierController::getPickupCourierSettingsAjax'
|
||||
|
||||
dpdshipping_pickup_courier_get_pickup_courier_time_frames_ajax:
|
||||
path: /dpdshipping/pickupCourier/timeframes
|
||||
methods: [ GET ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\PickupCourier\DpdShippingPickupCourierController::getPickupCourierTimeFramesAjax'
|
||||
|
||||
dpdshipping_pickup_courier_pickup_courier_ajax:
|
||||
path: /dpdshipping/pickupCourier/pickupCourierAjax
|
||||
methods: [ POST ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\PickupCourier\DpdShippingPickupCourierController::pickupCourierAjax'
|
||||
|
||||
dpdshipping_pickup_courier_delete_pickup_courier:
|
||||
path: /dpdshipping/pickupCourier/deletePickupCourier
|
||||
methods: [ DELETE ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\PickupCourier\DpdShippingPickupCourierController::deletePickupCourier'
|
||||
|
||||
### Configuration - Pickup courier
|
||||
dpdshipping_pickup_courier_settings_form:
|
||||
path: /dpdshipping/configuration/pickupCourierSettings
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingPickupCourierSettingsController::index
|
||||
|
||||
dpdshipping_pickup_courier_settings_list_form:
|
||||
path: /dpdshipping/configuration/pickupCourierSettingsList
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingPickupCourierSettingsController::list
|
||||
|
||||
|
||||
dpdshipping_pickup_courier_settings_delete_form:
|
||||
path: /dpdshipping/configuration/pickupCourierSettingsList/delete
|
||||
methods: [ DELETE ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingPickupCourierSettingsController::delete
|
||||
|
||||
|
||||
### Configuration - Connection
|
||||
dpdshipping_connection_form:
|
||||
path: /dpdshipping/configuration/connection
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingConnectionController::list
|
||||
|
||||
dpdshipping_connection_edit_form:
|
||||
path: /dpdshipping/configuration/connection/edit
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingConnectionController::edit
|
||||
|
||||
dpdshipping_connection_delete_form:
|
||||
path: /dpdshipping/configuration/connection/edit
|
||||
methods: [ DELETE ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingConnectionController::delete
|
||||
|
||||
|
||||
### Configuration - Addresses
|
||||
dpdshipping_address_form:
|
||||
path: /dpdshipping/configuration/address
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingAddressController::list
|
||||
|
||||
dpdshipping_address_edit_form:
|
||||
path: /dpdshipping/configuration/address/edit
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingAddressController::edit
|
||||
|
||||
dpdshipping_address_delete_form:
|
||||
path: /dpdshipping/configuration/address/edit
|
||||
methods: [ DELETE ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingAddressController::delete
|
||||
|
||||
### Configuration - Configuration
|
||||
dpdshipping_configuration_form:
|
||||
path: /dpdshipping/configuration/configuration
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingConfigurationController::index
|
||||
|
||||
### Configuration - Parameters
|
||||
dpdshipping_parameters_form:
|
||||
path: /dpdshipping/configuration/parameters
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingParameterController::index
|
||||
|
||||
### Configuration - Carrier
|
||||
dpdshipping_carrier_form:
|
||||
path: /dpdshipping/configuration/carrier
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingCarrierController::index
|
||||
|
||||
### Configuration - Special price
|
||||
dpdshipping_special_price_form:
|
||||
path: /dpdshipping/configuration/specialPrice
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingSpecialPriceController::index
|
||||
|
||||
dpdshipping_special_price_export_action:
|
||||
path: /dpdshipping/configuration/specialPrice/export
|
||||
methods: [ GET ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\Configuration\DpdShippingSpecialPriceController::exportAction'
|
||||
|
||||
dpdshipping_special_price_import_action:
|
||||
path: /dpdshipping/configuration/specialPrice/import
|
||||
methods: [ POST ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\Configuration\DpdShippingSpecialPriceController::importAction'
|
||||
|
||||
### Configuration - Onboarding
|
||||
dpdshipping_onboarding_form:
|
||||
path: /dpdshipping/configuration/onboarding
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: DpdShipping\Controller\Configuration\DpdShippingOnboardingController::index
|
||||
|
||||
### External
|
||||
dpdshipping_external_dpd_tracking:
|
||||
path: /dpdshipping/redirect/{shippingNumber}
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\RedirectController::redirectTracking'
|
||||
|
||||
dpdshipping_return_label:
|
||||
path: /dpdshipping/shipping/returnLabel
|
||||
methods: [ GET, POST ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\Order\DpdShippingReturnLabelController::index'
|
||||
|
||||
dpdshipping_generate_shipping_bulk_action:
|
||||
path: /dpdshipping/shipping/generate
|
||||
methods: [ GET,POST ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\Order\DpdShippingBulkGenerateShippingController::index'
|
||||
|
||||
dpdshipping_generate_shipping_and_labels_bulk_action:
|
||||
path: /dpdshipping/shipping/generateShippingAndLabel
|
||||
methods: [ GET,POST ]
|
||||
defaults:
|
||||
_controller: 'DpdShipping\Controller\Order\DpdShippingBulkGenerateShippingController::generateShippingAndPrintLabels'
|
||||
|
||||
132
modules/dpdshipping/config/services.yml
Normal file
132
modules/dpdshipping/config/services.yml
Normal file
@@ -0,0 +1,132 @@
|
||||
imports:
|
||||
# Load YAML service files from the immediate services directory
|
||||
- { resource: 'services/*.yml' }
|
||||
# Load YAML service files from one-level nested subdirectories (configuration/, domain/, etc.)
|
||||
- { resource: 'services/*/*.yml' }
|
||||
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
|
||||
DpdShipping\Controller\RedirectController:
|
||||
class: 'DpdShipping\Controller\RedirectController'
|
||||
public: true
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
# Register controllers referenced in routes but not yet declared as services
|
||||
DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryDetailController:
|
||||
class: 'DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryDetailController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
DpdShipping\Controller\PickupCourier\DpdShippingPickupCourierController:
|
||||
class: 'DpdShipping\Controller\PickupCourier\DpdShippingPickupCourierController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@dpdshipping.grid.factory.pickup.courier'
|
||||
- '@translator'
|
||||
- '@prestashop.bundle.grid.response_builder'
|
||||
- '@dpdshipping.grid.definition.factory.pickup.courier'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_edit_form_data_handler'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
DpdShipping\Controller\Configuration\DpdShippingPickupCourierSettingsController:
|
||||
class: 'DpdShipping\Controller\Configuration\DpdShippingPickupCourierSettingsController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@dpdshipping.grid.factory.configuration.pickup.courier.settings.list'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_settings_form_data_handler'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
DpdShipping\Controller\Configuration\DpdShippingConnectionController:
|
||||
class: 'DpdShipping\Controller\Configuration\DpdShippingConnectionController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@dpdshipping.grid.factory.configuration.connection'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_connection_form_data_handler'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
DpdShipping\Controller\Configuration\DpdShippingAddressController:
|
||||
class: 'DpdShipping\Controller\Configuration\DpdShippingAddressController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@dpdshipping.grid.factory.configuration.address'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_address_form_data_handler'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
DpdShipping\Controller\Configuration\DpdShippingConfigurationController:
|
||||
class: 'DpdShipping\Controller\Configuration\DpdShippingConfigurationController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_configuration_form_data_handler'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
DpdShipping\Controller\Configuration\DpdShippingParameterController:
|
||||
class: 'DpdShipping\Controller\Configuration\DpdShippingParameterController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_parameters_form_data_handler'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
DpdShipping\Controller\Configuration\DpdShippingCarrierController:
|
||||
class: 'DpdShipping\Controller\Configuration\DpdShippingCarrierController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_carrier_form_data_handler'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
DpdShipping\Controller\Configuration\DpdShippingSpecialPriceController:
|
||||
class: 'DpdShipping\Controller\Configuration\DpdShippingSpecialPriceController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_special_prices_form_data_handler'
|
||||
- '@router'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
DpdShipping\Controller\Configuration\DpdShippingOnboardingController:
|
||||
class: 'DpdShipping\Controller\Configuration\DpdShippingOnboardingController'
|
||||
public: true
|
||||
autowire: false
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_onboarding_form_data_handler'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
21
modules/dpdshipping/config/services/common.yml
Normal file
21
modules/dpdshipping/config/services/common.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
services:
|
||||
_defaults:
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.hook.repository:
|
||||
class: 'DpdShipping\Hook\HookRepository'
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.hook.factory:
|
||||
class: 'DpdShipping\Hook\HookFactory'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.hook.repository'
|
||||
|
||||
prestashop.module.dpdshipping.api:
|
||||
class: 'DpdShipping\Api\DpdApiService'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.core.command_bus'
|
||||
@@ -0,0 +1,59 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_address:
|
||||
class: 'DpdShipping\Form\Configuration\Address\DpdShippingAddressType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_address_form_data_provider:
|
||||
class: 'DpdShipping\Form\Configuration\Address\DpdShippingAddressFormDataProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.core.command_bus'
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_address_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_address_form_data_provider'
|
||||
- 'DpdShipping\Form\Configuration\Address\DpdShippingAddressType'
|
||||
- 'DpdShippingAddress'
|
||||
|
||||
dpdshipping.grid.definition.factory.configuration.address:
|
||||
class: 'DpdShipping\Grid\Configuration\Address\Definition\Factory\AddressGridDefinitionFactory'
|
||||
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
|
||||
public: false
|
||||
|
||||
dpdshipping.grid.query_builder.configuration.address:
|
||||
class: 'DpdShipping\Grid\Configuration\Address\Query\AddressQueryBuilder'
|
||||
parent: 'prestashop.core.grid.abstract_query_builder'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.core.query.doctrine_search_criteria_applicator'
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().language.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id_shop_group"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.getGroup().share_stock"
|
||||
- '@prestashop.core.grid.query.filter.doctrine_filter_applicator'
|
||||
|
||||
dpdshipping.grid.data_provider.configuration.address:
|
||||
class: '%prestashop.core.grid.data.factory.doctrine_grid_data_factory%'
|
||||
arguments:
|
||||
- '@dpdshipping.grid.query_builder.configuration.address'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.core.grid.query.doctrine_query_parser'
|
||||
- 'dpdshipping_sender_address'
|
||||
|
||||
dpdshipping.grid.factory.configuration.address:
|
||||
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
|
||||
public: true
|
||||
arguments:
|
||||
- '@dpdshipping.grid.definition.factory.configuration.address'
|
||||
- '@dpdshipping.grid.data_provider.configuration.address'
|
||||
- '@prestashop.core.grid.filter.form_factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_carrier:
|
||||
class: 'DpdShipping\Form\Configuration\Carrier\DpdShippingCarrierType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_carrier_form_data_provider:
|
||||
class: 'DpdShipping\Form\Configuration\Carrier\DpdShippingCarrierFormDataProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@prestashop.module.dpdshipping.domain.carrier.handler'
|
||||
- '@translator'
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_carrier_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_carrier_form_data_provider'
|
||||
- 'DpdShipping\Form\Configuration\Carrier\DpdShippingCarrierType'
|
||||
- 'DpdShippingCarrier'
|
||||
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_configuration:
|
||||
class: 'DpdShipping\Form\Configuration\Configuration\DpdShippingConfigurationType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_configuration_form_data_provider:
|
||||
class: 'DpdShipping\Form\Configuration\Configuration\DpdShippingConfigurationFormDataProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.core.command_bus'
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_configuration_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_configuration_form_data_provider'
|
||||
- 'DpdShipping\Form\Configuration\Configuration\DpdShippingConfigurationType'
|
||||
- 'DpdShippingConfiguration'
|
||||
|
||||
prestashop.module.dpdshipping.domain.configuration.query_handler.get_configuration:
|
||||
class: 'DpdShipping\Domain\Configuration\Configuration\Query\GetConfigurationHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.configuration.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Configuration\Query\GetConfiguration', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Configuration\Query\GetConfiguration' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.configuration.command_handler.save_configuration:
|
||||
class: 'DpdShipping\Domain\Configuration\Configuration\Command\SaveConfigurationHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.configuration.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Configuration\Command\SaveConfigurationCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Configuration\Command\SaveConfigurationCommand' }
|
||||
@@ -0,0 +1,92 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_connection:
|
||||
class: 'DpdShipping\Form\Configuration\Connection\DpdShippingConnectionType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_connection_form_data_provider:
|
||||
class: 'DpdShipping\Form\Configuration\Connection\DpdShippingConnectionFormDataProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.core.command_bus'
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_connection_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_connection_form_data_provider'
|
||||
- 'DpdShipping\Form\Configuration\Connection\DpdShippingConnectionType'
|
||||
- 'DpdShippingConnection'
|
||||
|
||||
dpdshipping.grid.definition.factory.configuration.connection:
|
||||
class: 'DpdShipping\Grid\Configuration\Connection\Definition\Factory\ConnectionGridDefinitionFactory'
|
||||
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
|
||||
public: false
|
||||
|
||||
dpdshipping.grid.query_builder.configuration.connection:
|
||||
class: 'DpdShipping\Grid\Configuration\Connection\Query\ConnectionQueryBuilder'
|
||||
parent: 'prestashop.core.grid.abstract_query_builder'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.core.query.doctrine_search_criteria_applicator'
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().language.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id_shop_group"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.getGroup().share_stock"
|
||||
- '@prestashop.core.grid.query.filter.doctrine_filter_applicator'
|
||||
|
||||
dpdshipping.grid.data_provider.configuration.connection:
|
||||
class: '%prestashop.core.grid.data.factory.doctrine_grid_data_factory%'
|
||||
arguments:
|
||||
- '@dpdshipping.grid.query_builder.configuration.connection'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.core.grid.query.doctrine_query_parser'
|
||||
- 'dpdshipping_sender_connection'
|
||||
|
||||
dpdshipping.grid.factory.configuration.connection:
|
||||
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
|
||||
public: true
|
||||
arguments:
|
||||
- '@dpdshipping.grid.definition.factory.configuration.connection'
|
||||
- '@dpdshipping.grid.data_provider.configuration.connection'
|
||||
- '@prestashop.core.grid.filter.form_factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
|
||||
|
||||
prestashop.module.dpdshipping.domain.configuration.query_handler.get_connection:
|
||||
class: 'DpdShipping\Domain\Configuration\Connection\Query\GetConnectionHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.connection.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Connection\Query\GetConnection', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Connection\Query\GetConnection' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.configuration.query_handler.get_connection_list:
|
||||
class: 'DpdShipping\Domain\Configuration\Connection\Query\GetConnectionListHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.connection.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Connection\Query\GetConnectionList', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Connection\Query\GetConnectionList' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.configuration.command_handler.save_connection:
|
||||
class: 'DpdShipping\Domain\Configuration\Connection\Command\SaveConnectionHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.connection.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Connection\Command\SaveConnectionCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Connection\Command\SaveConnectionCommand' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.configuration.command_handler.delete_connection:
|
||||
class: 'DpdShipping\Domain\Configuration\Connection\Command\DeleteConnectionHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.connection.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Connection\Command\DeleteConnectionCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Connection\Command\DeleteConnectionCommand' }
|
||||
33
modules/dpdshipping/config/services/configuration/index.php
Normal file
33
modules/dpdshipping/config/services/configuration/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_onboarding:
|
||||
class: 'DpdShipping\Form\Configuration\Onboarding\DpdShippingOnboardingType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_onboarding_form_data_provider:
|
||||
class: 'DpdShipping\Form\Configuration\Onboarding\DpdShippingOnboardingFormDataProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@prestashop.module.dpdshipping.domain.carrier.handler'
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_onboarding_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_onboarding_form_data_provider'
|
||||
- 'DpdShipping\Form\Configuration\Onboarding\DpdShippingOnboardingType'
|
||||
- 'DpdShippingOnboarding'
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_parameters:
|
||||
class: 'DpdShipping\Form\Configuration\Parameter\DpdShippingParameterType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_parameters_form_data_provider:
|
||||
class: 'DpdShipping\Form\Configuration\Parameter\DpdShippingParameterFormDataProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.core.command_bus'
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_parameters_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_parameters_form_data_provider'
|
||||
- 'DpdShipping\Form\Configuration\Parameter\DpdShippingParameterType'
|
||||
- 'DpdShippingParameters'
|
||||
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_pickup_courier_settings:
|
||||
class: 'DpdShipping\Form\Configuration\PickupCourierSettings\DpdShippingPickupCourierSettingsType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_settings_form_data_provider:
|
||||
class: 'DpdShipping\Form\Configuration\PickupCourierSettings\DpdShippingPickupCourierSettingsFormDataProvider'
|
||||
arguments: [ '@prestashop.core.query_bus', '@prestashop.core.command_bus' ]
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_settings_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_settings_form_data_provider'
|
||||
- 'DpdShipping\Form\Configuration\PickupCourierSettings\DpdShippingPickupCourierSettingsType'
|
||||
- 'DpdShippingPickupCourierSettings'
|
||||
@@ -0,0 +1,80 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_pickup_courier_settings_list:
|
||||
class: 'DpdShipping\Form\Configuration\PickupCourierSettings\DpdShippingPickupCourierSettingsType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_settings_list_form_data_provider:
|
||||
class: 'DpdShipping\Form\Configuration\PickupCourierSettings\DpdShippingPickupCourierSettingsFormDataProvider'
|
||||
arguments: [ '@prestashop.core.query_bus', '@prestashop.core.command_bus' ]
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_settings_list_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_settings_list_form_data_provider'
|
||||
- 'DpdShipping\Form\Configuration\PickupCourierSettings\DpdShippingPickupCourierSettingsType'
|
||||
- 'DpdShippingPickupCourierSettings'
|
||||
|
||||
dpdshipping.grid.definition.factory.configuration.pickup.courier.settings.list:
|
||||
class: 'DpdShipping\Grid\Configuration\PickupCourierSettings\Definition\Factory\PickupCourierSettingsGridDefinitionFactory'
|
||||
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
|
||||
public: false
|
||||
|
||||
dpdshipping.grid.query_builder.configuration.pickup.courier.settings.list:
|
||||
class: 'DpdShipping\Grid\Configuration\PickupCourierSettings\Query\PickupCourierSettingsQueryBuilder'
|
||||
parent: 'prestashop.core.grid.abstract_query_builder'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.core.query.doctrine_search_criteria_applicator'
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().language.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id_shop_group"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.getGroup().share_stock"
|
||||
- '@prestashop.core.grid.query.filter.doctrine_filter_applicator'
|
||||
|
||||
dpdshipping.grid.data_provider.configuration.pickup.courier.settings.list:
|
||||
class: '%prestashop.core.grid.data.factory.doctrine_grid_data_factory%'
|
||||
arguments:
|
||||
- '@dpdshipping.grid.query_builder.configuration.pickup.courier.settings.list'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.core.grid.query.doctrine_query_parser'
|
||||
- 'dpdshipping_pickup_courier_settings'
|
||||
|
||||
dpdshipping.grid.factory.configuration.pickup.courier.settings.list:
|
||||
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
|
||||
public: true
|
||||
arguments:
|
||||
- '@dpdshipping.grid.definition.factory.configuration.pickup.courier.settings.list'
|
||||
- '@dpdshipping.grid.data_provider.configuration.pickup.courier.settings.list'
|
||||
- '@prestashop.core.grid.filter.form_factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
|
||||
prestashop.module.dpdshipping.domain.pickup.courier.settings.command.delete.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\PickupCourierSettings\Command\DeletePickupOrderSettingsAddressHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.pickup.courier.settings.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\PickupCourierSettings\Command\DeletePickupOrderSettingsAddressCommand', method: 'handle' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.pickup.courier.settings.command.add.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\PickupCourierSettings\Command\AddPickupOrderSettingsHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.pickup.courier.settings.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\PickupCourierSettings\Command\AddPickupOrderSettingsCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\PickupCourierSettings\Command\AddPickupOrderSettingsCommand' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.pickup.courier.settings.command.get.list.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\PickupCourierSettings\Query\GetPickupCourierSettingsListHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.pickup.courier.settings.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\PickupCourierSettings\Query\GetPickupCourierSettingsList', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\PickupCourierSettings\Query\GetPickupCourierSettingsList' }
|
||||
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_special_prices:
|
||||
class: 'DpdShipping\Form\Configuration\SpecialPrice\DpdShippingSpecialPriceType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_special_prices_form_data_provider:
|
||||
class: 'DpdShipping\Form\Configuration\SpecialPrice\DpdShippingSpecialPriceFormDataProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.core.command_bus'
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_special_prices_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_special_prices_form_data_provider'
|
||||
- 'DpdShipping\Form\Configuration\SpecialPrice\DpdShippingSpecialPriceType'
|
||||
- 'DpdShippingSpecialPrice'
|
||||
|
||||
prestashop.module.dpdshipping.form.type.special_price:
|
||||
class: 'DpdShipping\Form\Configuration\SpecialPrice\SpecialPriceType'
|
||||
arguments:
|
||||
- '@translator'
|
||||
- { locale: '%locale%' }
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
74
modules/dpdshipping/config/services/domain/carrier.yml
Normal file
74
modules/dpdshipping/config/services/domain/carrier.yml
Normal file
@@ -0,0 +1,74 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.domain.carrier.query.get.carrier.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCarrierHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCarrier', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCarrier' }
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.carrier.repository'
|
||||
|
||||
prestashop.module.dpdshipping.domain.carrier.query.get.carrier.list.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCarrierListHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCarrierList', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCarrierList' }
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.carrier.repository'
|
||||
- '@prestashop.core.query_bus'
|
||||
|
||||
prestashop.module.dpdshipping.domain.carrier.query.get.order.carrier.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Carrier\Query\GetOrderCarrierHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Carrier\Query\GetOrderCarrier', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Carrier\Query\GetOrderCarrier' }
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.carrier.repository'
|
||||
|
||||
prestashop.module.dpdshipping.domain.carrier.command.get.carrier.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Carrier\Command\AddCarrierHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Carrier\Command\AddCarrierCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Carrier\Command\AddCarrierCommand' }
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.carrier.repository'
|
||||
|
||||
prestashop.module.dpdshipping.domain.carrier.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Carrier\DpdCarrier'
|
||||
arguments:
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@prestashop.core.query_bus'
|
||||
|
||||
prestashop.module.dpdshipping.domain.carrier.query.get.carrier.pickup.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCarrierPickupHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCarrierPickup', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCarrierPickup' }
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.carrier.pickup.repository'
|
||||
|
||||
prestashop.module.dpdshipping.domain.carrier.query.get.cod.payment.modules.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCodPaymentModulesHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCodPaymentModules', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Carrier\Query\GetCodPaymentModules' }
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.configuration.repository'
|
||||
|
||||
prestashop.module.dpdshipping.domain.carrier.command.get.carrier.pickup.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Carrier\Command\AddCarrierPickupHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Carrier\Command\AddCarrierPickupCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Carrier\Command\AddCarrierPickupCommand' }
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.carrier.pickup.repository'
|
||||
|
||||
prestashop.module.dpdshipping.domain.carrier.command.update.carrier.action.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Carrier\Command\UpdateCarrierActionHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Carrier\Command\UpdateCarrierActionCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Carrier\Command\UpdateCarrierActionCommand' }
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.carrier.repository'
|
||||
33
modules/dpdshipping/config/services/domain/index.php
Normal file
33
modules/dpdshipping/config/services/domain/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
94
modules/dpdshipping/config/services/domain/order.yml
Normal file
94
modules/dpdshipping/config/services/domain/order.yml
Normal file
@@ -0,0 +1,94 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.get.receiver.address.list.handler:
|
||||
class: 'DpdShipping\Domain\Order\Query\GetReceiverAddressListHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Query\GetReceiverAddressList', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Query\GetReceiverAddressList' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.get.default.order.receiver.address.handler:
|
||||
class: 'DpdShipping\Domain\Order\Query\GetDefaultOrderReceiverAddressHandler'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Query\GetDefaultOrderReceiverAddress', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Query\GetDefaultOrderReceiverAddress' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.command.add.dpd.order.handler:
|
||||
class: 'DpdShipping\Domain\Order\Command\AddDpdOrderCommandHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.api'
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Command\AddDpdOrderCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Command\AddDpdOrderCommand' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.command.after.shipment.handler:
|
||||
class: 'DpdShipping\Domain\Order\Command\AfterShipmentHandler'
|
||||
arguments:
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Command\AfterShipmentCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Command\AfterShipmentCommand' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.get.order.pudo.code:
|
||||
class: 'DpdShipping\Domain\Order\Query\GetOrderPudoCodeHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.cart.pickup.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Query\GetOrderPudoCode', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Query\GetOrderPudoCode' }
|
||||
|
||||
|
||||
prestashop.module.dpdshipping.domain.get.country.iso.code:
|
||||
class: 'DpdShipping\Domain\Order\Query\GetCountryIsoCodeHandler'
|
||||
arguments:
|
||||
- '@logger'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Query\GetCountryIsoCode', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Query\GetCountryIsoCode' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.get.order.source:
|
||||
class: 'DpdShipping\Domain\Order\Query\GetOrderSourceHandler'
|
||||
arguments:
|
||||
- '@logger'
|
||||
- '@prestashop.core.command_bus'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Query\GetOrderSource', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Query\GetOrderSource' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.get.empik.pickup.number:
|
||||
class: 'DpdShipping\Domain\Order\Query\GetEmpikPickupNumberHandler'
|
||||
arguments:
|
||||
- '@logger'
|
||||
- '@prestashop.core.command_bus'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Query\GetEmpikPickupNumber', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Query\GetEmpikPickupNumber' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.get.empik.order.reference:
|
||||
class: 'DpdShipping\Domain\Order\Query\GetEmpikOrderReferenceHandler'
|
||||
arguments:
|
||||
- '@logger'
|
||||
- '@prestashop.core.command_bus'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Query\GetEmpikOrderReference', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Query\GetEmpikOrderReference' }
|
||||
|
||||
DpdShipping\Controller\Order\DpdShippingBulkGenerateShippingController:
|
||||
class: 'DpdShipping\Controller\Order\DpdShippingBulkGenerateShippingController'
|
||||
public: true
|
||||
autowire: true
|
||||
arguments:
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@translator'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_generate_shipping_form_data_provider'
|
||||
- '@DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryController'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
27
modules/dpdshipping/config/services/domain/payer.yml
Normal file
27
modules/dpdshipping/config/services/domain/payer.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.domain.payer.query.get.payer.list.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Payer\Query\GetPayerListHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.payer.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Payer\Query\GetPayerList', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Payer\Query\GetPayerList' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.payer.query.get.default.payer.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Payer\Query\GetDefaultPayerHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.payer.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Payer\Query\GetDefaultPayer', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Payer\Query\GetDefaultPayer' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.payer.command.add.payer.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\Payer\Command\AddPayerHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.payer.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\Payer\Command\AddPayerCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\Payer\Command\AddPayerCommand' }
|
||||
25
modules/dpdshipping/config/services/domain/returnLabel.yml
Normal file
25
modules/dpdshipping/config/services/domain/returnLabel.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
DpdShipping\Controller\Order\DpdShippingReturnLabelController:
|
||||
class: 'DpdShipping\Controller\Order\DpdShippingReturnLabelController'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@twig'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
prestashop.module.dpdshipping.domain.return.label.command.return.label.handler:
|
||||
class: 'DpdShipping\Domain\ReturnLabel\Command\ReturnLabelHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.api'
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.repository'
|
||||
- '@prestashop.core.command_bus'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\ReturnLabel\Command\ReturnLabelCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\ReturnLabel\Command\ReturnLabelCommand' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
51
modules/dpdshipping/config/services/domain/senderAddress.yml
Normal file
51
modules/dpdshipping/config/services/domain/senderAddress.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.domain.sender.address.query.get.sender.address.list.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetSenderAddressListHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.sender.address.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetSenderAddressList', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetSenderAddressList' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.sender.address.query.get.order.sender.address.list.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetOrderSenderAddressListHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.sender.address.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetOrderSenderAddressList', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetOrderSenderAddressList' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.sender.address.query.get.default.order.sender.address.list.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetDefaultOrderSenderAddressHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.sender.address.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetDefaultOrderSenderAddress', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetDefaultOrderSenderAddress' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.sender.address.query.get.sender.address.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetSenderAddressHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.sender.address.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetSenderAddress', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\SenderAddress\Query\GetSenderAddress' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.sender.address.command.add.sender.address.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\SenderAddress\Command\AddSenderAddressHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.sender.address.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\SenderAddress\Command\AddSenderAddressCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\SenderAddress\Command\AddSenderAddressCommand' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.sender.address.command.delete.sender.address.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\SenderAddress\Command\DeleteSenderAddressHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.sender.address.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\SenderAddress\Command\DeleteSenderAddressCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\SenderAddress\Command\DeleteSenderAddressCommand' }
|
||||
@@ -0,0 +1,72 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.command.add.shipping.history.handler:
|
||||
class: 'DpdShipping\Domain\Order\Command\AddShippingHistoryHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.repository'
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.sender.repository'
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.receiver.repository'
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.parcel.repository'
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.services.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Order\Command\AddShippingHistoryCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Order\Command\AddShippingHistoryCommand' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.query.get.label.handler:
|
||||
class: 'DpdShipping\Domain\ShippingHistory\Query\GetLabelHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.api'
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.repository'
|
||||
- '@prestashop.core.command_bus'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\ShippingHistory\Query\GetLabel', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\ShippingHistory\Query\GetLabel' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.query.get.protocol.handler:
|
||||
class: 'DpdShipping\Domain\ShippingHistory\Query\GetProtocolHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.api'
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.repository'
|
||||
- '@prestashop.core.command_bus'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\ShippingHistory\Query\GetProtocol', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\ShippingHistory\Query\GetProtocol' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.query.get.shipping.history.handler:
|
||||
class: 'DpdShipping\Domain\ShippingHistory\Query\GetShippingHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\ShippingHistory\Query\GetShipping', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\ShippingHistory\Query\GetShipping' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.query.get.last.shipping.history.handler:
|
||||
class: 'DpdShipping\Domain\ShippingHistory\Query\GetShippingByOrderIdHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\ShippingHistory\Query\GetShippingByOrderId', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\ShippingHistory\Query\GetShippingByOrderId' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.command.delete.shipping.handler:
|
||||
class: 'DpdShipping\Domain\ShippingHistory\Command\DeleteShippingHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\ShippingHistory\Command\DeleteShipping', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\ShippingHistory\Command\DeleteShipping' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
19
modules/dpdshipping/config/services/domain/specialPrice.yml
Normal file
19
modules/dpdshipping/config/services/domain/specialPrice.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.domain.query.get.special.price.list.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\SpecialPrice\Query\GetSpecialPriceListHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.special.price.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\SpecialPrice\Query\GetSpecialPriceList', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\SpecialPrice\Query\GetSpecialPriceList' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.special.price.command.add.special.price.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\SpecialPrice\Command\AddSpecialPriceHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.special.price.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\SpecialPrice\Command\AddSpecialPriceCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\SpecialPrice\Command\AddSpecialPriceCommand' }
|
||||
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.domain.tracking.query.test.dpd.connection:
|
||||
class: 'DpdShipping\Domain\TestConnection\Query\TestDpdConnectionHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.api'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\TestConnection\Query\TestDpdConnection', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\TestConnection\Query\TestDpdConnection' }
|
||||
30
modules/dpdshipping/config/services/domain/tracking.yml
Normal file
30
modules/dpdshipping/config/services/domain/tracking.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.domain.tracking.query.get.events.for.waybill:
|
||||
class: 'DpdShipping\Domain\Tracking\Query\GetEventsForWaybillHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.api'
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Tracking\Query\GetEventsForWaybill', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Tracking\Query\GetEventsForWaybill' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.service.tracking.service:
|
||||
class: 'DpdShipping\Domain\Tracking\TrackingService'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
|
||||
prestashop.module.dpdshipping.domain.order.query.get.shipping.list.for.order.handler:
|
||||
class: 'DpdShipping\Domain\Tracking\Query\GetShippingListForOrderHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.parcel.repository'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Tracking\Query\GetShippingListForOrder', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Tracking\Query\GetShippingListForOrder' }
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
34
modules/dpdshipping/config/services/generateShipping.yml
Normal file
34
modules/dpdshipping/config/services/generateShipping.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.controller.dpdshipping_generate_shipping:
|
||||
class: 'DpdShipping\Controller\Order\DpdShippingGenerateShippingController'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_generate_shipping_form_data_handler'
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@twig'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_generate_shipping:
|
||||
class: 'DpdShipping\Form\Order\GenerateShipping\DpdShippingGenerateShippingType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_generate_shipping_form_data_provider:
|
||||
class: 'DpdShipping\Form\Order\GenerateShipping\DpdShippingGenerateShippingFormDataProvider'
|
||||
arguments:
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@prestashop.core.command_bus'
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_generate_shipping_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Builder\FormBuilder'
|
||||
factory: [ '@prestashop.core.form.builder.form_builder_factory', 'create' ]
|
||||
arguments:
|
||||
- 'DpdShipping\Form\Order\GenerateShipping\DpdShippingGenerateShippingType'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_generate_shipping_form_data_provider'
|
||||
33
modules/dpdshipping/config/services/index.php
Normal file
33
modules/dpdshipping/config/services/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
67
modules/dpdshipping/config/services/pickupCourier.yml
Normal file
67
modules/dpdshipping/config/services/pickupCourier.yml
Normal file
@@ -0,0 +1,67 @@
|
||||
services:
|
||||
|
||||
dpdshipping.grid.definition.factory.pickup.courier:
|
||||
class: 'DpdShipping\Grid\PickupCourier\Definition\Factory\PickupCourierGridDefinitionFactory'
|
||||
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
|
||||
|
||||
dpdshipping.grid.query_builder.pickup.courier:
|
||||
class: 'DpdShipping\Grid\PickupCourier\Query\PickupCourierQueryBuilder'
|
||||
parent: 'prestashop.core.grid.abstract_query_builder'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.core.query.doctrine_search_criteria_applicator'
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().language.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id_shop_group"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.getGroup().share_stock"
|
||||
- '@prestashop.core.grid.query.filter.doctrine_filter_applicator'
|
||||
- '@prestashop.adapter.legacy.configuration'
|
||||
|
||||
dpdshipping.grid.data_provider.pickup.courier:
|
||||
class: '%prestashop.core.grid.data.factory.doctrine_grid_data_factory%'
|
||||
arguments:
|
||||
- '@dpdshipping.grid.query_builder.pickup.courier'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.core.grid.query.doctrine_query_parser'
|
||||
- 'dpdshipping_pickup_courier'
|
||||
|
||||
dpdshipping.grid.factory.pickup.courier:
|
||||
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
|
||||
public: true
|
||||
arguments:
|
||||
- '@dpdshipping.grid.definition.factory.pickup.courier'
|
||||
- '@dpdshipping.grid.data_provider.pickup.courier'
|
||||
- '@prestashop.core.grid.filter.form_factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
|
||||
prestashop.module.dpdshipping.domain.add.pickup.courier.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\PickupCourier\Command\AddPickupCourierHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.pickup.courier.repository'
|
||||
- '@prestashop.module.dpdshipping.api'
|
||||
- '@router'
|
||||
- '@prestashop.core.command_bus'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\PickupCourier\Command\AddPickupCourierCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\PickupCourier\Command\AddPickupCourierCommand' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.cancel.pickup.courier.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\PickupCourier\Command\CancelPickupCourierHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.pickup.courier.repository'
|
||||
- '@prestashop.module.dpdshipping.api'
|
||||
- '@logger'
|
||||
- '@translator'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\PickupCourier\Command\CancelPickupCourierCommand', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\PickupCourier\Command\CancelPickupCourierCommand' }
|
||||
|
||||
prestashop.module.dpdshipping.domain.get.pickup.courier.availability.handler:
|
||||
class: 'DpdShipping\Domain\Configuration\PickupCourier\Query\GetCourierOrderAvailabilityHandler'
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.repository.dpdshipping.pickup.courier.repository'
|
||||
- '@prestashop.module.dpdshipping.api'
|
||||
- '@logger'
|
||||
tags:
|
||||
- { name: 'messenger.message_handler', handles: 'DpdShipping\Domain\Configuration\PickupCourier\Query\GetCourierOrderAvailability', method: 'handle' }
|
||||
- { name: 'tactician.handler', command: 'DpdShipping\Domain\Configuration\PickupCourier\Query\GetCourierOrderAvailability' }
|
||||
25
modules/dpdshipping/config/services/pickupCourierEdit.yml
Normal file
25
modules/dpdshipping/config/services/pickupCourierEdit.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.form.type.dpdshipping_pickup_courier_edit:
|
||||
class: 'DpdShipping\Form\PickupCourier\DpdShippingPickupCourierEditType'
|
||||
parent: 'form.type.translatable.aware'
|
||||
public: true
|
||||
tags:
|
||||
- { name: form.type }
|
||||
arguments:
|
||||
[ '@prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_edit_form_data_provider' ]
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_edit_form_data_provider:
|
||||
class: 'DpdShipping\Form\PickupCourier\DpdShippingPickupCourierEditFormDataProvider'
|
||||
arguments: [ '@prestashop.core.query_bus', '@prestashop.core.command_bus' ]
|
||||
|
||||
prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_edit_form_data_handler:
|
||||
class: 'PrestaShop\PrestaShop\Core\Form\Handler'
|
||||
arguments:
|
||||
- '@form.factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.module.dpdshipping.form.dpdshipping_pickup_courier_edit_form_data_provider'
|
||||
- 'DpdShipping\Form\PickupCourier\DpdShippingPickupCourierEditType'
|
||||
- 'DpdShippingPickupCourierEdit'
|
||||
33
modules/dpdshipping/config/services/repository/index.php
Normal file
33
modules/dpdshipping/config/services/repository/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
106
modules/dpdshipping/config/services/repository/repository.yml
Normal file
106
modules/dpdshipping/config/services/repository/repository.yml
Normal file
@@ -0,0 +1,106 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.configuration.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingConfigurationRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingConfiguration'
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.payer.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingPayerRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingPayer'
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.sender.address.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingSenderAddressRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingSenderAddress'
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.carrier.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingCarrierRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingCarrier'
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.carrier.pickup.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingCarrierPickupRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingCarrierPickup'
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.pickup.courier.settings.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingPickupCourierSettingsRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingPickupCourierSettings'
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.pickup.courier.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingPickupCourierRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingPickupCourier'
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.special.price.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingSpecialPriceRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingSpecialPrice'
|
||||
calls:
|
||||
- [ 'setLogger', [ '@logger' ] ]
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingShippingHistoryRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingShippingHistory'
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.sender.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingShippingHistorySenderRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingShippingHistorySender'
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.receiver.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingShippingHistoryReceiverRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingShippingHistoryReceiver'
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.parcel.repository:
|
||||
public: true
|
||||
class: 'DpdShipping\Repository\DpdshippingShippingHistoryParcelRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingShippingHistoryParcel'
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.shipping.history.services.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingShippingHistoryServicesRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingShippingHistoryServices'
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.cart.pickup.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingCartPickupRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingCartPickup'
|
||||
|
||||
prestashop.module.dpdshipping.repository.dpdshipping.connection.repository:
|
||||
class: 'DpdShipping\Repository\DpdshippingConnectionRepository'
|
||||
factory: [ '@doctrine.orm.default_entity_manager', getRepository ]
|
||||
arguments:
|
||||
- 'DpdShipping\Entity\DpdshippingConnection'
|
||||
48
modules/dpdshipping/config/services/shippingHistory.yml
Normal file
48
modules/dpdshipping/config/services/shippingHistory.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
services:
|
||||
|
||||
dpdshipping.grid.definition.factory.shipping.history:
|
||||
class: 'DpdShipping\Grid\ShippingHistory\Definition\Factory\ShippingHistoryGridDefinitionFactory'
|
||||
parent: 'prestashop.core.grid.definition.factory.abstract_grid_definition'
|
||||
|
||||
dpdshipping.grid.query_builder.shipping.history:
|
||||
class: 'DpdShipping\Grid\ShippingHistory\Query\ShippingHistoryQueryBuilder'
|
||||
parent: 'prestashop.core.grid.abstract_query_builder'
|
||||
public: true
|
||||
arguments:
|
||||
- '@prestashop.core.query.doctrine_search_criteria_applicator'
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().language.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.id_shop_group"
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext().shop.getGroup().share_stock"
|
||||
- '@prestashop.core.grid.query.filter.doctrine_filter_applicator'
|
||||
- '@prestashop.adapter.legacy.configuration'
|
||||
|
||||
dpdshipping.grid.data_provider.shipping.history:
|
||||
class: '%prestashop.core.grid.data.factory.doctrine_grid_data_factory%'
|
||||
arguments:
|
||||
- '@dpdshipping.grid.query_builder.shipping.history'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
- '@prestashop.core.grid.query.doctrine_query_parser'
|
||||
- 'dpdshipping_shipping_history'
|
||||
|
||||
dpdshipping.grid.factory.shipping.history:
|
||||
class: 'PrestaShop\PrestaShop\Core\Grid\GridFactory'
|
||||
public: true
|
||||
arguments:
|
||||
- '@dpdshipping.grid.definition.factory.shipping.history'
|
||||
- '@dpdshipping.grid.data_provider.shipping.history'
|
||||
- '@prestashop.core.grid.filter.form_factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
|
||||
DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryController:
|
||||
class: 'DpdShipping\Controller\ShippingHistory\DpdShippingShippingHistoryController'
|
||||
public: true
|
||||
autowire: true
|
||||
arguments:
|
||||
- '@prestashop.core.command_bus'
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@twig'
|
||||
- '@translator'
|
||||
- '@dpdshipping.grid.factory.shipping.history'
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
13
modules/dpdshipping/config/services/tracking.yml
Normal file
13
modules/dpdshipping/config/services/tracking.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
prestashop.module.dpdshipping.controller.dpdshipping_tracking:
|
||||
class: 'DpdShipping\Controller\Order\DpdShippingTrackingController'
|
||||
public: true
|
||||
autowire: true
|
||||
arguments:
|
||||
- '@prestashop.module.dpdshipping.service.tracking.service'
|
||||
- '@prestashop.core.query_bus'
|
||||
- '@twig'
|
||||
- '@translator'
|
||||
11
modules/dpdshipping/config_pl.xml
Normal file
11
modules/dpdshipping/config_pl.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>dpdshipping</name>
|
||||
<displayName><![CDATA[DPD Poland sp. z o. o. Moduł Wysyłkowy]]></displayName>
|
||||
<version><![CDATA[2.0.2]]></version>
|
||||
<description><![CDATA[DPD Poland sp. z o. o. Moduł Wysyłkowy]]></description>
|
||||
<author><![CDATA[DPD Poland sp. z o. o.]]></author>
|
||||
<tab><![CDATA[]]></tab>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>1</need_instance>
|
||||
</module>
|
||||
145
modules/dpdshipping/controllers/front/PickupGetAddressAjax.php
Normal file
145
modules/dpdshipping/controllers/front/PickupGetAddressAjax.php
Normal file
@@ -0,0 +1,145 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
use DpdShipping\Config\Config;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class dpdshippingPickupGetAddressAjaxModuleFrontController extends ModuleFrontController
|
||||
{
|
||||
public function initContent()
|
||||
{
|
||||
parent::initContent();
|
||||
$this->ajax = true;
|
||||
}
|
||||
|
||||
public function displayAjax()
|
||||
{
|
||||
if ($this->validate() === true) {
|
||||
try {
|
||||
$pudoAddress = $this->getPudoAddress($this->getPudoCode());
|
||||
if ($pudoAddress != null) {
|
||||
$response = ['success' => true, 'data' => $pudoAddress];
|
||||
} else {
|
||||
$response = ['success' => false, 'message' => 'Undefined error'];
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$response = ['success' => false, 'message' => $e->getMessage()];
|
||||
}
|
||||
die(json_encode($response));
|
||||
} else {
|
||||
die(json_encode(['success' => false, 'message' => 'Undefined error']));
|
||||
}
|
||||
}
|
||||
|
||||
private function validate(): bool
|
||||
{
|
||||
if ($_SERVER['REQUEST_METHOD'] !== 'GET') {
|
||||
die(json_encode(['success' => false, 'message' => 'Method not allowed']));
|
||||
}
|
||||
|
||||
if ($this->getCsrf() != Tools::getToken(false)) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid token.']));
|
||||
}
|
||||
|
||||
if ($this->getToken() != sha1(_COOKIE_KEY_ . 'dpdshipping')) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid token']));
|
||||
}
|
||||
|
||||
if (empty($this->getPudoCode())) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid params']));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|mixed
|
||||
*/
|
||||
public function getCsrf()
|
||||
{
|
||||
return Tools::getValue('dpdshipping_csrf');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|mixed
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return Tools::getValue('dpdshipping_token');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|mixed
|
||||
*/
|
||||
public function getPudoCode()
|
||||
{
|
||||
return Tools::getValue('dpdshipping_pudo_code');
|
||||
}
|
||||
|
||||
public function getPudoAddress($pudoCode)
|
||||
{
|
||||
if (empty($pudoCode)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$ch = curl_init();
|
||||
|
||||
$url = sprintf(Config::DPD_PUDO_WS_URL, $pudoCode);
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate, sdch, br');
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
||||
'Accept-Encoding: gzip, deflate, sdch, br',
|
||||
'Accept-Language: en-US,en;q=0.8',
|
||||
'Cache-Control: max-age=0',
|
||||
'Connection: keep-alive',
|
||||
'Host: mypudo.dpd.com.pl',
|
||||
'Upgrade-Insecure-Requests: 1',
|
||||
'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36',
|
||||
]);
|
||||
|
||||
$result = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
if (!$result) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$xml = new SimpleXMLElement($result);
|
||||
|
||||
if (!isset($xml->PUDO_ITEMS) || !isset($xml->PUDO_ITEMS->PUDO_ITEM)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return implode(', ', [
|
||||
$xml->PUDO_ITEMS->PUDO_ITEM->ADDRESS1,
|
||||
$xml->PUDO_ITEMS->PUDO_ITEM->ZIPCODE,
|
||||
$xml->PUDO_ITEMS->PUDO_ITEM->CITY,
|
||||
$xml->PUDO_ITEMS->PUDO_ITEM->PUDO_ID]);
|
||||
}
|
||||
}
|
||||
145
modules/dpdshipping/controllers/front/PickupIsCodPointAjax.php
Normal file
145
modules/dpdshipping/controllers/front/PickupIsCodPointAjax.php
Normal file
@@ -0,0 +1,145 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
use DpdShipping\Config\Config;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class dpdshippingPickupIsCodPointAjaxModuleFrontController extends ModuleFrontController
|
||||
{
|
||||
public function initContent()
|
||||
{
|
||||
parent::initContent();
|
||||
$this->ajax = true;
|
||||
}
|
||||
|
||||
public function displayAjax()
|
||||
{
|
||||
if ($this->validate() === true) {
|
||||
try {
|
||||
$pudoAddress = $this->isPudoPointWithCod();
|
||||
if ($pudoAddress != null) {
|
||||
$response = ['success' => true, 'data' => $pudoAddress];
|
||||
} else {
|
||||
$response = ['success' => false, 'message' => 'Undefined error'];
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$response = ['success' => false, 'message' => $e->getMessage()];
|
||||
}
|
||||
die(json_encode($response));
|
||||
} else {
|
||||
die(json_encode(['success' => false, 'message' => 'Undefined error']));
|
||||
}
|
||||
}
|
||||
|
||||
private function validate(): bool
|
||||
{
|
||||
if ($_SERVER['REQUEST_METHOD'] !== 'GET') {
|
||||
die(json_encode(['success' => false, 'message' => 'Method not allowed']));
|
||||
}
|
||||
|
||||
if ($this->getCsrf() != Tools::getToken(false)) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid token.']));
|
||||
}
|
||||
|
||||
if ($this->getToken() != sha1(_COOKIE_KEY_ . 'dpdshipping')) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid token']));
|
||||
}
|
||||
|
||||
if (empty($this->getPudoCode())) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid params']));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|mixed
|
||||
*/
|
||||
public function getCsrf()
|
||||
{
|
||||
return Tools::getValue('dpdshipping_csrf');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|mixed
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return Tools::getValue('dpdshipping_token');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|mixed
|
||||
*/
|
||||
public function getPudoCode()
|
||||
{
|
||||
return Tools::getValue('dpdshipping_pudo_code');
|
||||
}
|
||||
|
||||
public function isPudoPointWithCod()
|
||||
{
|
||||
if (empty($this->getPudoCode())) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
$ch = curl_init();
|
||||
|
||||
$url = sprintf(Config::DPD_PUDO_WS_URL, $this->getPudoCode());
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate, sdch, br');
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
||||
'Accept-Encoding: gzip, deflate, sdch, br',
|
||||
'Accept-Language: en-US,en;q=0.8',
|
||||
'Cache-Control: max-age=0',
|
||||
'Connection: keep-alive',
|
||||
'Host: mypudo.dpd.com.pl',
|
||||
'Upgrade-Insecure-Requests: 1',
|
||||
'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36',
|
||||
]);
|
||||
|
||||
$result = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
if (!$result) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$xml = new SimpleXMLElement($result);
|
||||
|
||||
if (!isset($xml->PUDO_ITEMS) || !isset($xml->PUDO_ITEMS->PUDO_ITEM) || !isset($xml->PUDO_ITEMS->PUDO_ITEM->SERVICE_PUDO)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strpos($xml->PUDO_ITEMS->PUDO_ITEM->SERVICE_PUDO, '101') !== false) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
124
modules/dpdshipping/controllers/front/PickupSavePointAjax.php
Normal file
124
modules/dpdshipping/controllers/front/PickupSavePointAjax.php
Normal file
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DpdshippingPickupSavePointAjaxModuleFrontController extends ModuleFrontController
|
||||
{
|
||||
public function initContent()
|
||||
{
|
||||
parent::initContent();
|
||||
$this->ajax = true;
|
||||
}
|
||||
|
||||
public function displayAjax()
|
||||
{
|
||||
if ($this->validate() === true) {
|
||||
try {
|
||||
$db = Db::getInstance();
|
||||
$idShop = (int) Context::getContext()->shop->id;
|
||||
|
||||
$sql = '
|
||||
INSERT INTO `' . _DB_PREFIX_ . 'dpdshipping_cart_pickup` (`id_shop`, `id_cart`, `pudo_code`)
|
||||
VALUES (' . $idShop . ', ' . $this->getIdCart() . ', "' . pSQL($this->getPudoCode()) . '")';
|
||||
$db->execute($sql);
|
||||
|
||||
$response = ['success' => true, 'message' => $this->getPudoCode(), 'cart' => $this->getIdCart()];
|
||||
} catch (Exception $e) {
|
||||
$response = ['success' => false, 'message' => $e->getMessage()];
|
||||
}
|
||||
die(json_encode($response));
|
||||
} else {
|
||||
die(json_encode(['success' => false, 'message' => 'Undefined error']));
|
||||
}
|
||||
}
|
||||
|
||||
private function validate(): bool
|
||||
{
|
||||
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
|
||||
die(json_encode(['success' => false, 'message' => 'Method not allowed']));
|
||||
}
|
||||
|
||||
if ($this->getCsrf() != Tools::getToken(false)) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid token.']));
|
||||
}
|
||||
|
||||
if ($this->getToken() != sha1(_COOKIE_KEY_ . 'dpdshipping')) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid token']));
|
||||
}
|
||||
|
||||
if (empty($this->getPudoCode()) || empty($this->getIdCart())) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid params']));
|
||||
}
|
||||
|
||||
$cart = new Cart($this->getIdCart());
|
||||
if (!Validate::isLoadedObject($cart)) {
|
||||
die(json_encode(['success' => false, 'message' => 'Cart error']));
|
||||
}
|
||||
|
||||
if ($cart->orderExists()) {
|
||||
die(json_encode(['success' => false, 'message' => 'Order exist']));
|
||||
}
|
||||
|
||||
if (Validate::isLoadedObject($this->context->customer) && $cart->id_customer != $this->context->customer->id) {
|
||||
die(json_encode(['success' => false, 'message' => 'Invalid customer']));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|mixed
|
||||
*/
|
||||
public function getCsrf()
|
||||
{
|
||||
return Tools::getValue('dpdshipping_csrf');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|mixed
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return Tools::getValue('dpdshipping_token');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|mixed
|
||||
*/
|
||||
public function getPudoCode()
|
||||
{
|
||||
return Tools::getValue('dpdshipping_pudo_code');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getIdCart(): int
|
||||
{
|
||||
return Tools::getValue('dpdshipping_id_cart');
|
||||
}
|
||||
}
|
||||
33
modules/dpdshipping/controllers/front/index.php
Normal file
33
modules/dpdshipping/controllers/front/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
33
modules/dpdshipping/controllers/index.php
Normal file
33
modules/dpdshipping/controllers/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
233
modules/dpdshipping/dpdshipping.php
Normal file
233
modules/dpdshipping/dpdshipping.php
Normal file
@@ -0,0 +1,233 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
use DpdShipping\Config\Config;
|
||||
use DpdShipping\Domain\Configuration\Carrier\Command\UpdateCarrierActionCommand;
|
||||
use DpdShipping\Domain\Configuration\Carrier\DpdCarrierPrestashopConfiguration;
|
||||
use DpdShipping\Domain\Configuration\Carrier\DpdIframe;
|
||||
use DpdShipping\Domain\Configuration\Configuration\Query\GetConfiguration;
|
||||
use DpdShipping\Domain\Configuration\Configuration\Repository\Configuration as ConfigurationAlias;
|
||||
use DpdShipping\Domain\Legacy\SpecialPrice\SpecialPriceService;
|
||||
use DpdShipping\Hook\Hook;
|
||||
use DpdShipping\Hook\HookRepository;
|
||||
use DpdShipping\Install\AdminMenuTab;
|
||||
use DpdShipping\Install\InstallerFactory;
|
||||
use DpdShipping\Support\AssetsRegistrar;
|
||||
use DpdShipping\Support\BackOfficeHeader;
|
||||
use DpdShipping\Support\ContainerHelper;
|
||||
use DpdShipping\Support\GridActions;
|
||||
use DpdShipping\Support\RouterHelper;
|
||||
|
||||
class DpdShipping extends CarrierModule
|
||||
{
|
||||
public $id_carrier;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->name = 'dpdshipping';
|
||||
$this->version = '2.0.2';
|
||||
$this->author = 'DPD Poland sp. z o. o.';
|
||||
$this->need_instance = 1;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->displayName = $this->trans('DPD Poland sp. z o. o. shipping module', [], 'Modules.Dpdshipping.Admin');
|
||||
$this->description = $this->trans('DPD Poland sp. z o. o. shipping module', [], 'Modules.Dpdshipping.Admin');
|
||||
|
||||
$this->ps_versions_compliancy = [
|
||||
'min' => '1.7.8.0',
|
||||
'max' => '9.99.99',
|
||||
];
|
||||
}
|
||||
|
||||
public function hookActionFrontControllerSetMedia()
|
||||
{
|
||||
if (!$this->context || !$this->context->link) {
|
||||
return;
|
||||
}
|
||||
|
||||
$idAddressDelivery = isset($this->context->cart) ? (int) $this->context->cart->id_address_delivery : 0;
|
||||
|
||||
Media::addJsDef([
|
||||
'dpdshipping_pickup_save_point_ajax_url' => $this->context->link->getModuleLink('dpdshipping', 'PickupSavePointAjax'),
|
||||
'dpdshipping_pickup_get_address_ajax_url' => $this->context->link->getModuleLink('dpdshipping', 'PickupGetAddressAjax'),
|
||||
'dpdshipping_pickup_is_point_with_cod_ajax_url' => $this->context->link->getModuleLink('dpdshipping', 'PickupIsCodPointAjax'),
|
||||
'dpdshipping_token' => sha1(_COOKIE_KEY_ . 'dpdshipping'),
|
||||
'dpdshipping_csrf' => Tools::getToken(false),
|
||||
'dpdshipping_id_cart' => isset($this->context->cart) ? (int) $this->context->cart->id : 0,
|
||||
'dpdshipping_iframe_url' => DpdIframe::getPickupIframeUrl(Config::DPD_PICKUP_MAP_URL_WITH_FILTERS, Config::PICKUP_MAP_BASE_URL, $idAddressDelivery),
|
||||
'dpdshipping_iframe_cod_url' => DpdIframe::getPickupIframeUrl(Config::DPD_PICKUP_COD_MAP_URL_WITH_FILTERS, Config::PICKUP_MAP_BASE_URL . '&direct_delivery_cod=1', $idAddressDelivery),
|
||||
'dpdshipping_iframe_swipbox_url' => DpdIframe::getPickupIframeUrl(Config::DPD_SWIP_BOX_MAP_URL_WITH_FILTERS, Config::PICKUP_MAP_BASE_URL . '&swip_box=1&hideFilters=1', $idAddressDelivery),
|
||||
'dpdshipping_id_pudo_carrier' => DpdCarrierPrestashopConfiguration::getConfig(Config::DPD_PICKUP),
|
||||
'dpdshipping_id_pudo_cod_carrier' => DpdCarrierPrestashopConfiguration::getConfig(Config::DPD_PICKUP_COD),
|
||||
'dpdshipping_id_pudo_swipbox_carrier' => DpdCarrierPrestashopConfiguration::getConfig(Config::DPD_SWIP_BOX),
|
||||
]);
|
||||
|
||||
$this->registerPudoFrontendAssets();
|
||||
}
|
||||
|
||||
public function hookDisplayCarrierExtraContent($params)
|
||||
{
|
||||
$this->registerPudoFrontendAssets();
|
||||
|
||||
if (!$this->context || !$this->context->controller) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!empty($params) && isset($params['carrier']['id']) && DpdCarrierPrestashopConfiguration::isPickup($params['carrier']['id'])) {
|
||||
return $this->display(__FILE__, 'views/templates/hook/carrier-extra-content-pudo.tpl');
|
||||
}
|
||||
|
||||
if (!empty($params) && isset($params['carrier']['id']) && DpdCarrierPrestashopConfiguration::isPickupCod($params['carrier']['id'])) {
|
||||
return $this->display(__FILE__, 'views/templates/hook/carrier-extra-content-pudo-cod.tpl');
|
||||
}
|
||||
|
||||
if (!empty($params) && isset($params['carrier']['id']) && DpdCarrierPrestashopConfiguration::isPickupSwipBox($params['carrier']['id'])) {
|
||||
return $this->display(__FILE__, 'views/templates/hook/carrier-extra-content-pudo-swipbox.tpl');
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function install(): bool
|
||||
{
|
||||
if (!parent::install()) {
|
||||
return false;
|
||||
}
|
||||
$connection = ContainerHelper::getDatabaseConnectionForInstaller($this);
|
||||
if (!$connection) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$installer = InstallerFactory::create(new HookRepository(), $connection);
|
||||
|
||||
if (!$installer->install($this)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall(): bool
|
||||
{
|
||||
$connection = ContainerHelper::getDatabaseConnectionForInstaller($this);
|
||||
if (!$connection) {
|
||||
return parent::uninstall();
|
||||
}
|
||||
$installer = InstallerFactory::create(new HookRepository(), $connection);
|
||||
|
||||
return $installer->uninstall() && parent::uninstall();
|
||||
}
|
||||
|
||||
public function getTabs(): array
|
||||
{
|
||||
$name = $this->trans('DPD Poland shipping', [], 'Modules.Dpdshipping.Admin');
|
||||
return AdminMenuTab::getTabs($name);
|
||||
}
|
||||
|
||||
public function getContent()
|
||||
{
|
||||
$queryBus = ContainerHelper::getQueryBus($this);
|
||||
$needOnboarding = $queryBus ? $queryBus->handle(new GetConfiguration(ConfigurationAlias::NEED_ONBOARDING)) : null;
|
||||
|
||||
if ($needOnboarding == null || $needOnboarding->getValue() == '1') {
|
||||
Tools::redirectAdmin(RouterHelper::generateRouteUrl($this, 'dpdshipping_onboarding_form'));
|
||||
} else {
|
||||
Tools::redirectAdmin(RouterHelper::generateRouteUrl($this, 'dpdshipping_connection_form'));
|
||||
}
|
||||
}
|
||||
|
||||
public function hookDisplayAdminOrderTabLink(array $params)
|
||||
{
|
||||
return $this->get('prestashop.module.dpdshipping.hook.factory')->renderView(Hook::$DISPLAY_ADMIN_ORDER_TAB_LINK, $params, $this->get('twig'));
|
||||
}
|
||||
|
||||
public function hookDisplayAdminOrderTabContent(array $params)
|
||||
{
|
||||
$controller = $this->get('prestashop.module.dpdshipping.controller.dpdshipping_tracking');
|
||||
return $this->get('prestashop.module.dpdshipping.hook.factory')->renderView(Hook::$DISPLAY_ADMIN_ORDER_TAB_CONTENT, $params, $controller);
|
||||
}
|
||||
|
||||
public function hookDisplayBackOfficeHeader($params)
|
||||
{
|
||||
BackOfficeHeader::register($this, $this->context, $params);
|
||||
}
|
||||
|
||||
public function hookActionOrderGridDefinitionModifier($params)
|
||||
{
|
||||
if (isset($params['definition'])) {
|
||||
GridActions::addOrderBulkActions($params['definition']);
|
||||
}
|
||||
}
|
||||
|
||||
public function isUsingNewTranslationSystem(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
private function registerPudoFrontendAssets(): void
|
||||
{
|
||||
if (!$this->context || !$this->context->controller) {
|
||||
return;
|
||||
}
|
||||
AssetsRegistrar::register($this, $this->context);
|
||||
}
|
||||
|
||||
|
||||
public function getOrderShippingCost($params, $shipping_cost)
|
||||
{
|
||||
if (Configuration::get(ConfigurationAlias::SPECIAL_PRICE_ENABLED) == '1') {
|
||||
return $this->getOrderShippingCostExternal($params);
|
||||
}
|
||||
|
||||
return $shipping_cost;
|
||||
}
|
||||
|
||||
public function getOrderShippingCostExternal($params)
|
||||
{
|
||||
$specialPrice = new SpecialPriceService($params, $this->id_carrier);
|
||||
|
||||
return $specialPrice->handle();
|
||||
}
|
||||
|
||||
public function hookDisplayAdminOrderMain(array $params)
|
||||
{
|
||||
$factory = ContainerHelper::getFromContainer($this, 'prestashop.module.dpdshipping.hook.factory');
|
||||
return $factory ? $factory->renderView(Hook::$DISPLAY_ADMIN_ORDER_MAIN, $params, $this->get('prestashop.module.dpdshipping.controller.dpdshipping_generate_shipping')) : '';
|
||||
}
|
||||
|
||||
public function hookActionCarrierUpdate(array $params)
|
||||
{
|
||||
$commandBus = ContainerHelper::getCommandBus($this);
|
||||
if ($commandBus) {
|
||||
$commandBus->handle(new UpdateCarrierActionCommand($params));
|
||||
}
|
||||
}
|
||||
}
|
||||
33
modules/dpdshipping/index.php
Normal file
33
modules/dpdshipping/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
BIN
modules/dpdshipping/logo.png
Normal file
BIN
modules/dpdshipping/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
59
modules/dpdshipping/src/Api/DpdApiHelper.php
Normal file
59
modules/dpdshipping/src/Api/DpdApiHelper.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
class DpdApiHelper
|
||||
{
|
||||
private $dpdApiClient;
|
||||
|
||||
public function __construct($dpdApiClient)
|
||||
{
|
||||
$this->dpdApiClient = $dpdApiClient;
|
||||
}
|
||||
|
||||
public function objectToArray($obj)
|
||||
{
|
||||
if (is_object($obj)) {
|
||||
$reflect = new \ReflectionClass($obj);
|
||||
$props = $reflect->getProperties();
|
||||
$arr = [];
|
||||
foreach ($props as $prop) {
|
||||
$prop->setAccessible(true);
|
||||
$arr[$prop->getName()] = $this->objectToArray($prop->getValue($obj));
|
||||
}
|
||||
|
||||
return $arr;
|
||||
}
|
||||
|
||||
if (is_array($obj)) {
|
||||
return array_map([$this->dpdApiClient, 'objectToArray'], $obj);
|
||||
}
|
||||
|
||||
return $obj;
|
||||
}
|
||||
}
|
||||
116
modules/dpdshipping/src/Api/DpdApiService.php
Normal file
116
modules/dpdshipping/src/Api/DpdApiService.php
Normal file
@@ -0,0 +1,116 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
use DpdShipping\Api\DpdInfoServices\DpdInfoServicesClientFactory;
|
||||
use DpdShipping\Api\DpdInfoServices\Type\AuthDataV1;
|
||||
use DpdShipping\Api\DpdServices\DpdServicesClientFactory;
|
||||
use DpdShipping\Config\Config;
|
||||
use DpdShipping\Domain\Configuration\Configuration\Query\GetConfiguration;
|
||||
use DpdShipping\Domain\Configuration\Configuration\Repository\Configuration;
|
||||
use DpdShipping\Domain\Configuration\Connection\Query\GetConnection;
|
||||
use Exception;
|
||||
use PhpEncryption;
|
||||
use PrestaShop\PrestaShop\Core\CommandBus\CommandBusInterface;
|
||||
|
||||
class DpdApiService
|
||||
{
|
||||
public const ITC = 'ITC';
|
||||
|
||||
/**
|
||||
* @var CommandBusInterface
|
||||
*/
|
||||
private $queryBus;
|
||||
|
||||
public function __construct(CommandBusInterface $queryBus)
|
||||
{
|
||||
$this->queryBus = $queryBus;
|
||||
}
|
||||
|
||||
public function getAuthInfoServices($idShop, $connectionId): ?AuthDataV1
|
||||
{
|
||||
$connectionConfig = $this->queryBus->handle(new GetConnection($idShop, $connectionId));
|
||||
|
||||
if ($connectionConfig == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (new AuthDataV1())
|
||||
->withLogin($connectionConfig->getLogin())
|
||||
->withPassword($this->decrypt($connectionConfig->getPassword()))
|
||||
->withChannel(self::ITC);
|
||||
}
|
||||
|
||||
public function getAuth($idShop, $connectionId): ?DpdServices\Type\AuthDataV1
|
||||
{
|
||||
$connectionConfig = $this->queryBus->handle(new GetConnection($idShop, $connectionId));
|
||||
|
||||
if ($connectionConfig == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (new DpdServices\Type\AuthDataV1())
|
||||
->withLogin($connectionConfig->getLogin())
|
||||
->withPassword($this->decrypt($connectionConfig->getPassword()))
|
||||
->withMasterFid($connectionConfig->getMasterFid());
|
||||
}
|
||||
|
||||
public function getInfoServicesClient(): DpdInfoServices\DpdInfoServicesClient
|
||||
{
|
||||
return DpdInfoServicesClientFactory::factory(Config::DPD_INFO_SERVICES_LIVE);
|
||||
}
|
||||
|
||||
public function getServicesClient($idShop, $connectionId): ?DpdServices\DpdServicesClient
|
||||
{
|
||||
$connectionConfig = $this->queryBus->handle(new GetConnection($idShop, $connectionId));
|
||||
$environment = $connectionConfig->getEnvironment();
|
||||
|
||||
if ($environment == null) {
|
||||
return DpdServicesClientFactory::factory(Config::DPD_API_URL_LIVE);
|
||||
}
|
||||
|
||||
return DpdServicesClientFactory::factory($environment);
|
||||
}
|
||||
|
||||
public function getServicesClientEnv($environmentUrl): DpdServices\DpdServicesClient
|
||||
{
|
||||
return DpdServicesClientFactory::factory($environmentUrl);
|
||||
}
|
||||
|
||||
private function decrypt($password): string
|
||||
{
|
||||
try {
|
||||
$phpEncryption = new PhpEncryption(_NEW_COOKIE_KEY_);
|
||||
|
||||
return $phpEncryption->decrypt($password);
|
||||
} catch (Exception $exception) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DpdInfoServicesClassmap
|
||||
{
|
||||
public static function getCollection(): array
|
||||
{
|
||||
return [
|
||||
'markEventsAsProcessedV1' => Type\MarkEventsAsProcessedV1::class,
|
||||
'authDataV1' => Type\AuthDataV1::class,
|
||||
'markEventsAsProcessedV1Response' => Type\MarkEventsAsProcessedV1Response::class,
|
||||
'Exception' => Type\Exception::class,
|
||||
'getEventsForCustomerV4' => Type\GetEventsForCustomerV4::class,
|
||||
'getEventsForCustomerV4Response' => Type\GetEventsForCustomerV4Response::class,
|
||||
'customerEventsResponseV2' => Type\CustomerEventsResponseV2::class,
|
||||
'customerEventV2' => Type\CustomerEventV2::class,
|
||||
'customerEventDataV2' => Type\CustomerEventDataV2::class,
|
||||
'getEventsForCustomerV3' => Type\GetEventsForCustomerV3::class,
|
||||
'getEventsForCustomerV3Response' => Type\GetEventsForCustomerV3Response::class,
|
||||
'getEventsForCustomerV2' => Type\GetEventsForCustomerV2::class,
|
||||
'getEventsForCustomerV2Response' => Type\GetEventsForCustomerV2Response::class,
|
||||
'customerEventsResponseV1' => Type\CustomerEventsResponseV1::class,
|
||||
'customerEventV1' => Type\CustomerEventV1::class,
|
||||
'getEventsForCustomerV1' => Type\GetEventsForCustomerV1::class,
|
||||
'getEventsForCustomerV1Response' => Type\GetEventsForCustomerV1Response::class,
|
||||
'getEventsForWaybillV1' => Type\GetEventsForWaybillV1::class,
|
||||
'getEventsForWaybillV1Response' => Type\GetEventsForWaybillV1Response::class,
|
||||
'customerEventsResponseV3' => Type\CustomerEventsResponseV3::class,
|
||||
'customerEventV3' => Type\CustomerEventV3::class,
|
||||
'customerEventDataV3' => Type\CustomerEventDataV3::class,
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
use DpdShipping\Api\DpdApiHelper;
|
||||
use DpdShipping\Api\DpdInfoServices\Type\GetEventsForWaybillV1;
|
||||
|
||||
class DpdInfoServicesClient
|
||||
{
|
||||
private $soapClient;
|
||||
private $eventDispatcher;
|
||||
|
||||
public function __construct(\SoapClient $soapClient, $eventDispatcher)
|
||||
{
|
||||
$this->soapClient = $soapClient;
|
||||
$this->eventDispatcher = $eventDispatcher;
|
||||
}
|
||||
|
||||
public function getEventsForWaybillV1(GetEventsForWaybillV1 $parameters)
|
||||
{
|
||||
return $this->soapCall('getEventsForWaybillV1', $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function soapCall($name, $parameters)
|
||||
{
|
||||
try {
|
||||
$arrayRequest = $this->objectToArray($parameters);
|
||||
|
||||
return $this->soapClient->__soapCall($name, [$arrayRequest]);
|
||||
} catch (\SoapFault $fault) {
|
||||
throw new \Exception("SOAP Fault: {$fault->faultcode}, {$fault->faultstring}");
|
||||
}
|
||||
}
|
||||
|
||||
public function objectToArray($obj)
|
||||
{
|
||||
$dpdApiUtils = new DpdApiHelper($this);
|
||||
|
||||
return $dpdApiUtils->objectToArray($obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
use DpdShipping\Api\DpdServices\DpdServicesClassmap;
|
||||
use SoapClient;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
|
||||
class DpdInfoServicesClientFactory
|
||||
{
|
||||
public static function factory(string $wsdl): DpdInfoServicesClient
|
||||
{
|
||||
$classmap = DpdServicesClassmap::getCollection();
|
||||
|
||||
$options = [
|
||||
'trace' => true,
|
||||
'exceptions' => true,
|
||||
'classmap' => $classmap,
|
||||
];
|
||||
|
||||
$soapClient = new SoapClient($wsdl, $options);
|
||||
|
||||
return new DpdInfoServicesClient($soapClient, new EventDispatcher());
|
||||
}
|
||||
}
|
||||
107
modules/dpdshipping/src/Api/DpdInfoServices/Type/AuthDataV1.php
Normal file
107
modules/dpdshipping/src/Api/DpdInfoServices/Type/AuthDataV1.php
Normal file
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class AuthDataV1
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channel;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $login;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $password;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getChannel()
|
||||
{
|
||||
return $this->channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $channel
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function withChannel($channel)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->channel = $channel;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLogin()
|
||||
{
|
||||
return $this->login;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $login
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function withLogin($login)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->login = $login;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPassword()
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $password
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function withPassword($password)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->password = $password;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CustomerEventDataV2
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $value;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $code
|
||||
* @return CustomerEventDataV2
|
||||
*/
|
||||
public function withCode($code)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->code = $code;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
* @return CustomerEventDataV2
|
||||
*/
|
||||
public function withValue($value)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->value = $value;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CustomerEventDataV3
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $description;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $value;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $code
|
||||
* @return CustomerEventDataV3
|
||||
*/
|
||||
public function withCode($code)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->code = $code;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $description
|
||||
* @return CustomerEventDataV3
|
||||
*/
|
||||
public function withDescription($description)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->description = $description;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
* @return CustomerEventDataV3
|
||||
*/
|
||||
public function withValue($value)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->value = $value;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,382 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CustomerEventV1
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $country;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $depot;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $description;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $eventData1;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $eventData2;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $eventData3;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $eventTime;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $objectId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operationType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $packageReference;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parcelReference;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $waybill;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessCode()
|
||||
{
|
||||
return $this->businessCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $businessCode
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withBusinessCode($businessCode)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->businessCode = $businessCode;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCountry()
|
||||
{
|
||||
return $this->country;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $country
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withCountry($country)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->country = $country;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDepot()
|
||||
{
|
||||
return $this->depot;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $depot
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withDepot($depot)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->depot = $depot;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $description
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withDescription($description)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->description = $description;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEventData1()
|
||||
{
|
||||
return $this->eventData1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $eventData1
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withEventData1($eventData1)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventData1 = $eventData1;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEventData2()
|
||||
{
|
||||
return $this->eventData2;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $eventData2
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withEventData2($eventData2)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventData2 = $eventData2;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEventData3()
|
||||
{
|
||||
return $this->eventData3;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $eventData3
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withEventData3($eventData3)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventData3 = $eventData3;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEventTime()
|
||||
{
|
||||
return $this->eventTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $eventTime
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withEventTime($eventTime)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventTime = $eventTime;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withId($id)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->id = $id;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getObjectId()
|
||||
{
|
||||
return $this->objectId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $objectId
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withObjectId($objectId)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->objectId = $objectId;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getOperationType()
|
||||
{
|
||||
return $this->operationType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $operationType
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withOperationType($operationType)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->operationType = $operationType;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPackageReference()
|
||||
{
|
||||
return $this->packageReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageReference
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withPackageReference($packageReference)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->packageReference = $packageReference;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getParcelReference()
|
||||
{
|
||||
return $this->parcelReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $parcelReference
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withParcelReference($parcelReference)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->parcelReference = $parcelReference;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getWaybill()
|
||||
{
|
||||
return $this->waybill;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $waybill
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function withWaybill($waybill)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->waybill = $waybill;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,332 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CustomerEventV2
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $country;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $depot;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $description;
|
||||
|
||||
/**
|
||||
* @var CustomerEventDataV2
|
||||
*/
|
||||
private $eventDataList;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $eventTime;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $objectId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operationType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $packageReference;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parcelReference;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $waybill;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessCode()
|
||||
{
|
||||
return $this->businessCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $businessCode
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withBusinessCode($businessCode)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->businessCode = $businessCode;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCountry()
|
||||
{
|
||||
return $this->country;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $country
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withCountry($country)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->country = $country;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDepot()
|
||||
{
|
||||
return $this->depot;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $depot
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withDepot($depot)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->depot = $depot;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $description
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withDescription($description)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->description = $description;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return CustomerEventDataV2
|
||||
*/
|
||||
public function getEventDataList()
|
||||
{
|
||||
return $this->eventDataList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventDataV2 $eventDataList
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withEventDataList($eventDataList)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventDataList = $eventDataList;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEventTime()
|
||||
{
|
||||
return $this->eventTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $eventTime
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withEventTime($eventTime)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventTime = $eventTime;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withId($id)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->id = $id;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getObjectId()
|
||||
{
|
||||
return $this->objectId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $objectId
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withObjectId($objectId)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->objectId = $objectId;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getOperationType()
|
||||
{
|
||||
return $this->operationType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $operationType
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withOperationType($operationType)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->operationType = $operationType;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPackageReference()
|
||||
{
|
||||
return $this->packageReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageReference
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withPackageReference($packageReference)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->packageReference = $packageReference;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getParcelReference()
|
||||
{
|
||||
return $this->parcelReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $parcelReference
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withParcelReference($parcelReference)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->parcelReference = $parcelReference;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getWaybill()
|
||||
{
|
||||
return $this->waybill;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $waybill
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function withWaybill($waybill)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->waybill = $waybill;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,307 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CustomerEventV3
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $country;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $depot;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $depotName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $description;
|
||||
|
||||
/**
|
||||
* @var CustomerEventDataV3
|
||||
*/
|
||||
private $eventDataList;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $eventTime;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $objectId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $packageReference;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parcelReference;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $waybill;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessCode()
|
||||
{
|
||||
return $this->businessCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $businessCode
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withBusinessCode($businessCode)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->businessCode = $businessCode;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCountry()
|
||||
{
|
||||
return $this->country;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $country
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withCountry($country)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->country = $country;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDepot()
|
||||
{
|
||||
return $this->depot;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $depot
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withDepot($depot)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->depot = $depot;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDepotName()
|
||||
{
|
||||
return $this->depotName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $depotName
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withDepotName($depotName)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->depotName = $depotName;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $description
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withDescription($description)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->description = $description;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return CustomerEventDataV3
|
||||
*/
|
||||
public function getEventDataList()
|
||||
{
|
||||
return $this->eventDataList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventDataV3 $eventDataList
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withEventDataList($eventDataList)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventDataList = $eventDataList;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEventTime()
|
||||
{
|
||||
return $this->eventTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $eventTime
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withEventTime($eventTime)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventTime = $eventTime;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getObjectId()
|
||||
{
|
||||
return $this->objectId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $objectId
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withObjectId($objectId)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->objectId = $objectId;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPackageReference()
|
||||
{
|
||||
return $this->packageReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageReference
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withPackageReference($packageReference)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->packageReference = $packageReference;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getParcelReference()
|
||||
{
|
||||
return $this->parcelReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $parcelReference
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withParcelReference($parcelReference)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->parcelReference = $parcelReference;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getWaybill()
|
||||
{
|
||||
return $this->waybill;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $waybill
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function withWaybill($waybill)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->waybill = $waybill;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CustomerEventsResponseV1
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $confirmId;
|
||||
|
||||
/**
|
||||
* @var CustomerEventV1
|
||||
*/
|
||||
private $eventsList;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getConfirmId()
|
||||
{
|
||||
return $this->confirmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $confirmId
|
||||
* @return CustomerEventsResponseV1
|
||||
*/
|
||||
public function withConfirmId($confirmId)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->confirmId = $confirmId;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return CustomerEventV1
|
||||
*/
|
||||
public function getEventsList()
|
||||
{
|
||||
return $this->eventsList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventV1 $eventsList
|
||||
* @return CustomerEventsResponseV1
|
||||
*/
|
||||
public function withEventsList($eventsList)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventsList = $eventsList;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CustomerEventsResponseV2
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $confirmId;
|
||||
|
||||
/**
|
||||
* @var CustomerEventV2
|
||||
*/
|
||||
private $eventsList;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getConfirmId()
|
||||
{
|
||||
return $this->confirmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $confirmId
|
||||
* @return CustomerEventsResponseV2
|
||||
*/
|
||||
public function withConfirmId($confirmId)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->confirmId = $confirmId;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return CustomerEventV2
|
||||
*/
|
||||
public function getEventsList()
|
||||
{
|
||||
return $this->eventsList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventV2 $eventsList
|
||||
* @return CustomerEventsResponseV2
|
||||
*/
|
||||
public function withEventsList($eventsList)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventsList = $eventsList;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CustomerEventsResponseV3
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $confirmId;
|
||||
|
||||
/**
|
||||
* @var CustomerEventV3
|
||||
*/
|
||||
private $eventsList;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getConfirmId()
|
||||
{
|
||||
return $this->confirmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $confirmId
|
||||
* @return CustomerEventsResponseV3
|
||||
*/
|
||||
public function withConfirmId($confirmId)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->confirmId = $confirmId;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return CustomerEventV3
|
||||
*/
|
||||
public function getEventsList()
|
||||
{
|
||||
return $this->eventsList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventV3 $eventsList
|
||||
* @return CustomerEventsResponseV3
|
||||
*/
|
||||
public function withEventsList($eventsList)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventsList = $eventsList;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class Exception
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $message;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $message
|
||||
* @return Exception
|
||||
*/
|
||||
public function withMessage($message)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->message = $message;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForCustomerV1
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $limit;
|
||||
|
||||
/**
|
||||
* @var AuthDataV1
|
||||
*/
|
||||
private $authDataV1;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @var int $limit
|
||||
* @var AuthDataV1 $authDataV1
|
||||
*/
|
||||
public function __construct($limit, $authDataV1)
|
||||
{
|
||||
$this->limit = $limit;
|
||||
$this->authDataV1 = $authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getLimit()
|
||||
{
|
||||
return $this->limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $limit
|
||||
* @return GetEventsForCustomerV1
|
||||
*/
|
||||
public function withLimit($limit)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->limit = $limit;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function getAuthDataV1()
|
||||
{
|
||||
return $this->authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AuthDataV1 $authDataV1
|
||||
* @return GetEventsForCustomerV1
|
||||
*/
|
||||
public function withAuthDataV1($authDataV1)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->authDataV1 = $authDataV1;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForCustomerV1Response
|
||||
{
|
||||
/**
|
||||
* @var CustomerEventsResponseV1
|
||||
*/
|
||||
private $return;
|
||||
|
||||
/**
|
||||
* @return CustomerEventsResponseV1
|
||||
*/
|
||||
public function getReturn()
|
||||
{
|
||||
return $this->return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventsResponseV1 $return
|
||||
* @return GetEventsForCustomerV1Response
|
||||
*/
|
||||
public function withReturn($return)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->return = $return;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForCustomerV2
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $limit;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $language;
|
||||
|
||||
/**
|
||||
* @var AuthDataV1
|
||||
*/
|
||||
private $authDataV1;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @var int $limit
|
||||
* @var string $language
|
||||
* @var AuthDataV1 $authDataV1
|
||||
*/
|
||||
public function __construct($limit, $language, $authDataV1)
|
||||
{
|
||||
$this->limit = $limit;
|
||||
$this->language = $language;
|
||||
$this->authDataV1 = $authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getLimit()
|
||||
{
|
||||
return $this->limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $limit
|
||||
* @return GetEventsForCustomerV2
|
||||
*/
|
||||
public function withLimit($limit)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->limit = $limit;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLanguage()
|
||||
{
|
||||
return $this->language;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $language
|
||||
* @return GetEventsForCustomerV2
|
||||
*/
|
||||
public function withLanguage($language)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->language = $language;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function getAuthDataV1()
|
||||
{
|
||||
return $this->authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AuthDataV1 $authDataV1
|
||||
* @return GetEventsForCustomerV2
|
||||
*/
|
||||
public function withAuthDataV1($authDataV1)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->authDataV1 = $authDataV1;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForCustomerV2Response
|
||||
{
|
||||
/**
|
||||
* @var CustomerEventsResponseV1
|
||||
*/
|
||||
private $return;
|
||||
|
||||
/**
|
||||
* @return CustomerEventsResponseV1
|
||||
*/
|
||||
public function getReturn()
|
||||
{
|
||||
return $this->return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventsResponseV1 $return
|
||||
* @return GetEventsForCustomerV2Response
|
||||
*/
|
||||
public function withReturn($return)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->return = $return;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForCustomerV3
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $limit;
|
||||
|
||||
/**
|
||||
* @var AuthDataV1
|
||||
*/
|
||||
private $authDataV1;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @var int $limit
|
||||
* @var AuthDataV1 $authDataV1
|
||||
*/
|
||||
public function __construct($limit, $authDataV1)
|
||||
{
|
||||
$this->limit = $limit;
|
||||
$this->authDataV1 = $authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getLimit()
|
||||
{
|
||||
return $this->limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $limit
|
||||
* @return GetEventsForCustomerV3
|
||||
*/
|
||||
public function withLimit($limit)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->limit = $limit;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function getAuthDataV1()
|
||||
{
|
||||
return $this->authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AuthDataV1 $authDataV1
|
||||
* @return GetEventsForCustomerV3
|
||||
*/
|
||||
public function withAuthDataV1($authDataV1)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->authDataV1 = $authDataV1;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForCustomerV3Response
|
||||
{
|
||||
/**
|
||||
* @var CustomerEventsResponseV2
|
||||
*/
|
||||
private $return;
|
||||
|
||||
/**
|
||||
* @return CustomerEventsResponseV2
|
||||
*/
|
||||
public function getReturn()
|
||||
{
|
||||
return $this->return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventsResponseV2 $return
|
||||
* @return GetEventsForCustomerV3Response
|
||||
*/
|
||||
public function withReturn($return)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->return = $return;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForCustomerV4
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $limit;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $language;
|
||||
|
||||
/**
|
||||
* @var AuthDataV1
|
||||
*/
|
||||
private $authDataV1;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @var int $limit
|
||||
* @var string $language
|
||||
* @var AuthDataV1 $authDataV1
|
||||
*/
|
||||
public function __construct($limit, $language, $authDataV1)
|
||||
{
|
||||
$this->limit = $limit;
|
||||
$this->language = $language;
|
||||
$this->authDataV1 = $authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getLimit()
|
||||
{
|
||||
return $this->limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $limit
|
||||
* @return GetEventsForCustomerV4
|
||||
*/
|
||||
public function withLimit($limit)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->limit = $limit;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLanguage()
|
||||
{
|
||||
return $this->language;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $language
|
||||
* @return GetEventsForCustomerV4
|
||||
*/
|
||||
public function withLanguage($language)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->language = $language;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function getAuthDataV1()
|
||||
{
|
||||
return $this->authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AuthDataV1 $authDataV1
|
||||
* @return GetEventsForCustomerV4
|
||||
*/
|
||||
public function withAuthDataV1($authDataV1)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->authDataV1 = $authDataV1;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForCustomerV4Response
|
||||
{
|
||||
/**
|
||||
* @var CustomerEventsResponseV2
|
||||
*/
|
||||
private $return;
|
||||
|
||||
/**
|
||||
* @return CustomerEventsResponseV2
|
||||
*/
|
||||
public function getReturn()
|
||||
{
|
||||
return $this->return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventsResponseV2 $return
|
||||
* @return GetEventsForCustomerV4Response
|
||||
*/
|
||||
public function withReturn($return)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->return = $return;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForWaybillV1
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $waybill;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $eventsSelectType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $language;
|
||||
|
||||
/**
|
||||
* @var AuthDataV1
|
||||
*/
|
||||
private $authDataV1;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @var string $waybill
|
||||
* @var string $eventsSelectType
|
||||
* @var string $language
|
||||
* @var AuthDataV1 $authDataV1
|
||||
*/
|
||||
public function __construct($waybill, $eventsSelectType, $language, $authDataV1)
|
||||
{
|
||||
$this->waybill = $waybill;
|
||||
$this->eventsSelectType = $eventsSelectType;
|
||||
$this->language = $language;
|
||||
$this->authDataV1 = $authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getWaybill()
|
||||
{
|
||||
return $this->waybill;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $waybill
|
||||
* @return GetEventsForWaybillV1
|
||||
*/
|
||||
public function withWaybill($waybill)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->waybill = $waybill;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEventsSelectType()
|
||||
{
|
||||
return $this->eventsSelectType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $eventsSelectType
|
||||
* @return GetEventsForWaybillV1
|
||||
*/
|
||||
public function withEventsSelectType($eventsSelectType)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->eventsSelectType = $eventsSelectType;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLanguage()
|
||||
{
|
||||
return $this->language;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $language
|
||||
* @return GetEventsForWaybillV1
|
||||
*/
|
||||
public function withLanguage($language)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->language = $language;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function getAuthDataV1()
|
||||
{
|
||||
return $this->authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AuthDataV1 $authDataV1
|
||||
* @return GetEventsForWaybillV1
|
||||
*/
|
||||
public function withAuthDataV1($authDataV1)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->authDataV1 = $authDataV1;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class GetEventsForWaybillV1Response
|
||||
{
|
||||
/**
|
||||
* @var CustomerEventsResponseV3
|
||||
*/
|
||||
private $return;
|
||||
|
||||
/**
|
||||
* @return CustomerEventsResponseV3
|
||||
*/
|
||||
public function getReturn()
|
||||
{
|
||||
return $this->return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CustomerEventsResponseV3 $return
|
||||
* @return GetEventsForWaybillV1Response
|
||||
*/
|
||||
public function withReturn($return)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->return = $return;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
class MarkEventsAsProcessedV1
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $confirmId;
|
||||
|
||||
/**
|
||||
* @var AuthDataV1
|
||||
*/
|
||||
private $authDataV1;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @var string $confirmId
|
||||
* @var AuthDataV1 $authDataV1
|
||||
*/
|
||||
public function __construct($confirmId, $authDataV1)
|
||||
{
|
||||
$this->confirmId = $confirmId;
|
||||
$this->authDataV1 = $authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getConfirmId()
|
||||
{
|
||||
return $this->confirmId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $confirmId
|
||||
* @return MarkEventsAsProcessedV1
|
||||
*/
|
||||
public function withConfirmId($confirmId)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->confirmId = $confirmId;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function getAuthDataV1()
|
||||
{
|
||||
return $this->authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AuthDataV1 $authDataV1
|
||||
* @return MarkEventsAsProcessedV1
|
||||
*/
|
||||
public function withAuthDataV1($authDataV1)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->authDataV1 = $authDataV1;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdInfoServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class MarkEventsAsProcessedV1Response
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $return;
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getReturn()
|
||||
{
|
||||
return $this->return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $return
|
||||
* @return MarkEventsAsProcessedV1Response
|
||||
*/
|
||||
public function withReturn($return)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->return = $return;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
33
modules/dpdshipping/src/Api/DpdInfoServices/Type/index.php
Normal file
33
modules/dpdshipping/src/Api/DpdInfoServices/Type/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
33
modules/dpdshipping/src/Api/DpdInfoServices/index.php
Normal file
33
modules/dpdshipping/src/Api/DpdInfoServices/index.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
243
modules/dpdshipping/src/Api/DpdServices/DpdServicesClassmap.php
Normal file
243
modules/dpdshipping/src/Api/DpdServices/DpdServicesClassmap.php
Normal file
@@ -0,0 +1,243 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
class DpdServicesClassmap
|
||||
{
|
||||
public static function getCollection(): array
|
||||
{
|
||||
return [
|
||||
'generateProtocolV1' => Type\GenerateProtocolV1::class,
|
||||
'dpdServicesParamsV1' => Type\DpdServicesParamsV1::class,
|
||||
'pickupAddressDSPV1' => Type\PickupAddressDSPV1::class,
|
||||
'sessionDSPV1' => Type\SessionDSPV1::class,
|
||||
'packageDSPV1' => Type\PackageDSPV1::class,
|
||||
'parcelDSPV1' => Type\ParcelDSPV1::class,
|
||||
'authDataV1' => Type\AuthDataV1::class,
|
||||
'generateProtocolV1Response' => Type\GenerateProtocolV1Response::class,
|
||||
'documentGenerationResponseV1' => Type\DocumentGenerationResponseV1::class,
|
||||
'sessionDGRV1' => Type\SessionDGRV1::class,
|
||||
'packageDGRV1' => Type\PackageDGRV1::class,
|
||||
'parcelDGRV1' => Type\ParcelDGRV1::class,
|
||||
'statusInfoDGRV1' => Type\StatusInfoDGRV1::class,
|
||||
'generateProtocolV2' => Type\GenerateProtocolV2::class,
|
||||
'generateProtocolV2Response' => Type\GenerateProtocolV2Response::class,
|
||||
'generateShipmentV1' => Type\GenerateShipmentV1::class,
|
||||
'openUMLFeV10' => Type\OpenUMLFeV10::class,
|
||||
'packageOpenUMLFeV10' => Type\PackageOpenUMLFeV10::class,
|
||||
'parcelOpenUMLFeV4' => Type\ParcelOpenUMLFeV4::class,
|
||||
'packageAddressOpenUMLFeV1' => Type\PackageAddressOpenUMLFeV1::class,
|
||||
'servicesOpenUMLFeV9' => Type\ServicesOpenUMLFeV9::class,
|
||||
'serviceCarryInOpenUMLFeV1' => Type\ServiceCarryInOpenUMLFeV1::class,
|
||||
'serviceCODOpenUMLFeV1' => Type\ServiceCODOpenUMLFeV1::class,
|
||||
'serviceCODDedicatedAccountOpenUMLFeV1' => Type\ServiceCODDedicatedAccountOpenUMLFeV1::class,
|
||||
'serviceCUDOpenUMLeFV1' => Type\ServiceCUDOpenUMLeFV1::class,
|
||||
'serviceDeclaredValueOpenUMLFeV1' => Type\ServiceDeclaredValueOpenUMLFeV1::class,
|
||||
'serviceDedicatedDeliveryOpenUMLFeV1' => Type\ServiceDedicatedDeliveryOpenUMLFeV1::class,
|
||||
'serviceDigitalLabelUMLFeV1' => Type\ServiceDigitalLabelUMLFeV1::class,
|
||||
'serviceFlagOpenUMLF' => Type\ServiceFlagOpenUMLF::class,
|
||||
'servicePalletOpenUMLFeV1' => Type\ServicePalletOpenUMLFeV1::class,
|
||||
'serviceDPDFoodOpenUMLFeV2' => Type\ServiceDPDFoodOpenUMLFeV2::class,
|
||||
'serviceDPDLqOpenUMLFeV1' => Type\ServiceDPDLqOpenUMLFeV1::class,
|
||||
'serviceDpdPickupOpenUMLFeV1' => Type\ServiceDpdPickupOpenUMLFeV1::class,
|
||||
'serviceDutyOpenUMLeFV2' => Type\ServiceDutyOpenUMLeFV2::class,
|
||||
'serviceGuaranteeOpenUMLFeV1' => Type\ServiceGuaranteeOpenUMLFeV1::class,
|
||||
'serviceInPersOpenUMLFeV1' => Type\ServiceInPersOpenUMLFeV1::class,
|
||||
'servicePrivPersOpenUMLFeV1' => Type\ServicePrivPersOpenUMLFeV1::class,
|
||||
'serviceRODOpenUMLFeV1' => Type\ServiceRODOpenUMLFeV1::class,
|
||||
'serviceSelfColOpenUMLFeV1' => Type\ServiceSelfColOpenUMLFeV1::class,
|
||||
'serviceTiresOpenUMLFeV1' => Type\ServiceTiresOpenUMLFeV1::class,
|
||||
'serviceTiresExportOpenUMLFeV1' => Type\ServiceTiresExportOpenUMLFeV1::class,
|
||||
'generateShipmentV1Response' => Type\GenerateShipmentV1Response::class,
|
||||
'shipmentDocumentGenerationResponseV1' => Type\ShipmentDocumentGenerationResponseV1::class,
|
||||
'shipmentDocumentGenerationSessionV1' => Type\ShipmentDocumentGenerationSessionV1::class,
|
||||
'shipmentDocumentGenerationStatusInfoV1' => Type\ShipmentDocumentGenerationStatusInfoV1::class,
|
||||
'generateDomesticReturnLabelV1' => Type\GenerateDomesticReturnLabelV1::class,
|
||||
'returnedWaybillsV1' => Type\ReturnedWaybillsV1::class,
|
||||
'pudoReturnReceiver' => Type\PudoReturnReceiver::class,
|
||||
'generateDomesticReturnLabelV1Response' => Type\GenerateDomesticReturnLabelV1Response::class,
|
||||
'generateSpedLabelsV1' => Type\GenerateSpedLabelsV1::class,
|
||||
'generateSpedLabelsV1Response' => Type\GenerateSpedLabelsV1Response::class,
|
||||
'generateSpedLabelsV4' => Type\GenerateSpedLabelsV4::class,
|
||||
'generateSpedLabelsV4Response' => Type\GenerateSpedLabelsV4Response::class,
|
||||
'generateSpedLabelsV3' => Type\GenerateSpedLabelsV3::class,
|
||||
'generateSpedLabelsV3Response' => Type\GenerateSpedLabelsV3Response::class,
|
||||
'generateReturnPackages' => Type\GenerateReturnPackages::class,
|
||||
'openUMLFeV7' => Type\OpenUMLFeV7::class,
|
||||
'packageOpenUMLFeV7' => Type\PackageOpenUMLFeV7::class,
|
||||
'parcelOpenUMLFeV2' => Type\ParcelOpenUMLFeV2::class,
|
||||
'servicesOpenUMLFeV6' => Type\ServicesOpenUMLFeV6::class,
|
||||
'serviceDPDFoodOpenUMLFeV1' => Type\ServiceDPDFoodOpenUMLFeV1::class,
|
||||
'generateReturnPackagesResponse' => Type\GenerateReturnPackagesResponse::class,
|
||||
'packagesGenerationResponseV2' => Type\PackagesGenerationResponseV2::class,
|
||||
'sessionPGRV2' => Type\SessionPGRV2::class,
|
||||
'Packages' => Type\Packages::class,
|
||||
'packagePGRV2' => Type\PackagePGRV2::class,
|
||||
'ValidationDetails' => Type\ValidationDetails::class,
|
||||
'Parcels' => Type\Parcels::class,
|
||||
'validationInfoPGRV2' => Type\ValidationInfoPGRV2::class,
|
||||
'parcelPGRV2' => Type\ParcelPGRV2::class,
|
||||
'generateSpedLabelsV2' => Type\GenerateSpedLabelsV2::class,
|
||||
'generateSpedLabelsV2Response' => Type\GenerateSpedLabelsV2Response::class,
|
||||
'generatePackagesNumbersV6' => Type\GeneratePackagesNumbersV6::class,
|
||||
'openUMLFeV5' => Type\OpenUMLFeV5::class,
|
||||
'packageOpenUMLFeV5' => Type\PackageOpenUMLFeV5::class,
|
||||
'parcelOpenUMLFeV1' => Type\ParcelOpenUMLFeV1::class,
|
||||
'generatePackagesNumbersV6Response' => Type\GeneratePackagesNumbersV6Response::class,
|
||||
'generatePackagesNumbersV7' => Type\GeneratePackagesNumbersV7::class,
|
||||
'openUMLFeV8' => Type\OpenUMLFeV8::class,
|
||||
'packageOpenUMLFeV8' => Type\PackageOpenUMLFeV8::class,
|
||||
'parcelOpenUMLFeV3' => Type\ParcelOpenUMLFeV3::class,
|
||||
'servicesOpenUMLFeV8' => Type\ServicesOpenUMLFeV8::class,
|
||||
'generatePackagesNumbersV7Response' => Type\GeneratePackagesNumbersV7Response::class,
|
||||
'generatePackagesNumbersV8' => Type\GeneratePackagesNumbersV8::class,
|
||||
'openUMLFeV9' => Type\OpenUMLFeV9::class,
|
||||
'packageOpenUMLFeV9' => Type\PackageOpenUMLFeV9::class,
|
||||
'generatePackagesNumbersV8Response' => Type\GeneratePackagesNumbersV8Response::class,
|
||||
'generatePackagesNumbersV9' => Type\GeneratePackagesNumbersV9::class,
|
||||
'openUMLFeV11' => Type\OpenUMLFeV11::class,
|
||||
'packageOpenUMLFeV11' => Type\PackageOpenUMLFeV11::class,
|
||||
'servicesOpenUMLFeV11' => Type\ServicesOpenUMLFeV11::class,
|
||||
'servicePudoToSendUMLFeV1' => Type\ServicePudoToSendUMLFeV1::class,
|
||||
//'generatePackagesNumbersV9Response' => Type\GeneratePackagesNumbersV9Response::class,
|
||||
'findPostalCodeV1' => Type\FindPostalCodeV1::class,
|
||||
'postalCodeV1' => Type\PostalCodeV1::class,
|
||||
'findPostalCodeV1Response' => Type\FindPostalCodeV1Response::class,
|
||||
'findPostalCodeResponseV1' => Type\FindPostalCodeResponseV1::class,
|
||||
'generateInternationalPackageNumbersV1' => Type\GenerateInternationalPackageNumbersV1::class,
|
||||
'internationalOpenUMLFeV1' => Type\InternationalOpenUMLFeV1::class,
|
||||
'internationalPackageOpenUMLFeV1' => Type\InternationalPackageOpenUMLFeV1::class,
|
||||
'internationalParcelOpenUMLFeV1' => Type\InternationalParcelOpenUMLFeV1::class,
|
||||
'internationalServicesOpenUMLFeV1' => Type\InternationalServicesOpenUMLFeV1::class,
|
||||
'serviceDPDPudoReturnUMLFeV1' => Type\ServiceDPDPudoReturnUMLFeV1::class,
|
||||
'generateInternationalPackageNumbersV1Response' => Type\GenerateInternationalPackageNumbersV1Response::class,
|
||||
'generatePackagesNumbersV1' => Type\GeneratePackagesNumbersV1::class,
|
||||
'openUMLFeV1' => Type\OpenUMLFeV1::class,
|
||||
'packageOpenUMLFeV1' => Type\PackageOpenUMLFeV1::class,
|
||||
'servicesOpenUMLFeV2' => Type\ServicesOpenUMLFeV2::class,
|
||||
'serviceDutyOpenUMLeFV1' => Type\ServiceDutyOpenUMLeFV1::class,
|
||||
'generatePackagesNumbersV1Response' => Type\GeneratePackagesNumbersV1Response::class,
|
||||
'packagesGenerationResponseV1' => Type\PackagesGenerationResponseV1::class,
|
||||
'sessionPGRV1' => Type\SessionPGRV1::class,
|
||||
'packagePGRV1' => Type\PackagePGRV1::class,
|
||||
'invalidFieldPGRV1' => Type\InvalidFieldPGRV1::class,
|
||||
'parcelPGRV1' => Type\ParcelPGRV1::class,
|
||||
'generatePackagesNumbersV2' => Type\GeneratePackagesNumbersV2::class,
|
||||
'generatePackagesNumbersV2Response' => Type\GeneratePackagesNumbersV2Response::class,
|
||||
'generatePackagesNumbersV3' => Type\GeneratePackagesNumbersV3::class,
|
||||
'openUMLFeV2' => Type\OpenUMLFeV2::class,
|
||||
'packageOpenUMLFeV2' => Type\PackageOpenUMLFeV2::class,
|
||||
'servicesOpenUMLFeV3' => Type\ServicesOpenUMLFeV3::class,
|
||||
'generatePackagesNumbersV3Response' => Type\GeneratePackagesNumbersV3Response::class,
|
||||
'generatePackagesNumbersV4' => Type\GeneratePackagesNumbersV4::class,
|
||||
'openUMLFeV3' => Type\OpenUMLFeV3::class,
|
||||
'packageOpenUMLFeV3' => Type\PackageOpenUMLFeV3::class,
|
||||
'servicesOpenUMLFeV4' => Type\ServicesOpenUMLFeV4::class,
|
||||
'generatePackagesNumbersV4Response' => Type\GeneratePackagesNumbersV4Response::class,
|
||||
'generatePackagesNumbersV5' => Type\GeneratePackagesNumbersV5::class,
|
||||
'openUMLFeV4' => Type\OpenUMLFeV4::class,
|
||||
'packageOpenUMLFeV4' => Type\PackageOpenUMLFeV4::class,
|
||||
'servicesOpenUMLFeV5' => Type\ServicesOpenUMLFeV5::class,
|
||||
'generatePackagesNumbersV5Response' => Type\GeneratePackagesNumbersV5Response::class,
|
||||
'packagesPickupCallV3' => Type\PackagesPickupCallV3::class,
|
||||
'dpdPickupCallParamsV3' => Type\DpdPickupCallParamsV3::class,
|
||||
'pickupCallSimplifiedDetailsDPPV1' => Type\PickupCallSimplifiedDetailsDPPV1::class,
|
||||
'pickupPackagesParamsDPPV1' => Type\PickupPackagesParamsDPPV1::class,
|
||||
'pickupCustomerDPPV1' => Type\PickupCustomerDPPV1::class,
|
||||
'pickupPayerDPPV1' => Type\PickupPayerDPPV1::class,
|
||||
'pickupSenderDPPV1' => Type\PickupSenderDPPV1::class,
|
||||
'packagesPickupCallV3Response' => Type\PackagesPickupCallV3Response::class,
|
||||
'packagesPickupCallResponseV3' => Type\PackagesPickupCallResponseV3::class,
|
||||
'statusInfoPCRV2' => Type\StatusInfoPCRV2::class,
|
||||
'errorDetailsPCRV2' => Type\ErrorDetailsPCRV2::class,
|
||||
'packagesPickupCallV4' => Type\PackagesPickupCallV4::class,
|
||||
'packagesPickupCallV4Response' => Type\PackagesPickupCallV4Response::class,
|
||||
'packagesPickupCallV1' => Type\PackagesPickupCallV1::class,
|
||||
'dpdPickupCallParamsV1' => Type\DpdPickupCallParamsV1::class,
|
||||
'contactInfoDPPV1' => Type\ContactInfoDPPV1::class,
|
||||
'protocolDPPV1' => Type\ProtocolDPPV1::class,
|
||||
'packagesPickupCallV1Response' => Type\PackagesPickupCallV1Response::class,
|
||||
'packagesPickupCallResponseV1' => Type\PackagesPickupCallResponseV1::class,
|
||||
'protocolPCRV1' => Type\ProtocolPCRV1::class,
|
||||
'statusInfoPCRV1' => Type\StatusInfoPCRV1::class,
|
||||
'packagesPickupCallV2' => Type\PackagesPickupCallV2::class,
|
||||
'dpdPickupCallParamsV2' => Type\DpdPickupCallParamsV2::class,
|
||||
'packagesPickupCallV2Response' => Type\PackagesPickupCallV2Response::class,
|
||||
'packagesPickupCallResponseV2' => Type\PackagesPickupCallResponseV2::class,
|
||||
'appendParcelsToPackageV1' => Type\AppendParcelsToPackageV1::class,
|
||||
'parcelsAppendV1' => Type\ParcelsAppendV1::class,
|
||||
'parcelsAppendSearchCriteriaPAV1' => Type\ParcelsAppendSearchCriteriaPAV1::class,
|
||||
'parcelAppendPAV1' => Type\ParcelAppendPAV1::class,
|
||||
'appendParcelsToPackageV1Response' => Type\AppendParcelsToPackageV1Response::class,
|
||||
'parcelsAppendResponseV1' => Type\ParcelsAppendResponseV1::class,
|
||||
'invalidFieldPAV1' => Type\InvalidFieldPAV1::class,
|
||||
'parcelsAppendParcelPAV1' => Type\ParcelsAppendParcelPAV1::class,
|
||||
'generateReturnLabelV1' => Type\GenerateReturnLabelV1::class,
|
||||
'generateReturnLabelV1Response' => Type\GenerateReturnLabelV1Response::class,
|
||||
'getCourierOrderAvailabilityV1' => Type\GetCourierOrderAvailabilityV1::class,
|
||||
'senderPlaceV1' => Type\SenderPlaceV1::class,
|
||||
'getCourierOrderAvailabilityV1Response' => Type\GetCourierOrderAvailabilityV1Response::class,
|
||||
'getCourierOrderAvailabilityResponseV1' => Type\GetCourierOrderAvailabilityResponseV1::class,
|
||||
'courierOrderAvailabilityRangeV1' => Type\CourierOrderAvailabilityRangeV1::class,
|
||||
'appendParcelsToPackageV2' => Type\AppendParcelsToPackageV2::class,
|
||||
'parcelsAppendV2' => Type\ParcelsAppendV2::class,
|
||||
'parcelAppendPAV2' => Type\ParcelAppendPAV2::class,
|
||||
'appendParcelsToPackageV2Response' => Type\AppendParcelsToPackageV2Response::class,
|
||||
'generateProtocolsWithDestinationsV1' => Type\GenerateProtocolsWithDestinationsV1::class,
|
||||
'dpdServicesParamsV2' => Type\DpdServicesParamsV2::class,
|
||||
'DeliveryDestinations' => Type\DeliveryDestinations::class,
|
||||
'sessionDSPV2' => Type\SessionDSPV2::class,
|
||||
'packageDSPV2' => Type\PackageDSPV2::class,
|
||||
'parcelDSPV2' => Type\ParcelDSPV2::class,
|
||||
'pickupAddressDSPV2' => Type\PickupAddressDSPV2::class,
|
||||
'deliveryDestination' => Type\DeliveryDestination::class,
|
||||
'DepotList' => Type\DepotList::class,
|
||||
'protocolDepot' => Type\ProtocolDepot::class,
|
||||
'generateProtocolsWithDestinationsV1Response' => Type\GenerateProtocolsWithDestinationsV1Response::class,
|
||||
'documentGenerationResponseV2' => Type\DocumentGenerationResponseV2::class,
|
||||
'DestinationDataList' => Type\DestinationDataList::class,
|
||||
'destinationsData' => Type\DestinationsData::class,
|
||||
'nonMatchingData' => Type\NonMatchingData::class,
|
||||
'sessionDGRV2' => Type\SessionDGRV2::class,
|
||||
'packageDGRV2' => Type\PackageDGRV2::class,
|
||||
'parcelDGRV2' => Type\ParcelDGRV2::class,
|
||||
'statusInfoDGRV2' => Type\StatusInfoDGRV2::class,
|
||||
'generateProtocolsWithDestinationsV2' => Type\GenerateProtocolsWithDestinationsV2::class,
|
||||
'generateProtocolsWithDestinationsV2Response' => Type\GenerateProtocolsWithDestinationsV2Response::class,
|
||||
'importDeliveryBusinessEventV1' => Type\ImportDeliveryBusinessEventV1::class,
|
||||
'dpdParcelBusinessEventV1' => Type\DpdParcelBusinessEventV1::class,
|
||||
'dpdParcelBusinessEventDataV1' => Type\DpdParcelBusinessEventDataV1::class,
|
||||
'importDeliveryBusinessEventV1Response' => Type\ImportDeliveryBusinessEventV1Response::class,
|
||||
'importDeliveryBusinessEventResponseV1' => Type\ImportDeliveryBusinessEventResponseV1::class,
|
||||
'DPDServiceException' => Type\DPDServiceException::class,
|
||||
'Exception' => Type\Exception::class,
|
||||
'DeniedAccessWSException' => Type\DeniedAccessWSException::class,
|
||||
'SchemaValidationException' => Type\SchemaValidationException::class,
|
||||
];
|
||||
}
|
||||
}
|
||||
132
modules/dpdshipping/src/Api/DpdServices/DpdServicesClient.php
Normal file
132
modules/dpdshipping/src/Api/DpdServices/DpdServicesClient.php
Normal file
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
use DpdShipping\Api\DpdApiHelper;
|
||||
use DpdShipping\Api\DpdServices\Type\FindPostalCodeV1;
|
||||
use DpdShipping\Api\DpdServices\Type\GenerateDomesticReturnLabelV1;
|
||||
use DpdShipping\Api\DpdServices\Type\GeneratePackagesNumbersV9;
|
||||
use DpdShipping\Api\DpdServices\Type\GenerateProtocolV2;
|
||||
use DpdShipping\Api\DpdServices\Type\GenerateReturnLabelV1;
|
||||
use DpdShipping\Api\DpdServices\Type\GenerateSpedLabelsV4;
|
||||
use DpdShipping\Api\DpdServices\Type\GetCourierOrderAvailabilityV1;
|
||||
use DpdShipping\Api\DpdServices\Type\PackagesPickupCallV4;
|
||||
|
||||
class DpdServicesClient
|
||||
{
|
||||
private $soapClient;
|
||||
private $eventDispatcher;
|
||||
|
||||
public function __construct(\SoapClient $soapClient, $eventDispatcher)
|
||||
{
|
||||
$this->soapClient = $soapClient;
|
||||
$this->eventDispatcher = $eventDispatcher;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function generateProtocolV2(GenerateProtocolV2 $parameters)
|
||||
{
|
||||
return $this->soapCall('generateProtocolV2', $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function generateDomesticReturnLabelV1(GenerateDomesticReturnLabelV1 $parameters)
|
||||
{
|
||||
return $this->soapCall('generateDomesticReturnLabelV1', $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function generateSpedLabelsV4(GenerateSpedLabelsV4 $parameters)
|
||||
{
|
||||
return $this->soapCall('generateSpedLabelsV4', $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function generatePackagesNumbersV9(GeneratePackagesNumbersV9 $parameters)
|
||||
{
|
||||
return $this->soapCall('generatePackagesNumbersV9', $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function findPostalCodeV1(FindPostalCodeV1 $parameters)
|
||||
{
|
||||
return $this->soapCall('findPostalCodeV1', $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function generateReturnLabelV1(GenerateReturnLabelV1 $parameters)
|
||||
{
|
||||
return $this->soapCall('generateReturnLabelV1', $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getCourierOrderAvailability(GetCourierOrderAvailabilityV1 $parameters)
|
||||
{
|
||||
return $this->soapCall('getCourierOrderAvailabilityV1', $parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function packagesPickupCall(PackagesPickupCallV4 $parameters)
|
||||
{
|
||||
return $this->soapCall('packagesPickupCallV4', $parameters);
|
||||
}
|
||||
|
||||
private function soapCall($name, $parameters)
|
||||
{
|
||||
try {
|
||||
$arrayRequest = $this->objectToArray($parameters);
|
||||
return $this->soapClient->__soapCall($name, [$arrayRequest]);
|
||||
} catch (\SoapFault $fault) {
|
||||
throw new \Exception("SOAP Fault: {$fault->faultcode}, {$fault->faultstring}");
|
||||
}
|
||||
}
|
||||
|
||||
public function objectToArray($obj)
|
||||
{
|
||||
$dpdApiUtils = new DpdApiHelper($this);
|
||||
|
||||
return $dpdApiUtils->objectToArray($obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
use SoapClient;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
|
||||
class DpdServicesClientFactory
|
||||
{
|
||||
public static function factory(string $wsdl): DpdServicesClient
|
||||
{
|
||||
$classmap = DpdServicesClassmap::getCollection();
|
||||
|
||||
$options = [
|
||||
'trace' => true,
|
||||
'exceptions' => true,
|
||||
];
|
||||
|
||||
$soapClient = new SoapClient($wsdl, $options);
|
||||
|
||||
return new DpdServicesClient($soapClient, new EventDispatcher());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class AppendParcelsToPackageV1
|
||||
{
|
||||
/**
|
||||
* @var ParcelsAppendV1
|
||||
*/
|
||||
private $parcelsAppend;
|
||||
|
||||
/**
|
||||
* @var AuthDataV1
|
||||
*/
|
||||
private $authDataV1;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @var ParcelsAppendV1 $parcelsAppend
|
||||
* @var AuthDataV1 $authDataV1
|
||||
*/
|
||||
public function __construct($parcelsAppend, $authDataV1)
|
||||
{
|
||||
$this->parcelsAppend = $parcelsAppend;
|
||||
$this->authDataV1 = $authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ParcelsAppendV1
|
||||
*/
|
||||
public function getParcelsAppend()
|
||||
{
|
||||
return $this->parcelsAppend;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParcelsAppendV1 $parcelsAppend
|
||||
* @return AppendParcelsToPackageV1
|
||||
*/
|
||||
public function withParcelsAppend($parcelsAppend)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->parcelsAppend = $parcelsAppend;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function getAuthDataV1()
|
||||
{
|
||||
return $this->authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AuthDataV1 $authDataV1
|
||||
* @return AppendParcelsToPackageV1
|
||||
*/
|
||||
public function withAuthDataV1($authDataV1)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->authDataV1 = $authDataV1;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class AppendParcelsToPackageV1Response
|
||||
{
|
||||
/**
|
||||
* @var ParcelsAppendResponseV1
|
||||
*/
|
||||
private $return;
|
||||
|
||||
/**
|
||||
* @return ParcelsAppendResponseV1
|
||||
*/
|
||||
public function getReturn()
|
||||
{
|
||||
return $this->return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParcelsAppendResponseV1 $return
|
||||
* @return AppendParcelsToPackageV1Response
|
||||
*/
|
||||
public function withReturn($return)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->return = $return;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class AppendParcelsToPackageV2
|
||||
{
|
||||
/**
|
||||
* @var ParcelsAppendV2
|
||||
*/
|
||||
private $parcelsAppend;
|
||||
|
||||
/**
|
||||
* @var AuthDataV1
|
||||
*/
|
||||
private $authDataV1;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @var ParcelsAppendV2 $parcelsAppend
|
||||
* @var AuthDataV1 $authDataV1
|
||||
*/
|
||||
public function __construct($parcelsAppend, $authDataV1)
|
||||
{
|
||||
$this->parcelsAppend = $parcelsAppend;
|
||||
$this->authDataV1 = $authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ParcelsAppendV2
|
||||
*/
|
||||
public function getParcelsAppend()
|
||||
{
|
||||
return $this->parcelsAppend;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParcelsAppendV2 $parcelsAppend
|
||||
* @return AppendParcelsToPackageV2
|
||||
*/
|
||||
public function withParcelsAppend($parcelsAppend)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->parcelsAppend = $parcelsAppend;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function getAuthDataV1()
|
||||
{
|
||||
return $this->authDataV1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AuthDataV1 $authDataV1
|
||||
* @return AppendParcelsToPackageV2
|
||||
*/
|
||||
public function withAuthDataV1($authDataV1)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->authDataV1 = $authDataV1;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class AppendParcelsToPackageV2Response
|
||||
{
|
||||
/**
|
||||
* @var ParcelsAppendResponseV1
|
||||
*/
|
||||
private $return;
|
||||
|
||||
/**
|
||||
* @return ParcelsAppendResponseV1
|
||||
*/
|
||||
public function getReturn()
|
||||
{
|
||||
return $this->return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParcelsAppendResponseV1 $return
|
||||
* @return AppendParcelsToPackageV2Response
|
||||
*/
|
||||
public function withReturn($return)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->return = $return;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
107
modules/dpdshipping/src/Api/DpdServices/Type/AuthDataV1.php
Normal file
107
modules/dpdshipping/src/Api/DpdServices/Type/AuthDataV1.php
Normal file
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class AuthDataV1
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $login;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $masterFid;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $password;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLogin()
|
||||
{
|
||||
return $this->login;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $login
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function withLogin($login)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->login = $login;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMasterFid()
|
||||
{
|
||||
return $this->masterFid;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $masterFid
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function withMasterFid($masterFid)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->masterFid = $masterFid;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPassword()
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $password
|
||||
* @return AuthDataV1
|
||||
*/
|
||||
public function withPassword($password)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->password = $password;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class ContactInfoDPPV1
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $comments;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $company;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $email;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phone;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getComments()
|
||||
{
|
||||
return $this->comments;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $comments
|
||||
* @return ContactInfoDPPV1
|
||||
*/
|
||||
public function withComments($comments)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->comments = $comments;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCompany()
|
||||
{
|
||||
return $this->company;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $company
|
||||
* @return ContactInfoDPPV1
|
||||
*/
|
||||
public function withCompany($company)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->company = $company;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $email
|
||||
* @return ContactInfoDPPV1
|
||||
*/
|
||||
public function withEmail($email)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->email = $email;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return ContactInfoDPPV1
|
||||
*/
|
||||
public function withName($name)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->name = $name;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $phone
|
||||
* @return ContactInfoDPPV1
|
||||
*/
|
||||
public function withPhone($phone)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->phone = $phone;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CourierOrderAvailabilityRangeV1
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $offset;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $range;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getOffset()
|
||||
{
|
||||
return $this->offset;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $offset
|
||||
* @return CourierOrderAvailabilityRangeV1
|
||||
*/
|
||||
public function withOffset($offset)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->offset = $offset;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRange()
|
||||
{
|
||||
return $this->range;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $range
|
||||
* @return CourierOrderAvailabilityRangeV1
|
||||
*/
|
||||
public function withRange($range)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->range = $range;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
class DPDServiceException
|
||||
{
|
||||
/**
|
||||
* @var DateTimeInterface
|
||||
*/
|
||||
private $exceptionDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $message;
|
||||
|
||||
/**
|
||||
* @return DateTimeInterface
|
||||
*/
|
||||
public function getExceptionDate()
|
||||
{
|
||||
return $this->exceptionDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DateTimeInterface $exceptionDate
|
||||
* @return DPDServiceException
|
||||
*/
|
||||
public function withExceptionDate($exceptionDate)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->exceptionDate = $exceptionDate;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $message
|
||||
* @return DPDServiceException
|
||||
*/
|
||||
public function withMessage($message)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->message = $message;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DeliveryDestination
|
||||
{
|
||||
/**
|
||||
* @var DepotList
|
||||
*/
|
||||
private $DepotList;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $DestinationName;
|
||||
|
||||
/**
|
||||
* @return DepotList
|
||||
*/
|
||||
public function getDepotList()
|
||||
{
|
||||
return $this->DepotList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DepotList $DepotList
|
||||
* @return DeliveryDestination
|
||||
*/
|
||||
public function withDepotList($DepotList)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->DepotList = $DepotList;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDestinationName()
|
||||
{
|
||||
return $this->DestinationName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $DestinationName
|
||||
* @return DeliveryDestination
|
||||
*/
|
||||
public function withDestinationName($DestinationName)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->DestinationName = $DestinationName;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DeliveryDestinations
|
||||
{
|
||||
/**
|
||||
* @var DeliveryDestination
|
||||
*/
|
||||
private $DeliveryDestination;
|
||||
|
||||
/**
|
||||
* @return DeliveryDestination
|
||||
*/
|
||||
public function getDeliveryDestination()
|
||||
{
|
||||
return $this->DeliveryDestination;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DeliveryDestination $DeliveryDestination
|
||||
* @return DeliveryDestinations
|
||||
*/
|
||||
public function withDeliveryDestination($DeliveryDestination)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->DeliveryDestination = $DeliveryDestination;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DeniedAccessWSException
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $errorCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $exceptionDetails;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $message;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getErrorCode()
|
||||
{
|
||||
return $this->errorCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $errorCode
|
||||
* @return DeniedAccessWSException
|
||||
*/
|
||||
public function withErrorCode($errorCode)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->errorCode = $errorCode;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getExceptionDetails()
|
||||
{
|
||||
return $this->exceptionDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $exceptionDetails
|
||||
* @return DeniedAccessWSException
|
||||
*/
|
||||
public function withExceptionDetails($exceptionDetails)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->exceptionDetails = $exceptionDetails;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $message
|
||||
* @return DeniedAccessWSException
|
||||
*/
|
||||
public function withMessage($message)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->message = $message;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
57
modules/dpdshipping/src/Api/DpdServices/Type/DepotList.php
Normal file
57
modules/dpdshipping/src/Api/DpdServices/Type/DepotList.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DepotList
|
||||
{
|
||||
/**
|
||||
* @var ProtocolDepot
|
||||
*/
|
||||
private $ProtocolDepot;
|
||||
|
||||
/**
|
||||
* @return ProtocolDepot
|
||||
*/
|
||||
public function getProtocolDepot()
|
||||
{
|
||||
return $this->ProtocolDepot;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ProtocolDepot $ProtocolDepot
|
||||
* @return DepotList
|
||||
*/
|
||||
public function withProtocolDepot($ProtocolDepot)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->ProtocolDepot = $ProtocolDepot;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DestinationDataList
|
||||
{
|
||||
/**
|
||||
* @var DestinationsData
|
||||
*/
|
||||
private $DestinationsData;
|
||||
|
||||
/**
|
||||
* @return DestinationsData
|
||||
*/
|
||||
public function getDestinationsData()
|
||||
{
|
||||
return $this->DestinationsData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DestinationsData $DestinationsData
|
||||
* @return DestinationDataList
|
||||
*/
|
||||
public function withDestinationsData($DestinationsData)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->DestinationsData = $DestinationsData;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DestinationsData
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $DestinationName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $DocumentId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $Domestic;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDestinationName()
|
||||
{
|
||||
return $this->DestinationName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $DestinationName
|
||||
* @return DestinationsData
|
||||
*/
|
||||
public function withDestinationName($DestinationName)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->DestinationName = $DestinationName;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDocumentId()
|
||||
{
|
||||
return $this->DocumentId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $DocumentId
|
||||
* @return DestinationsData
|
||||
*/
|
||||
public function withDocumentId($DocumentId)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->DocumentId = $DocumentId;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getDomestic()
|
||||
{
|
||||
return $this->Domestic;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $Domestic
|
||||
* @return DestinationsData
|
||||
*/
|
||||
public function withDomestic($Domestic)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->Domestic = $Domestic;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DocumentGenerationResponseV1
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $documentData;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $documentId;
|
||||
|
||||
/**
|
||||
* @var SessionDGRV1
|
||||
*/
|
||||
private $session;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDocumentData()
|
||||
{
|
||||
return $this->documentData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $documentData
|
||||
* @return DocumentGenerationResponseV1
|
||||
*/
|
||||
public function withDocumentData($documentData)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->documentData = $documentData;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDocumentId()
|
||||
{
|
||||
return $this->documentId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $documentId
|
||||
* @return DocumentGenerationResponseV1
|
||||
*/
|
||||
public function withDocumentId($documentId)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->documentId = $documentId;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SessionDGRV1
|
||||
*/
|
||||
public function getSession()
|
||||
{
|
||||
return $this->session;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param SessionDGRV1 $session
|
||||
* @return DocumentGenerationResponseV1
|
||||
*/
|
||||
public function withSession($session)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->session = $session;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2024 DPD Polska Sp. z o.o.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* Licensed under the EUPL-1.2 or later.
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
*
|
||||
* You may obtain a copy of the Licence at:
|
||||
* https://joinup.ec.europa.eu/software/page/eupl
|
||||
* It is also bundled with this package in the file LICENSE.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an AS IS basis,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the Licence for the specific language governing permissions
|
||||
* and limitations under the Licence.
|
||||
*
|
||||
* @author DPD Polska Sp. z o.o.
|
||||
* @copyright 2024 DPD Polska Sp. z o.o.
|
||||
* @license https://joinup.ec.europa.eu/software/page/eupl
|
||||
*/
|
||||
|
||||
namespace DpdShipping\Api\DpdServices\Type;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class DocumentGenerationResponseV2
|
||||
{
|
||||
/**
|
||||
* @var DestinationDataList
|
||||
*/
|
||||
private $DestinationDataList;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $DocumentData;
|
||||
|
||||
/**
|
||||
* @var NonMatchingData
|
||||
*/
|
||||
private $nonMatchingDataList;
|
||||
|
||||
/**
|
||||
* @var SessionDGRV2
|
||||
*/
|
||||
private $Session;
|
||||
|
||||
/**
|
||||
* @return DestinationDataList
|
||||
*/
|
||||
public function getDestinationDataList()
|
||||
{
|
||||
return $this->DestinationDataList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DestinationDataList $DestinationDataList
|
||||
* @return DocumentGenerationResponseV2
|
||||
*/
|
||||
public function withDestinationDataList($DestinationDataList)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->DestinationDataList = $DestinationDataList;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDocumentData()
|
||||
{
|
||||
return $this->DocumentData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $DocumentData
|
||||
* @return DocumentGenerationResponseV2
|
||||
*/
|
||||
public function withDocumentData($DocumentData)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->DocumentData = $DocumentData;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return NonMatchingData
|
||||
*/
|
||||
public function getNonMatchingDataList()
|
||||
{
|
||||
return $this->nonMatchingDataList;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param NonMatchingData $nonMatchingDataList
|
||||
* @return DocumentGenerationResponseV2
|
||||
*/
|
||||
public function withNonMatchingDataList($nonMatchingDataList)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->nonMatchingDataList = $nonMatchingDataList;
|
||||
|
||||
return $new;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SessionDGRV2
|
||||
*/
|
||||
public function getSession()
|
||||
{
|
||||
return $this->Session;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param SessionDGRV2 $Session
|
||||
* @return DocumentGenerationResponseV2
|
||||
*/
|
||||
public function withSession($Session)
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->Session = $Session;
|
||||
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user