2017-01-30 20:40:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
2016-04-23 22:40:19 +02:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
use App\Models\Payment;
|
2016-04-23 22:40:19 +02:00
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
2017-01-30 20:40:43 +01:00
|
|
|
* Class PaymentWasRefunded.
|
2016-07-03 18:11:58 +02:00
|
|
|
*/
|
|
|
|
class PaymentWasRefunded extends Event
|
|
|
|
{
|
|
|
|
use SerializesModels;
|
2016-04-23 22:40:19 +02:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var Payment
|
|
|
|
*/
|
2016-04-23 22:40:19 +02:00
|
|
|
public $payment;
|
2016-07-03 18:11:58 +02:00
|
|
|
|
2016-04-23 22:40:19 +02:00
|
|
|
public $refundAmount;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @param Payment $payment
|
|
|
|
* @param $refundAmount
|
|
|
|
*/
|
|
|
|
public function __construct(Payment $payment, $refundAmount)
|
2016-04-23 22:40:19 +02:00
|
|
|
{
|
|
|
|
$this->payment = $payment;
|
|
|
|
$this->refundAmount = $refundAmount;
|
|
|
|
}
|
|
|
|
}
|