Overview

Summary

ContactDonateImprint


Appendix E-23: PAYMENT (UI prompt)


PaymentCustomerModuleZeppelinFlight

Properties (7)

PropertyTypeEntityReferenceModule
(1) AmountSTRINGPayment
(2) BookingINTPaymentBookingCustomerModule
(3) CurrencySTRINGPayment
(4) PaymentDateTimeDATEPayment
(5) PaymentMethodSTRINGPayment
(6) StatusSTRINGPayment
(7) TransactionReferenceSTRINGPayment


Module Interfaces (6)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /payment/{id}updatePaymentById(payment)CustomerModulePUTPayment
(2) /paymentinsertPayment(payment)CustomerModulePOSTPayment
(3) /paymentfindAllPayment()CustomerModuleGETPayment
(4) /payment/{id}findPaymentById(id)CustomerModuleGETPayment
(5) /payment/booking/{id}findAllPaymentOfBooking(id)CustomerModuleGETBooking Payment
(6) /payment/{id}deletePaymentById(id)CustomerModuleDELETEPayment





Example:

final Payment payment = (Payment) invokeModule(CUSTOMER_MODULE + "/payment/" + id, Payment.class);
if (payment != null) {
    final Booking booking1 = (Booking) invokeModule(CUSTOMER_MODULE + "/booking/" + payment.getBooking().getId(), Booking.class);
    if (booking1 != null) {
        final Flight flight2 = (Flight) invokeModule(FLIGHT_MODULE + "/flight/" + booking1.getFlight().getId(), Flight.class);
        if (flight2 != null) {
            final FlightRoute flightroute3 = (FlightRoute) invokeModule(LOCATION_MODULE + "/flightroute/" + flight2.getFlightRoute().getId(), FlightRoute.class);
            if (flightroute3 != null) {
                final Location departurelocation4 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute3.getDepartureLocation().getId(), Location.class);
                if (departurelocation4 != null) {
                    final Country country5 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + departurelocation4.getCountry().getId(), Country.class);
                    if (country5 != null) {
                    }
                }
                final Hangar defaulthangar6 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + flightroute3.getDefaultHangar().getId(), Hangar.class);
                if (defaulthangar6 != null) {
                    final Location location7 = (Location) invokeModule(LOCATION_MODULE + "/location/" + defaulthangar6.getLocation().getId(), Location.class);
                    if (location7 != null) {
                        final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location7.getCountry().getId(), Country.class);
                        if (country8 != null) {
                        }
                    }
                }
                final Location arrivallocation9 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute3.getArrivalLocation().getId(), Location.class);
                if (arrivallocation9 != null) {
                    final Country country10 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + arrivallocation9.getCountry().getId(), Country.class);
                    if (country10 != null) {
                    }
                }
            }
            final Zeppelin zeppelin11 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + flight2.getZeppelin().getId(), Zeppelin.class);
            if (zeppelin11 != null) {
                final ZeppelinClass zeppelinclass12 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin11.getZeppelinClass().getId(), ZeppelinClass.class);
                if (zeppelinclass12 != null) {
                    final Organization manufacturer13 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass12.getManufacturer().getId(), Organization.class);
                    if (manufacturer13 != null) {
                        final Location headquarterslocation14 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer13.getHeadquartersLocation().getId(), Location.class);
                        if (headquarterslocation14 != null) {
                            final Country country15 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation14.getCountry().getId(), Country.class);
                            if (country15 != null) {
                            }
                        }
                    }
                }
                final Location homebaselocation16 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin11.getHomeBaseLocation().getId(), Location.class);
                if (homebaselocation16 != null) {
                    final Country country17 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation16.getCountry().getId(), Country.class);
                    if (country17 != null) {
                    }
                }
                final Organization operator18 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin11.getOperator().getId(), Organization.class);
                if (operator18 != null) {
                    final Location headquarterslocation19 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator18.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation19 != null) {
                        final Country country20 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation19.getCountry().getId(), Country.class);
                        if (country20 != null) {
                        }
                    }
                }
            }
        }
        final Customer customer21 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + booking1.getCustomer().getId(), Customer.class);
        if (customer21 != null) {
            final Country country22 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + customer21.getCountry().getId(), Country.class);
            if (country22 != null) {
            }
        }
    }
}
return payment;


Overview

Summary

ContactDonateImprint