Overview

Summary

ContactDonateImprint


Appendix E-6: INVOICE (UI prompt)


InvoiceCurrencyModulePayPal

Properties (10)

PropertyTypeEntityReferenceModule
(1) BilledUserAccountLONGInvoice
(2) CurrencyLONGInvoiceCurrencyCurrencyModule
(3) DueDateDATEInvoice
(4) IssueDateDATEInvoice
(5) MerchantLONGInvoiceMerchantMerchantModule
(6) NotesSTRINGInvoice
(7) NumberSTRINGInvoice
(8) StatusSTRINGInvoice
(9) TotalAmountDOUBLEInvoice
(10) TransactionLONGInvoiceTransactionTransactionModule


Module Interfaces (9)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /invoice/{id}findInvoiceById(id)CurrencyModuleGETInvoice
(2) /invoiceinsertInvoice(invoice)CurrencyModulePOSTInvoice
(3) /invoice/merchant/{id}findAllInvoiceOfMerchant(id)CurrencyModuleGETMerchant Invoice
(4) /invoiceitem/invoice/{id}findAllInvoiceItemOfInvoice(id)CurrencyModuleGETInvoice InvoiceItem
(5) /invoicefindAllInvoice()CurrencyModuleGETInvoice
(6) /invoice/transaction/{id}findAllInvoiceOfTransaction(id)CurrencyModuleGETTransaction Invoice
(7) /invoice/{id}updateInvoiceById(invoice)CurrencyModulePUTInvoice
(8) /invoice/{id}deleteInvoiceById(id)CurrencyModuleDELETEInvoice
(9) /invoice/currency/{id}findAllInvoiceOfCurrency(id)CurrencyModuleGETCurrency Invoice





Example:

final Invoice invoice = (Invoice) invokeModule(CURRENCY_MODULE + "/invoice/" + id, Invoice.class);
if (invoice != null) {
    final Transaction transaction1 = (Transaction) invokeModule(TRANSACTION_MODULE + "/transaction/" + invoice.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 Merchant merchant11 = (Merchant) invokeModule(MERCHANT_MODULE + "/merchant/" + invoice.getMerchant().getId(), Merchant.class);
    if (merchant11 != null) {
        final UserAccount useraccount12 = (UserAccount) invokeModule(USER_ACCOUNT_MODULE + "/useraccount/" + merchant11.getUserAccount().getId(), UserAccount.class);
        if (useraccount12 != null) {
        }
    }
    final Currency currency13 = (Currency) invokeModule(CURRENCY_MODULE + "/currency/" + invoice.getCurrency().getId(), Currency.class);
    if (currency13 != null) {
    }
}
return invoice;


Overview

Summary

ContactDonateImprint