Overview

Summary

ContactDonateImprint


Appendix E-27: PAYOUT (UI prompt)


PayoutHostProfileModuleAirbnb

Properties (7)

PropertyTypeEntityReferenceModule
(1) AmountDOUBLEPayout
(2) BookingLONGPayoutBookingBookingModule
(3) CurrencySTRINGPayout
(4) HostProfileLONGPayoutHostProfileHostProfileModule
(5) PayoutDateDATEPayout
(6) PayoutMethodSTRINGPayout
(7) PayoutStatusSTRINGPayout


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /payoutinsertPayout(payout)HostProfileModulePOSTPayout
(2) /payout/{id}findPayoutById(id)HostProfileModuleGETPayout
(3) /payout/hostprofile/{id}findAllPayoutOfHostProfile(id)HostProfileModuleGETHostProfile Payout
(4) /payoutfindAllPayout()HostProfileModuleGETPayout
(5) /payout/{id}deletePayoutById(id)HostProfileModuleDELETEPayout
(6) /payout/booking/{id}findAllPayoutOfBooking(id)HostProfileModuleGETBooking Payout
(7) /payout/{id}updatePayoutById(payout)HostProfileModulePUTPayout





Example:

final Payout payout = (Payout) invokeModule(HOST_PROFILE_MODULE + "/payout/" + id, Payout.class);
if (payout != null) {
    final Booking booking1 = (Booking) invokeModule(BOOKING_MODULE + "/booking/" + payout.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 HostProfile hostprofile16 = (HostProfile) invokeModule(HOST_PROFILE_MODULE + "/hostprofile/" + payout.getHostProfile().getId(), HostProfile.class);
    if (hostprofile16 != null) {
        final PlatformUser platformuser17 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + hostprofile16.getPlatformUser().getId(), PlatformUser.class);
        if (platformuser17 != null) {
            final City city18 = (City) invokeModule(LISTING_MODULE + "/city/" + platformuser17.getCity().getId(), City.class);
            if (city18 != null) {
                final Country country19 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + city18.getCountry().getId(), Country.class);
                if (country19 != null) {
                }
            }
            final Country country20 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + platformuser17.getCountry().getId(), Country.class);
            if (country20 != null) {
            }
        }
    }
}
return payout;


Overview

Summary

ContactDonateImprint