Overview

Summary

ContactDonateImprint


Appendix E-27: REFUND (UI prompt)


RefundUserAccountModulePayPal

Properties (8)

PropertyTypeEntityReferenceModule
(1) AmountDOUBLERefund
(2) CompletedAtDATERefund
(3) CreatedAtDATERefund
(4) CurrencyLONGRefundCurrencyCurrencyModule
(5) ReasonSTRINGRefund
(6) StatusSTRINGRefund
(7) TransactionLONGRefundTransactionTransactionModule
(8) UserAccountLONGRefundUserAccountUserAccountModule


Module Interfaces (8)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /refund/currency/{id}findAllRefundOfCurrency(id)UserAccountModuleGETCurrency Refund
(2) /refund/useraccount/{id}findAllRefundOfUserAccount(id)UserAccountModuleGETUserAccount Refund
(3) /refundfindAllRefund()UserAccountModuleGETRefund
(4) /refund/transaction/{id}findAllRefundOfTransaction(id)UserAccountModuleGETTransaction Refund
(5) /refund/{id}deleteRefundById(id)UserAccountModuleDELETERefund
(6) /refund/{id}updateRefundById(refund)UserAccountModulePUTRefund
(7) /refundinsertRefund(refund)UserAccountModulePOSTRefund
(8) /refund/{id}findRefundById(id)UserAccountModuleGETRefund





Example:

final Refund refund = (Refund) invokeModule(USER_ACCOUNT_MODULE + "/refund/" + id, Refund.class);
if (refund != null) {
    final Transaction transaction1 = (Transaction) invokeModule(TRANSACTION_MODULE + "/transaction/" + refund.getTransaction().getId(), Transaction.class);
    if (transaction1 != null) {
        final Merchant merchant2 = (Merchant) invokeModule(MERCHANT_MODULE + "/merchant/" + transaction1.getMerchant().getId(), Merchant.class);
        if (merchant2 != null) {
            final UserAccount useraccount3 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + merchant2.getUserAccount().getId(), UserAccount.class);
            if (useraccount3 != null) {
            }
        }
        final FundingSource fundingsource4 = (FundingSource) invokeModule(FUNDING_SOURCE_MODULE + "/fundingsource/" + transaction1.getFundingSource().getId(), FundingSource.class);
        if (fundingsource4 != null) {
            final UserAccount useraccount5 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + fundingsource4.getUserAccount().getId(), UserAccount.class);
            if (useraccount5 != null) {
            }
        }
        final Fee feeamount6 = (Fee) invokeModule(CURRENCY_MODULE + "/fee/" + transaction1.getFeeAmount().getId(), Fee.class);
        if (feeamount6 != null) {
            final Currency currency7 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + feeamount6.getCurrency().getId(), Currency.class);
            if (currency7 != null) {
            }
            final FeeSchedule feeschedule8 = (FeeSchedule) invokeModule(CURRENCY_MODULE + "/feeschedule/" + feeamount6.getFeeSchedule().getId(), FeeSchedule.class);
            if (feeschedule8 != null) {
                final Currency currency9 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + feeschedule8.getCurrency().getId(), Currency.class);
                if (currency9 != null) {
                }
            }
        }
        final Currency currency10 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + transaction1.getCurrency().getId(), Currency.class);
        if (currency10 != null) {
        }
    }
    final UserAccount useraccount11 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + refund.getUserAccount().getId(), UserAccount.class);
    if (useraccount11 != null) {
    }
    final Currency currency12 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + refund.getCurrency().getId(), Currency.class);
    if (currency12 != null) {
    }
}
return refund;


Overview

Summary

ContactDonateImprint