Subversion Repositories SmartDukaan

Rev

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

Rev 33419 Rev 33663
Line 4... Line 4...
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.List;
7
import java.util.Map;
7
import java.util.Map;
8
 
8
 
9
import com.spice.profitmandi.dao.entity.transaction.LoanAggregation;
-
 
10
import com.spice.profitmandi.dao.entity.transaction.LoanSummary;
9
import com.spice.profitmandi.dao.entity.transaction.LoanSummary;
11
import org.springframework.stereotype.Service;
10
import org.springframework.stereotype.Service;
12
 
11
 
13
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
12
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;
13
import com.spice.profitmandi.dao.entity.transaction.Loan;
16
import com.spice.profitmandi.dao.entity.transaction.SDCreditRequirement;
14
import com.spice.profitmandi.dao.entity.transaction.SDCreditRequirement;
17
import com.spice.profitmandi.dao.enumuration.transaction.CreditRisk;
15
import com.spice.profitmandi.dao.enumuration.transaction.CreditRisk;
18
import com.spice.profitmandi.dao.enumuration.transaction.LoanReferenceType;
16
import com.spice.profitmandi.dao.enumuration.transaction.LoanReferenceType;
19
import com.spice.profitmandi.dao.model.CartResponse;
17
import com.spice.profitmandi.dao.model.CartResponse;
20
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
18
import com.spice.profitmandi.dao.model.SDCreditResponseOut;
21
import com.spice.profitmandi.dao.model.UserCart;
19
import com.spice.profitmandi.dao.model.UserCart;
22
 
20
 
23
import javax.persistence.Cacheable;
-
 
24
 
-
 
25
@Service
21
@Service
26
public interface SDCreditService {
22
public interface SDCreditService {
27
 
23
 
28
	void fundWallet(int fofoId) throws ProfitMandiBusinessException;
24
	void fundWallet(int fofoId) throws ProfitMandiBusinessException;
29
 
25
 
Line 60... Line 56...
60
 
56
 
61
 
57
 
62
		LoanSummary getLoanSummary();
58
		LoanSummary getLoanSummary();
63
 
59
 
64
    void checkLoans();
60
    void checkLoans();
-
 
61
 
-
 
62
    void createLoanForBilling(int transactionId, double invoiceAmount, String invoiceNumber) throws ProfitMandiBusinessException;
-
 
63
 
-
 
64
	void settleBlockedLoan(int transactionId, double orderAmount) throws ProfitMandiBusinessException;
-
 
65
 
-
 
66
	double settleLoan(Loan loan) throws ProfitMandiBusinessException;
65
}
67
}