Class CardService
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.service.CardService
Service to reply Wallet Product invocations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intBadge.private BadgeRepositoryBadge repository.private CardProductRepositoryWallet product respository.private static intTEMPORAL DATA FOR GENERATING ACCOUNT PRODUCT AND WALLET.private EntityRepositoryEntity repository.private static intProduct card.private static intProduct main wallet.private ProductRepositoryProduct repository.private static intProduct state.private ProductStateRepositoryProduct state respository.private UserRepositoryUsers repository.private WalletProductRepositoryAccount Product repository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncardProductDisable(boolean status, String cardProductId) Retrieve card product.List<es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Card>createCardProductsForUser(String userId) Create New Card Product for user.getCardProductsByUserId(String userId) Retrieve cards products.List<es.kukenan.smartfi.microservice.backoffice.dtos.core.products.Card>Retrieve user cards.
-
Field Details
-
entity
private static int entityTEMPORAL DATA FOR GENERATING ACCOUNT PRODUCT AND WALLET. -
productCard
private static int productCardProduct card. -
productMainWallet
private static int productMainWalletProduct main wallet. -
badge
private static int badgeBadge. -
productState
private static int productStateProduct state. -
walletProductRepository
Account Product repository. -
cardProductRepository
Wallet product respository. -
productStateRepository
Product state respository. -
userRepository
Users repository. -
productRepository
Product repository. -
badgeRepository
Badge repository. -
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
Retrieve cards products.- Parameters:
userId- user id- Returns:
- list from cards products.
-
cardProductDisable
Retrieve card product.- Parameters:
status- statuscardProductId- 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 identifierstatusId- status identifieruserIp- ip identifier.- Returns:
- the cards list.
-