/**
  * {@inheritDoc}
  *
  * @throws Exception\ResponseException If no document statuses are returned
  */
 public function validate()
 {
     if (!isset($this->getData()->DocumentStatuses) || empty($this->getData()->DocumentStatuses)) {
         $exception = new Exception\ResponseException('No document statuses returned');
         $exception->setResponse($this);
         throw $exception;
     }
 }
 /**
  * {@inheritDoc}
  *
  * @throws Exception\ResponseException If no tracking code is returned
  * @throws Exception\ResponseException If no label data is returned
  */
 public function validate()
 {
     if (!isset($this->getData()->CompletedShipmentDetail->CompletedPackageDetails->TrackingIds->TrackingNumber)) {
         $exception = new Exception\ResponseException('No tracking code returned');
         $exception->setResponse($this);
         throw $exception;
     }
     if (!isset($this->getData()->CompletedShipmentDetail->CompletedPackageDetails->Label->Parts->Image)) {
         $exception = new Exception\ResponseException('No label data returned');
         $exception->setResponse($this);
         throw $exception;
     }
 }