From 98752fa5bc8f8d766ada74befa262dd3699d78cd Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 16 Oct 2025 14:49:31 -0300 Subject: [PATCH] Ajuste do Metodo downloadPdf para ter a possibilidade de usar o metodo POST e REGERAR o PDF da nfse --- src/Nfse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'