2020-02-15 10:01:15 +01:00
|
|
|
<?php
|
2020-07-01 03:06:40 +02:00
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
2020-07-01 03:06:40 +02:00
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2024-04-12 06:15:41 +02:00
|
|
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
2020-07-01 03:06:40 +02:00
|
|
|
*
|
2021-06-16 08:58:16 +02:00
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2020-07-01 03:06:40 +02:00
|
|
|
*/
|
|
|
|
|
2020-02-15 10:01:15 +01:00
|
|
|
namespace App\Services\Credit;
|
|
|
|
|
2023-10-26 03:25:56 +02:00
|
|
|
use App\Jobs\Entity\CreateRawPdf;
|
2023-10-26 04:47:34 +02:00
|
|
|
use App\Models\CreditInvitation;
|
2020-02-17 10:37:44 +01:00
|
|
|
use App\Services\AbstractService;
|
2020-02-15 10:01:15 +01:00
|
|
|
|
2020-02-17 10:37:44 +01:00
|
|
|
class GetCreditPdf extends AbstractService
|
2020-02-15 10:01:15 +01:00
|
|
|
{
|
2023-10-26 03:25:56 +02:00
|
|
|
public function __construct(public CreditInvitation $invitation)
|
2020-02-15 10:01:15 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-02-18 21:56:21 +01:00
|
|
|
public function run()
|
2020-02-15 10:01:15 +01:00
|
|
|
{
|
2020-03-06 14:41:15 +01:00
|
|
|
|
2023-10-26 03:25:56 +02:00
|
|
|
return (new CreateRawPdf($this->invitation))->handle();
|
2020-09-06 11:38:10 +02:00
|
|
|
|
2020-02-15 10:01:15 +01:00
|
|
|
}
|
|
|
|
}
|