diff --git a/src/modules/mo/mo_dhl/Application/Controller/Admin/ModuleConfiguration.php b/src/modules/mo/mo_dhl/Application/Controller/Admin/ModuleConfiguration.php
index d8fbbc3f..2c547bfc 100644
--- a/src/modules/mo/mo_dhl/Application/Controller/Admin/ModuleConfiguration.php
+++ b/src/modules/mo/mo_dhl/Application/Controller/Admin/ModuleConfiguration.php
@@ -56,7 +56,7 @@ class ModuleConfiguration extends ModuleConfiguration_parent
'PAKET' => 'DHL PAKET',
'PAKET_INTERNATIONAL' => 'PAKET INTERNATIONAL',
'EUROPAKET' => 'DHL EUROPAKET',
- 'WARENPOST' => 'Warenpost',
+ 'KLEINPAKET' => 'DHL Kleinpaket',
'WARENPOST_INTERNATIONAL' => 'Warenpost International',
];
@@ -67,7 +67,7 @@ class ModuleConfiguration extends ModuleConfiguration_parent
'DHL PAKET' => 'PAKET',
'PAKET INTERNATIONAL' => 'PAKET_INTERNATIONAL',
'DHL EUROPAKET' => 'EUROPAKET',
- 'Warenpost' => 'WARENPOST',
+ 'DHL Kleinpaket' => 'KLEINPAKET',
'Warenpost International' => 'WARENPOST_INTERNATIONAL',
];
diff --git a/src/modules/mo/mo_dhl/Application/views/admin/de/module_options.php b/src/modules/mo/mo_dhl/Application/views/admin/de/module_options.php
index 41cae974..72db7772 100644
--- a/src/modules/mo/mo_dhl/Application/views/admin/de/module_options.php
+++ b/src/modules/mo/mo_dhl/Application/views/admin/de/module_options.php
@@ -17,7 +17,7 @@
'SHOP_MODULE_mo_dhl__authentication_check' => '',
'SHOP_MODULE_GROUP_mo_dhl__portokasse' => 'Portokasse',
- 'SHOP_MODULE_mo_dhl__portokasse_user' => 'Portokasse Benutzername (für Internetmarke und Warenpost)',
+ 'SHOP_MODULE_mo_dhl__portokasse_user' => 'Portokasse Benutzername (für Internetmarke)',
'HELP_SHOP_MODULE_mo_dhl__portokasse_user' => 'Ihre E-Mail Adresse für die Portokasse. Noch kein Kunde? Dann registrieren Sie sich hier.',
'SHOP_MODULE_mo_dhl__portokasse_password' => 'Portokasse Passwort',
'HELP_SHOP_MODULE_mo_dhl__portokasse_password' => 'Ihr Passwort für die Portokasse.',
diff --git a/src/modules/mo/mo_dhl/Application/views/admin/en/module_options.php b/src/modules/mo/mo_dhl/Application/views/admin/en/module_options.php
index 59e5e222..f11990fd 100644
--- a/src/modules/mo/mo_dhl/Application/views/admin/en/module_options.php
+++ b/src/modules/mo/mo_dhl/Application/views/admin/en/module_options.php
@@ -18,7 +18,7 @@
'SHOP_MODULE_mo_dhl__authentication_check' => '',
'SHOP_MODULE_GROUP_mo_dhl__portokasse' => 'Portokasse',
- 'SHOP_MODULE_mo_dhl__portokasse_user' => 'Portokasse Username (for Internetmarke and Warenpost)',
+ 'SHOP_MODULE_mo_dhl__portokasse_user' => 'Portokasse Username (for Internetmarke)',
'HELP_SHOP_MODULE_mo_dhl__portokasse_user' => 'Your E-Mail Adress for the Portokasse. Not a customer yet? Then register here.',
'SHOP_MODULE_mo_dhl__portokasse_password' => 'Portokasse Password',
'HELP_SHOP_MODULE_mo_dhl__portokasse_password' => 'Your Password for the Portokasse.',
diff --git a/src/modules/mo/mo_dhl/Shipment/Process.php b/src/modules/mo/mo_dhl/Shipment/Process.php
index 51d67ce3..58500832 100644
--- a/src/modules/mo/mo_dhl/Shipment/Process.php
+++ b/src/modules/mo/mo_dhl/Shipment/Process.php
@@ -29,9 +29,9 @@ class Process
const EUROPAKET = 'EUROPAKET';
/**
- * @var string Warenpost national
+ * @var string DHL Kleinpaket
*/
- const WARENPOST = 'WARENPOST';
+ const KLEINPAKET = 'KLEINPAKET';
/**
* string Internetmarke
@@ -180,7 +180,7 @@ class Process
self::SERVICE_GO_GREEN,
self::SERVICE_ADDITIONAL_INSURANCE,
],
- self::WARENPOST => [
+ self::KLEINPAKET => [
self::SERVICE_PREFERRED_NEIGHBOUR,
self::SERVICE_PREFERRED_LOCATION,
self::SERVICE_NOTIFICATION,
@@ -258,7 +258,7 @@ public function __toString()
self::PAKET => '01',
self::PAKET_INTERNATIONAL => '53',
self::EUROPAKET => '54',
- self::WARENPOST => '62',
+ self::KLEINPAKET => '62',
self::WARENPOST_INTERNATIONAL => '66',
self::RETOURE_FUER_PAKET => '07',
];
@@ -428,7 +428,7 @@ public function getServiceIdentifier()
self::PAKET => 'V01PAK',
self::PAKET_INTERNATIONAL => 'V53WPAK',
self::EUROPAKET => 'V54EPAK',
- self::WARENPOST => 'V62WP',
+ self::KLEINPAKET => 'V62KP',
self::WARENPOST_INTERNATIONAL => 'V66WPI',
self::RETOURE_FUER_PAKET => 'V01PAK',
];
@@ -480,7 +480,7 @@ public static function getAvailableProcesses()
'PAKET' => 'DHL Paket',
'PAKET_INTERNATIONAL' => 'DHL Paket International',
'EUROPAKET' => 'DHL Europaket (B2B)',
- 'WARENPOST' => 'Warenpost national',
+ 'KLEINPAKET' => 'DHL Kleinpaket',
'INTERNETMARKE' => 'Internetmarke',
'WARENPOST_INTERNATIONAL'=> 'Warenpost International',
];
diff --git a/tests/Api/ParcelShipping/BaseParcelShippingTest.php b/tests/Api/ParcelShipping/BaseParcelShippingTest.php
index 6ad55927..89979fbd 100644
--- a/tests/Api/ParcelShipping/BaseParcelShippingTest.php
+++ b/tests/Api/ParcelShipping/BaseParcelShippingTest.php
@@ -45,7 +45,7 @@ protected function getUniqueShipmentId()
* @param string $product
* @return Shipment
*/
- protected function createShipmentToGermany($product = 'V01PAK'): Shipment
+ protected function createShipmentToGermany($product = 'V62KP'): Shipment
{
$receiver = [
'name1' => 'a b',
@@ -65,11 +65,11 @@ protected function createShipmentToGermany($product = 'V01PAK'): Shipment
$shipmentDetails = new ShipmentDetails();
$weight = new Weight();
$weight->setUom('kg');
- $weight->setValue(12);
+ $weight->setValue(0.8);
$shipmentDetails->setWeight($weight);
$shipment->setDetails($shipmentDetails);
$shipment->setCreationSoftware(CsvExporter::CREATOR_TAG);
- $shipment->setBillingNumber(new BillingNumber(Ekp::build('3333333333'), Process::build(Process::PAKET), Participation::build('01')));
+ $shipment->setBillingNumber(new BillingNumber(Ekp::build('3333333333'), Process::build(Process::KLEINPAKET), Participation::build('01')));
$shipment->setProduct($product);
$shipment->setRefNo('Bestellnr. 123');
$shipment->setShipDate((new \DateTime()));
diff --git a/tests/Api/ParcelShipping/ValidateShipmentTest.php b/tests/Api/ParcelShipping/ValidateShipmentTest.php
index bdf72b5e..25bdc25e 100644
--- a/tests/Api/ParcelShipping/ValidateShipmentTest.php
+++ b/tests/Api/ParcelShipping/ValidateShipmentTest.php
@@ -30,7 +30,7 @@ public function testValidateShipment()
$response = $this->buildParcelShipping()->createOrders($request, $query, [], \Mediaopt\DHL\Api\MyAccount\Runtime\Client\Client::FETCH_RESPONSE);
$this->assertInstanceOf(ResponseInterface::class, $response);
$payload = \json_decode($response->getBody(), true);
- $this->assertEquals(200, $response->getStatusCode(), $payload['status']['detail'] ?? $payload['detail']);
+ $this->assertEquals(200, $response->getStatusCode(), $payload['items'][0]['validationMessages'][0]['validationMessage'] ?? $payload['status']['detail'] ?? $payload['detail']);
}
public function testValidateShipmentOutsideGermany()
diff --git a/tests/Shipment/ProcessTest.php b/tests/Shipment/ProcessTest.php
index 23909c0e..7bdb2427 100644
--- a/tests/Shipment/ProcessTest.php
+++ b/tests/Shipment/ProcessTest.php
@@ -18,14 +18,14 @@ class ProcessTest extends TestCase
'V86PARCEL',
'V87PARCEL',
'V82PARCEL',
- 'V62WP',
+ 'V62KP',
];
const PROCESS_IDENTIFIERS = [
Process::PAKET,
Process::PAKET_INTERNATIONAL,
Process::EUROPAKET,
- Process::WARENPOST,
+ Process::KLEINPAKET,
];
const ADDITIONAL_SERVICE_IDENTIFIERS = [
@@ -105,17 +105,17 @@ public function testThatAnUnknownServiceHasNoProducts()
$this->assertEmpty(Process::getProcessesSupportingService('UNKNOWN_SERVICE'));
}
- public function testThatWarenpostSupportsCertainServices()
+ public function testThatKleinpaketSupportsCertainServices()
{
- $warenpost = Process::build(Process::WARENPOST);
- $this->assertTrue($warenpost->supportsGoGreen());
- $this->assertTrue($warenpost->supportsPreferredLocation());
- $this->assertTrue($warenpost->supportsPreferredNeighbour());
+ $kleinpaket = Process::build(Process::KLEINPAKET);
+ $this->assertTrue($kleinpaket->supportsGoGreen());
+ $this->assertTrue($kleinpaket->supportsPreferredLocation());
+ $this->assertTrue($kleinpaket->supportsPreferredNeighbour());
}
- public function testThatWarenpostDoesNotSupportCertainServices()
+ public function testThatKleinpaketDoesNotSupportCertainServices()
{
- $warenpost = Process::build(Process::WARENPOST);
- $this->assertFalse($warenpost->supportsPreferredDay());
+ $kleinpaket = Process::build(Process::KLEINPAKET);
+ $this->assertFalse($kleinpaket->supportsPreferredDay());
}
}