<?php

namespace App\Events;

use App\Models\Purchase;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class SupplierDebtPaid
{
    use Dispatchable, SerializesModels;

    public $purchase;
    public $paymentAmount;
    public $paymentMethod;

    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct(Purchase $purchase, float $paymentAmount, string $paymentMethod)
    {
        $this->purchase = $purchase;
        $this->paymentAmount = $paymentAmount;
        $this->paymentMethod = $paymentMethod;
    }
}