update billable

Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
2025-04-28 17:26:02 +02:00
parent 21946e3a22
commit d9a330222b
7 changed files with 173 additions and 6 deletions

View File

@@ -35,14 +35,14 @@ trait ManagesInvoices
}
/**
* Get download url from given invoice.
* Get temporary download url from given invoice.
*
* @param string $invoiceId The invoice ID
* @throws RequestRequiresClientIdException
* @throws GuzzleException
*/
public function getInvoiceDownloadUrl(string $invoiceId): string
public function getInvoiceTemporaryUrl(string $invoiceId): string
{
return $this->request('PUT', sprintf('v1/invoices/%s', $invoiceId))->data->download_url;
return $this->request('PUT', sprintf('v1/invoices/%s', $invoiceId))->data->temporary_url;
}
}