Skip to content

Commit

Permalink
✨Rename to getPdfContent and return body
Browse files Browse the repository at this point in the history
  • Loading branch information
larasmorningtrain committed Mar 19, 2024
1 parent 71230eb commit 61521d5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/DTOs/Invoice/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 61521d5

Please sign in to comment.