Class MoveMoneyService
java.lang.Object
es.kukenan.smartfi.microservice.transfer.service.MoveMoneyService
Cashflow service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringContribution movement type.static final StringEarly repayment movement type.static final StringSeparate character in filter ecode.private InternalProductsApiClientBack office clients manager.static final StringTransfer list movement type without having to be active.static final StringTransfer movement type.private UserRepositoryUserRepository UserRepository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<es.kukenan.smartfi.microservice.transfer.api.products.ProductDestinationDto>findDestinationsInternalProducts(String userToken, String type, String userId) Get destination products.List<es.kukenan.smartfi.microservice.transfer.api.products.ProductOriginDto>findOriginsInternalProducts(String sessionId, String userId, String userToken, String type, Boolean cacheable) Get origin products.private UserFind the user with the given id.private voidupdateQueryParamsBySignature(StringBuilder queryParams) private voidupdateQueryParamsByStatus(StringBuilder queryParams, String type) private voidupdateQueryParamsByType(StringBuilder queryParams) private voidupdateQueryParmasByCurrency(StringBuilder queryParams)
-
Field Details
-
TRANSFER_TYPE
Transfer movement type.- See Also:
-
TRANSFER_LIST_TYPE
Transfer list movement type without having to be active.- See Also:
-
CONTRIBUTION_TYPE
Contribution movement type.- See Also:
-
EARLY_REPAYMENT_TYPE
Early repayment movement type.- See Also:
-
ENCODE_PIPELINE
Separate character in filter ecode. -
internalProductsApiClient
Back office clients manager. -
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
-
updateQueryParamsByStatus
-
findUser
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
UnexpectedExceptionwill be thrown.
-
updateQueryParamsBySignature
-
updateQueryParmasByCurrency
-