Overview

Summary

ServicesContactDonateAboutImprint


Appendix E-1: BOOKING (UI prompt)


BookingListingModuleAirbnb

Properties (15)

PropertyTypeEntityReferenceModule
(1) BookingStatusSTRINGBooking
(2) CancellationPolicySTRINGBooking
(3) CancelledAtDATEBooking
(4) CheckInDateDATEBooking
(5) CheckOutDateDATEBooking
(6) CleaningFeeDOUBLEBooking
(7) ConfirmedAtDATEBooking
(8) CreatedAtDATEBooking
(9) CurrencySTRINGBooking
(10) GuestProfileLONGBookingGuestProfilePlatformUserModule
(11) ListingLONGBookingListingListingModule
(12) NumberOfGuestsINTBooking
(13) ServiceFeeGuestDOUBLEBooking
(14) ServiceFeeHostDOUBLEBooking
(15) TotalPriceDOUBLEBooking


Module Interfaces (10)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /review/booking/{id}findAllReviewOfBooking(id)AmenityModuleGETBooking Review
(2) /payout/booking/{id}findAllPayoutOfBooking(id)HostProfileModuleGETBooking Payout
(3) /bookingfindAllBooking()ListingModuleGETBooking
(4) /booking/guestprofile/{id}findAllBookingOfGuestProfile(id)ListingModuleGETGuestProfile Booking
(5) /booking/{id}deleteBookingById(id)ListingModuleDELETEBooking
(6) /booking/{id}updateBookingById(booking)ListingModulePUTBooking
(7) /booking/listing/{id}findAllBookingOfListing(id)ListingModuleGETListing Booking
(8) /bookinginsertBooking(booking)ListingModulePOSTBooking
(9) /booking/{id}findBookingById(id)ListingModuleGETBooking
(10) /payment/booking/{id}findAllPaymentOfBooking(id)PlatformUserModuleGETBooking Payment





Example:

final Booking booking = (Booking) invokeModule(LISTING_MODULE + "/booking/" + id, Booking.class);
if (booking != null) {
    final Listing listing1 = (Listing) invokeModule(LISTING_MODULE + "/listing/" + booking.getListing().getId(), Listing.class);
    if (listing1 != null) {
        final Country country2 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + listing1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
        final City city3 = (City) invokeModule(LISTING_MODULE + "/city/" + listing1.getCity().getId(), City.class);
        if (city3 != null) {
            final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city3.getCountry().getId(), Country.class);
            if (country4 != null) {
            }
        }
        final HostProfile hostprofile5 = (HostProfile) invokeModule(HOST_PROFILE_MODULE + "/hostprofile/" + listing1.getHostProfile().getId(), HostProfile.class);
        if (hostprofile5 != null) {
            final PlatformUser platformuser6 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + hostprofile5.getPlatformUser().getId(), PlatformUser.class);
            if (platformuser6 != null) {
                final City city7 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser6.getCity().getId(), City.class);
                if (city7 != null) {
                    final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city7.getCountry().getId(), Country.class);
                    if (country8 != null) {
                    }
                }
                final Country country9 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser6.getCountry().getId(), Country.class);
                if (country9 != null) {
                }
            }
        }
    }
    final GuestProfile guestprofile10 = (GuestProfile) invokeModule(PLATFORM_USER_MODULE + "/guestprofile/" + booking.getGuestProfile().getId(), GuestProfile.class);
    if (guestprofile10 != null) {
        final PlatformUser platformuser11 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + guestprofile10.getPlatformUser().getId(), PlatformUser.class);
        if (platformuser11 != null) {
            final City city12 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser11.getCity().getId(), City.class);
            if (city12 != null) {
                final Country country13 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city12.getCountry().getId(), Country.class);
                if (country13 != null) {
                }
            }
            final Country country14 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser11.getCountry().getId(), Country.class);
            if (country14 != null) {
            }
        }
    }
}
return booking;


Overview

Summary

ServicesContactDonateAboutImprint