mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-01 23:07:35 -04:00
18 lines
476 B
PHP
18 lines
476 B
PHP
<?php namespace App\Ninja\Intents;
|
|
|
|
use App\Models\Invoice;
|
|
use App\Libraries\Skype\SkypeResponse;
|
|
|
|
class DownloadInvoiceIntent extends InvoiceIntent
|
|
{
|
|
public function process()
|
|
{
|
|
$invoice = $this->invoice();
|
|
|
|
$message = trans('texts.' . $invoice->getEntityType()) . ' ' . $invoice->invoice_number;
|
|
$message = link_to('/download/' . $invoice->invitations[0]->invitation_key, $message);
|
|
|
|
return SkypeResponse::message($message);
|
|
}
|
|
}
|