Class CoreBackofficeClientAdapter
java.lang.Object
es.kukenan.smartfi.microservice.contracts.service.backoffice.core.CoreBackofficeClientAdapter
- All Implemented Interfaces:
BackofficeClient,ExtendedBackofficeClient
@Component
public class CoreBackofficeClientAdapter
extends Object
implements ExtendedBackofficeClient
Core client to
ExtendedBackofficeClient adapter.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AccountBankCoreApiClientAccount bank CoreApi Client.private BackofficeApiClientBackoffice api Client.private BankCoreApiClientBank CoreApi Client.private CardsCoreApiClientcards CoreApi Client.private CashFlowCoreApiClientcashflow CoreApi Client.private CompanyCoreApiClientCompany CoreApi Client.private ContractCoreApiClientcontract CoreApi Client.private CoreClientCore client.private ProductsSearchPostProcessRunnerProducts query post-process runner.private es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager.private org.springframework.scheduling.concurrent.ThreadPoolTaskExecutorThreadPoolTaskExecutor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate List<AbstractCoreApiClient>collectApiClients(List<String> subsystems) Collect the API clients for the given subsystems or all API clients if the argument isnull.es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.CountInfoDto>countContracts(String userId, String userToken) Application count.createCardProduct(String userId, String userToken) Extract the given user product details from the given (registered) product (must be supported, seewantsmethod).createWalletProduct(String userId, String userToken) Extract the given user product details from the given (registered) product (must be supported, seewantsmethod).es.kukenan.smartfi.common.api.dtos.ResultsPageDto<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank>findAccountBanks(String idUserBackoffice) Create new account bank from user backoffice.es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBankfindAccountDetail(String idUserBackoffice, String accountBankId) Create new account bank from user backoffice.es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBankfindActiveBankAccount(String idUserBackoffice, String userToken) Get active bank account from user backoffice.List<es.kukenan.smartfi.microservice.backoffice.dtos.core.common.BankDto>findActiveBanks(String idUserBackoffice, String userToken) Get active banks.List<es.kukenan.smartfi.microservice.contracts.api.cashflow.CashFlowDto>findCashFlow(UserBackoffice userBackoffice, String contractId, String userToken) Extract the user cashflow list from the given back office.es.kukenan.smartfi.common.api.dtos.ResultsPageDto<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract>findContract(String idUserBackoffice, String userToken, Integer pageNumber, Integer pageSize, String sortedBy, es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.GetApplicationsRequestDto getApplicationsRequestDto) Get be contract from user backoffice.es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractfindContractDetail(String idUserBackoffice, String userToken, String contractId) Get contract detail from user backoffice.List<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractStateDto>findContractState(String idUserBackoffice, String userToken, String type) Get contract states from user backoffice.findDepositImpositions(ProductSearchRequest productSearchRequest, String token) Extract the given user product id will search all the product impositions.es.kukenan.smartfi.microservice.contracts.api.movement.MovementDtofindMovement(Product product, String movementId, String userToken) Extract the given movement id will search detail movement.findMovements(ProductSearchRequest searchRequest, String userToken, String dateFrom, String dateTo, String type, String paginationKey, String number, String state, String reason, Boolean allMovements) Extract the given user product id will search all the account movements.ProductDetailDomain<? extends es.kukenan.smartfi.microservice.contracts.api.products.ProductDto>findProduct(ProductSearchRequest searchRequest, String userToken) Extract the given user product details from the given (registered) product (must be supported, seewantsmethod).es.kukenan.smartfi.microservice.contracts.api.assets.AssetDtofindProductAssetDetail(ProductSearchRequest searchRequest, String assetId) Find a single of the given product by the given asset identifier.findProductAssetMovements(ProductSearchRequest searchRequest, String assetId, String dateFrom, String dateTo, String paginationKey) Find the movements of the given asset in the given product.List<es.kukenan.smartfi.microservice.contracts.api.assets.AssetDto>findProductAssets(ProductSearchRequest searchRequest) Find the assets of the given product.List<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto>findProductComposition(ProductSearchRequest searchRequest, String userToken) Extract the given user product composition from the given (registered) product (must be supported, seewantsmethod).ProductDetailDomain<? extends es.kukenan.smartfi.microservice.contracts.api.products.ProductDto>findProductPosition(ProductSearchRequest searchRequest, String userToken) Extract the given user product details from the given (registered) product (must be supported, seewantsmethod).findProducts(UserBackoffice userBackoffice, List<String> subsystems) Extract the user product list from the given back office (must be supported, seewantsmethod).findProducts(UserBackoffice userBackoffice, List<String> subsystems, ProductSearchFilter productSearchFilter, String userToken, String userIp) Extract the user product list from the given back office (must be supported, seewantsmethod).findReceipts(ProductSearchRequest searchRequest, String paginationKey, String token) Get the receipts for a given product.es.kukenan.smartfi.microservice.contracts.api.repayment.LoanRepaymentsResponseDtofindRepayments(ProductSearchRequest searchRequest, String userToken, String dateFrom, String dateTo) Get the repayments of the given product.List<es.kukenan.smartfi.microservice.contracts.api.movement.MovementDto>findWithheldMovements(ProductSearchRequest productSearchRequest, String userToken) Extract the given user product id will search all the account withheld movements.intgenerateCvvOperationId(String userId, String bankCode, String panToken, es.kukenan.smartfi.common.security.WalletAuthentication auth) Generate CVV Operation Id.intgeneratePinOperationId(String userId, String bankCode, String panToken, es.kukenan.smartfi.common.security.WalletAuthentication auth) Generate PIN Operation Id.The back office internal identifier.getCompanyLogo(String coreUserId, String userJwtToken, Integer companyId) Get company logo.getContractDocumentFile(String userId, String userToken, String contractDocumentId) Get contract document file.es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBanksaveAccountBank(String idUserBackoffice, String userToken, es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBankRequestDto accountBankRequestDto) Create new account bank from user backoffice.es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDto>saveAppointment(String userId, String userToken, es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentRequest appointmentAndBankRequest) Save appointment to application.es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract>saveContract(String idUserBackoffice, String userToken, es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.NewApplicationRequestDto newApplicationRequestDto, String userIp, String userAgent) Create new application from user backoffice.es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract>saveFilesToContract(String idUserBackoffice, String userToken, String contractId, List<org.springframework.web.multipart.MultipartFile> files) Save files to application.es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract>saveFileToContract(String userId, String userToken, String contractDocumentId, org.springframework.web.multipart.MultipartFile file) Upload files.voidupdateConnectedContract(es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDto contractCacheDto, String token) Get be contract from user backoffice.es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract>updateContractAppointment(String idUserBackoffice, String userToken, String contractId, es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDto appointment) Save appointment to application.es.kukenan.smartfi.dto.ResponseDTO<Boolean>validNewContract(String idUserBackoffice, String userToken, String type) Validation if user can create Contract.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface es.kukenan.smartfi.microservice.contracts.service.backoffice.BackofficeClient
wants
-
Field Details
-
coreClient
Core client. -
productsSearchPostProcessRunner
Products query post-process runner. -
cardsCoreApiClient
cards CoreApi Client. -
cashFlowCoreApiClient
cashflow CoreApi Client. -
contractCoreApiClient
contract CoreApi Client. -
backofficeApiClient
Backoffice api Client. -
accountBankCoreApiClient
Account bank CoreApi Client. -
bankCoreApiClient
Bank CoreApi Client. -
companyCoreApiClient
Company CoreApi Client. -
requestContextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest context manager. -
threadPoolTaskExecutor
@Autowired private org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor threadPoolTaskExecutorThreadPoolTaskExecutor.
-
-
Constructor Details
-
CoreBackofficeClientAdapter
public CoreBackofficeClientAdapter()
-
-
Method Details
-
getBackOfficeId
Description copied from interface:BackofficeClientThe back office internal identifier.- Specified by:
getBackOfficeIdin interfaceBackofficeClient- Returns:
- back office internal identifier.
-
findProducts
@Async public Future<List<ProductDomain>> findProducts(UserBackoffice userBackoffice, List<String> subsystems) Description copied from interface:BackofficeClientExtract the user product list from the given back office (must be supported, seewantsmethod). This method should be annotated with@Asyngto allow concurrent data querying.- Specified by:
findProductsin interfaceBackofficeClient- Parameters:
userBackoffice- the user back office to extract products from.subsystems- subsystems from which the products are to retrieved. Set it to null to retrieve all API products.- Returns:
- the user product list from the given extract products.
-
findProducts
@Async("threadPoolTaskExecutor") public Future<List<ProductDomain>> findProducts(UserBackoffice userBackoffice, List<String> subsystems, ProductSearchFilter productSearchFilter, String userToken, String userIp) Description copied from interface:BackofficeClientExtract the user product list from the given back office (must be supported, seewantsmethod). This method should be annotated with@Asyngto allow concurrent data querying.- Specified by:
findProductsin interfaceBackofficeClient- Parameters:
userBackoffice- the user back office to extract products from.subsystems- subsystems from which the products are to retrieved. Set it to null to retrieve all API products.productSearchFilter- the criteria to filter the products.userToken- user bearer.userIp- user Ip.- Returns:
- the user product list from the given extract products.
-
createWalletProduct
Description copied from interface:BackofficeClientExtract the given user product details from the given (registered) product (must be supported, seewantsmethod).- Specified by:
createWalletProductin interfaceBackofficeClient- Parameters:
userId- user identifier.userToken- user bearer.- Returns:
- the user product details extracted from the backoffice.
-
createCardProduct
Description copied from interface:BackofficeClientExtract the given user product details from the given (registered) product (must be supported, seewantsmethod).- Specified by:
createCardProductin interfaceBackofficeClient- Parameters:
userId- user identifier.userToken- user bearer.- Returns:
- the user product details extracted from the backoffice.
-
findProduct
public ProductDetailDomain<? extends es.kukenan.smartfi.microservice.contracts.api.products.ProductDto> findProduct(ProductSearchRequest searchRequest, String userToken) Description copied from interface:BackofficeClientExtract the given user product details from the given (registered) product (must be supported, seewantsmethod).- Specified by:
findProductin interfaceBackofficeClient- Parameters:
searchRequest- the required data to find a product and build a fullProductDetailDomain.userToken- user bearer.- Returns:
- the user product details extracted from the backoffice.
-
findWithheldMovements
public List<es.kukenan.smartfi.microservice.contracts.api.movement.MovementDto> findWithheldMovements(ProductSearchRequest productSearchRequest, String userToken) Description copied from interface:BackofficeClientExtract the given user product id will search all the account withheld movements.- Specified by:
findWithheldMovementsin interfaceBackofficeClient- Parameters:
productSearchRequest- searchRequest.userToken- userToken.- Returns:
- user withholding movement list.
-
findDepositImpositions
public ImpositionDomain findDepositImpositions(ProductSearchRequest productSearchRequest, String token) Extract the given user product id will search all the product impositions.- Specified by:
findDepositImpositionsin interfaceBackofficeClient- Parameters:
productSearchRequest- the product search request.token- token.- Returns:
- the user product impositions extracted.
-
findRepayments
public es.kukenan.smartfi.microservice.contracts.api.repayment.LoanRepaymentsResponseDto findRepayments(ProductSearchRequest searchRequest, String userToken, String dateFrom, String dateTo) Description copied from interface:ExtendedBackofficeClientGet the repayments of the given product.- Specified by:
findRepaymentsin interfaceExtendedBackofficeClient- Parameters:
searchRequest- product search data.userToken- userToken.dateFrom- dateFrom.dateTo- dateTo.- Returns:
- product repayments.
-
findMovements
public MovementDomain findMovements(ProductSearchRequest searchRequest, String userToken, String dateFrom, String dateTo, String type, String paginationKey, String number, String state, String reason, Boolean allMovements) Extract the given user product id will search all the account movements.- Specified by:
findMovementsin interfaceBackofficeClient- Parameters:
searchRequest- the product search request.userToken- user bearer.dateFrom- params searching.dateTo- params searching.type- params searching.paginationKey- params searching.number- imposition number.state- imposition state.reason- reason.allMovements- all movements.- Returns:
- the user product details extracted from the backoffice.
-
findMovement
public es.kukenan.smartfi.microservice.contracts.api.movement.MovementDto findMovement(Product product, String movementId, String userToken) Extract the given movement id will search detail movement.- Specified by:
findMovementin interfaceBackofficeClient- Parameters:
product- the (registered) product.movementId- params movementId.userToken- bearer.- Returns:
- the user movement detail extracted from the backoffice.
-
collectApiClients
Collect the API clients for the given subsystems or all API clients if the argument isnull.- Parameters:
subsystems- subsystems which API client are to be retrieved. Set it to null to retrieve all API clients.- Returns:
- the API clients for the given subsystems or all API clients if the argument is
null.
-
findReceipts
public ReceiptsDomain findReceipts(ProductSearchRequest searchRequest, String paginationKey, String token) Description copied from interface:ExtendedBackofficeClientGet the receipts for a given product.- Specified by:
findReceiptsin interfaceExtendedBackofficeClient- Parameters:
searchRequest- product search data.paginationKey- pagination Key.token- token- Returns:
- product receipts.
-
findProductAssets
public List<es.kukenan.smartfi.microservice.contracts.api.assets.AssetDto> findProductAssets(ProductSearchRequest searchRequest) Description copied from interface:ExtendedBackofficeClientFind the assets of the given product.- Specified by:
findProductAssetsin interfaceExtendedBackofficeClient- Parameters:
searchRequest- the (registered) product.- Returns:
- the user product assets extracted from the backoffice.
-
findProductAssetDetail
public es.kukenan.smartfi.microservice.contracts.api.assets.AssetDto findProductAssetDetail(ProductSearchRequest searchRequest, String assetId) Description copied from interface:ExtendedBackofficeClientFind a single of the given product by the given asset identifier.- Specified by:
findProductAssetDetailin interfaceExtendedBackofficeClient- Parameters:
searchRequest- the (registered) product.assetId- the asset identifier..- Returns:
- the user product assets detail extracted from the backoffice.
-
findProductAssetMovements
public MovementDomain findProductAssetMovements(ProductSearchRequest searchRequest, String assetId, String dateFrom, String dateTo, String paginationKey) Description copied from interface:ExtendedBackofficeClientFind the movements of the given asset in the given product.- Specified by:
findProductAssetMovementsin interfaceExtendedBackofficeClient- Parameters:
searchRequest- the (registered) product.assetId- the asset identifier.dateFrom- params searching.dateTo- params searching.paginationKey- pagination key used to request next result page.- Returns:
- the user product assets movements extracted from the backoffice.
-
findProductPosition
public ProductDetailDomain<? extends es.kukenan.smartfi.microservice.contracts.api.products.ProductDto> findProductPosition(ProductSearchRequest searchRequest, String userToken) Description copied from interface:ExtendedBackofficeClientExtract the given user product details from the given (registered) product (must be supported, seewantsmethod).- Specified by:
findProductPositionin interfaceExtendedBackofficeClient- Parameters:
searchRequest- the required data to find a product and build a fullProductDetailDomain.userToken- userToken.- Returns:
- the user product details extracted from the backoffice.
-
findProductComposition
public List<es.kukenan.smartfi.microservice.contracts.api.products.ProductDto> findProductComposition(ProductSearchRequest searchRequest, String userToken) Description copied from interface:ExtendedBackofficeClientExtract the given user product composition from the given (registered) product (must be supported, seewantsmethod).- Specified by:
findProductCompositionin interfaceExtendedBackofficeClient- Parameters:
searchRequest- the required data to find a product.userToken- user bearer token.- Returns:
- the user product composition extracted from the backoffice.
-
findCashFlow
public List<es.kukenan.smartfi.microservice.contracts.api.cashflow.CashFlowDto> findCashFlow(UserBackoffice userBackoffice, String contractId, String userToken) Description copied from interface:ExtendedBackofficeClientExtract the user cashflow list from the given back office.- Specified by:
findCashFlowin interfaceExtendedBackofficeClient- Parameters:
userBackoffice- the user back office.contractId- contract identifier.userToken- user bearer.- Returns:
- the cashflow information for userbackoffice.
-
generatePinOperationId
public int generatePinOperationId(String userId, String bankCode, String panToken, es.kukenan.smartfi.common.security.WalletAuthentication auth) Description copied from interface:ExtendedBackofficeClientGenerate PIN Operation Id.- Specified by:
generatePinOperationIdin interfaceExtendedBackofficeClient- Parameters:
userId- userId.bankCode- codigoEntidad.panToken- panToken.auth- auth.- Returns:
- operation ID.
-
generateCvvOperationId
public int generateCvvOperationId(String userId, String bankCode, String panToken, es.kukenan.smartfi.common.security.WalletAuthentication auth) Description copied from interface:ExtendedBackofficeClientGenerate CVV Operation Id.- Specified by:
generateCvvOperationIdin interfaceExtendedBackofficeClient- Parameters:
userId- userId.bankCode- bank code.panToken- panToken.auth- auth.- Returns:
- operation ID.
-
findContract
public es.kukenan.smartfi.common.api.dtos.ResultsPageDto<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract> findContract(String idUserBackoffice, String userToken, Integer pageNumber, Integer pageSize, String sortedBy, es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.GetApplicationsRequestDto getApplicationsRequestDto) Description copied from interface:BackofficeClientGet be contract from user backoffice.- Specified by:
findContractin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer token.pageNumber- number of page to get.pageSize- size of list to return.sortedBy- sort param.getApplicationsRequestDto- body for filtering.- Returns:
- the contract.
-
findContractDetail
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract findContractDetail(String idUserBackoffice, String userToken, String contractId) Description copied from interface:BackofficeClientGet contract detail from user backoffice.- Specified by:
findContractDetailin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer token.contractId- contract identifier.- Returns:
- the contract.
-
saveContract
public es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract> saveContract(String idUserBackoffice, String userToken, es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.NewApplicationRequestDto newApplicationRequestDto, String userIp, String userAgent) Description copied from interface:BackofficeClientCreate new application from user backoffice.- Specified by:
saveContractin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer token.newApplicationRequestDto- new application data.userIp- user real ipuserAgent- user-agent header- Returns:
- the contract.
-
validNewContract
public es.kukenan.smartfi.dto.ResponseDTO<Boolean> validNewContract(String idUserBackoffice, String userToken, String type) Description copied from interface:BackofficeClientValidation if user can create Contract.- Specified by:
validNewContractin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer token.type- contract type.- Returns:
- the contract validation.
-
saveFilesToContract
public es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract> saveFilesToContract(String idUserBackoffice, String userToken, String contractId, List<org.springframework.web.multipart.MultipartFile> files) Description copied from interface:BackofficeClientSave files to application.- Specified by:
saveFilesToContractin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer token.contractId- contract identifier.files- list of files to save.- Returns:
- response object.
-
saveAppointment
public es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDto> saveAppointment(String userId, String userToken, es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentRequest appointmentAndBankRequest) Description copied from interface:BackofficeClientSave appointment to application.- Specified by:
saveAppointmentin interfaceBackofficeClient- Parameters:
userId- the user back office.userToken- user bearer token.appointmentAndBankRequest- appointment request data.- Returns:
- response object.
-
updateContractAppointment
public es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract> updateContractAppointment(String idUserBackoffice, String userToken, String contractId, es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDto appointment) Description copied from interface:BackofficeClientSave appointment to application.- Specified by:
updateContractAppointmentin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer token.contractId- contract identifier.appointment- appointment to save.- Returns:
- response object.
-
findContractState
public List<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractStateDto> findContractState(String idUserBackoffice, String userToken, String type) Description copied from interface:BackofficeClientGet contract states from user backoffice.- Specified by:
findContractStatein interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer token.type- applcation type.- Returns:
- the contract.
-
updateConnectedContract
public void updateConnectedContract(es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.ContractCacheDto contractCacheDto, String token) Description copied from interface:BackofficeClientGet be contract from user backoffice.- Specified by:
updateConnectedContractin interfaceBackofficeClient- Parameters:
contractCacheDto- dto for change connected contract.token- authentication info.
-
saveAccountBank
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank saveAccountBank(String idUserBackoffice, String userToken, es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBankRequestDto accountBankRequestDto) Description copied from interface:BackofficeClientCreate new account bank from user backoffice.- Specified by:
saveAccountBankin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer token.accountBankRequestDto- new Account bank data.- Returns:
- the contract.
-
findAccountBanks
public es.kukenan.smartfi.common.api.dtos.ResultsPageDto<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank> findAccountBanks(String idUserBackoffice) Description copied from interface:BackofficeClientCreate new account bank from user backoffice.- Specified by:
findAccountBanksin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.- Returns:
- the contract.
-
findActiveBankAccount
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank findActiveBankAccount(String idUserBackoffice, String userToken) Description copied from interface:BackofficeClientGet active bank account from user backoffice.- Specified by:
findActiveBankAccountin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer.- Returns:
- the contract.
-
findAccountDetail
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank findAccountDetail(String idUserBackoffice, String accountBankId) Description copied from interface:BackofficeClientCreate new account bank from user backoffice.- Specified by:
findAccountDetailin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.accountBankId- account bank id.- Returns:
- the contract.
-
countContracts
public es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.CountInfoDto> countContracts(String userId, String userToken) Description copied from interface:BackofficeClientApplication count.- Specified by:
countContractsin interfaceBackofficeClient- Parameters:
userId- user identifier.userToken- user credentials.- Returns:
- count object.
-
getContractDocumentFile
Description copied from interface:BackofficeClientGet contract document file.- Specified by:
getContractDocumentFilein interfaceBackofficeClient- Parameters:
userId- user identifier.userToken- user credentials.contractDocumentId- contract document identifier.- Returns:
- File object.
-
saveFileToContract
public es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.Contract> saveFileToContract(String userId, String userToken, String contractDocumentId, org.springframework.web.multipart.MultipartFile file) Description copied from interface:BackofficeClientUpload files.- Specified by:
saveFileToContractin interfaceBackofficeClient- Parameters:
userId- user identifier.userToken- user token.contractDocumentId- application identifier.file- file uploaded.- Returns:
- upload files response.
-
findActiveBanks
public List<es.kukenan.smartfi.microservice.backoffice.dtos.core.common.BankDto> findActiveBanks(String idUserBackoffice, String userToken) Description copied from interface:BackofficeClientGet active banks.- Specified by:
findActiveBanksin interfaceBackofficeClient- Parameters:
idUserBackoffice- the user back office.userToken- user bearer.- Returns:
- list of active banks.
-
getCompanyLogo
Description copied from interface:BackofficeClientGet company logo.- Specified by:
getCompanyLogoin interfaceBackofficeClient- Parameters:
coreUserId- user identifier.userJwtToken- user credentials.companyId- company identifier.- Returns:
- File company logo.
-