Skip to content

Update schema to allow isolated-day-peak models #54

@elden1337

Description

@elden1337

In Sweden, there are emerging tariff models that do not bill a ”remembered” value as monthly max or average of 3 daily peaks, but rather an isolated calculation per day, which then sums up at months end.
This poses a problem to the current schema, as it cannot distinguish between these variants.

Below is a proposed change that should reveal the variants:

Version 1 (Aggregation = 1 peak per day)

{
  "peakIdentificationSettings": {
    "identification": {
      "period": "P1D",
      "duration": "PT1H"
    },
    "billing": {
      "billingPeriod": "P1M",
      "billingAggregationPeriod": "P1D",
      "numberOfPeaksForAverageCalculation": 1
    }
  }
}

Version 2 (Aggregation = 3 peaks per month)

{
  "peakIdentificationSettings": {
    "identification": {
      "period": "P1D",
      "duration": "PT1H"
    },
    "billing": {
      "billingPeriod": "P1M",
      "billingAggregationPeriod": "P1M",
      "numberOfPeaksForAverageCalculation": 3
    }
  }
}

This should cover the existing models as well as the new variant with isolated daily billing-calculations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions