public function getStatus()
    {
        if ($this->entity && $this->entity->getStatus()) {
            return new ApiOrderStatus($this->entity->getStatus(), $this->locale);
        } else {
            return null;
        }
    }