| 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 |
|
| 32172 |
jai.hind |
9 |
import com.spice.profitmandi.dao.entity.transaction.LoanAggregation;
|
|
|
10 |
import com.spice.profitmandi.dao.entity.transaction.LoanSummary;
|
| 30859 |
tejbeer |
11 |
import org.springframework.stereotype.Service;
|
|
|
12 |
|
|
|
13 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
14 |
import com.spice.profitmandi.dao.entity.fofo.FofoPayment;
|
|
|
15 |
import com.spice.profitmandi.dao.entity.transaction.Loan;
|
| 30936 |
tejbeer |
16 |
import com.spice.profitmandi.dao.entity.transaction.SDCreditRequirement;
|
|
|
17 |
import com.spice.profitmandi.dao.enumuration.transaction.CreditRisk;
|
| 30859 |
tejbeer |
18 |
import com.spice.profitmandi.dao.enumuration.transaction.LoanReferenceType;
|
|
|
19 |
import com.spice.profitmandi.dao.model.CartResponse;
|
|
|
20 |
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
|
|
|
21 |
import com.spice.profitmandi.dao.model.UserCart;
|
|
|
22 |
|
| 32172 |
jai.hind |
23 |
import javax.persistence.Cacheable;
|
|
|
24 |
|
| 30859 |
tejbeer |
25 |
@Service
|
|
|
26 |
public interface SDCreditService {
|
|
|
27 |
|
| 33297 |
amit.gupta |
28 |
void fundWallet(int fofoId) throws ProfitMandiBusinessException;
|
|
|
29 |
|
| 33339 |
amit.gupta |
30 |
//This will create loan irrespective of sanctions and increases the overall ultization
|
|
|
31 |
Loan createLoan(int fofoId, double creditAmountRequired, int freeDays) throws ProfitMandiBusinessException;
|
|
|
32 |
|
| 31518 |
amit.gupta |
33 |
int createSDDirectOrder(UserCart userCart, CartResponse cartValidationResponse)
|
| 30859 |
tejbeer |
34 |
throws ProfitMandiBusinessException;
|
|
|
35 |
|
| 31518 |
amit.gupta |
36 |
BigDecimal getAvailableAmount(int fofoId);
|
| 30859 |
tejbeer |
37 |
|
| 31518 |
amit.gupta |
38 |
long getUtilizationAmount(int fofoId);
|
| 30859 |
tejbeer |
39 |
|
| 31518 |
amit.gupta |
40 |
void createLoanStatement(LoanReferenceType interest, BigDecimal interestAccrued, int fofoId, int loanId,
|
| 30859 |
tejbeer |
41 |
String description, LocalDateTime businessDate);
|
|
|
42 |
|
| 31518 |
amit.gupta |
43 |
void addInterest(LocalDate from, LocalDate to, Loan loan, Map<LoanReferenceType, Double> loanStatusAmount);
|
| 30859 |
tejbeer |
44 |
|
| 31518 |
amit.gupta |
45 |
SDCreditResponseOut sdDirectService(int retailerId);
|
| 30859 |
tejbeer |
46 |
|
| 31518 |
amit.gupta |
47 |
CreditRisk getCurrentRisk(SDCreditRequirement sdCreditRequirement, LocalDateTime firstBillingDate);
|
| 30936 |
tejbeer |
48 |
|
| 31518 |
amit.gupta |
49 |
boolean isDefaultPartner(int fofoId);
|
| 30936 |
tejbeer |
50 |
|
| 31518 |
amit.gupta |
51 |
void updateRisk();
|
| 30936 |
tejbeer |
52 |
|
| 31518 |
amit.gupta |
53 |
List<Loan> getDefaultLoan();
|
| 30936 |
tejbeer |
54 |
|
| 32822 |
ranu |
55 |
List<Loan> getLoanALert();
|
|
|
56 |
|
| 31399 |
tejbeer |
57 |
public List<Loan> getDueDateCrossLoan();
|
|
|
58 |
|
| 30936 |
tejbeer |
59 |
public boolean isDefaultLoan(int loanId, LocalDate time);
|
| 31020 |
tejbeer |
60 |
|
| 32172 |
jai.hind |
61 |
|
|
|
62 |
LoanSummary getLoanSummary();
|
| 33419 |
amit.gupta |
63 |
|
|
|
64 |
void checkLoans();
|
| 30859 |
tejbeer |
65 |
}
|