diff --git a/src/Nfse.php b/src/Nfse.php index 17dd378..2e8118a 100644 --- a/src/Nfse.php +++ b/src/Nfse.php @@ -372,7 +372,7 @@ public function download($id) return $this->downloadXml($id); } - public function downloadPdf($id) + public function downloadPdf($id, $method = 'GET') { $communication = $this->getCallApiInstance($this->configuration); if (!$this->configuration->getNfseDownloadDirectory()) { @@ -380,7 +380,7 @@ public function downloadPdf($id) } return $communication->download( - 'GET', + $method, "/nfse/pdf/${id}", null, $this->configuration->getNfseDownloadDirectory() . '/' . $id . '.pdf'