Models
PostVerificationCode
Payload for POST /Process/PostVerificationCode containing transaction id and verification code.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Verification\PostVerificationCode represents the body of /Process/PostVerificationCode.
It carries the transaction identifier and the verification code entered by the user.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Verification - Class: final
PostVerificationCode
final class PostVerificationCode
{
public static function builder(): PostVerificationCodeBuilder;
public function __construct(
string $transactionId,
string $verificationCode
);
public function toRequestPayload(): array;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
transactionId | string | Yes | Identifier of the transaction for which the code is submitted. |
verificationCode | string | Yes | Code provided by the user or external system. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
builder() | static | PostVerificationCodeBuilder | Returns a fluent builder for constructing PostVerificationCode instances. |
toRequestPayload() | instance | array<string,string> | Serialises the verification code into the structure expected by EFL. |
toRequestPayload() returns an array with transactionId and verificationCode mapped directly to their property names.
Usage in the SDK
- Used by
EflClient::postVerificationCode. - Passed to
ProcessApiClient::postVerificationCode()as the request payload.