Overview

Summary

ContactDonateImprint


5. GIFT VOUCHER MODULE (UI prompt)



Module Entities (6)

EntityAliasModuleGlobal Schema
(1) BookingBookingCustomerModuleZeppelinFlight
(2) CustomerCustomerCustomerModuleZeppelinFlight
(3) FoundationFoundationGiftVoucherModuleZeppelinFlight
(4) GiftRedemptionGiftRedemptionGiftVoucherModuleZeppelinFlight
(5) GiftVoucherGiftVoucherGiftVoucherModuleZeppelinFlight
(6) OrganizationOrganizationOrganizationModuleZeppelinFlight

Module Interfaces (19)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /giftredemption/{id}deleteGiftRedemptionById(id)GiftVoucherModuleDELETEGiftRedemption
(2) /giftredemption/{id}updateGiftRedemptionById(giftredemption)GiftVoucherModulePUTGiftRedemption
(3) /giftredemption/booking/{id}findAllGiftRedemptionOfBooking(id)GiftVoucherModuleGETBooking GiftRedemption
(4) /giftvoucherinsertGiftVoucher(giftvoucher)GiftVoucherModulePOSTGiftVoucher
(5) /giftredemptioninsertGiftRedemption(giftredemption)GiftVoucherModulePOSTGiftRedemption
(6) /giftvoucherfindAllGiftVoucher()GiftVoucherModuleGETGiftVoucher
(7) /giftvoucher/{id}deleteGiftVoucherById(id)GiftVoucherModuleDELETEGiftVoucher
(8) /foundationfindAllFoundation()GiftVoucherModuleGETFoundation
(9) /giftredemptionfindAllGiftRedemption()GiftVoucherModuleGETGiftRedemption
(10) /giftvoucher/{id}updateGiftVoucherById(giftvoucher)GiftVoucherModulePUTGiftVoucher
(11) /giftvoucher/{id}findGiftVoucherById(id)GiftVoucherModuleGETGiftVoucher
(12) /giftvoucher/purchasercustomer/{id}findAllGiftVoucherOfPurchaserCustomer(id)GiftVoucherModuleGETCustomer GiftVoucher
(13) /giftredemption/{id}findGiftRedemptionById(id)GiftVoucherModuleGETGiftRedemption
(14) /foundation/{id}updateFoundationById(foundation)GiftVoucherModulePUTFoundation
(15) /giftredemption/giftvoucher/{id}findAllGiftRedemptionOfGiftVoucher(id)GiftVoucherModuleGETGiftVoucher GiftRedemption
(16) /foundation/{id}deleteFoundationById(id)GiftVoucherModuleDELETEFoundation
(17) /foundation/{id}findFoundationById(id)GiftVoucherModuleGETFoundation
(18) /foundationinsertFoundation(foundation)GiftVoucherModulePOSTFoundation
(19) /foundation/organization/{id}findAllFoundationOfOrganization(id)GiftVoucherModuleGETOrganization Foundation






5.1 FOUNDATION


FoundationGiftVoucherModuleZeppelinFlight

Properties (4)

PropertyTypeEntityReferenceModule
(1) EstablishedOnDATEFoundation
(2) NameSTRINGFoundation
(3) OrganizationINTFoundationOrganizationOrganizationModule
(4) PurposeSTRINGFoundation





Example:

final Foundation foundation = (Foundation) invokeModule(GIFT_VOUCHER_MODULE + "/foundation/" + id, Foundation.class);
if (foundation != null) {
    final Organization organization1 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + foundation.getOrganization().getId(), Organization.class);
    if (organization1 != null) {
        final Location headquarterslocation2 = (Location) invokeModule(LOCATION_MODULE + "/location/" + organization1.getHeadquartersLocation().getId(), Location.class);
        if (headquarterslocation2 != null) {
            final Country country3 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
    }
}
return foundation;


5.2 GIFT REDEMPTION


GiftRedemptionGiftVoucherModuleZeppelinFlight

Properties (5)

PropertyTypeEntityReferenceModule
(1) AmountAppliedSTRINGGiftRedemption
(2) BookingINTGiftRedemptionBookingCustomerModule
(3) CurrencySTRINGGiftRedemption
(4) GiftVoucherINTGiftRedemptionGiftVoucherGiftVoucherModule
(5) RedemptionDateDATEGiftRedemption





Example:

final GiftRedemption giftredemption = (GiftRedemption) invokeModule(GIFT_VOUCHER_MODULE + "/giftredemption/" + id, GiftRedemption.class);
if (giftredemption != null) {
    final GiftVoucher giftvoucher1 = (GiftVoucher) invokeModule(GIFT_VOUCHER_MODULE + "/giftvoucher/" + giftredemption.getGiftVoucher().getId(), GiftVoucher.class);
    if (giftvoucher1 != null) {
        final Customer purchasercustomer2 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + giftvoucher1.getPurchaserCustomer().getId(), Customer.class);
        if (purchasercustomer2 != null) {
            final Country country3 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + purchasercustomer2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
    }
    final Booking booking4 = (Booking) invokeModule(CUSTOMER_MODULE + "/booking/" + giftredemption.getBooking().getId(), Booking.class);
    if (booking4 != null) {
        final Flight flight5 = (Flight) invokeModule(FLIGHT_MODULE + "/flight/" + booking4.getFlight().getId(), Flight.class);
        if (flight5 != null) {
            final FlightRoute flightroute6 = (FlightRoute) invokeModule(LOCATION_MODULE + "/flightroute/" + flight5.getFlightRoute().getId(), FlightRoute.class);
            if (flightroute6 != null) {
                final Location departurelocation7 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute6.getDepartureLocation().getId(), Location.class);
                if (departurelocation7 != null) {
                    final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + departurelocation7.getCountry().getId(), Country.class);
                    if (country8 != null) {
                    }
                }
                final Hangar defaulthangar9 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + flightroute6.getDefaultHangar().getId(), Hangar.class);
                if (defaulthangar9 != null) {
                    final Location location10 = (Location) invokeModule(LOCATION_MODULE + "/location/" + defaulthangar9.getLocation().getId(), Location.class);
                    if (location10 != null) {
                        final Country country11 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location10.getCountry().getId(), Country.class);
                        if (country11 != null) {
                        }
                    }
                }
                final Location arrivallocation12 = (Location) invokeModule(LOCATION_MODULE + "/location/" + flightroute6.getArrivalLocation().getId(), Location.class);
                if (arrivallocation12 != null) {
                    final Country country13 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + arrivallocation12.getCountry().getId(), Country.class);
                    if (country13 != null) {
                    }
                }
            }
            final Zeppelin zeppelin14 = (Zeppelin) invokeModule(ZEPPELIN_MODULE + "/zeppelin/" + flight5.getZeppelin().getId(), Zeppelin.class);
            if (zeppelin14 != null) {
                final ZeppelinClass zeppelinclass15 = (ZeppelinClass) invokeModule(ORGANIZATION_MODULE + "/zeppelinclass/" + zeppelin14.getZeppelinClass().getId(), ZeppelinClass.class);
                if (zeppelinclass15 != null) {
                    final Organization manufacturer16 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelinclass15.getManufacturer().getId(), Organization.class);
                    if (manufacturer16 != null) {
                        final Location headquarterslocation17 = (Location) invokeModule(LOCATION_MODULE + "/location/" + manufacturer16.getHeadquartersLocation().getId(), Location.class);
                        if (headquarterslocation17 != null) {
                            final Country country18 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation17.getCountry().getId(), Country.class);
                            if (country18 != null) {
                            }
                        }
                    }
                }
                final Location homebaselocation19 = (Location) invokeModule(LOCATION_MODULE + "/location/" + zeppelin14.getHomeBaseLocation().getId(), Location.class);
                if (homebaselocation19 != null) {
                    final Country country20 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + homebaselocation19.getCountry().getId(), Country.class);
                    if (country20 != null) {
                    }
                }
                final Organization operator21 = (Organization) invokeModule(ORGANIZATION_MODULE + "/organization/" + zeppelin14.getOperator().getId(), Organization.class);
                if (operator21 != null) {
                    final Location headquarterslocation22 = (Location) invokeModule(LOCATION_MODULE + "/location/" + operator21.getHeadquartersLocation().getId(), Location.class);
                    if (headquarterslocation22 != null) {
                        final Country country23 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + headquarterslocation22.getCountry().getId(), Country.class);
                        if (country23 != null) {
                        }
                    }
                }
            }
        }
        final Customer customer24 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + booking4.getCustomer().getId(), Customer.class);
        if (customer24 != null) {
            final Country country25 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + customer24.getCountry().getId(), Country.class);
            if (country25 != null) {
            }
        }
    }
}
return giftredemption;


5.3 GIFT VOUCHER


GiftVoucherGiftVoucherModuleZeppelinFlight

Properties (7)

PropertyTypeEntityReferenceModule
(1) CodeSTRINGGiftVoucher
(2) CurrencySTRINGGiftVoucher
(3) ExpiryDateDATEGiftVoucher
(4) IsRedeemedBOOLGiftVoucher
(5) IssueDateDATEGiftVoucher
(6) PurchaserCustomerINTGiftVoucherCustomerCustomerModule
(7) ValueAmountSTRINGGiftVoucher





Example:

final GiftVoucher giftvoucher = (GiftVoucher) invokeModule(GIFT_VOUCHER_MODULE + "/giftvoucher/" + id, GiftVoucher.class);
if (giftvoucher != null) {
    final Customer purchasercustomer1 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + giftvoucher.getPurchaserCustomer().getId(), Customer.class);
    if (purchasercustomer1 != null) {
        final Country country2 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + purchasercustomer1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
}
return giftvoucher;


Overview

Summary

ContactDonateImprint