Class ContractsService
java.lang.Object
es.kukenan.smartfi.microservice.firm.service.ContractsService
Webview related operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPath for Contracts of BE.private es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager.private StringProducts host.private es.kukenan.smartfi.common.context.config.ContextPropagationPropertiesContext propagation properties.private org.springframework.web.client.RestTemplateRest template. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActualContract(String token) Get actual contract calling producs.org.springframework.http.ResponseEntity<es.kukenan.smartfi.microservice.contracts.api.contract.ContractResponseDto>getContractsCall(String jwt) Get all contracts for user.
-
Field Details
-
API_CONTRACTS_PATH
Path for Contracts of BE.- See Also:
-
productsHost
Products host. -
restTemplate
@Autowired private org.springframework.web.client.RestTemplate restTemplateRest template. -
properties
@Autowired private es.kukenan.smartfi.common.context.config.ContextPropagationProperties propertiesContext propagation properties. -
contextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager contextManagerRequest 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
Get actual contract calling producs.- Parameters:
token- token- Returns:
- number actual Contratc or null if not connected contract.
-