Class CoreContractEndpoint
java.lang.Object
es.kukenan.smartfi.microservice.clients.service.backoffice.AbstractEndpointClient
es.kukenan.smartfi.microservice.clients.service.backoffice.AbstractInternalEndpointClient
es.kukenan.smartfi.microservice.clients.service.backoffice.apis.endpoints.CoreContractEndpoint
Core CoreContractEndpoint endpoint implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPath active bank account.static final StringPath Contract base.static final StringPath Contract and company info for user.Fields inherited from class es.kukenan.smartfi.microservice.clients.service.backoffice.AbstractInternalEndpointClient
endpointBasePath, HEADER_USERPROFILEID, restTemplate, USER_IP_HEADERFields inherited from class es.kukenan.smartfi.microservice.clients.service.backoffice.AbstractEndpointClient
coreBasseUrl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBankfindAccount(String userId, String userToken) Find active user Bank Account.es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBankfindActiveBankAccount(String userId, String userToken) Find active user Bank Account.List<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract>findApprovedContracts(String userId, String userToken) Save new contract to user.es.kukenan.smartfi.microservice.clients.dto.ContractCompanyInfoDtofindContractAndCompanyInfo(String userId, String userToken) Find contract and company info for user.protected es.kukenan.smartfi.microservice.clients.dto.ContractCompanyInfoDtoFind contract and company info.protected List<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract>Find one contract entities.Methods inherited from class es.kukenan.smartfi.microservice.clients.service.backoffice.AbstractInternalEndpointClient
defaultRequestHeaders, defaultRequestHeaders, extractResponseBody, extractResponseDataMethods inherited from class es.kukenan.smartfi.microservice.clients.service.backoffice.AbstractEndpointClient
createUri, createUri, defaultRequestHeaders, defaultRequestHeaders, handleConnectionException, message
-
Field Details
-
PATH_APPROVED_CONTRACT_BASE
Path Contract base.- See Also:
-
PATH_CONTRACT_COMPANY_INFO
Path Contract and company info for user.- See Also:
-
PATH_ACTIVE_BANK_ACCOUNT
Path active bank account.- See Also:
-
-
Constructor Details
-
CoreContractEndpoint
Full state constructor.- Parameters:
apiBasePath- Core API base path.
-
-
Method Details
-
findApprovedContracts
public List<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract> findApprovedContracts(String userId, String userToken) Save new contract to user.- Parameters:
userId- core user id.userToken- user authentication.- Returns:
- contract list.
-
findActiveBankAccount
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank findActiveBankAccount(String userId, String userToken) Find active user Bank Account.- Parameters:
userId- core user id.userToken- user authentication.- Returns:
- active account.
-
findContractAndCompanyInfo
public es.kukenan.smartfi.microservice.clients.dto.ContractCompanyInfoDto findContractAndCompanyInfo(String userId, String userToken) Find contract and company info for user.- Parameters:
userId- core user id.userToken- user authentication.- Returns:
- contract and company info.
-
findList
protected List<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract> findList(String userId, String userToken) Find one contract entities.- Parameters:
userId- user identifier.userToken- user authentication.- Returns:
- contract response.
-
findAccount
protected es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank findAccount(String userId, String userToken) Find active user Bank Account.- Parameters:
userId- core user id.userToken- user authentication.- Returns:
- active account.
-
findInfo
protected es.kukenan.smartfi.microservice.clients.dto.ContractCompanyInfoDto findInfo(String userId, String userToken) Find contract and company info.- Parameters:
userId- core user id.userToken- user authentication.- Returns:
- contract and company info.
-