Class ContractsService

java.lang.Object
es.kukenan.smartfi.microservice.firm.service.ContractsService

@Service public class ContractsService extends Object
Webview related operations.
  • Field Details

    • API_CONTRACTS_PATH

      public static final String API_CONTRACTS_PATH
      Path for Contracts of BE.
      See Also:
    • productsHost

      @Value("${firm.service.contracts.uri}") private String productsHost
      Products host.
    • restTemplate

      @Autowired private org.springframework.web.client.RestTemplate restTemplate
      Rest template.
    • properties

      @Autowired private es.kukenan.smartfi.common.context.config.ContextPropagationProperties properties
      Context propagation properties.
    • contextManager

      @Autowired private es.kukenan.smartfi.common.context.RequestContextManager contextManager
      Request context manager.
  • Constructor Details

    • ContractsService

      public ContractsService()
  • Method Details

    • getContractsCall

      public org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.contract.ContractResponseDto> getContractsCall(String jwt)
      Get all contracts for user.
      Parameters:
      jwt - jwt
      Returns:
      ContractResponseDto for a contracts
    • getActualContract

      public String getActualContract(String token)
      Get actual contract calling producs.
      Parameters:
      token - token
      Returns:
      number actual Contratc or null if not connected contract.