mirror of
https://github.com/anikeen-com/id.git
synced 2026-03-14 06:06:18 +00:00
26 lines
625 B
PHP
26 lines
625 B
PHP
<?php
|
|
|
|
namespace Anikeen\Id\Resources;
|
|
|
|
use Anikeen\Id\Concerns\HasBillable;
|
|
use Anikeen\Id\Exceptions\RequestRequiresClientIdException;
|
|
use GuzzleHttp\Exception\GuzzleException;
|
|
|
|
/**
|
|
* @property string $id
|
|
*/
|
|
class Invoice extends BaseResource
|
|
{
|
|
use HasBillable;
|
|
|
|
/**
|
|
* Get temporary download url from given invoice.
|
|
*
|
|
* @throws RequestRequiresClientIdException
|
|
* @throws GuzzleException
|
|
*/
|
|
public function getInvoiceTemporaryUrl(): string
|
|
{
|
|
return $this->billable->request('PUT', sprintf('v1/invoices/%s', $this->id))->data->temporary_url;
|
|
}
|
|
} |