Models
StatementLead
Single lead statement or consent used in contact forms.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Lead\StatementLead models a statement or consent associated with a lead.
It is part of the ContactData payload for /Lead/SendContactForm.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Lead - Class: final
StatementLead
final class StatementLead
{
public static function builder(): StatementLeadBuilder;
public function __construct(
int $statementConfigurationId,
?int $statementCategoryId = null,
?bool $selected = null
);
public function toRequestPayload(): array;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
statementConfigurationId | int | Yes | Identifier of the statement configuration. |
statementCategoryId | int|null | No | Optional category identifier. |
selected | bool|null | No | Whether the statement is selected/accepted. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
builder() | static | StatementLeadBuilder | Returns a fluent builder for constructing StatementLead instances. |
toRequestPayload() | instance | array<string,mixed> | Serialises the statement into the structure expected by EFL. |
toRequestPayload() returns an array with the following shape:
statementConfigurationId– maps to the property,statementCategoryId– included only if not null,selected– included only if not null.
Usage in the SDK
- Used in the
statementLeadsarray insideContactData. - Indirectly used by
EflClient::sendContactForm.