Class AccountBankService
java.lang.Object
es.kukenan.smartfi.microservice.contracts.service.AccountBankService
Contract service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BackofficeClientManagerBack office clients manager.protected es.kukenan.smartfi.common.service.jwt.JwtServiceJWT service for create a bearer to call products.private UserBackofficeRepositoryUser backoffice repository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiones.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBankgetAccountBankDetail(String userId, es.kukenan.smartfi.common.security.WalletAuthentication auth, String accountBankId) Get a Account Banks.es.kukenan.smartfi.common.api.dtos.ResultsPageDto<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank>getAccountBanks(String userId, es.kukenan.smartfi.common.security.WalletAuthentication auth) Get a Account Banks.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank>getActiveBankAccount(String userId, es.kukenan.smartfi.common.security.WalletAuthentication auth, String userToken) Get active bank account.es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBanksaveAccountBank(String userId, String userToken, es.kukenan.smartfi.common.security.WalletAuthentication auth, es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBankRequestDto accountBankRequestDto) Create a Account Bank.
-
Field Details
-
jwtService
@Autowired protected es.kukenan.smartfi.common.service.jwt.JwtService jwtServiceJWT service for create a bearer to call products. -
userBackofficeRepository
User backoffice repository. -
backofficeClientManager
Back office clients manager.
-
-
Constructor Details
-
AccountBankService
public AccountBankService()
-
-
Method Details
-
saveAccountBank
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank saveAccountBank(String userId, String userToken, es.kukenan.smartfi.common.security.WalletAuthentication auth, es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBankRequestDto accountBankRequestDto) Create a Account Bank.- Parameters:
userId- user identifier.userToken- user bearer.auth- authentication, required to extract user bank entity.accountBankRequestDto- account bank request.- Returns:
- product details. If the product is not found.
-
getAccountBanks
public es.kukenan.smartfi.common.api.dtos.ResultsPageDto<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank> getAccountBanks(String userId, es.kukenan.smartfi.common.security.WalletAuthentication auth) Get a Account Banks.- Parameters:
userId- user identifier.auth- user authentication.- Returns:
- product details. If the product is not found.
-
getActiveBankAccount
public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank> getActiveBankAccount(String userId, es.kukenan.smartfi.common.security.WalletAuthentication auth, String userToken) Get active bank account.- Parameters:
userId- user identifier.auth- user authentication.userToken- user bearer.- Returns:
- product details. If the product is not found.
-
getAccountBankDetail
public es.kukenan.smartfi.microservice.backoffice.dtos.core.contract.AccountBank getAccountBankDetail(String userId, es.kukenan.smartfi.common.security.WalletAuthentication auth, String accountBankId) Get a Account Banks.- Parameters:
userId- user identifier.auth- user authentication.accountBankId- accountBank identifier.- Returns:
- product details. If the product is not found.
-