<?php

namespace Modules\Bitrix\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

use Modules\Main\Models\Deal\Deal;
use Modules\Main\Models\Deal\Client;

class SendDealClient extends BitrixSender
{
    use HasFactory;
    public function __construct(Deal $deal, Client $client)
    {
        $this->data = [
            'spId'      => $deal->bitrixId(),
            'contactId' => $client->bitrixId(),
            'type'      => 'contact'
        ];
    }
}
