Subversion Repositories SmartDukaan

Rev

Rev 36958 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36958 Rev 37030
Line 1... Line 1...
1
package com.spice.profitmandi.service.transaction;
1
package com.spice.profitmandi.service.transaction;
2
 
2
 
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
-
 
4
import com.spice.profitmandi.dao.entity.dtr.CreditBlockLog;
4
import com.spice.profitmandi.dao.entity.transaction.Loan;
5
import com.spice.profitmandi.dao.entity.transaction.Loan;
5
import com.spice.profitmandi.dao.entity.transaction.Order;
6
import com.spice.profitmandi.dao.entity.transaction.Order;
6
import com.spice.profitmandi.dao.entity.transaction.LoanSummary;
7
import com.spice.profitmandi.dao.entity.transaction.LoanSummary;
7
import com.spice.profitmandi.dao.entity.transaction.SDCreditRequirement;
8
import com.spice.profitmandi.dao.entity.transaction.SDCreditRequirement;
8
import com.spice.profitmandi.dao.entity.transaction.StateWiseLoanSummary;
9
import com.spice.profitmandi.dao.entity.transaction.StateWiseLoanSummary;
Line 106... Line 107...
106
 
107
 
107
	void resetHardLimit() throws ProfitMandiBusinessException;
108
	void resetHardLimit() throws ProfitMandiBusinessException;
108
 
109
 
109
	void releaseBlockedLimit(Loan blockedLoan, double limitToRelease) throws ProfitMandiBusinessException;
110
	void releaseBlockedLimit(Loan blockedLoan, double limitToRelease) throws ProfitMandiBusinessException;
110
 
111
 
-
 
112
	/**
-
 
113
	 * Blocks (deactivates) a partner's credit account. A non-blank reason is mandatory and
-
 
114
	 * every block is recorded in dtr.credit_block_log.
-
 
115
	 */
-
 
116
	void blockCredit(int creditAccountId, String reason, String performedBy) throws ProfitMandiBusinessException;
-
 
117
 
-
 
118
	/**
-
 
119
	 * Unblocks (reactivates) a previously blocked credit account (same gateway). The reason is
-
 
120
	 * optional; every unblock is recorded in dtr.credit_block_log.
-
 
121
	 */
-
 
122
	void unblockCredit(int creditAccountId, String reason, String performedBy) throws ProfitMandiBusinessException;
-
 
123
 
-
 
124
	/** Full block/unblock history for a partner, newest first (for the unblock modal). */
-
 
125
	List<CreditBlockLog> getCreditBlockLogs(int fofoId);
-
 
126
 
111
	CreditSummary getCreditSummary(int fofoId);
127
	CreditSummary getCreditSummary(int fofoId);
112
 
128
 
113
	CreditSummary getCreditSummaryForOrder(int fofoId, double orderAmount) throws ProfitMandiBusinessException;
129
	CreditSummary getCreditSummaryForOrder(int fofoId, double orderAmount) throws ProfitMandiBusinessException;
114
 
130
 
115
	Map<Integer, BulkCreditSummary> getCreditSummaryBulk();
131
	Map<Integer, BulkCreditSummary> getCreditSummaryBulk();