mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
43 lines
816 B
PHP
43 lines
816 B
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\Events\Payment;
|
|
|
|
use App\Models\Payment;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
/**
|
|
* Class PaymentWasRefunded.
|
|
*/
|
|
class PaymentWasRefunded
|
|
{
|
|
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;
|
|
}
|
|
}
|