Overview

Summary

ContactDonateImprint


Appendix E-12: TRIP PAYMENT (UI prompt)


TripPaymentVehicleModuleUber

Properties (7)

PropertyTypeEntityReferenceModule
(1) AmountDOUBLETripPayment
(2) CapturedAtSTRINGTripPayment
(3) CurrencySTRINGTripPayment
(4) PaymentMethodLONGTripPaymentPaymentMethodPlatformUserModule
(5) RefundAmountDOUBLETripPayment
(6) RefundCurrencySTRINGTripPayment
(7) TripLONGTripPaymentTripVehicleModule


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /trippayment/paymentmethod/{id}findAllTripPaymentOfPaymentMethod(id)VehicleModuleGETPaymentMethod TripPayment
(2) /trippaymentfindAllTripPayment()VehicleModuleGETTripPayment
(3) /trippayment/trip/{id}findAllTripPaymentOfTrip(id)VehicleModuleGETTrip TripPayment
(4) /trippayment/{id}updateTripPaymentById(trippayment)VehicleModulePUTTripPayment
(5) /trippayment/{id}findTripPaymentById(id)VehicleModuleGETTripPayment
(6) /trippayment/{id}deleteTripPaymentById(id)VehicleModuleDELETETripPayment
(7) /trippaymentinsertTripPayment(trippayment)VehicleModulePOSTTripPayment





Example:

final TripPayment trippayment = (TripPayment) invokeModule(VEHICLE_MODULE + "/trippayment/" + id, TripPayment.class);
if (trippayment != null) {
    final Trip trip1 = (Trip) invokeModule(VEHICLE_MODULE + "/trip/" + trippayment.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 PaymentMethod paymentmethod13 = (PaymentMethod) invokeModule(PLATFORM_USER_MODULE + "/paymentmethod/" + trippayment.getPaymentMethod().getId(), PaymentMethod.class);
    if (paymentmethod13 != null) {
        final PlatformUser platformuser14 = (PlatformUser) invokeModule(PLATFORM_USER_MODULE + "/platformuser/" + paymentmethod13.getPlatformUser().getId(), PlatformUser.class);
        if (platformuser14 != null) {
        }
    }
}
return trippayment;


Overview

Summary

ContactDonateImprint