2019-05-09 23:50:21 +02:00
|
|
|
<?php
|
2019-05-11 05:32:07 +02:00
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2020-01-07 01:13:47 +01:00
|
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
2019-05-09 23:50:21 +02:00
|
|
|
|
|
|
|
namespace App\Jobs\Payment;
|
|
|
|
|
2019-12-27 01:28:36 +01:00
|
|
|
use App\Libraries\MultiDB;
|
|
|
|
use App\Models\Company;
|
2019-05-09 23:50:21 +02:00
|
|
|
use App\Models\Payment;
|
|
|
|
use App\Repositories\InvoiceRepository;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class PaymentNotification implements ShouldQueue
|
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
|
|
|
|
public $payment;
|
|
|
|
|
2019-12-27 01:28:36 +01:00
|
|
|
private $company;
|
2019-05-09 23:50:21 +02:00
|
|
|
/**
|
|
|
|
* Create a new job instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2019-12-27 01:28:36 +01:00
|
|
|
public function __construct(Payment $payment, Company $company)
|
2019-05-09 23:50:21 +02:00
|
|
|
{
|
|
|
|
$this->payment = $payment;
|
|
|
|
|
2019-12-27 01:28:36 +01:00
|
|
|
$this->company = $company;
|
2019-05-09 23:50:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Execute the job.
|
|
|
|
*
|
2019-12-30 22:59:12 +01:00
|
|
|
*
|
2019-05-09 23:50:21 +02:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
|
|
|
|
//notification for the payment.
|
|
|
|
//
|
|
|
|
//could mean a email, sms, slack, push
|
|
|
|
}
|
|
|
|
}
|