Class InternalProductsApiClient
java.lang.Object
es.kukenan.smartfi.microservice.clients.service.backoffice.InternalProductsApiClient
Internal Products API client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CoreContractEndpointContract endpoint implementation.private org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorThread pool task executor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFuture<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank>findActiveBankAccountAsync(String userId, String userToken) Find active user Bank Account.findApprovedContractsAsync(String userId, String userToken) Save new contract to user.Future<es.kukenan.smartfi.microservice.clients.dto.ContractCompanyInfoDto>findContractAndCompanyInfoAsync(String userId, String userToken) Find contract and company info for user.
-
Field Details
-
contractEndpoint
Contract endpoint implementation. -
threadPoolTaskExecutor
@Autowired private org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor threadPoolTaskExecutorThread pool task executor.
-
-
Constructor Details
-
InternalProductsApiClient
public InternalProductsApiClient()
-
-
Method Details
-
findApprovedContractsAsync
public Future<List<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract>> findApprovedContractsAsync(String userId, String userToken) Save new contract to user.- Parameters:
userId- core user id.userToken- user authentication.- Returns:
- contract list.
-
findActiveBankAccountAsync
public Future<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank> findActiveBankAccountAsync(String userId, String userToken) Find active user Bank Account.- Parameters:
userId- core user id.userToken- user authentication.- Returns:
- active account.
-
findContractAndCompanyInfoAsync
public Future<es.kukenan.smartfi.microservice.clients.dto.ContractCompanyInfoDto> findContractAndCompanyInfoAsync(String userId, String userToken) Find contract and company info for user.- Parameters:
userId- core user id.userToken- user authentication.- Returns:
- contract and company info.
-