<?php
namespace App\Models;

class DealPayment
{
    public $id;
    public $deal_didar_id;
    public $payment_type;
    public $payment_status;
    public $payment_amount;
    public $receipt_date;
    public $deposit_date;
    public $cheque_due_date;
    public $cheque_cashed_date;
    public $is_accepted_by_finance;
    public $accepted_by_user_id;
    public $accepted_at;
    public $rejected_by_user_id;
    public $rejected_at;
    public $reference_no;
    public $notes;
    public $created_by_user_id;
    public $created_at;
    public $updated_at;

    public function __construct(array $data = [])
    {
        foreach ($data as $key => $value) {
            if (property_exists($this, $key)) {
                $this->$key = $value;
            }
        }
    }

    public function toArray(): array
    {
        return get_object_vars($this);
    }
}
