|
|
|
@ -29,12 +29,13 @@ class Tracking_HelenaExpress {
|
|
|
|
|
|
|
|
|
|
$info->setCode($barcode->getCode());
|
|
|
|
|
$info->setCarrier($status->info->carrier);
|
|
|
|
|
$info->setService(new Service("", "Local Courier"));
|
|
|
|
|
|
|
|
|
|
if (!empty($status->events)) {
|
|
|
|
|
$current_status = new TrackingEntry(
|
|
|
|
|
TrackingStatus::stringToStatus($status->events[0]->eventtype),
|
|
|
|
|
$status->events[0]->text,
|
|
|
|
|
$status->events[0]->timestring
|
|
|
|
|
$status->events[0]->timestamp
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$info->setCurrentStatus($current_status);
|
|
|
|
@ -42,7 +43,7 @@ class Tracking_HelenaExpress {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($status->events as $event) {
|
|
|
|
|
$info->appendHistoryEntry(new TrackingEntry(TrackingStatus::stringToStatus($event->eventtype), $event->text, $event->timestring));
|
|
|
|
|
$info->appendHistoryEntry(new TrackingEntry(TrackingStatus::stringToStatus($event->eventtype), $event->text, $event->timestamp));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $info;
|
|
|
|
|