Class AccountBankService

java.lang.Object
es.kukenan.smartfi.microservice.contracts.service.AccountBankService

@Service public class AccountBankService extends Object
Contract service.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Back office clients manager.
    protected es.kukenan.smartfi.common.service.jwt.JwtService
    JWT service for create a bearer to call products.
    User backoffice repository.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • jwtService

      @Autowired protected es.kukenan.smartfi.common.service.jwt.JwtService jwtService
      JWT service for create a bearer to call products.
    • userBackofficeRepository

      @Autowired private UserBackofficeRepository userBackofficeRepository
      User backoffice repository.
    • backofficeClientManager

      @Autowired private BackofficeClientManager 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.