Models
Prospect
Lead/prospect information used in contact forms.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Lead\Prospect models the basic details of a lead: name, tax id, location, phone and email.
It is embedded inside ContactData.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Lead - Class: final
Prospect
final class Prospect
{
public static function builder(): ProspectBuilder;
public function __construct(
string $firstName,
string $lastName,
string $nip,
string $postal,
string $phoneNo,
string $email,
?string $description = null
);
public function toRequestPayload(): array;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
firstName | string | Yes | First name. |
lastName | string | Yes | Last name. |
nip | string | Yes | Tax identifier. |
postal | string | Yes | Postal code. |
phoneNo | string | Yes | Contact phone number. |
email | string | Yes | Contact email address. |
description | string|null | No | Optional free‑form description or note. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
builder() | static | ProspectBuilder | Returns a fluent builder for constructing Prospect instances. |
toRequestPayload() | instance | array<string,mixed> | Serialises the prospect data into the structure expected by EFL. |
toRequestPayload() returns an array with the following shape:
firstName,lastName,nip,postal,phoneNo,email– maps to the respective properties,description– included only if not null.
Usage in the SDK
- Nested inside
ContactData. - Used indirectly by
EflClient::sendContactForm.