| Line 7... |
Line 7... |
| 7 |
|
7 |
|
| 8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 9 |
import com.spice.profitmandi.dao.entity.transaction.UserWallet;
|
9 |
import com.spice.profitmandi.dao.entity.transaction.UserWallet;
|
| 10 |
import com.spice.profitmandi.dao.entity.transaction.UserWalletHistory;
|
10 |
import com.spice.profitmandi.dao.entity.transaction.UserWalletHistory;
|
| 11 |
|
11 |
|
| - |
|
12 |
import in.shop2020.model.v1.order.WalletReferenceType;
|
| - |
|
13 |
|
| 12 |
@Service
|
14 |
@Service
|
| 13 |
public interface WalletService {
|
15 |
public interface WalletService {
|
| - |
|
16 |
public void addAmountToWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount) throws ProfitMandiBusinessException;
|
| - |
|
17 |
public void consumeAmountFromWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount) throws ProfitMandiBusinessException;
|
| 14 |
UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException;
|
18 |
UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException;
|
| 15 |
List<UserWalletHistory> getUserWalletHistoryByUserId(int userId) throws ProfitMandiBusinessException;
|
19 |
List<UserWalletHistory> getUserWalletHistoryByUserId(int userId) throws ProfitMandiBusinessException;
|
| 16 |
List<UserWalletHistory> getUserWalletHistoryByRetailerId(int retailerId) throws ProfitMandiBusinessException;
|
20 |
List<UserWalletHistory> getUserWalletHistoryByRetailerId(int retailerId) throws ProfitMandiBusinessException;
|
| 17 |
public List<UserWalletHistory> getPaginatedUserWalletHistoryByRetailerId(int retailerId, LocalDateTime startDateTime, LocalDateTime endDateTime, int offset, int limit) throws ProfitMandiBusinessException;
|
21 |
public List<UserWalletHistory> getPaginatedUserWalletHistoryByRetailerId(int retailerId, LocalDateTime startDateTime, LocalDateTime endDateTime, int offset, int limit) throws ProfitMandiBusinessException;
|
| 18 |
public long getSizeByRetailerId(int retailerId, LocalDateTime startDateTime, LocalDateTime endDateTime) throws ProfitMandiBusinessException;
|
22 |
public long getSizeByRetailerId(int retailerId, LocalDateTime startDateTime, LocalDateTime endDateTime) throws ProfitMandiBusinessException;
|