Class CustomerDataClient

java.lang.Object
energy.eddie.regionconnector.cds.client.customer.data.CustomerDataClient

@Component public class CustomerDataClient extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomerDataClient(org.springframework.web.reactive.function.client.WebClient webClient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.AccountsEndpoint200ResponseAllOfAccountsInner>>
    accounts(URI accountsEndpoint, OAuthCredentials credentials)
     
    reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.MeterDeviceEndpoint200ResponseAllOfMeterDevicesInner>>
    meterDevices(URI meterDeviceEndpoint, OAuthCredentials credentials)
     
    reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.ServiceContractEndpoint200ResponseAllOfServiceContractsInner>>
    serviceContracts(URI serviceContractsEndpoint, OAuthCredentials credentials)
     
    reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.ServicePointEndpoint200ResponseAllOfServicePointsInner>>
    servicePoints(URI servicePointsEndpoint, OAuthCredentials credentials)
     
    reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.UsageSegmentEndpoint200ResponseAllOfUsageSegmentsInner>>
    usageSegments(ZonedDateTime before, ZonedDateTime after, URI usageSegmentsEndpoint, OAuthCredentials credentials)
    Retrieves all usage segments between after and before.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomerDataClient

      public CustomerDataClient(org.springframework.web.reactive.function.client.WebClient webClient)
  • Method Details

    • accounts

      public reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.AccountsEndpoint200ResponseAllOfAccountsInner>> accounts(URI accountsEndpoint, OAuthCredentials credentials)
    • serviceContracts

      public reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.ServiceContractEndpoint200ResponseAllOfServiceContractsInner>> serviceContracts(URI serviceContractsEndpoint, OAuthCredentials credentials)
    • servicePoints

      public reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.ServicePointEndpoint200ResponseAllOfServicePointsInner>> servicePoints(URI servicePointsEndpoint, OAuthCredentials credentials)
    • meterDevices

      public reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.MeterDeviceEndpoint200ResponseAllOfMeterDevicesInner>> meterDevices(URI meterDeviceEndpoint, OAuthCredentials credentials)
    • usageSegments

      public reactor.core.publisher.Mono<List<energy.eddie.regionconnector.cds.openapi.model.UsageSegmentEndpoint200ResponseAllOfUsageSegmentsInner>> usageSegments(ZonedDateTime before, ZonedDateTime after, URI usageSegmentsEndpoint, OAuthCredentials credentials)
      Retrieves all usage segments between after and before.
      Parameters:
      before - Filters for all usage segments before this datetime before > usagesegment.datetime
      after - Filters for all usage segments after this datetime after < usagesegment.datetime
      usageSegmentsEndpoint - The API endpoint for usage segments
      credentials - Credentials of the final customer
      Returns:
      all usage segments between after and before