Overview

Summary

ContactDonateImprint


Appendix E-13: PAYMENT (UI prompt)


PaymentBookingModuleAirbnb

Properties (8)

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


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /payment/platformuser/{id}findAllPaymentOfPlatformUser(id)BookingModuleGETPlatformUser Payment
(2) /payment/booking/{id}findAllPaymentOfBooking(id)BookingModuleGETBooking Payment
(3) /paymentinsertPayment(payment)BookingModulePOSTPayment
(4) /payment/{id}updatePaymentById(payment)BookingModulePUTPayment
(5) /payment/{id}findPaymentById(id)BookingModuleGETPayment
(6) /paymentfindAllPayment()BookingModuleGETPayment
(7) /payment/{id}deletePaymentById(id)BookingModuleDELETEPayment





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;


Overview

Summary

ContactDonateImprint