| 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;
|
| 30936 |
tejbeer |
6 |
import java.util.List;
|
| 30859 |
tejbeer |
7 |
import java.util.Map;
|
|
|
8 |
|
|
|
9 |
import org.springframework.stereotype.Service;
|
|
|
10 |
|
|
|
11 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
12 |
import com.spice.profitmandi.dao.entity.fofo.FofoPayment;
|
|
|
13 |
import com.spice.profitmandi.dao.entity.transaction.Loan;
|
| 30936 |
tejbeer |
14 |
import com.spice.profitmandi.dao.entity.transaction.SDCreditRequirement;
|
|
|
15 |
import com.spice.profitmandi.dao.enumuration.transaction.CreditRisk;
|
| 30859 |
tejbeer |
16 |
import com.spice.profitmandi.dao.enumuration.transaction.LoanReferenceType;
|
|
|
17 |
import com.spice.profitmandi.dao.model.CartResponse;
|
|
|
18 |
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
|
|
|
19 |
import com.spice.profitmandi.dao.model.UserCart;
|
|
|
20 |
|
|
|
21 |
@Service
|
|
|
22 |
public interface SDCreditService {
|
|
|
23 |
|
| 31518 |
amit.gupta |
24 |
int createSDDirectOrder(UserCart userCart, CartResponse cartValidationResponse)
|
| 30859 |
tejbeer |
25 |
throws ProfitMandiBusinessException;
|
|
|
26 |
|
| 31518 |
amit.gupta |
27 |
BigDecimal getAvailableAmount(int fofoId);
|
| 30859 |
tejbeer |
28 |
|
| 31518 |
amit.gupta |
29 |
long getUtilizationAmount(int fofoId);
|
| 30859 |
tejbeer |
30 |
|
| 31518 |
amit.gupta |
31 |
void createLoanStatement(LoanReferenceType interest, BigDecimal interestAccrued, int fofoId, int loanId,
|
| 30859 |
tejbeer |
32 |
String description, LocalDateTime businessDate);
|
|
|
33 |
|
| 31518 |
amit.gupta |
34 |
void addInterest(LocalDate from, LocalDate to, Loan loan, Map<LoanReferenceType, Double> loanStatusAmount);
|
| 30859 |
tejbeer |
35 |
|
| 31518 |
amit.gupta |
36 |
SDCreditResponseOut sdDirectService(int retailerId);
|
| 30859 |
tejbeer |
37 |
|
| 31518 |
amit.gupta |
38 |
CreditRisk getCurrentRisk(SDCreditRequirement sdCreditRequirement, LocalDateTime firstBillingDate);
|
| 30936 |
tejbeer |
39 |
|
| 31518 |
amit.gupta |
40 |
boolean isDefaultPartner(int fofoId);
|
| 30936 |
tejbeer |
41 |
|
| 31518 |
amit.gupta |
42 |
void updateRisk();
|
| 30936 |
tejbeer |
43 |
|
| 31518 |
amit.gupta |
44 |
List<Loan> getDefaultLoan();
|
| 30936 |
tejbeer |
45 |
|
| 31399 |
tejbeer |
46 |
public List<Loan> getDueDateCrossLoan();
|
|
|
47 |
|
| 30936 |
tejbeer |
48 |
public boolean isDefaultLoan(int loanId, LocalDate time);
|
| 31020 |
tejbeer |
49 |
|
| 30859 |
tejbeer |
50 |
}
|