EFL
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

NameTypeRequiredDescription
transactionIdstringYesIdentifier of the transaction for which the code is submitted.
verificationCodestringYesCode provided by the user or external system.

Methods

MethodKindReturn typeDescription
builder()staticPostVerificationCodeBuilderReturns a fluent builder for constructing PostVerificationCode instances.
toRequestPayload()instancearray<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