Subversion Repositories SmartDukaan

Rev

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

Rev 30677 Rev 30889
Line 12... Line 12...
12
import java.util.Set;
12
import java.util.Set;
13
 
13
 
14
@Service
14
@Service
15
public interface WalletService {
15
public interface WalletService {
16
	public void addAmountToWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount, LocalDateTime businessTime) throws ProfitMandiBusinessException;
16
	public void addAmountToWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount, LocalDateTime businessTime) throws ProfitMandiBusinessException;
-
 
17
 
17
	public void consumeAmountFromWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount, LocalDateTime businessTime) throws ProfitMandiBusinessException;
18
	public void consumeAmountFromWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount, LocalDateTime businessTime) throws ProfitMandiBusinessException;
-
 
19
 
18
	UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException;
20
	UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException;
-
 
21
 
19
	UserWallet getUserWallet(int retailerId) throws ProfitMandiBusinessException;
22
	UserWallet getUserWallet(int retailerId) throws ProfitMandiBusinessException;
-
 
23
 
20
	List<UserWalletHistory> getUserWalletHistoryByUserId(int userId) throws ProfitMandiBusinessException;
24
	List<UserWalletHistory> getUserWalletHistoryByUserId(int userId) throws ProfitMandiBusinessException;
-
 
25
 
21
	List<UserWalletHistory> getUserWalletHistoryByRetailerId(int retailerId) throws ProfitMandiBusinessException;
26
	List<UserWalletHistory> getUserWalletHistoryByRetailerId(int retailerId) throws ProfitMandiBusinessException;
-
 
27
 
22
	public List<UserWalletHistory> getPaginatedUserWalletHistoryByRetailerId(int retailerId, LocalDateTime startDateTime, LocalDateTime endDateTime, int offset, int limit) throws ProfitMandiBusinessException;
28
	public List<UserWalletHistory> getPaginatedUserWalletHistoryByRetailerId(int retailerId, LocalDateTime startDateTime, LocalDateTime endDateTime, int offset, int limit) throws ProfitMandiBusinessException;
-
 
29
 
23
	public long getSizeByRetailerId(int retailerId, LocalDateTime startDateTime, LocalDateTime endDateTime) throws ProfitMandiBusinessException;
30
	public long getSizeByRetailerId(int retailerId, LocalDateTime startDateTime, LocalDateTime endDateTime) throws ProfitMandiBusinessException;
-
 
31
 
24
	public Map<Integer, UserWallet> getRetailerIdUserWalletMap(Set<Integer> retailerIds);
32
	public Map<Integer, UserWallet> getRetailerIdUserWalletMap(Set<Integer> retailerIds);
25
 
33
 
-
 
34
	void consumeAmountFromWallet(int retailerId, int referenceId, WalletReferenceType referenceType,
-
 
35
								 String description, float amount, LocalDateTime businessTime, boolean forced) throws ProfitMandiBusinessException;
-
 
36
 
26
	public void rollbackAmountFromWallet(int fofoId, float amountToRollback, int rollbackReference, WalletReferenceType walletReferenceType,
37
	public void rollbackAmountFromWallet(int fofoId, float amountToRollback, int rollbackReference, WalletReferenceType walletReferenceType,
27
										 String rollbackReason, LocalDateTime businessTime) throws ProfitMandiBusinessException;
38
										 String rollbackReason, LocalDateTime businessTime) throws ProfitMandiBusinessException;
28
 
39
 
29
	public boolean isExistWalletHistory(int retailerId, int referenceId, WalletReferenceType referenceType) throws ProfitMandiBusinessException;
40
	public boolean isExistWalletHistory(int retailerId, int referenceId, WalletReferenceType referenceType) throws ProfitMandiBusinessException;
30
 
41