Add filter for Aal Elnet (#15621)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
pull/15641/head
Jacob Laursen 2023-09-23 18:50:30 +02:00 committed by GitHub
parent a1193d8792
commit e562c22a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public class DatahubTariffFilterFactory { public class DatahubTariffFilterFactory {
private static final String GLN_AAL_ELNET = "5790001095451";
private static final String GLN_CERIUS = "5790000705184"; private static final String GLN_CERIUS = "5790000705184";
private static final String GLN_DINEL = "5790000610099"; private static final String GLN_DINEL = "5790000610099";
private static final String GLN_ELEKTRUS = "5790000836239"; private static final String GLN_ELEKTRUS = "5790000836239";
@ -71,6 +72,9 @@ public class DatahubTariffFilterFactory {
public static DatahubTariffFilter getNetTariffByGLN(String globalLocationNumber) { public static DatahubTariffFilter getNetTariffByGLN(String globalLocationNumber) {
switch (globalLocationNumber) { switch (globalLocationNumber) {
case GLN_AAL_ELNET:
return new DatahubTariffFilter(Set.of(ChargeTypeCode.of("AAL-NT-05")), Set.of(NOTE_NET_TARIFF_C_HOUR),
DateQueryParameter.of(DateQueryParameterType.START_OF_DAY));
case GLN_CERIUS: case GLN_CERIUS:
return new DatahubTariffFilter(Set.of(ChargeTypeCode.of("30TR_C_ET")), Set.of(NOTE_NET_TARIFF_C_HOUR)); return new DatahubTariffFilter(Set.of(ChargeTypeCode.of("30TR_C_ET")), Set.of(NOTE_NET_TARIFF_C_HOUR));
case GLN_DINEL: case GLN_DINEL:

View File

@ -28,6 +28,7 @@
<description>Global Location Number of the grid company.</description> <description>Global Location Number of the grid company.</description>
<limitToOptions>false</limitToOptions> <limitToOptions>false</limitToOptions>
<options> <options>
<option value="5790001095451">Aal Elnet</option>
<option value="5790000705184">Cerius</option> <option value="5790000705184">Cerius</option>
<option value="5790000610099">Dinel</option> <option value="5790000610099">Dinel</option>
<option value="5790002502699">El-net Kongerslev</option> <option value="5790002502699">El-net Kongerslev</option>

View File

@ -18,6 +18,7 @@ thing-type.config.energidataservice.service.energinetGLN.label = Energinet GLN
thing-type.config.energidataservice.service.energinetGLN.description = Global Location Number of Energinet. thing-type.config.energidataservice.service.energinetGLN.description = Global Location Number of Energinet.
thing-type.config.energidataservice.service.gridCompanyGLN.label = Grid Company GLN thing-type.config.energidataservice.service.gridCompanyGLN.label = Grid Company GLN
thing-type.config.energidataservice.service.gridCompanyGLN.description = Global Location Number of the grid company. thing-type.config.energidataservice.service.gridCompanyGLN.description = Global Location Number of the grid company.
thing-type.config.energidataservice.service.gridCompanyGLN.option.5790001095451 = Aal Elnet
thing-type.config.energidataservice.service.gridCompanyGLN.option.5790000705184 = Cerius thing-type.config.energidataservice.service.gridCompanyGLN.option.5790000705184 = Cerius
thing-type.config.energidataservice.service.gridCompanyGLN.option.5790000610099 = Dinel thing-type.config.energidataservice.service.gridCompanyGLN.option.5790000610099 = Dinel
thing-type.config.energidataservice.service.gridCompanyGLN.option.5790002502699 = El-net Kongerslev thing-type.config.energidataservice.service.gridCompanyGLN.option.5790002502699 = El-net Kongerslev