Overview

Summary

ContactDonateImprint


Appendix E-8: TRIP PROMOTION (UI prompt)


TripPromotionVehicleModuleUber

Properties (4)

PropertyTypeEntityReferenceModule
(1) AppliedAmountDOUBLETripPromotion
(2) CurrencySTRINGTripPromotion
(3) PromotionLONGTripPromotionPromotionStockListingModule
(4) TripLONGTripPromotionTripVehicleModule


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /trippromotioninsertTripPromotion(trippromotion)VehicleModulePOSTTripPromotion
(2) /trippromotion/{id}deleteTripPromotionById(id)VehicleModuleDELETETripPromotion
(3) /trippromotion/trip/{id}findAllTripPromotionOfTrip(id)VehicleModuleGETTrip TripPromotion
(4) /trippromotionfindAllTripPromotion()VehicleModuleGETTripPromotion
(5) /trippromotion/{id}findTripPromotionById(id)VehicleModuleGETTripPromotion
(6) /trippromotion/{id}updateTripPromotionById(trippromotion)VehicleModulePUTTripPromotion
(7) /trippromotion/promotion/{id}findAllTripPromotionOfPromotion(id)VehicleModuleGETPromotion TripPromotion





Example:

final TripPromotion trippromotion = (TripPromotion) invokeModule(VEHICLE_MODULE + "/trippromotion/" + id, TripPromotion.class);
if (trippromotion != null) {
    final Trip trip1 = (Trip) invokeModule(VEHICLE_MODULE + "/trip/" + trippromotion.getTrip().getId(), Trip.class);
    if (trip1 != null) {
        final Service service2 = (Service) invokeModule(COMPANY_MODULE + "/service/" + trip1.getService().getId(), Service.class);
        if (service2 != null) {
            final Company company3 = (Company) invokeModule(COMPANY_MODULE + "/company/" + service2.getCompany().getId(), Company.class);
            if (company3 != null) {
            }
        }
        final DriverAccount driveraccount4 = (DriverAccount) invokeModule(VEHICLE_MODULE + "/driveraccount/" + trip1.getDriverAccount().getId(), DriverAccount.class);
        if (driveraccount4 != null) {
            final PlatformUser platformuser5 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + driveraccount4.getPlatformUser().getId(), PlatformUser.class);
            if (platformuser5 != null) {
            }
        }
        final RiderAccount rideraccount6 = (RiderAccount) invokeModule(PLATFORM_USER_MODULE + "/rideraccount/" + trip1.getRiderAccount().getId(), RiderAccount.class);
        if (rideraccount6 != null) {
            final PlatformUser platformuser7 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + rideraccount6.getPlatformUser().getId(), PlatformUser.class);
            if (platformuser7 != null) {
            }
        }
        final City origincity8 = (City) invokeModule(CITY_MODULE + "/city/" + trip1.getOriginCity().getId(), City.class);
        if (origincity8 != null) {
            final Country country9 = (Country) invokeModule(CITY_MODULE + "/country/" + origincity8.getCountry().getId(), Country.class);
            if (country9 != null) {
            }
        }
        final Vehicle vehicle10 = (Vehicle) invokeModule(VEHICLE_MODULE + "/vehicle/" + trip1.getVehicle().getId(), Vehicle.class);
        if (vehicle10 != null) {
        }
        final City destinationcity11 = (City) invokeModule(CITY_MODULE + "/city/" + trip1.getDestinationCity().getId(), City.class);
        if (destinationcity11 != null) {
            final Country country12 = (Country) invokeModule(CITY_MODULE + "/country/" + destinationcity11.getCountry().getId(), Country.class);
            if (country12 != null) {
            }
        }
    }
    final Promotion promotion13 = (Promotion) invokeModule(STOCK_LISTING_MODULE + "/promotion/" + trippromotion.getPromotion().getId(), Promotion.class);
    if (promotion13 != null) {
    }
}
return trippromotion;


Overview

Summary

ContactDonateImprint