Models
FinancialInsurance
Insurance-related financial amounts within a leasing offer.
Namespace and purpose
Imoli\EflLeasingSdk\Model\Calculation\FinancialInsurance models the insurance component of an offer.
It is nested inside OfferFinancial and AssetOfferFinancial, separating insurance costs from pure financing.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Calculation - Class: final
FinancialInsurance
final class FinancialInsurance
{
public ?float $netInsuranceInstallmentAmount;
public ?float $vatInsuranceInstallmentAmount;
public ?float $grossInsuranceInstallmentAmount;
public ?float $netInsuranceTotalAmount;
public ?float $grossInsuranceTotalAmount;
public function __construct(
?float $netInsuranceInstallmentAmount,
?float $vatInsuranceInstallmentAmount,
?float $grossInsuranceInstallmentAmount,
?float $netInsuranceTotalAmount,
?float $grossInsuranceTotalAmount
);
public static function fromArray(array $data): self;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
netInsuranceInstallmentAmount | float|null | No | Net insurance amount per installment. |
vatInsuranceInstallmentAmount | float|null | No | VAT part of the insurance installment. |
grossInsuranceInstallmentAmount | float|null | No | Gross insurance installment amount. |
netInsuranceTotalAmount | float|null | No | Total net insurance amount. |
grossInsuranceTotalAmount | float|null | No | Total gross insurance amount. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | FinancialInsurance | Creates insurance financial data from raw API response, casting numeric fields. |
fromArray() casts numeric fields from the API response.
Usage in the SDK
- Used as
insuranceinOfferFinancialandAssetOfferFinancial. - Allows applications to separate insurance costs from other financing components when displaying offers.