Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[energidataservice] Add filter for Aal Elnet #15621

Merged
merged 1 commit into from
Sep 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
@NonNullByDefault
public class DatahubTariffFilterFactory {

private static final String GLN_AAL_ELNET = "5790001095451";
private static final String GLN_CERIUS = "5790000705184";
private static final String GLN_DINEL = "5790000610099";
private static final String GLN_ELEKTRUS = "5790000836239";
Expand Down Expand Up @@ -71,6 +72,9 @@ public class DatahubTariffFilterFactory {

public static DatahubTariffFilter getNetTariffByGLN(String 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:
return new DatahubTariffFilter(Set.of(ChargeTypeCode.of("30TR_C_ET")), Set.of(NOTE_NET_TARIFF_C_HOUR));
case GLN_DINEL:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<description>Global Location Number of the grid company.</description>
<limitToOptions>false</limitToOptions>
<options>
<option value="5790001095451">Aal Elnet</option>
<option value="5790000705184">Cerius</option>
<option value="5790000610099">Dinel</option>
<option value="5790002502699">El-net Kongerslev</option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.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.option.5790001095451 = Aal Elnet
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.5790002502699 = El-net Kongerslev
Expand Down