Overview

Summary

ContactDonateImprint


Appendix E-4: ROOM AVAILABILITY (UI prompt)


RoomAvailabilityCarCategoryModuleBookingCom

Properties (6)

PropertyTypeEntityReferenceModule
(1) ClosedForArrivalBOOLRoomAvailability
(2) ClosedForDepartureBOOLRoomAvailability
(3) DateDATERoomAvailability
(4) RoomTypeINTRoomAvailabilityRoomTypeRoomTypeModule
(5) SoldInventoryINTRoomAvailability
(6) TotalInventoryINTRoomAvailability


Module Interfaces (6)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /roomavailability/roomtype/{id}findAllRoomAvailabilityOfRoomType(id)CarCategoryModuleGETRoomType RoomAvailability
(2) /roomavailabilityinsertRoomAvailability(roomavailability)CarCategoryModulePOSTRoomAvailability
(3) /roomavailability/{id}deleteRoomAvailabilityById(id)CarCategoryModuleDELETERoomAvailability
(4) /roomavailability/{id}updateRoomAvailabilityById(roomavailability)CarCategoryModulePUTRoomAvailability
(5) /roomavailability/{id}findRoomAvailabilityById(id)CarCategoryModuleGETRoomAvailability
(6) /roomavailabilityfindAllRoomAvailability()CarCategoryModuleGETRoomAvailability





Example:

final RoomAvailability roomavailability = (RoomAvailability) invokeModule(CAR_CATEGORY_MODULE + "/roomavailability/" + id, RoomAvailability.class);
if (roomavailability != null) {
    final RoomType roomtype1 = (RoomType) invokeModule(ROOM_TYPE_MODULE + "/roomtype/" + roomavailability.getRoomType().getId(), RoomType.class);
    if (roomtype1 != null) {
        final Property property2 = (Property) invokeModule(PROPERTY_MODULE + "/property/" + roomtype1.getProperty().getId(), Property.class);
        if (property2 != null) {
            final LocationCity locationcity3 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + property2.getLocationCity().getId(), LocationCity.class);
            if (locationcity3 != null) {
                final LocationRegion locationregion4 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity3.getLocationRegion().getId(), LocationRegion.class);
                if (locationregion4 != null) {
                    final LocationCountry locationcountry5 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion4.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry5 != null) {
                    }
                }
                final LocationCountry locationcountry6 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity3.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry6 != null) {
                }
            }
            final PropertyType propertytype7 = (PropertyType) invokeModule(PROPERTY_MODULE + "/propertytype/" + property2.getPropertyType().getId(), PropertyType.class);
            if (propertytype7 != null) {
            }
            final LocationDistrict locationdistrict8 = (LocationDistrict) invokeModule(PROPERTY_MODULE + "/locationdistrict/" + property2.getLocationDistrict().getId(), LocationDistrict.class);
            if (locationdistrict8 != null) {
                final LocationCity locationcity9 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + locationdistrict8.getLocationCity().getId(), LocationCity.class);
                if (locationcity9 != null) {
                    final LocationRegion locationregion10 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity9.getLocationRegion().getId(), LocationRegion.class);
                    if (locationregion10 != null) {
                        final LocationCountry locationcountry11 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion10.getLocationCountry().getId(), LocationCountry.class);
                        if (locationcountry11 != null) {
                        }
                    }
                    final LocationCountry locationcountry12 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity9.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry12 != null) {
                    }
                }
            }
            final LocationCountry locationcountry13 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + property2.getLocationCountry().getId(), LocationCountry.class);
            if (locationcountry13 != null) {
            }
            final PartnerAccount partneraccount14 = (PartnerAccount) invokeModule(PARTNER_ACCOUNT_MODULE + "/partneraccount/" + property2.getPartnerAccount().getId(), PartnerAccount.class);
            if (partneraccount14 != null) {
            }
        }
        final RoomTypeCategory roomtypecategory15 = (RoomTypeCategory) invokeModule(CAR_RENTAL_LOCATION_MODULE + "/roomtypecategory/" + roomtype1.getRoomTypeCategory().getId(), RoomTypeCategory.class);
        if (roomtypecategory15 != null) {
        }
    }
}
return roomavailability;


Overview

Summary

ContactDonateImprint