Skip to content

Commit

Permalink
DEV-48114: Adding field Markteilnehmer into Netzlokation.cs, Steuerba…
Browse files Browse the repository at this point in the history
…reRessource.cs, Marktlokation.cs and Messlokation.cs to map new field in Z91 in FV2404
  • Loading branch information
levtoji committed Feb 8, 2024
1 parent 27ec903 commit 64953af
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 18 deletions.
11 changes: 11 additions & 0 deletions BO4E/BO/Marktlokation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,17 @@ public class Marktlokation : BusinessObject
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
public List<Konfigurationsprodukt>? Konfigurationsprodukte { get; set; }

/// <summary>
/// Angaben zum Marktteilnehmer
/// Enthält den MSB Code und die MSB Rolle.
/// </summary>
[JsonProperty(Required = Required.Default, Order = 41, PropertyName = "marktteilnehmer")]
[JsonPropertyName("marktteilnehmer")]
[ProtoMember(41)]
[JsonPropertyOrder(41)]
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
public Marktteilnehmer? Marktteilnehmer { get; set; }

/// <summary>
/// Test if a <paramref name="id" /> is a valid Marktlokations ID.
/// </summary>
Expand Down
15 changes: 13 additions & 2 deletions BO4E/BO/Messlokation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public string?


/// <summary>
/// gasqualitaet für EDIFACT mapping
/// Gasqualitaet für EDIFACT mapping
/// </summary>
[JsonProperty(PropertyName = "betriebszustand", Required = Required.Default, Order = 29,
NullValueHandling = NullValueHandling.Ignore)]
Expand All @@ -248,7 +248,7 @@ public string?
public Betriebszustand? Betriebszustand { get; set; }

/// <summary>
/// Zugeordnete Messprodukte
/// Zugeordnete Messprodukte
/// </summary>
[JsonProperty(Required = Required.Default, Order = 30, PropertyName = "messprodukte")]
[JsonPropertyName("messprodukte")]
Expand All @@ -257,6 +257,17 @@ public string?
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
public List<Messprodukt>? Messprodukte { get; set; }

/// <summary>
/// Angaben zum Marktteilnehmer
/// Enthält den MSB Code und die MSB Rolle.
/// </summary>
[JsonProperty(Required = Required.Default, Order = 31, PropertyName = "marktteilnehmer")]
[JsonPropertyName("marktteilnehmer")]
[ProtoMember(1025)]
[JsonPropertyOrder(31)]
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
public Marktteilnehmer? Marktteilnehmer { get; set; }

/// <summary>
/// Test if a <paramref name="id" /> is a valid messlokations ID.
/// </summary>
Expand Down
12 changes: 12 additions & 0 deletions BO4E/BO/Netzlokation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class Netzlokation : BusinessObject
[JsonPropertyOrder(13)]
[JsonPropertyName("grundzustaendigerMSBCodeNr")]
[ProtoMember(7)]
[Obsolete("Should be placed in field Marktteilnehmer.")]
public string? GrundzustaendigerMSBCodeNr { get; set; }

/// <summary>
Expand Down Expand Up @@ -96,5 +97,16 @@ public class Netzlokation : BusinessObject
[JsonPropertyOrder(17)]
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
public List<Konfigurationsprodukt>? Konfigurationsprodukte { get; set; }

/// <summary>
/// Angaben zum Marktteilnehmer
/// Enthält den MSB Code und die MSB Rolle.
/// </summary>
[JsonProperty(Required = Required.Default, Order = 18, PropertyName = "marktteilnehmer")]
[JsonPropertyName("marktteilnehmer")]
[ProtoMember(12)]
[JsonPropertyOrder(18)]
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
public Marktteilnehmer? Marktteilnehmer { get; set; }
}
}
16 changes: 15 additions & 1 deletion BO4E/BO/SteuerbareRessource.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text.Json.Serialization;
Expand Down Expand Up @@ -50,9 +51,11 @@ public class SteuerbareRessource : BusinessObject
[JsonProperty(Required = Required.Default, Order = 12, PropertyName = "zugeordnetMSBCodeNr")]
[JsonPropertyOrder(12)]
[JsonPropertyName("zugeordnetMSBCodeNr")]
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
[ProtoMember(12)]
[Obsolete("Should be placed in field Marktteilnehmer.")]
public string? ZugeordnetMSBCodeNr { get; set; }

/// <summary>
/// Produkt-Daten der Steuerbaren Ressource
/// </summary>
Expand All @@ -62,5 +65,16 @@ public class SteuerbareRessource : BusinessObject
[JsonPropertyOrder(13)]
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
public List<Konfigurationsprodukt>? Konfigurationsprodukte { get; set; }

/// <summary>
/// Angaben zum Marktteilnehmer
/// Enthält den MSB Code und die MSB Rolle.
/// </summary>
[JsonProperty(Required = Required.Default, Order = 14, PropertyName = "marktteilnehmer")]
[JsonPropertyName("marktteilnehmer")]
[ProtoMember(14)]
[JsonPropertyOrder(14)]
[NonOfficial(NonOfficialCategory.CUSTOMER_REQUIREMENTS)]
public Marktteilnehmer? Marktteilnehmer { get; set; }
}
}
65 changes: 50 additions & 15 deletions BO4E/ENUM/Marktrolle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,65 +5,100 @@ namespace BO4E.ENUM
/// <summary>Diese Rollen kann ein Marktteilnehmer einnehmen.</summary>
public enum Marktrolle
{
/// <summary>Netzbetreiber</summary>
/// <summary>
/// Netzbetreiber
/// </summary>
[EnumMember(Value = "NB")]
NB,

/// <summary>Lieferant</summary>
/// <summary>
/// Lieferant
/// </summary>
[EnumMember(Value = "LF")]
LF,

/// <summary>Messstellenbetreiber</summary>
/// <summary>
/// Messstellenbetreiber (Wettbewerblich)
/// </summary>
[EnumMember(Value = "MSB")]
MSB,

/// <summary>Messdienstleister</summary>
/// <summary>
/// Messdienstleister
/// </summary>
[EnumMember(Value = "MDL")]
MDL,

/// <summary>Dienstleister</summary>
/// <summary>
/// Dienstleister
/// </summary>
[EnumMember(Value = "DL")]
DL,

/// <summary>Bilanzkreisverantwortlicher</summary>
/// <summary>
/// Bilanzkreisverantwortlicher
/// </summary>
[EnumMember(Value = "BKV")]
BKV,

/// <summary>Bilanzkoordinator/Marktgebietsverantwortlicher</summary>
/// <summary>
/// Bilanzkoordinator/Marktgebietsverantwortlicher
/// </summary>
[EnumMember(Value = "BIKO")]
BIKO,

/// <summary>Übertragungsnetzbetreiber</summary>
/// <summary>
/// Übertragungsnetzbetreiber
/// </summary>
[EnumMember(Value = "UENB")]
UENB,

/// <summary>Kunden die NN-Entgelte selbst zahlen</summary>
/// <summary>
/// Kunden die NN-Entgelte selbst zahlen
/// </summary>
[EnumMember(Value = "KUNDE_SELBST_NN")]
KUNDE_SELBST_NN,

/// <summary>Marktgebietsverantwortlicher</summary>
/// <summary>
/// Marktgebietsverantwortlicher
/// </summary>
[EnumMember(Value = "MGV")]
MGV,

/// <summary>Einsatzverantwortlicher</summary>
/// <summary>
/// Einsatzverantwortlicher
/// </summary>
[EnumMember(Value = "EIV")]
EIV,

/// <summary>Registerbetreiber</summary>
/// <summary>
/// Registerbetreiber
/// </summary>
[EnumMember(Value = "RB")]
RB,

/// <summary>Kunde</summary>
/// <summary>
/// Kunde
/// </summary>
[EnumMember(Value = "KUNDE")]
KUNDE,

/// <summary>Interessent</summary>
/// <summary>
/// Interessent
/// </summary>
[EnumMember(Value = "INTERESSENT")]
INTERESSENT,

/// <summary>
/// grundzuständiger MSB
/// Grundzuständiger Messstellenbetreiber
/// </summary>
[EnumMember(Value = "GMSB")]
GMSB,

/// <summary>
/// Auffangmessstellenbetreiber
/// </summary>
[EnumMember(Value = "AMSB")]
AMSB,
}
}

0 comments on commit 64953af

Please sign in to comment.