All Superinterfaces:
MeterReadingPermissionRequest, PermissionRequest
All Known Implementing Classes:
DatadisPermissionRequest

public interface EsPermissionRequest extends MeterReadingPermissionRequest
  • Method Details

    • nif

      String nif()
      The NIF of the customer that requested the permission. This is the username which is used to log in to the Datadis portal.
    • meteringPointId

      String meteringPointId()
      The metering point id of the metering point associated with this permission request. In DataDis this is called CUPS.
    • distributorCode

      Optional<DistributorCode> distributorCode()
      The distributor code of the distributor that is responsible for the metering point associated with this permission request.
    • pointType

      Optional<Integer> pointType()
      This number describes what kind of metering point is associated with this permission request. The values range from 1 to 5 and decide what MeasurementType is used supported.

      Only 1 and 2 support @MeasurementType.QUARTER_HOURLY.

      All metering points support @MeasurementType.HOURLY.

    • productionSupport

      boolean productionSupport()
      In Spain, a metering point always has consumption, but they can additionally have production as well.
      Returns:
      true if the metering point associated with this permission request supports production data.
    • measurementType

      MeasurementType measurementType()
      Decide what kind of metering data is requested.

      Either @MeasurementType.HOURLY or @MeasurementType.QUARTER_HOURLY.

      Look at@pointType() to see what is supported.

    • allowedGranularity

      AllowedGranularity allowedGranularity()
    • errorMessage

      @Nullable String errorMessage()
    • granularity

      Granularity granularity()