Overview

Summary

ContactDonateImprint


3. BOOKING MODULE (UI prompt)



Module Entities (10)

EntityAliasModuleGlobal Schema
(1) BookingBookingBookingModuleAirbnb
(2) CompanyCompanyCompanyModuleAirbnb
(3) GuestProfileGuestProfileBookingModuleAirbnb
(4) JurisdictionJurisdictionJurisdictionModuleAirbnb
(5) ListingListingListingModuleAirbnb
(6) PaymentPaymentBookingModuleAirbnb
(7) PayoutPayoutHostProfileModuleAirbnb
(8) PlatformUserPlatformUserPlatformUserModuleAirbnb
(9) ReviewReviewMarketModuleAirbnb
(10) TaxCaseTaxCaseBookingModuleAirbnb

Module Interfaces (27)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /booking/{id}deleteBookingById(id)BookingModuleDELETEBooking
(2) /payment/{id}updatePaymentById(payment)BookingModulePUTPayment
(3) /guestprofile/platformuser/{id}findAllGuestProfileOfPlatformUser(id)BookingModuleGETPlatformUser GuestProfile
(4) /guestprofilefindAllGuestProfile()BookingModuleGETGuestProfile
(5) /payment/{id}findPaymentById(id)BookingModuleGETPayment
(6) /bookingfindAllBooking()BookingModuleGETBooking
(7) /booking/{id}findBookingById(id)BookingModuleGETBooking
(8) /guestprofile/{id}updateGuestProfileById(guestprofile)BookingModulePUTGuestProfile
(9) /payment/platformuser/{id}findAllPaymentOfPlatformUser(id)BookingModuleGETPlatformUser Payment
(10) /booking/{id}updateBookingById(booking)BookingModulePUTBooking
(11) /taxcasefindAllTaxCase()BookingModuleGETTaxCase
(12) /taxcase/company/{id}findAllTaxCaseOfCompany(id)BookingModuleGETCompany TaxCase
(13) /taxcaseinsertTaxCase(taxcase)BookingModulePOSTTaxCase
(14) /taxcase/{id}updateTaxCaseById(taxcase)BookingModulePUTTaxCase
(15) /taxcase/{id}findTaxCaseById(id)BookingModuleGETTaxCase
(16) /taxcase/{id}deleteTaxCaseById(id)BookingModuleDELETETaxCase
(17) /paymentinsertPayment(payment)BookingModulePOSTPayment
(18) /paymentfindAllPayment()BookingModuleGETPayment
(19) /taxcase/jurisdiction/{id}findAllTaxCaseOfJurisdiction(id)BookingModuleGETJurisdiction TaxCase
(20) /booking/listing/{id}findAllBookingOfListing(id)BookingModuleGETListing Booking
(21) /payment/{id}deletePaymentById(id)BookingModuleDELETEPayment
(22) /bookinginsertBooking(booking)BookingModulePOSTBooking
(23) /booking/guestprofile/{id}findAllBookingOfGuestProfile(id)BookingModuleGETGuestProfile Booking
(24) /guestprofile/{id}findGuestProfileById(id)BookingModuleGETGuestProfile
(25) /payment/booking/{id}findAllPaymentOfBooking(id)BookingModuleGETBooking Payment
(26) /guestprofile/{id}deleteGuestProfileById(id)BookingModuleDELETEGuestProfile
(27) /guestprofileinsertGuestProfile(guestprofile)BookingModulePOSTGuestProfile






3.1 BOOKING


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





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;


3.2 GUEST PROFILE


GuestProfileBookingModuleAirbnb

Properties (5)

PropertyTypeEntityReferenceModule
(1) AboutSTRINGGuestProfile
(2) CreatedAtDATEGuestProfile
(3) OverallRatingDOUBLEGuestProfile
(4) PlatformUserLONGGuestProfilePlatformUserPlatformUserModule
(5) TripsCountINTGuestProfile





Example:

final GuestProfile guestprofile = (GuestProfile) invokeModule(BOOKING_MODULE + "/guestprofile/" + id, GuestProfile.class);
if (guestprofile != null) {
    final PlatformUser platformuser1 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + guestprofile.getPlatformUser().getId(), PlatformUser.class);
    if (platformuser1 != null) {
        final City city2 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser1.getCity().getId(), City.class);
        if (city2 != null) {
            final Country country3 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
        final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser1.getCountry().getId(), Country.class);
        if (country4 != null) {
        }
    }
}
return guestprofile;


3.3 PAYMENT


PaymentBookingModuleAirbnb

Properties (8)

PropertyTypeEntityReferenceModule
(1) AmountDOUBLEPayment
(2) BookingLONGPaymentBookingBookingModule
(3) CurrencySTRINGPayment
(4) ExternalTransactionReferenceSTRINGPayment
(5) PaidAtDATEPayment
(6) PaymentMethodSTRINGPayment
(7) PaymentStatusSTRINGPayment
(8) PlatformUserLONGPaymentPlatformUserPlatformUserModule





Example:

final Payment payment = (Payment) invokeModule(BOOKING_MODULE + "/payment/" + id, Payment.class);
if (payment != null) {
    final Booking booking1 = (Booking) invokeModule(BOOKING_MODULE + "/booking/" + payment.getBooking().getId(), Booking.class);
    if (booking1 != null) {
        final Listing listing2 = (Listing) invokeModule(LISTING_MODULE + "/listing/" + booking1.getListing().getId(), Listing.class);
        if (listing2 != null) {
            final Country country3 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + listing2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
            final City city4 = (City) invokeModule(LISTING_MODULE + "/city/" + listing2.getCity().getId(), City.class);
            if (city4 != null) {
                final Country country5 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city4.getCountry().getId(), Country.class);
                if (country5 != null) {
                }
            }
            final HostProfile hostprofile6 = (HostProfile) invokeModule(HOST_PROFILE_MODULE + "/hostprofile/" + listing2.getHostProfile().getId(), HostProfile.class);
            if (hostprofile6 != null) {
                final PlatformUser platformuser7 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + hostprofile6.getPlatformUser().getId(), PlatformUser.class);
                if (platformuser7 != null) {
                    final City city8 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser7.getCity().getId(), City.class);
                    if (city8 != null) {
                        final Country country9 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city8.getCountry().getId(), Country.class);
                        if (country9 != null) {
                        }
                    }
                    final Country country10 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser7.getCountry().getId(), Country.class);
                    if (country10 != null) {
                    }
                }
            }
        }
        final GuestProfile guestprofile11 = (GuestProfile) invokeModule(BOOKING_MODULE + "/guestprofile/" + booking1.getGuestProfile().getId(), GuestProfile.class);
        if (guestprofile11 != null) {
            final PlatformUser platformuser12 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + guestprofile11.getPlatformUser().getId(), PlatformUser.class);
            if (platformuser12 != null) {
                final City city13 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser12.getCity().getId(), City.class);
                if (city13 != null) {
                    final Country country14 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city13.getCountry().getId(), Country.class);
                    if (country14 != null) {
                    }
                }
                final Country country15 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser12.getCountry().getId(), Country.class);
                if (country15 != null) {
                }
            }
        }
    }
    final PlatformUser platformuser16 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + payment.getPlatformUser().getId(), PlatformUser.class);
    if (platformuser16 != null) {
        final City city17 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser16.getCity().getId(), City.class);
        if (city17 != null) {
            final Country country18 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city17.getCountry().getId(), Country.class);
            if (country18 != null) {
            }
        }
        final Country country19 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser16.getCountry().getId(), Country.class);
        if (country19 != null) {
        }
    }
}
return payment;


3.4 TAX CASE


TaxCaseBookingModuleAirbnb

Properties (8)

PropertyTypeEntityReferenceModule
(1) AmountAssessedDOUBLETaxCase
(2) CompanyLONGTaxCaseCompanyCompanyModule
(3) CurrencySTRINGTaxCase
(4) DescriptionSTRINGTaxCase
(5) EndDateDATETaxCase
(6) JurisdictionLONGTaxCaseJurisdictionJurisdictionModule
(7) StartDateDATETaxCase
(8) StatusSTRINGTaxCase





Example:

final TaxCase taxcase = (TaxCase) invokeModule(BOOKING_MODULE + "/taxcase/" + id, TaxCase.class);
if (taxcase != null) {
    final Company company1 = (Company) invokeModule(COMPANY_MODULE + "/company/" + taxcase.getCompany().getId(), Company.class);
    if (company1 != null) {
        final Country country2 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + company1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
        final City city3 = (City) invokeModule(LISTING_MODULE + "/city/" + company1.getCity().getId(), City.class);
        if (city3 != null) {
            final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city3.getCountry().getId(), Country.class);
            if (country4 != null) {
            }
        }
    }
    final Jurisdiction jurisdiction5 = (Jurisdiction) invokeModule(JURISDICTION_MODULE + "/jurisdiction/" + taxcase.getJurisdiction().getId(), Jurisdiction.class);
    if (jurisdiction5 != null) {
        final Country country6 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + jurisdiction5.getCountry().getId(), Country.class);
        if (country6 != null) {
        }
    }
}
return taxcase;


Overview

Summary

ContactDonateImprint