java.lang.Object
es.kukenan.smartfi.microservice.smartficore.service.CardService

@Service public class CardService extends Object
Service to reply Wallet Product invocations.
  • Field Details

    • entity

      private static int entity
      TEMPORAL DATA FOR GENERATING ACCOUNT PRODUCT AND WALLET.
    • productCard

      private static int productCard
      Product card.
    • productMainWallet

      private static int productMainWallet
      Product main wallet.
    • badge

      private static int badge
      Badge.
    • productState

      private static int productState
      Product state.
    • walletProductRepository

      @Autowired private WalletProductRepository walletProductRepository
      Account Product repository.
    • cardProductRepository

      @Autowired private CardProductRepository cardProductRepository
      Wallet product respository.
    • productStateRepository

      @Autowired private ProductStateRepository productStateRepository
      Product state respository.
    • userRepository

      @Autowired private UserRepository userRepository
      Users repository.
    • productRepository

      @Autowired private ProductRepository productRepository
      Product repository.
    • badgeRepository

      @Autowired private BadgeRepository badgeRepository
      Badge repository.
    • entityRepository

      @Autowired private EntityRepository entityRepository
      Entity repository.
  • Constructor Details

    • CardService

      public CardService()
  • Method Details

    • createCardProductsForUser

      public List<es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Card> createCardProductsForUser(String userId)
      Create New Card Product for user.
      Parameters:
      userId - user identifier
      Returns:
      new card product user
    • getCardProductsByUserId

      public List<CardProduct> getCardProductsByUserId(String userId)
      Retrieve cards products.
      Parameters:
      userId - user id
      Returns:
      list from cards products.
    • cardProductDisable

      public CardProduct cardProductDisable(boolean status, String cardProductId)
      Retrieve card product.
      Parameters:
      status - status
      cardProductId - wallet product identifier
      Returns:
      the card product detail.
    • getCards

      public List<es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Card> getCards(String userId, String sessionId, String statusId, String userIp)
      Retrieve user cards.
      Parameters:
      userId - user identifier.
      sessionId - session identifier
      statusId - status identifier
      userIp - ip identifier.
      Returns:
      the cards list.