EFL
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

NameTypeRequiredDescription
firstNamestringYesFirst name.
lastNamestringYesLast name.
nipstringYesTax identifier.
postalstringYesPostal code.
phoneNostringYesContact phone number.
emailstringYesContact email address.
descriptionstring|nullNoOptional free‑form description or note.

Methods

MethodKindReturn typeDescription
builder()staticProspectBuilderReturns a fluent builder for constructing Prospect instances.
toRequestPayload()instancearray<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