EFL
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

NameTypeRequiredDescription
netInsuranceInstallmentAmountfloat|nullNoNet insurance amount per installment.
vatInsuranceInstallmentAmountfloat|nullNoVAT part of the insurance installment.
grossInsuranceInstallmentAmountfloat|nullNoGross insurance installment amount.
netInsuranceTotalAmountfloat|nullNoTotal net insurance amount.
grossInsuranceTotalAmountfloat|nullNoTotal gross insurance amount.

Methods

MethodKindReturn typeDescription
fromArray()staticFinancialInsuranceCreates insurance financial data from raw API response, casting numeric fields.

fromArray() casts numeric fields from the API response.

Usage in the SDK