diff --git a/src/DTOs/Invoice/Pdf.php b/src/DTOs/Invoice/Pdf.php index cc90a85..b6f9355 100644 --- a/src/DTOs/Invoice/Pdf.php +++ b/src/DTOs/Invoice/Pdf.php @@ -10,10 +10,8 @@ class Pdf extends Resource { public ?string $download; - public function getPdfContentResponse(): EconomicResponse + public function getPdfContent(): EconomicResponse { - $url = $this->download; - - return EconomicApiService::get($url); + return EconomicApiService::get($this->download)->getBody(); } }