pub enum SettlementType {
NneStrom,
NneGas,
MmmStrom,
MmmGas,
MmmSelbstausstellt,
MsbRechnung,
GasAwhSperrung,
RedispatchKostenblatt,
DezentraleEinspeisung,
}Expand description
Which regulated settlement process produced this result.
Determines which BDEW PIDs are applicable and which regulatory references apply.
Variants§
NneStrom
Netznutzungsentgelt (NNE) Strom — PID 31002 (NN-Rechnung, NB → LF).
NneGas
Netznutzungsentgelt (NNE) Gas — PID 31002 (NN-Rechnung, NB → LF, GasNEV).
NNE Strom and Gas share the INVOIC Prüfidentifikator 31002 (NN-Rechnung); the Sparte is carried in the message content, not the PID. Keeping a separate variant preserves the correct legal references (StromNEV vs GasNEV) without conditional logic in call sites.
MmmStrom
Mehr-/Mindermengen settlement Strom — PID 31005 (NB → LF, GPKE (BK6-24-174) Teil 1 Kap. 8.4).
MmmGas
Mehr-/Mindermengen settlement Gas — PID 31005 (NB → LF, GaBi Gas 2.1 (BK7-24-01-008)).
Gas MMM settlement uses different legal references from Strom MMM:
GaBi Gas 2.1 (BK7-24-01-008) and GeLi Gas 3.0 (BK7-24-01-009). Using a separate variant
ensures correct audit traces without conditional logic in call sites.
MmmSelbstausstellt
Mehr-/Mindermengen Mehrmenge, selbst ausgestellte Rechnung (Lieferung) — PID 31006.
Per INVOIC AHB §3.x, PID 31006 covers the Mehrmenge leg when the Mehr-/ Mindermenge is treated as a „Lieferung“ and the invoice is self-issued.
MsbRechnung
Messstellenbetrieb settlement — PID 31009 (NB → MSB).
GasAwhSperrung
GaBi Gas AWH Sperrprozesse settlement — PID 31011 (NB → LF, BK7-24-01-009 §5.4).
Rechnung sonstige Leistung: bills the LF (LFG/LFA) for abrechnungswürdige Handlungen (AWH) performed by the GNB/VNB during Sperrung/Entsperrung.
RedispatchKostenblatt
Redispatch 2.0 Einsatzkosten (NB → ÜNB, BK6-20-061).
DezentraleEinspeisung
Entgelt für dezentrale Erzeugung — §18 StromNEV, NB → Anlagenbetreiber.
A bilateral payment relationship, not an EDIFACT market process: it has no Prüfidentifikator and is rendered as an ordinary commercial credit.
Implementations§
Source§impl SettlementType
impl SettlementType
Sourcepub fn default_pid(self) -> u32
pub fn default_pid(self) -> u32
Default BDEW PID for this settlement type.
Callers may override the PID after construction if needed.
Trait Implementations§
Source§impl Clone for SettlementType
impl Clone for SettlementType
Source§fn clone(&self) -> SettlementType
fn clone(&self) -> SettlementType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more