Updates - Commercial realties and PHP-SDK 1.1.0
Commercial Realties
The API and PHP-SDK have been updated to add support for commercial realties
Commercial realties can contain multiple subrealties (areas) which can be marketed separately. In the normal list only the parent realty will be displayed except if you add the parameter parent_id.
To distinguish realties you can use the Realty system type property.
New properties
<immobilie>
<verwaltung_tech>
<user_defined_simplefield feldname="realty_system_type">area</user_defined_simplefield>
<user_defined_simplefield feldname="parent_id">12345</user_defined_simplefield>
</verwaltung_tech>
<flaechen>
<teilbar_ab>10</teilbar_ab>
<nutzflaeche>500</nutzflaeche>
</flaechen>
<preise>
<nettomieteprom2von nettomieteprom2bis="13">10</nettomieteprom2von>
<nebenkostenprom2von nebenkostenprom2bis="3">2</nebenkostenprom2von>
</preise>
</immobilie>
<?php
$realty->getRealtySystemType();
$realty->getParentId();
$realty->getFloorAreaFrom();
$realty->getFloorArea();
$realty->getRentPerSqmFrom();
$realty->getRentPerSqm();
$realty->getOperatingCostsPerSqmFrom();
$realty->getOperatingCostsPerSqm();
New filter parameters
?filters[parent_id]=1234
?filters[realty_type]=commercial
?filters[price_per_m2_von]=100
?filters[price_per_m2_bis]=200
<?php
$query->filterByParentId(12345);
$query->filterByRealtySystemType('commercial');
$query->filterByRentPerSqm([
'min' => 20,
'max' => 100,
]);