| 30859 |
tejbeer |
1 |
package com.spice.profitmandi.service.transaction;
|
|
|
2 |
|
|
|
3 |
import java.math.BigDecimal;
|
|
|
4 |
import java.time.LocalDate;
|
|
|
5 |
import java.time.LocalDateTime;
|
|
|
6 |
import java.util.Map;
|
|
|
7 |
|
|
|
8 |
import org.springframework.stereotype.Service;
|
|
|
9 |
|
|
|
10 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
11 |
import com.spice.profitmandi.dao.entity.fofo.FofoPayment;
|
|
|
12 |
import com.spice.profitmandi.dao.entity.transaction.Loan;
|
|
|
13 |
import com.spice.profitmandi.dao.enumuration.transaction.LoanReferenceType;
|
|
|
14 |
import com.spice.profitmandi.dao.model.CartResponse;
|
|
|
15 |
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
|
|
|
16 |
import com.spice.profitmandi.dao.model.UserCart;
|
|
|
17 |
|
|
|
18 |
@Service
|
|
|
19 |
public interface SDCreditService {
|
|
|
20 |
|
|
|
21 |
public FofoPayment createSDDirectOrder(UserCart userCart, CartResponse cartValidationResponse)
|
|
|
22 |
throws ProfitMandiBusinessException;
|
|
|
23 |
|
|
|
24 |
public BigDecimal getAvailableAmount(int fofoId);
|
|
|
25 |
|
|
|
26 |
public long getUtilizationAmount(int fofoId);
|
|
|
27 |
|
|
|
28 |
public void createLoanStatement(LoanReferenceType interest, BigDecimal interestAccrued, int fofoId, int loanId,
|
|
|
29 |
String description, LocalDateTime businessDate);
|
|
|
30 |
|
|
|
31 |
public void calculateInterest(LocalDate from, LocalDate to, Loan loan,
|
|
|
32 |
Map<LoanReferenceType, Double> loanStatusAmount);
|
|
|
33 |
|
|
|
34 |
public SDCreditResponseOut sdDirectService(int retailerId);
|
|
|
35 |
|
|
|
36 |
}
|