Models
AuthenticationRestorationResult
Result of restoration endpoints containing token, transaction id and next action.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Restoration\AuthenticationRestorationResult represents the response of restoration endpoints such as /Restoration/RestoreCustomerSession and /Restoration/RestoreSessionAfterSigning.
It carries the token, transaction identifier and a ReauthenticationAction enum describing what should happen next.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Restoration - Class: final
AuthenticationRestorationResult
final class AuthenticationRestorationResult
{
public ?string $token;
public ?string $transactionId;
public ReauthenticationAction $action;
public function __construct(
?string $token,
?string $transactionId,
ReauthenticationAction $action
);
public static function fromArray(array $data): self;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
token | string|null | No | Token that can be used to restore the session. |
transactionId | string|null | No | Identifier of the transaction. |
action | ReauthenticationAction | Yes | Enum describing the next action. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | AuthenticationRestorationResult | Creates a result from raw API data, mapping action to ReauthenticationAction enum. |
fromArray() reads token and transactionId as strings when present, and maps action to a ReauthenticationAction value (defaulting to None).
Usage in the SDK
- Returned by
EflClient::restoreCustomerSessionByOrderId. - Returned by
EflClient::restoreSessionAfterSigning. - Your application can use
actionto decide whether to continue payment, display success, or perform no re-authentication.