public function getDownloadUrl($type = "json")
    {
        switch ($type) {
            case "json":
                return $this->data['downloadJson'];
            case "debug":
                return $this->data['downloadUrls'];
            case "csv":
                return rtrim($this->data['downloadJson'], '.json') . '.csv';
            default:
                break;
        }

        throw new \InvalidArgumentException(
            'Only json, debug, or csv download link available. You asked for: '
            . $type);
    }