mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add Events
This commit is contained in:
parent
4cf01d7358
commit
5282b6e77d
29
app/Events/Client/ClientWasArchived.php
Normal file
29
app/Events/Client/ClientWasArchived.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Client;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ClientWasArchived.
|
||||||
|
*/
|
||||||
|
class ClientWasArchived extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Client
|
||||||
|
*/
|
||||||
|
public $client;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Client $client
|
||||||
|
*/
|
||||||
|
public function __construct(Client $client)
|
||||||
|
{
|
||||||
|
$this->client = $client;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Client/ClientWasCreated.php
Normal file
29
app/Events/Client/ClientWasCreated.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Client;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ClientWasCreated.
|
||||||
|
*/
|
||||||
|
class ClientWasCreated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Client
|
||||||
|
*/
|
||||||
|
public $client;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Client $client
|
||||||
|
*/
|
||||||
|
public function __construct(Client $client)
|
||||||
|
{
|
||||||
|
$this->client = $client;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Client/ClientWasDeleted.php
Normal file
29
app/Events/Client/ClientWasDeleted.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Client;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ClientWasDeleted.
|
||||||
|
*/
|
||||||
|
class ClientWasDeleted extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Client
|
||||||
|
*/
|
||||||
|
public $client;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Client $client
|
||||||
|
*/
|
||||||
|
public function __construct(Client $client)
|
||||||
|
{
|
||||||
|
$this->client = $client;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Client/ClientWasRestored.php
Normal file
29
app/Events/Client/ClientWasRestored.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Client;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ClientWasRestored.
|
||||||
|
*/
|
||||||
|
class ClientWasRestored extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Client
|
||||||
|
*/
|
||||||
|
public $client;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Client $client
|
||||||
|
*/
|
||||||
|
public function __construct(Client $client)
|
||||||
|
{
|
||||||
|
$this->client = $client;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Client/ClientWasUpdated.php
Normal file
29
app/Events/Client/ClientWasUpdated.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Client;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ClientWasUpdated.
|
||||||
|
*/
|
||||||
|
class ClientWasUpdated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Client
|
||||||
|
*/
|
||||||
|
public $client;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Client $client
|
||||||
|
*/
|
||||||
|
public function __construct(Client $client)
|
||||||
|
{
|
||||||
|
$this->client = $client;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Expense/ExpenseWasArchived.php
Normal file
29
app/Events/Expense/ExpenseWasArchived.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Expense;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ExpenseWasArchived.
|
||||||
|
*/
|
||||||
|
class ExpenseWasArchived extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Expense
|
||||||
|
*/
|
||||||
|
public $expense;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Expense $expense
|
||||||
|
*/
|
||||||
|
public function __construct(Expense $expense)
|
||||||
|
{
|
||||||
|
$this->expense = $expense;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Expense/ExpenseWasCreated.php
Normal file
29
app/Events/Expense/ExpenseWasCreated.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Expense;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ExpenseWasCreated.
|
||||||
|
*/
|
||||||
|
class ExpenseWasCreated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Expense
|
||||||
|
*/
|
||||||
|
public $expense;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Expense $expense
|
||||||
|
*/
|
||||||
|
public function __construct(Expense $expense)
|
||||||
|
{
|
||||||
|
$this->expense = $expense;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Expense/ExpenseWasDeleted.php
Normal file
29
app/Events/Expense/ExpenseWasDeleted.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Expense;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ExpenseWasDeleted.
|
||||||
|
*/
|
||||||
|
class ExpenseWasDeleted extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Expense
|
||||||
|
*/
|
||||||
|
public $expense;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Expense $expense
|
||||||
|
*/
|
||||||
|
public function __construct(Expense $expense)
|
||||||
|
{
|
||||||
|
$this->expense = $expense;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Expense/ExpenseWasRestored.php
Normal file
29
app/Events/Expense/ExpenseWasRestored.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Expense;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ExpenseWasRestored.
|
||||||
|
*/
|
||||||
|
class ExpenseWasRestored extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Expense
|
||||||
|
*/
|
||||||
|
public $expense;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Expense $expense
|
||||||
|
*/
|
||||||
|
public function __construct(Expense $expense)
|
||||||
|
{
|
||||||
|
$this->expense = $expense;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Expense/ExpenseWasUpdated.php
Normal file
29
app/Events/Expense/ExpenseWasUpdated.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Expense;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ExpenseWasUpdated.
|
||||||
|
*/
|
||||||
|
class ExpenseWasUpdated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Expense
|
||||||
|
*/
|
||||||
|
public $expense;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Expense $expense
|
||||||
|
*/
|
||||||
|
public function __construct(Expense $expense)
|
||||||
|
{
|
||||||
|
$this->expense = $expense;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Invoice/InvoiceWasArchived.php
Normal file
29
app/Events/Invoice/InvoiceWasArchived.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Invoice;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class InvoiceWasArchived.
|
||||||
|
*/
|
||||||
|
class InvoiceWasArchived extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Invoice
|
||||||
|
*/
|
||||||
|
public $invoice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Invoice $invoice
|
||||||
|
*/
|
||||||
|
public function __construct(Invoice $invoice)
|
||||||
|
{
|
||||||
|
$this->invoice = $invoice;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Invoice/InvoiceWasCreated.php
Normal file
29
app/Events/Invoice/InvoiceWasCreated.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Invoice;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class InvoiceWasCreated.
|
||||||
|
*/
|
||||||
|
class InvoiceWasCreated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Invoice
|
||||||
|
*/
|
||||||
|
public $invoice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Invoice $invoice
|
||||||
|
*/
|
||||||
|
public function __construct(Invoice $invoice)
|
||||||
|
{
|
||||||
|
$this->invoice = $invoice;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Invoice/InvoiceWasDeleted.php
Normal file
29
app/Events/Invoice/InvoiceWasDeleted.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Invoice;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class InvoiceWasDeleted.
|
||||||
|
*/
|
||||||
|
class InvoiceWasDeleted extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Invoice
|
||||||
|
*/
|
||||||
|
public $invoice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Invoice $invoice
|
||||||
|
*/
|
||||||
|
public function __construct(Invoice $invoice)
|
||||||
|
{
|
||||||
|
$this->invoice = $invoice;
|
||||||
|
}
|
||||||
|
}
|
35
app/Events/Invoice/InvoiceWasEmailed.php
Normal file
35
app/Events/Invoice/InvoiceWasEmailed.php
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Invoice;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class InvoiceWasEmailed.
|
||||||
|
*/
|
||||||
|
class InvoiceWasEmailed extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Invoice
|
||||||
|
*/
|
||||||
|
public $invoice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $notes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Invoice $invoice
|
||||||
|
*/
|
||||||
|
public function __construct(Invoice $invoice, $notes)
|
||||||
|
{
|
||||||
|
$this->invoice = $invoice;
|
||||||
|
$this->notes = $notes;
|
||||||
|
}
|
||||||
|
}
|
33
app/Events/Invoice/InvoiceWasRestored.php
Normal file
33
app/Events/Invoice/InvoiceWasRestored.php
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Invoice;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class InvoiceWasRestored.
|
||||||
|
*/
|
||||||
|
class InvoiceWasRestored extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Invoice
|
||||||
|
*/
|
||||||
|
public $invoice;
|
||||||
|
|
||||||
|
public $fromDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Invoice $invoice
|
||||||
|
* @param $fromDeleted
|
||||||
|
*/
|
||||||
|
public function __construct(Invoice $invoice, $fromDeleted)
|
||||||
|
{
|
||||||
|
$this->invoice = $invoice;
|
||||||
|
$this->fromDeleted = $fromDeleted;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Invoice/InvoiceWasUpdated.php
Normal file
29
app/Events/Invoice/InvoiceWasUpdated.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Invoice;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class InvoiceWasUpdated.
|
||||||
|
*/
|
||||||
|
class InvoiceWasUpdated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Invoice
|
||||||
|
*/
|
||||||
|
public $invoice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Invoice $invoice
|
||||||
|
*/
|
||||||
|
public function __construct(Invoice $invoice)
|
||||||
|
{
|
||||||
|
$this->invoice = $invoice;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Payment/PaymentCompleted.php
Normal file
29
app/Events/Payment/PaymentCompleted.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Payment;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class PaymentCompleted.
|
||||||
|
*/
|
||||||
|
class PaymentCompleted extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Payment
|
||||||
|
*/
|
||||||
|
public $payment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Payment $payment
|
||||||
|
*/
|
||||||
|
public function __construct(Payment $payment)
|
||||||
|
{
|
||||||
|
$this->payment = $payment;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Payment/PaymentFailed.php
Normal file
29
app/Events/Payment/PaymentFailed.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Payment;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class PaymentFailed.
|
||||||
|
*/
|
||||||
|
class PaymentFailed extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Payment
|
||||||
|
*/
|
||||||
|
public $payment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Payment $payment
|
||||||
|
*/
|
||||||
|
public function __construct(Payment $payment)
|
||||||
|
{
|
||||||
|
$this->payment = $payment;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Payment/PaymentWasArchived.php
Normal file
29
app/Events/Payment/PaymentWasArchived.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Payment;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class PaymentWasArchived.
|
||||||
|
*/
|
||||||
|
class PaymentWasArchived extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Payment
|
||||||
|
*/
|
||||||
|
public $payment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Payment $payment
|
||||||
|
*/
|
||||||
|
public function __construct(Payment $payment)
|
||||||
|
{
|
||||||
|
$this->payment = $payment;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Payment/PaymentWasCreated.php
Normal file
29
app/Events/Payment/PaymentWasCreated.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Payment;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class PaymentWasCreated.
|
||||||
|
*/
|
||||||
|
class PaymentWasCreated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Payment
|
||||||
|
*/
|
||||||
|
public $payment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Payment $payment
|
||||||
|
*/
|
||||||
|
public function __construct(Payment $payment)
|
||||||
|
{
|
||||||
|
$this->payment = $payment;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Payment/PaymentWasDeleted.php
Normal file
29
app/Events/Payment/PaymentWasDeleted.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Payment;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class PaymentWasDeleted.
|
||||||
|
*/
|
||||||
|
class PaymentWasDeleted extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Payment
|
||||||
|
*/
|
||||||
|
public $payment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Payment $payment
|
||||||
|
*/
|
||||||
|
public function __construct(Payment $payment)
|
||||||
|
{
|
||||||
|
$this->payment = $payment;
|
||||||
|
}
|
||||||
|
}
|
33
app/Events/Payment/PaymentWasRefunded.php
Normal file
33
app/Events/Payment/PaymentWasRefunded.php
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Payment;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class PaymentWasRefunded.
|
||||||
|
*/
|
||||||
|
class PaymentWasRefunded extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Payment
|
||||||
|
*/
|
||||||
|
public $payment;
|
||||||
|
|
||||||
|
public $refundAmount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Payment $payment
|
||||||
|
* @param $refundAmount
|
||||||
|
*/
|
||||||
|
public function __construct(Payment $payment, $refundAmount)
|
||||||
|
{
|
||||||
|
$this->payment = $payment;
|
||||||
|
$this->refundAmount = $refundAmount;
|
||||||
|
}
|
||||||
|
}
|
32
app/Events/Payment/PaymentWasRestored.php
Normal file
32
app/Events/Payment/PaymentWasRestored.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Payment;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class PaymentWasRestored.
|
||||||
|
*/
|
||||||
|
class PaymentWasRestored extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Payment
|
||||||
|
*/
|
||||||
|
public $payment;
|
||||||
|
public $fromDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Payment $payment
|
||||||
|
* @param $fromDeleted
|
||||||
|
*/
|
||||||
|
public function __construct(Payment $payment, $fromDeleted)
|
||||||
|
{
|
||||||
|
$this->payment = $payment;
|
||||||
|
$this->fromDeleted = $fromDeleted;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Payment/PaymentWasVoided.php
Normal file
29
app/Events/Payment/PaymentWasVoided.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Payment;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class PaymentWasVoided.
|
||||||
|
*/
|
||||||
|
class PaymentWasVoided extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Payment
|
||||||
|
*/
|
||||||
|
public $payment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Payment $payment
|
||||||
|
*/
|
||||||
|
public function __construct(Payment $payment)
|
||||||
|
{
|
||||||
|
$this->payment = $payment;
|
||||||
|
}
|
||||||
|
}
|
32
app/Events/Product/ProductWasCreated.php
Normal file
32
app/Events/Product/ProductWasCreated.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Product;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class ProductWasCreated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Product
|
||||||
|
*/
|
||||||
|
public $product;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array
|
||||||
|
**/
|
||||||
|
public $input;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function __construct(Product $product, $input = null)
|
||||||
|
{
|
||||||
|
$this->product = $product;
|
||||||
|
$this->input = $input;
|
||||||
|
}
|
||||||
|
}
|
26
app/Events/Product/ProductWasDeleted.php
Normal file
26
app/Events/Product/ProductWasDeleted.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Product;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class ProductWasDeleted extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Product
|
||||||
|
*/
|
||||||
|
public $product;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function __construct(Product $product)
|
||||||
|
{
|
||||||
|
$this->product = $product;
|
||||||
|
}
|
||||||
|
}
|
32
app/Events/Product/ProductWasUpdated.php
Normal file
32
app/Events/Product/ProductWasUpdated.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Product;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class ProductWasUpdated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Product
|
||||||
|
*/
|
||||||
|
public $product;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array
|
||||||
|
**/
|
||||||
|
public $input;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function __construct(Product $product, $input = null)
|
||||||
|
{
|
||||||
|
$this->product = $product;
|
||||||
|
$this->input = $input;
|
||||||
|
}
|
||||||
|
}
|
21
app/Events/Quote/QuoteWasArchived.php
Normal file
21
app/Events/Quote/QuoteWasArchived.php
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class QuoteWasArchived extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
public $quote;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param $quote
|
||||||
|
*/
|
||||||
|
public function __construct($quote)
|
||||||
|
{
|
||||||
|
$this->quote = $quote;
|
||||||
|
}
|
||||||
|
}
|
24
app/Events/Quote/QuoteWasCreated.php
Normal file
24
app/Events/Quote/QuoteWasCreated.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class QuoteWasCreated.
|
||||||
|
*/
|
||||||
|
class QuoteWasCreated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
public $quote;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param $quote
|
||||||
|
*/
|
||||||
|
public function __construct($quote)
|
||||||
|
{
|
||||||
|
$this->quote = $quote;
|
||||||
|
}
|
||||||
|
}
|
24
app/Events/Quote/QuoteWasDeleted.php
Normal file
24
app/Events/Quote/QuoteWasDeleted.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class QuoteWasDeleted.
|
||||||
|
*/
|
||||||
|
class QuoteWasDeleted extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
public $quote;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param $quote
|
||||||
|
*/
|
||||||
|
public function __construct($quote)
|
||||||
|
{
|
||||||
|
$this->quote = $quote;
|
||||||
|
}
|
||||||
|
}
|
30
app/Events/Quote/QuoteWasEmailed.php
Normal file
30
app/Events/Quote/QuoteWasEmailed.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class QuoteWasEmailed.
|
||||||
|
*/
|
||||||
|
class QuoteWasEmailed extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
public $quote;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $notes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param $quote
|
||||||
|
*/
|
||||||
|
public function __construct($quote, $notes)
|
||||||
|
{
|
||||||
|
$this->quote = $quote;
|
||||||
|
$this->notes = $notes;
|
||||||
|
}
|
||||||
|
}
|
24
app/Events/Quote/QuoteWasRestored.php
Normal file
24
app/Events/Quote/QuoteWasRestored.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class QuoteWasRestored.
|
||||||
|
*/
|
||||||
|
class QuoteWasRestored extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
public $quote;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param $quote
|
||||||
|
*/
|
||||||
|
public function __construct($quote)
|
||||||
|
{
|
||||||
|
$this->quote = $quote;
|
||||||
|
}
|
||||||
|
}
|
24
app/Events/Quote/QuoteWasUpdated.php
Normal file
24
app/Events/Quote/QuoteWasUpdated.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class QuoteWasUpdated.
|
||||||
|
*/
|
||||||
|
class QuoteWasUpdated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
public $quote;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param $quote
|
||||||
|
*/
|
||||||
|
public function __construct($quote)
|
||||||
|
{
|
||||||
|
$this->quote = $quote;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Task/TaskWasArchived.php
Normal file
29
app/Events/Task/TaskWasArchived.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Task;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TaskWasArchived.
|
||||||
|
*/
|
||||||
|
class TaskWasArchived extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Task
|
||||||
|
*/
|
||||||
|
public $task;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Task $task
|
||||||
|
*/
|
||||||
|
public function __construct(Task $task)
|
||||||
|
{
|
||||||
|
$this->task = $task;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Task/TaskWasCreated.php
Normal file
29
app/Events/Task/TaskWasCreated.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Task;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TaskWasCreated.
|
||||||
|
*/
|
||||||
|
class TaskWasCreated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Task
|
||||||
|
*/
|
||||||
|
public $task;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Task $task
|
||||||
|
*/
|
||||||
|
public function __construct(Task $task)
|
||||||
|
{
|
||||||
|
$this->task = $task;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Task/TaskWasDeleted.php
Normal file
29
app/Events/Task/TaskWasDeleted.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Task;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TaskWasDeleted.
|
||||||
|
*/
|
||||||
|
class TaskWasDeleted extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Task
|
||||||
|
*/
|
||||||
|
public $task;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Task $task
|
||||||
|
*/
|
||||||
|
public function __construct(Task $task)
|
||||||
|
{
|
||||||
|
$this->task = $task;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Task/TaskWasRestored.php
Normal file
29
app/Events/Task/TaskWasRestored.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Task;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TaskWasRestored.
|
||||||
|
*/
|
||||||
|
class TaskWasRestored extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Task
|
||||||
|
*/
|
||||||
|
public $task;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Task $task
|
||||||
|
*/
|
||||||
|
public function __construct(Task $task)
|
||||||
|
{
|
||||||
|
$this->task = $task;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Task/TaskWasUpdated.php
Normal file
29
app/Events/Task/TaskWasUpdated.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Task;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TaskWasUpdated.
|
||||||
|
*/
|
||||||
|
class TaskWasUpdated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Task
|
||||||
|
*/
|
||||||
|
public $task;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Task $task
|
||||||
|
*/
|
||||||
|
public function __construct(Task $task)
|
||||||
|
{
|
||||||
|
$this->task = $task;
|
||||||
|
}
|
||||||
|
}
|
30
app/Events/Vendor/VendorWasArchived.php
vendored
Normal file
30
app/Events/Vendor/VendorWasArchived.php
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Vendor;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class VendorWasArchived.
|
||||||
|
*/
|
||||||
|
class VendorWasArchived extends Event
|
||||||
|
{
|
||||||
|
// vendor
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Vendor
|
||||||
|
*/
|
||||||
|
public $vendor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Vendor $vendor
|
||||||
|
*/
|
||||||
|
public function __construct(Vendor $vendor)
|
||||||
|
{
|
||||||
|
$this->vendor = $vendor;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Vendor/VendorWasCreated.php
vendored
Normal file
29
app/Events/Vendor/VendorWasCreated.php
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Vendor;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class VendorWasCreated.
|
||||||
|
*/
|
||||||
|
class VendorWasCreated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Vendor
|
||||||
|
*/
|
||||||
|
public $vendor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Vendor $vendor
|
||||||
|
*/
|
||||||
|
public function __construct(Vendor $vendor)
|
||||||
|
{
|
||||||
|
$this->vendor = $vendor;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Vendor/VendorWasDeleted.php
vendored
Normal file
29
app/Events/Vendor/VendorWasDeleted.php
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Vendor;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class VendorWasDeleted.
|
||||||
|
*/
|
||||||
|
class VendorWasDeleted extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Vendor
|
||||||
|
*/
|
||||||
|
public $vendor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Vendor $vendor
|
||||||
|
*/
|
||||||
|
public function __construct(Vendor $vendor)
|
||||||
|
{
|
||||||
|
$this->vendor = $vendor;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Vendor/VendorWasRestored.php
vendored
Normal file
29
app/Events/Vendor/VendorWasRestored.php
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Vendor;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class VendorWasRestored.
|
||||||
|
*/
|
||||||
|
class VendorWasRestored extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Vendor
|
||||||
|
*/
|
||||||
|
public $vendor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Vendor $vendor
|
||||||
|
*/
|
||||||
|
public function __construct(Vendor $vendor)
|
||||||
|
{
|
||||||
|
$this->vendor = $vendor;
|
||||||
|
}
|
||||||
|
}
|
29
app/Events/Vendor/VendorWasUpdated.php
vendored
Normal file
29
app/Events/Vendor/VendorWasUpdated.php
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Events;
|
||||||
|
|
||||||
|
use App\Models\Vendor;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class VendorWasUpdated.
|
||||||
|
*/
|
||||||
|
class VendorWasUpdated extends Event
|
||||||
|
{
|
||||||
|
use SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Vendor
|
||||||
|
*/
|
||||||
|
public $vendor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new event instance.
|
||||||
|
*
|
||||||
|
* @param Vendor $vendor
|
||||||
|
*/
|
||||||
|
public function __construct(Vendor $vendor)
|
||||||
|
{
|
||||||
|
$this->vendor = $vendor;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user