EFL
Models

PartnerData

Partner-specific configuration data returned alongside calculation results.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Calculation\PartnerData contains configuration returned by the EFL API for the partner context of a transaction. It is currently focused on UI-related settings such as the "return to shop" URL and button label.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Calculation
  • Class: final PartnerData
final class PartnerData
{
    public ?string $returnToShopUrl;

    public ?string $returnButtonLabel;

    public function __construct(
        ?string $returnToShopUrl,
        ?string $returnButtonLabel
    );

    public static function fromArray(array $data): self;
}

Properties

NameTypeRequiredDescription
returnToShopUrlstring|nullNoURL that should be used to return the customer to the shop.
returnButtonLabelstring|nullNoLabel that should be displayed on the return button.

Methods

MethodKindReturn typeDescription
fromArray()staticPartnerDataCreates partner data from raw API response, validating and casting string fields.

fromArray() validates and casts string fields from the API response.

Usage in the SDK

  • Appears as partnerData inside CalculationData.
  • Your application can use these values to configure navigation and button labels in the checkout UI.