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
| Name | Type | Required | Description |
|---|---|---|---|
returnToShopUrl | string|null | No | URL that should be used to return the customer to the shop. |
returnButtonLabel | string|null | No | Label that should be displayed on the return button. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | PartnerData | Creates 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
partnerDatainsideCalculationData. - Your application can use these values to configure navigation and button labels in the checkout UI.