Class ContractApiService
java.lang.Object
energy.eddie.regionconnector.es.datadis.services.ContractApiService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ContractDetails> fetchContractDetails(String permissionId, String nif, String distributorCode, String meteringPointId) This method retrieves contract details based on the provided nif, distributor code and metering point.
-
Constructor Details
-
ContractApiService
-
-
Method Details
-
fetchContractDetails
public reactor.core.publisher.Mono<ContractDetails> fetchContractDetails(String permissionId, String nif, String distributorCode, String meteringPointId) This method retrieves contract details based on the provided nif, distributor code and metering point. It performs a series of validations including checking for correct metering point and ensuring the point type supports the requested measurement type. If these conditions are not met, appropriate exceptions are thrown.- Returns:
- A
ContractDetailsobject containing the most recent contract details if successful.NoContractsExceptionIf no contracts are found for the provided NIF and distributor code.DatadisApiExceptionIf the API call * fails.
-