Examples of LoanDto


Examples of com.jayway.demo.library.rest.dto.LoanDto

    if (book == null || !book.isBorrowed()) {
      return Response.status(Status.NOT_FOUND).build();
    }

    Customer customer = book.getBorrowedBy();
    return HateoasResponse.ok(new LoanDto(customer.getId(), book.getId()))
        .selfLink(LinkableIds.LOAN_DETAILS_ID, book.getId())
        .link(LinkableIds.BOOK_DETAILS_ID, Rels.BOOK, book.getId())
        .link(LinkableIds.CUSTOMER_DETAILS_ID, Rels.CUSTOMER, customer.getId())
        .selfLink(LinkableIds.LOAN_RETURN_ID, id).build();
  }
View Full Code Here

Examples of com.jayway.demo.library.rest.dto.LoanDto

        if (book == null || !book.isBorrowed()) {
            return Response.status(Status.NOT_FOUND).build();
        }

        Customer customer = book.getBorrowedBy();
        return HateoasResponse.ok(new LoanDto(customer.getId(), book.getId()))
                .selfLink(LinkableIds.LOAN_DETAILS_ID, book.getId())
                .link(LinkableIds.BOOK_DETAILS_ID, Rels.BOOK, book.getId())
                .link(LinkableIds.CUSTOMER_DETAILS_ID, Rels.CUSTOMER, customer.getId())
                .selfLink(LinkableIds.LOAN_RETURN_ID, id).build();
    }
View Full Code Here

Examples of org.mifosplatform.accounting.journalentry.data.LoanDTO

        final boolean cashBasedAccountingEnabled = (Boolean) accountingBridgeData.get("cashBasedAccountingEnabled");
        final boolean upfrontAccrualBasedAccountingEnabled = (Boolean) accountingBridgeData.get("upfrontAccrualBasedAccountingEnabled");
        final boolean periodicAccrualBasedAccountingEnabled = (Boolean) accountingBridgeData.get("periodicAccrualBasedAccountingEnabled");

        if (cashBasedAccountingEnabled || upfrontAccrualBasedAccountingEnabled || periodicAccrualBasedAccountingEnabled) {
            final LoanDTO loanDTO = this.helper.populateLoanDtoFromMap(accountingBridgeData, cashBasedAccountingEnabled,
                    upfrontAccrualBasedAccountingEnabled, periodicAccrualBasedAccountingEnabled);
            final AccountingProcessorForLoan accountingProcessorForLoan = this.accountingProcessorForLoanFactory
                    .determineProcessor(loanDTO);
            accountingProcessorForLoan.createJournalEntriesForLoan(loanDTO);
        }
View Full Code Here

Examples of org.mifosplatform.accounting.journalentry.data.LoanDTO

            newLoanTransactions.add(transaction);

        }

        return new LoanDTO(loanId, loanProductId, officeId, currencyData.code(), cashBasedAccountingEnabled,
                upfrontAccrualBasedAccountingEnabled, periodicAccrualBasedAccountingEnabled, newLoanTransactions);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.