Class GetRewardsServiceHelper

java.lang.Object
com.skava.loyalty.service.impl.GetRewardsServiceHelper
Direct Known Subclasses:
GetRewardsServiceImpl

@Service public class GetRewardsServiceHelper extends Object
This class contains functionality to get rewards
Since:
8.5
Version:
8.5
Author:
Infosys Equinox
  • Field Details

    • commonProcess

      @Autowired public CommonProcess commonProcess
      Holds an instance of commonProcess
    • ruleProcess

      @Autowired public RuleProcess ruleProcess
      Holds an instance of ruleProcess
    • ruleEngine

      @Autowired public com.skava.core.rules.engine.RuleEngine ruleEngine
      Holds an instance of ruleEngine
    • loyaltyRewardFactory

      @Autowired public LoyaltyRewardFactory loyaltyRewardFactory
    • authTokenHandler

      @Autowired public com.skava.core.auth.AuthTokenHandler authTokenHandler
      Holds an instance of AuthTokenHandler
    • loyaltyRepository

      @Autowired public LoyaltyRepository loyaltyRepository
      Holds an instance of LoyaltyRepository
    • loyaltyFactoryImpl

      @Autowired public LoyaltyFactoryImpl loyaltyFactoryImpl
      Holds an instance of loyaltyFactoryImpl
    • objectMapper

      @Autowired public com.fasterxml.jackson.databind.ObjectMapper objectMapper
      objectMapper
  • Constructor Details

    • GetRewardsServiceHelper

      public GetRewardsServiceHelper()
  • Method Details

    • setRewardsBankFromUserId

      public void setRewardsBankFromUserId(LoyaltyRewardsDO loyaltyRewardsDO)
      getRewardsBankFromUserId
      Parameters:
      loyaltyRewardsDO - loyaltyRewardsDO
    • getLoyaltyUserId

      public static String getLoyaltyUserId(LoyaltyRewardsDO loyaltyRewardsDO, com.skava.core.auth.AuthTokenHandler authTokenHandler)
      getLoyaltyUserId
      Parameters:
      loyaltyRewardsDO - loyaltyRewardsDO
      authTokenHandler - Holds the Instance of AuthTokenHandler
      Returns:
      A userId
    • updateUserNameInRequest

      public static void updateUserNameInRequest(LoyaltyRewardsDO loyaltyRewardsDO, TransactionRequest transactionRequest)
      updateUserNameInRequest - Update userName in transaction
      Parameters:
      loyaltyRewardsDO - loyaltyRewardsDO
      transactionRequest - transactionRequest