Models
FoicProcessStateResponse
Response from GET /Process/GetChanges with process status and loosely-typed payloads.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Process\FoicProcessStateResponse represents the response of /Process/GetChanges.
It exposes the current and processed statuses as EsbProcessStatus enums and carries raw response, warning and processedResponse payloads whose shapes depend on the status.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Process - Class: final
FoicProcessStateResponse
final class FoicProcessStateResponse
{
public ?string $transactionId;
public EsbProcessStatus $status;
/** @var mixed */
public $response;
/** @var mixed */
public $warning;
public bool $statusWasProcessed;
/** @var mixed */
public $processedResponse;
public EsbProcessStatus $processedStatus;
public static function fromArray(array $data): self;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
transactionId | string|null | No | Identifier of the transaction. |
status | EsbProcessStatus | Yes | Current process status. |
response | mixed | Yes | API-defined structure for the current status. |
warning | mixed | Yes | API-defined warning structure, if any. |
statusWasProcessed | bool | Yes | Whether the status has already been processed. |
processedResponse | mixed | Yes | API-defined structure for the processed status. |
processedStatus | EsbProcessStatus | Yes | Last processed status. |
Because the Swagger schema does not define strict types for response, warning and processedResponse, they are kept as mixed and should be inspected according to the EFL API documentation.
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | FoicProcessStateResponse | Creates a response from raw API data, mapping statuses to EsbProcessStatus enums. |
fromArray() reads transactionId as string, maps status and processedStatus to EsbProcessStatus values (falling back to Error), and assigns response, warning, processedResponse and statusWasProcessed without further typing.
Usage in the SDK
- Returned by
EflClient::getProcessChanges. - Your application can use
status/processedStatusto branch logic and rely on the rawresponsepayload for advanced scenarios.