/*
 * Arrebol Consultancy copyright.
 * 
 * This code belongs to Arrebol Consultancy
 * its use, redistribution or modification are prohibited 
 * without written authorization from Arrebol Consultancy.
 */
package com.arrebol.apc.service.catalog;

import com.arrebol.apc.model.loan.Loan;
import com.arrebol.apc.model.loan.LoanByUser;
import com.arrebol.apc.model.loan.LoanDetails;

/**
 *
 * @author Carlos Janitzio Zavala Lopez <janitzio.zavala@arrebol.com.mx>
 */
public interface LoanService {

    /**
     *
     * @param loan
     * @return
     */
    boolean saveLoan(Loan loan);

    /**
     *
     * @param loanId
     * @return
     */
    Loan getLoanById(String loanId);

    /**
     *
     * @param loanByUser
     * @return
     */
    boolean saveLoanByUser(LoanByUser loanByUser);

    /**
     *
     * @param loanDetails
     * @return
     */
    boolean saveLoanDetail(LoanDetails loanDetails);
}
