Overview

Summary

ContactDonateImprint


Appendix E-7: STAY BOOKING (UI prompt)


StayBookingStayBookingModuleBookingCom

Properties (15)

PropertyTypeEntityReferenceModule
(1) AdultsINTStayBooking
(2) BaseAmountSTRINGStayBooking
(3) BookingINTStayBookingBookingBookingModule
(4) CancellationPolicySnapshotSTRINGStayBooking
(5) CheckInDateDATEStayBooking
(6) CheckOutDateDATEStayBooking
(7) ChildrenINTStayBooking
(8) CurrencyINTStayBookingCurrencyCurrencyModule
(9) FeesAmountSTRINGStayBooking
(10) NumberOfRoomsINTStayBooking
(11) PropertyINTStayBookingPropertyPropertyModule
(12) RoomRatePlanINTStayBookingRoomRatePlanStayBookingModule
(13) RoomTypeINTStayBookingRoomTypeRoomTypeModule
(14) SpecialRequestsSTRINGStayBooking
(15) TaxesAmountSTRINGStayBooking


Module Interfaces (12)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /staybookingpricebreakdown/staybooking/{id}findAllStayBookingPriceBreakdownOfStayBooking(id)CurrencyModuleGETStayBooking StayBookingPriceBreakdown
(2) /staybooking/roomtype/{id}findAllStayBookingOfRoomType(id)StayBookingModuleGETRoomType StayBooking
(3) /staybooking/{id}findStayBookingById(id)StayBookingModuleGETStayBooking
(4) /stayguest/staybooking/{id}findAllStayGuestOfStayBooking(id)StayBookingModuleGETStayBooking StayGuest
(5) /staybooking/currency/{id}findAllStayBookingOfCurrency(id)StayBookingModuleGETCurrency StayBooking
(6) /staybookingfindAllStayBooking()StayBookingModuleGETStayBooking
(7) /staybooking/booking/{id}findAllStayBookingOfBooking(id)StayBookingModuleGETBooking StayBooking
(8) /staybooking/property/{id}findAllStayBookingOfProperty(id)StayBookingModuleGETProperty StayBooking
(9) /staybooking/roomrateplan/{id}findAllStayBookingOfRoomRatePlan(id)StayBookingModuleGETRoomRatePlan StayBooking
(10) /staybookinginsertStayBooking(staybooking)StayBookingModulePOSTStayBooking
(11) /staybooking/{id}deleteStayBookingById(id)StayBookingModuleDELETEStayBooking
(12) /staybooking/{id}updateStayBookingById(staybooking)StayBookingModulePUTStayBooking





Example:

final StayBooking staybooking = (StayBooking) invokeModule(STAY_BOOKING_MODULE + "/staybooking/" + id, StayBooking.class);
if (staybooking != null) {
    final Booking booking1 = (Booking) invokeModule(BOOKING_MODULE + "/booking/" + staybooking.getBooking().getId(), Booking.class);
    if (booking1 != null) {
        final UserAccount useraccount2 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + booking1.getUserAccount().getId(), UserAccount.class);
        if (useraccount2 != null) {
            final Currency defaultcurrency3 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + useraccount2.getDefaultCurrency().getId(), Currency.class);
            if (defaultcurrency3 != null) {
            }
            final Language defaultlanguage4 = (Language) invokeModule(LANGUAGE_MODULE + "/language/" + useraccount2.getDefaultLanguage().getId(), Language.class);
            if (defaultlanguage4 != null) {
            }
        }
        final Currency currency5 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + booking1.getCurrency().getId(), Currency.class);
        if (currency5 != null) {
        }
    }
    final RoomType roomtype6 = (RoomType) invokeModule(ROOM_TYPE_MODULE + "/roomtype/" + staybooking.getRoomType().getId(), RoomType.class);
    if (roomtype6 != null) {
        final Property property7 = (Property) invokeModule(PROPERTY_MODULE + "/property/" + roomtype6.getProperty().getId(), Property.class);
        if (property7 != null) {
            final LocationCity locationcity8 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + property7.getLocationCity().getId(), LocationCity.class);
            if (locationcity8 != null) {
                final LocationRegion locationregion9 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity8.getLocationRegion().getId(), LocationRegion.class);
                if (locationregion9 != null) {
                    final LocationCountry locationcountry10 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion9.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry10 != null) {
                    }
                }
                final LocationCountry locationcountry11 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity8.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry11 != null) {
                }
            }
            final PropertyType propertytype12 = (PropertyType) invokeModule(PROPERTY_MODULE + "/propertytype/" + property7.getPropertyType().getId(), PropertyType.class);
            if (propertytype12 != null) {
            }
            final LocationDistrict locationdistrict13 = (LocationDistrict) invokeModule(PROPERTY_MODULE + "/locationdistrict/" + property7.getLocationDistrict().getId(), LocationDistrict.class);
            if (locationdistrict13 != null) {
                final LocationCity locationcity14 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + locationdistrict13.getLocationCity().getId(), LocationCity.class);
                if (locationcity14 != null) {
                    final LocationRegion locationregion15 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity14.getLocationRegion().getId(), LocationRegion.class);
                    if (locationregion15 != null) {
                        final LocationCountry locationcountry16 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion15.getLocationCountry().getId(), LocationCountry.class);
                        if (locationcountry16 != null) {
                        }
                    }
                    final LocationCountry locationcountry17 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity14.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry17 != null) {
                    }
                }
            }
            final LocationCountry locationcountry18 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + property7.getLocationCountry().getId(), LocationCountry.class);
            if (locationcountry18 != null) {
            }
            final PartnerAccount partneraccount19 = (PartnerAccount) invokeModule(PARTNER_ACCOUNT_MODULE + "/partneraccount/" + property7.getPartnerAccount().getId(), PartnerAccount.class);
            if (partneraccount19 != null) {
            }
        }
        final RoomTypeCategory roomtypecategory20 = (RoomTypeCategory) invokeModule(CAR_RENTAL_LOCATION_MODULE + "/roomtypecategory/" + roomtype6.getRoomTypeCategory().getId(), RoomTypeCategory.class);
        if (roomtypecategory20 != null) {
        }
    }
    final RoomRatePlan roomrateplan21 = (RoomRatePlan) invokeModule(STAY_BOOKING_MODULE + "/roomrateplan/" + staybooking.getRoomRatePlan().getId(), RoomRatePlan.class);
    if (roomrateplan21 != null) {
        final RoomType roomtype22 = (RoomType) invokeModule(ROOM_TYPE_MODULE + "/roomtype/" + roomrateplan21.getRoomType().getId(), RoomType.class);
        if (roomtype22 != null) {
            final Property property23 = (Property) invokeModule(PROPERTY_MODULE + "/property/" + roomtype22.getProperty().getId(), Property.class);
            if (property23 != null) {
                final LocationCity locationcity24 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + property23.getLocationCity().getId(), LocationCity.class);
                if (locationcity24 != null) {
                    final LocationRegion locationregion25 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity24.getLocationRegion().getId(), LocationRegion.class);
                    if (locationregion25 != null) {
                        final LocationCountry locationcountry26 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion25.getLocationCountry().getId(), LocationCountry.class);
                        if (locationcountry26 != null) {
                        }
                    }
                    final LocationCountry locationcountry27 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity24.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry27 != null) {
                    }
                }
                final PropertyType propertytype28 = (PropertyType) invokeModule(PROPERTY_MODULE + "/propertytype/" + property23.getPropertyType().getId(), PropertyType.class);
                if (propertytype28 != null) {
                }
                final LocationDistrict locationdistrict29 = (LocationDistrict) invokeModule(PROPERTY_MODULE + "/locationdistrict/" + property23.getLocationDistrict().getId(), LocationDistrict.class);
                if (locationdistrict29 != null) {
                    final LocationCity locationcity30 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + locationdistrict29.getLocationCity().getId(), LocationCity.class);
                    if (locationcity30 != null) {
                        final LocationRegion locationregion31 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity30.getLocationRegion().getId(), LocationRegion.class);
                        if (locationregion31 != null) {
                            final LocationCountry locationcountry32 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion31.getLocationCountry().getId(), LocationCountry.class);
                            if (locationcountry32 != null) {
                            }
                        }
                        final LocationCountry locationcountry33 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity30.getLocationCountry().getId(), LocationCountry.class);
                        if (locationcountry33 != null) {
                        }
                    }
                }
                final LocationCountry locationcountry34 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + property23.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry34 != null) {
                }
                final PartnerAccount partneraccount35 = (PartnerAccount) invokeModule(PARTNER_ACCOUNT_MODULE + "/partneraccount/" + property23.getPartnerAccount().getId(), PartnerAccount.class);
                if (partneraccount35 != null) {
                }
            }
            final RoomTypeCategory roomtypecategory36 = (RoomTypeCategory) invokeModule(CAR_RENTAL_LOCATION_MODULE + "/roomtypecategory/" + roomtype22.getRoomTypeCategory().getId(), RoomTypeCategory.class);
            if (roomtypecategory36 != null) {
            }
        }
    }
    final Currency currency37 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + staybooking.getCurrency().getId(), Currency.class);
    if (currency37 != null) {
    }
    final Property property38 = (Property) invokeModule(PROPERTY_MODULE + "/property/" + staybooking.getProperty().getId(), Property.class);
    if (property38 != null) {
        final LocationCity locationcity39 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + property38.getLocationCity().getId(), LocationCity.class);
        if (locationcity39 != null) {
            final LocationRegion locationregion40 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity39.getLocationRegion().getId(), LocationRegion.class);
            if (locationregion40 != null) {
                final LocationCountry locationcountry41 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion40.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry41 != null) {
                }
            }
            final LocationCountry locationcountry42 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity39.getLocationCountry().getId(), LocationCountry.class);
            if (locationcountry42 != null) {
            }
        }
        final PropertyType propertytype43 = (PropertyType) invokeModule(PROPERTY_MODULE + "/propertytype/" + property38.getPropertyType().getId(), PropertyType.class);
        if (propertytype43 != null) {
        }
        final LocationDistrict locationdistrict44 = (LocationDistrict) invokeModule(PROPERTY_MODULE + "/locationdistrict/" + property38.getLocationDistrict().getId(), LocationDistrict.class);
        if (locationdistrict44 != null) {
            final LocationCity locationcity45 = (LocationCity) invokeModule(LOCATION_CITY_MODULE + "/locationcity/" + locationdistrict44.getLocationCity().getId(), LocationCity.class);
            if (locationcity45 != null) {
                final LocationRegion locationregion46 = (LocationRegion) invokeModule(LOCATION_CITY_MODULE + "/locationregion/" + locationcity45.getLocationRegion().getId(), LocationRegion.class);
                if (locationregion46 != null) {
                    final LocationCountry locationcountry47 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationregion46.getLocationCountry().getId(), LocationCountry.class);
                    if (locationcountry47 != null) {
                    }
                }
                final LocationCountry locationcountry48 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + locationcity45.getLocationCountry().getId(), LocationCountry.class);
                if (locationcountry48 != null) {
                }
            }
        }
        final LocationCountry locationcountry49 = (LocationCountry) invokeModule(LOCATION_CITY_MODULE + "/locationcountry/" + property38.getLocationCountry().getId(), LocationCountry.class);
        if (locationcountry49 != null) {
        }
        final PartnerAccount partneraccount50 = (PartnerAccount) invokeModule(PARTNER_ACCOUNT_MODULE + "/partneraccount/" + property38.getPartnerAccount().getId(), PartnerAccount.class);
        if (partneraccount50 != null) {
        }
    }
}
return staybooking;


Overview

Summary

ContactDonateImprint