get_street(); $suite = $property->get_suite(); $city = $property->get_city(); $state_territory = $property->get_state_territory(); $zip_code = $property->get_zip_code(); $country = $property->get_country(); $latitude = $property->get_latitude(); $longitude = $property->get_longitude(); $guests = $property->get_guests(); $bedrooms = $property->get_bedrooms(); $bathrooms = $property->get_bathrooms(); $beds = $property->get_beds(); $property_name = $property->get_property_name(); $property_source_id = $property->get_property_source_id(); $property_license = $property->get_property_license(); $check_in_time = $property->get_check_in_time(); $reservation_time = $property->get_reservation_time(); $check_in_info = $property->get_check_in_info(); $house_rules = $property->get_house_rules(); $gallery_items = $property->get_gallery_images(); $fees = $property->get_fees(); $taxes = $property->get_taxes(); $discounts = $property->get_discounts(); $security_deposit = $property->get_security_deposit(); $apply_extra_charges_at_checkout = $property->applies_extra_charges_at_checkout(); $cleaning_fee_amount = $property->get_cleaning_fee(); $cleaning_fee_apply_at_checkout = $property->is_cleaning_fee_enabled_at_checkout(); $per_booking_percentage = $property->get_tax_percentage(); $per_booking_percentage_apply_at_checkout = $property->is_per_booking_tax_enabled_at_checkout(); $security_deposit_apply_at_checkout = $property->is_security_deposit_enabled_at_checkout(); $security_deposit_amount = (float) ($security_deposit['amount'] ?? 0); $security_deposit_enabled = !empty($security_deposit['enabled']); $other_fees = array_values(array_filter($fees, static function ($fee) { $label = strtolower((string) ($fee['label'] ?? '')); return !in_array($label, ['cleaning_fee', 'cleaning'], true); })); $other_taxes = array_values(array_filter($taxes, static function ($tax) { return strtolower((string) ($tax['label'] ?? '')) !== 'per_booking_percentage'; })); } else { $street = ''; $suite = ''; $city = ''; $state_territory = ''; $zip_code = ''; $country = ''; $latitude = ''; $longitude = ''; $guests = ''; $bedrooms = ''; $bathrooms = ''; $beds = ''; $property_name = ''; $property_source_id = ''; $property_license = ''; $check_in_time = ''; $reservation_time = ''; $check_in_info = ''; $house_rules = []; $gallery_items = []; $fees = []; $taxes = []; $discounts = []; $security_deposit = []; $apply_extra_charges_at_checkout = false; $cleaning_fee_amount = 0; $cleaning_fee_apply_at_checkout = true; $per_booking_percentage = 0; $per_booking_percentage_apply_at_checkout = true; $security_deposit_apply_at_checkout = true; $security_deposit_amount = 0; $security_deposit_enabled = false; $other_fees = []; $other_taxes = []; } ?>