Overview

Summary

ContactDonateImprint


Appendix E-1: BOOKING (UI prompt)


BookingBookingModuleAirbnb

Properties (15)

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


Module Interfaces (10)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /booking/listing/{id}findAllBookingOfListing(id)BookingModuleGETListing Booking
(2) /payment/booking/{id}findAllPaymentOfBooking(id)BookingModuleGETBooking Payment
(3) /bookinginsertBooking(booking)BookingModulePOSTBooking
(4) /booking/guestprofile/{id}findAllBookingOfGuestProfile(id)BookingModuleGETGuestProfile Booking
(5) /booking/{id}deleteBookingById(id)BookingModuleDELETEBooking
(6) /bookingfindAllBooking()BookingModuleGETBooking
(7) /booking/{id}findBookingById(id)BookingModuleGETBooking
(8) /booking/{id}updateBookingById(booking)BookingModulePUTBooking
(9) /payout/booking/{id}findAllPayoutOfBooking(id)HostProfileModuleGETBooking Payout
(10) /review/booking/{id}findAllReviewOfBooking(id)MarketModuleGETBooking Review





Example:

final Booking booking = (Booking) invokeModule(BOOKING_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(BOOKING_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

ContactDonateImprint