Overview

Summary

ContactDonateImprint


Appendix E-30: PAYMENT (UI prompt)


PaymentUserModuleAmazonPrimeVideo

Properties (8)

PropertyTypeEntityReferenceModule
(1) AmountSTRINGPayment
(2) CurrencySTRINGPayment
(3) DescriptionSTRINGPayment
(4) PaidAtSTRINGPayment
(5) PaymentMethodLONGPaymentPaymentMethodUserModule
(6) StatusSTRINGPayment
(7) SubscriptionLONGPaymentSubscriptionSeasonModule
(8) UserLONGPaymentUserUserModule


Module Interfaces (8)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /payment/{id}deletePaymentById(id)UserModuleDELETEPayment
(2) /payment/subscription/{id}findAllPaymentOfSubscription(id)UserModuleGETSubscription Payment
(3) /payment/paymentmethod/{id}findAllPaymentOfPaymentMethod(id)UserModuleGETPaymentMethod Payment
(4) /payment/{id}findPaymentById(id)UserModuleGETPayment
(5) /payment/{id}updatePaymentById(payment)UserModulePUTPayment
(6) /paymentinsertPayment(payment)UserModulePOSTPayment
(7) /paymentfindAllPayment()UserModuleGETPayment
(8) /payment/user/{id}findAllPaymentOfUser(id)UserModuleGETUser Payment





Example:

final Payment payment = (Payment) invokeModule(USER_MODULE + "/payment/" + id, Payment.class);
if (payment != null) {
    final User user1 = (User) invokeModule(USER_MODULE + "/user/" + payment.getUser().getId(), User.class);
    if (user1 != null) {
        final Country country2 = (Country) invokeModule(TITLE_MODULE + "/country/" + user1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
    final Subscription subscription3 = (Subscription) invokeModule(SEASON_MODULE + "/subscription/" + payment.getSubscription().getId(), Subscription.class);
    if (subscription3 != null) {
        final User user4 = (User) invokeModule(USER_MODULE + "/user/" + subscription3.getUser().getId(), User.class);
        if (user4 != null) {
            final Country country5 = (Country) invokeModule(TITLE_MODULE + "/country/" + user4.getCountry().getId(), Country.class);
            if (country5 != null) {
            }
        }
        final SubscriptionPlan subscriptionplan6 = (SubscriptionPlan) invokeModule(SUBSCRIPTION_PLAN_MODULE + "/subscriptionplan/" + subscription3.getSubscriptionPlan().getId(), SubscriptionPlan.class);
        if (subscriptionplan6 != null) {
        }
    }
    final PaymentMethod paymentmethod7 = (PaymentMethod) invokeModule(USER_MODULE + "/paymentmethod/" + payment.getPaymentMethod().getId(), PaymentMethod.class);
    if (paymentmethod7 != null) {
        final User user8 = (User) invokeModule(USER_MODULE + "/user/" + paymentmethod7.getUser().getId(), User.class);
        if (user8 != null) {
            final Country country9 = (Country) invokeModule(TITLE_MODULE + "/country/" + user8.getCountry().getId(), Country.class);
            if (country9 != null) {
            }
        }
        final Country billingcountry10 = (Country) invokeModule(TITLE_MODULE + "/country/" + paymentmethod7.getBillingCountry().getId(), Country.class);
        if (billingcountry10 != null) {
        }
    }
}
return payment;


Overview

Summary

ContactDonateImprint