Class MoveMoneyService

java.lang.Object
es.kukenan.smartfi.microservice.transfer.service.MoveMoneyService

@Service public class MoveMoneyService extends Object
Cashflow service.
  • Field Details

    • TRANSFER_TYPE

      public static final String TRANSFER_TYPE
      Transfer movement type.
      See Also:
    • TRANSFER_LIST_TYPE

      public static final String TRANSFER_LIST_TYPE
      Transfer list movement type without having to be active.
      See Also:
    • CONTRIBUTION_TYPE

      public static final String CONTRIBUTION_TYPE
      Contribution movement type.
      See Also:
    • EARLY_REPAYMENT_TYPE

      public static final String EARLY_REPAYMENT_TYPE
      Early repayment movement type.
      See Also:
    • ENCODE_PIPELINE

      public static final String ENCODE_PIPELINE
      Separate character in filter ecode.
    • internalProductsApiClient

      @Autowired private InternalProductsApiClient internalProductsApiClient
      Back office clients manager.
    • userRepository

      @Autowired private UserRepository userRepository
      UserRepository UserRepository.
  • Constructor Details

    • MoveMoneyService

      public MoveMoneyService()
  • Method Details

    • findOriginsInternalProducts

      public List<es.kukenan.smartfi.microservice.transfer.api.products.ProductOriginDto> findOriginsInternalProducts(String sessionId, String userId, String userToken, String type, Boolean cacheable)
      Get origin products.
      Parameters:
      sessionId - user id.
      userId - user id.
      userToken - user bearer token.
      type - type of movement.
      cacheable - cacheable candidate
      Returns:
      product details. If the product is not found.
    • findDestinationsInternalProducts

      public List<es.kukenan.smartfi.microservice.transfer.api.products.ProductDestinationDto> findDestinationsInternalProducts(String userToken, String type, String userId)
      Get destination products.
      Parameters:
      userToken - user bearer token.
      type - type of movement.
      userId - userId of movement.
      Returns:
      product details. If the product is not found.
    • updateQueryParamsByType

      private void updateQueryParamsByType(StringBuilder queryParams)
    • updateQueryParamsByStatus

      private void updateQueryParamsByStatus(StringBuilder queryParams, String type)
    • findUser

      private User findUser(String userId)
      Find the user with the given id.
      Parameters:
      userId - user identifier.
      Returns:
      the user with the given id. If such a user does not exist, a UnexpectedException will be thrown.
    • updateQueryParamsBySignature

      private void updateQueryParamsBySignature(StringBuilder queryParams)
    • updateQueryParmasByCurrency

      private void updateQueryParmasByCurrency(StringBuilder queryParams)