<?php

class ReportDownloadClient extends BackgroundBaseClient
{

    public function CreateDocumentPost($paramx)
    {		
        $method = "POST";
        $path = "/Site/Jaga/createdocumentpost";
        $params = [
            "headers" => [
                "Content-Type" => "application/json"
            ],
            "json" => $paramx
        ];

        //region LOG Definition
        $this->setApiName("ReportDownload-create_document_post");
        $this->setLogParams(["json" => $params]);
        //endregion
        
        return $this->execute($method, $path, $params, false);
    }

    public function IsDownloadSpiPDFAvailable($paramx)
    {
        $method = "GET";
        $path = "/Site/Jaga/IsDownloadSPIPdfAvailable";
        $params = [
            "headers" => [],
            "query" => $paramx
        ];

        //region LOG Definition
        $this->setApiName("ReportDownload-is_download_spi_pdf_available");
        //endregion
        
        return $this->execute($method, $path, $params, false);
    }

    public function DownloadSPIPdf($paramx)
    {
        $method = "GET";
        $path = "/Site/Jaga/DownloadSPIPdf";
        $params = [
            "headers" => [],
            "query" => $paramx
        ];

        //region LOG Definition
        $this->setApiName("ReportDownload-download_spi_pdf");
        //endregion

         return $this->executeBase64($method, $path, $params, false);
    }

    public function DownloadSPIPdfUmum($paramx)
    {
        $method = "GET";
        $path = "/Site/Jaga/DownloadSPIPdfUmum";
        $params = [
            "headers" => [],
            "query" => $paramx
        ];

        //region LOG Definition
        $this->setApiName("ReportDownload-download_spi_pdf_umum");
        //endregion

         return $this->executeBase64($method, $path, $params, false);
    }

    public function CreateReport($paramx)
    {
        $method = "GET";
        $path = "/Site/Jaga/GenerateReport";
        $params = [
            "headers" => [],
            "query" => $paramx
        ];

        //region LOG Definition
        $this->setApiName("ReportDownload-create_report");
        //endregion
        
        return $this->execute($method, $path, $params, false);
    }
}