Subversion Repositories SmartDukaan

Rev

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

Rev 32494 Rev 33194
Line 5... Line 5...
5
import com.spice.profitmandi.dao.entity.transaction.UserWalletHistory;
5
import com.spice.profitmandi.dao.entity.transaction.UserWalletHistory;
6
import in.shop2020.model.v1.order.WalletReferenceType;
6
import in.shop2020.model.v1.order.WalletReferenceType;
7
import org.springframework.stereotype.Service;
7
import org.springframework.stereotype.Service;
8
 
8
 
9
import java.time.LocalDateTime;
9
import java.time.LocalDateTime;
-
 
10
import java.util.Arrays;
10
import java.util.List;
11
import java.util.List;
11
import java.util.Map;
12
import java.util.Map;
12
import java.util.Set;
13
import java.util.Set;
13
 
14
 
14
@Service
15
@Service
15
public interface WalletService {
16
public interface WalletService {
-
 
17
 
-
 
18
	List<WalletReferenceType> CN_WALLET_REFERENCES = Arrays.asList(WalletReferenceType.PRICE_DROP, WalletReferenceType.SCHEME_IN, WalletReferenceType.SCHEME_OUT, WalletReferenceType.ADDITIONAL_SCHEME, WalletReferenceType.SPECIAL_SUPPORT);
16
	public void addAmountToWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount, LocalDateTime businessTime) throws ProfitMandiBusinessException;
19
	public void addAmountToWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount, LocalDateTime businessTime) throws ProfitMandiBusinessException;
17
 
20
 
18
	public void consumeAmountFromWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount, LocalDateTime businessTime) throws ProfitMandiBusinessException;
21
	public void consumeAmountFromWallet(int retailerId, int referenceId, WalletReferenceType referenceType, String description, float amount, LocalDateTime businessTime) throws ProfitMandiBusinessException;
19
 
22
 
20
	UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException;
23
	UserWallet getUserWalletByUserId(int userId) throws ProfitMandiBusinessException;