Subversion Repositories SmartDukaan

Rev

Rev 30936 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.transaction;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.dao.entity.fofo.FofoPayment;
import com.spice.profitmandi.dao.entity.transaction.Loan;
import com.spice.profitmandi.dao.enumuration.transaction.LoanReferenceType;
import com.spice.profitmandi.dao.model.CartResponse;
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
import com.spice.profitmandi.dao.model.UserCart;

@Service
public interface SDCreditService {

        public FofoPayment createSDDirectOrder(UserCart userCart, CartResponse cartValidationResponse)
                        throws ProfitMandiBusinessException;

        public BigDecimal getAvailableAmount(int fofoId);

        public long getUtilizationAmount(int fofoId);

        public void createLoanStatement(LoanReferenceType interest, BigDecimal interestAccrued, int fofoId, int loanId,
                        String description, LocalDateTime businessDate);

        public void calculateInterest(LocalDate from, LocalDate to, Loan loan,
                        Map<LoanReferenceType, Double> loanStatusAmount);

        public SDCreditResponseOut sdDirectService(int retailerId);

}