Models
AuthenticateResponse
Response from GET /Process/GetRestoreProcess with partner and token data for restoring a process.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Process\AuthenticateResponse represents the response from /Process/GetRestoreProcess.
It contains the partner identifier and token required to restore an existing process session.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Process - Class: final
AuthenticateResponse
final class AuthenticateResponse
{
public ?string $partnerId;
public ?string $token;
public function __construct(?string $partnerId, ?string $token);
public static function fromArray(array $data): self;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
partnerId | string|null | No | Partner identifier returned by the EFL API. |
token | string|null | No | Token that can be used to authenticate subsequent requests. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | AuthenticateResponse | Creates a response from raw API data (partner id and token). |
fromArray() reads partnerId and token as strings when present, otherwise sets them to null.
Usage in the SDK
- Returned by
EflClient::getRestoreProcess. - Can be used to reconstruct
Config/authentication context in your application when restoring a process.