public class CoreContractEndpoint extends AbstractInternalEndpointClient
Core CoreContractEndpoint endpoint implementation.
  • Field Details

    • PATH_APPROVED_CONTRACT_BASE

      public static final String PATH_APPROVED_CONTRACT_BASE
      Path Contract base.
      See Also:
    • PATH_CONTRACT_COMPANY_INFO

      public static final String PATH_CONTRACT_COMPANY_INFO
      Path Contract and company info for user.
      See Also:
    • PATH_ACTIVE_BANK_ACCOUNT

      public static final String PATH_ACTIVE_BANK_ACCOUNT
      Path active bank account.
      See Also:
  • Constructor Details

    • CoreContractEndpoint

      public CoreContractEndpoint(String apiBasePath)
      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.