When using GetNearestLocations() in BE or DE and no results are found, an exception is thrown.
The message is:
Deserializable entity 'GetNearestLocationsResponse' contains unknown properties: '['Date','Error','RequestId']'
Example:
$postnl = new PostNL($customer, $apikey, $sandbox);
$result = $postNL->getNearestLocations(
(new GetNearestLocations())
->setCountrycode('DE')
->setLocation('70372')
);
This results in the following exception:
Deserializable entity 'GetNearestLocationsResponse' contains unknown properties: '['Date','Error','RequestId']' in /var/www/html/test/vendor/firstred/postnl-api-php/src/Entity/AbstractEntity.php:253
When using
GetNearestLocations()
in BE or DE and no results are found, an exception is thrown. The message is:Deserializable entity 'GetNearestLocationsResponse' contains unknown properties: '['Date','Error','RequestId']'
Example:
This results in the following exception:
Deserializable entity 'GetNearestLocationsResponse' contains unknown properties: '['Date','Error','RequestId']' in /var/www/html/test/vendor/firstred/postnl-api-php/src/Entity/AbstractEntity.php:253
The reponse returned by the PostNL API is