EFL
Models

ContactData

Payload for /Lead/SendContactForm containing prospect data and lead statements.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Lead\ContactData represents the body of the /Lead/SendContactForm endpoint. It contains a Prospect (lead details) and a list of StatementLead entries describing consents.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Lead
  • Class: final ContactData
final class ContactData
{
    public static function builder(): ContactDataBuilder;

    public function __construct(
        Prospect $prospect,
        array $statementLeads
    );

    public function toRequestPayload(): array;
}

Properties

NameTypeRequiredDescription
prospectProspectYesLead/prospect information (name, NIP, contact data).
statementLeadsStatementLead[]YesList of lead-specific statements/consents.

Methods

MethodKindReturn typeDescription
builder()staticContactDataBuilderReturns a fluent builder for constructing ContactData instances.
toRequestPayload()instancearray<string,mixed>Serialises the contact data into the structure expected by EFL.

toRequestPayload() returns an array with the following shape:

  • prospect – payload from Prospect::toRequestPayload(),
  • statementLead – array of payloads from StatementLead::toRequestPayload().

Usage in the SDK