When retrieving the state of the shipment with barcode we get the following deserialize error:
Deserializable entityCurrentStatusResponseShipmentcontains unknown properties: ['Amount']
It is triggered by this function:
$shipmentDetails = $this->client->getShippingStatusByBarcode($shipment->track_trace_code);
On the CurrentStatusResponseShipment class is amounts defined but the request response only contains amount. Response returned by PostNL API before deserialize;
This error will only occur for me when retrieving status of an insured shipment. I can make a PR and change the amounts to amount on the CurrentStatusResponseShipment class, but i don't know if that has any impact on other users off this package.
If I need to provide more data, please let me know.
When retrieving the state of the shipment with barcode we get the following deserialize error:
Deserializable entity
CurrentStatusResponseShipmentcontains unknown properties: ['Amount']
It is triggered by this function:
$shipmentDetails = $this->client->getShippingStatusByBarcode($shipment->track_trace_code);
On the CurrentStatusResponseShipment class is amounts defined but the request response only contains amount. Response returned by PostNL API before deserialize;
This error will only occur for me when retrieving status of an insured shipment. I can make a PR and change the
amounts
toamount
on theCurrentStatusResponseShipment
class, but i don't know if that has any impact on other users off this package.If I need to provide more data, please let me know.