Subversion Repositories SmartDukaan

Rev

Rev 30859 | Rev 31020 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30859 Rev 30936
Line 1... Line 1...
1
package com.spice.profitmandi.service.transaction;
1
package com.spice.profitmandi.service.transaction;
2
 
2
 
3
import java.math.BigDecimal;
3
import java.math.BigDecimal;
4
import java.time.LocalDate;
4
import java.time.LocalDate;
5
import java.time.LocalDateTime;
5
import java.time.LocalDateTime;
-
 
6
import java.util.List;
6
import java.util.Map;
7
import java.util.Map;
7
 
8
 
8
import org.springframework.stereotype.Service;
9
import org.springframework.stereotype.Service;
9
 
10
 
10
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
11
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
11
import com.spice.profitmandi.dao.entity.fofo.FofoPayment;
12
import com.spice.profitmandi.dao.entity.fofo.FofoPayment;
12
import com.spice.profitmandi.dao.entity.transaction.Loan;
13
import com.spice.profitmandi.dao.entity.transaction.Loan;
-
 
14
import com.spice.profitmandi.dao.entity.transaction.SDCreditRequirement;
-
 
15
import com.spice.profitmandi.dao.enumuration.transaction.CreditRisk;
13
import com.spice.profitmandi.dao.enumuration.transaction.LoanReferenceType;
16
import com.spice.profitmandi.dao.enumuration.transaction.LoanReferenceType;
14
import com.spice.profitmandi.dao.model.CartResponse;
17
import com.spice.profitmandi.dao.model.CartResponse;
15
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
18
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
16
import com.spice.profitmandi.dao.model.UserCart;
19
import com.spice.profitmandi.dao.model.UserCart;
17
 
20
 
Line 26... Line 29...
26
	public long getUtilizationAmount(int fofoId);
29
	public long getUtilizationAmount(int fofoId);
27
 
30
 
28
	public void createLoanStatement(LoanReferenceType interest, BigDecimal interestAccrued, int fofoId, int loanId,
31
	public void createLoanStatement(LoanReferenceType interest, BigDecimal interestAccrued, int fofoId, int loanId,
29
			String description, LocalDateTime businessDate);
32
			String description, LocalDateTime businessDate);
30
 
33
 
31
	public void calculateInterest(LocalDate from, LocalDate to, Loan loan,
34
	public void addInterest(LocalDate from, LocalDate to, Loan loan, Map<LoanReferenceType, Double> loanStatusAmount);
32
			Map<LoanReferenceType, Double> loanStatusAmount);
-
 
33
 
35
 
34
	public SDCreditResponseOut sdDirectService(int retailerId);
36
	public SDCreditResponseOut sdDirectService(int retailerId);
35
 
37
 
-
 
38
	public CreditRisk getCurrentRisk(SDCreditRequirement sdCreditRequirement, LocalDateTime firstBillingDate);
-
 
39
 
-
 
40
	public boolean isDefaultPartner(int fofoId);
-
 
41
 
-
 
42
	public void updateRisk();
-
 
43
 
-
 
44
	public List<Loan> getDefaultLoan();
-
 
45
 
-
 
46
	public boolean isDefaultLoan(int loanId, LocalDate time);
36
}
47
}