Class AccountingPointDataService
java.lang.Object
energy.eddie.regionconnector.es.datadis.services.AccountingPointDataService
-
Constructor Summary
ConstructorsConstructorDescriptionAccountingPointDataService(ContractApiService contractApiService, SupplyApiService supplyApiService) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<AccountingPointData> fetchAccountingPointDataForPermissionRequest(EsPermissionRequest permissionRequest) Fetches theAccountingPointDatafor a given permission request.
-
Constructor Details
-
AccountingPointDataService
public AccountingPointDataService(ContractApiService contractApiService, SupplyApiService supplyApiService)
-
-
Method Details
-
fetchAccountingPointDataForPermissionRequest
public reactor.core.publisher.Mono<AccountingPointData> fetchAccountingPointDataForPermissionRequest(EsPermissionRequest permissionRequest) Fetches theAccountingPointDatafor a given permission request.- Parameters:
permissionRequest- the permission request that is used to fetch the accounting point data.- Returns:
- A
AccountingPointDataobject containing the accounting point details if successful.NoSuppliesExceptionIf no supplies are found for the provided NIF a nd distributor code.NoSupplyForMeteringPointExceptionIf no supply is found for the given metering point of the permission request.NoContractsExceptionIf no contracts are found for permission request.
-