Models
CustomerDataStatement
Represents a single customer statement or consent associated with company or person data.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Customer\CustomerDataStatement models a statement/consent entry attached to customer data.
It can be associated with a company (Company::toRequestPayload()) or person (Person::toRequestPayload()).
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Customer - Class: final
CustomerDataStatement
final class CustomerDataStatement
{
public static function builder(): CustomerDataStatementBuilder;
public function __construct(
string $guid,
bool $agreement,
string $statementTypeId,
?string $validFrom = null
);
public function toRequestPayload(): array;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
guid | string | Yes | Unique identifier of the statement. |
agreement | bool | Yes | Flag indicating whether the statement is accepted. |
statementTypeId | string | Yes | Type identifier used by EFL. |
validFrom | string|null | No | Optional start date for the statement. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
builder() | static | CustomerDataStatementBuilder | Returns a fluent builder for constructing CustomerDataStatement instances. |
toRequestPayload() | instance | array<string,mixed> | Serialises the statement into the structure expected by the API. |
toRequestPayload() returns an array with the following shape:
guid,agreement– maps to the respective properties,statementType– nested object with['id' => statementTypeId],validFrom– included only if not null.
Usage in the SDK
- Included in the
statementsarray ofCompany. - Optionally included in
Personas person-level statements. - Used indirectly by
EflClient::submitCustomerDataandsubmitCustomerStatements.