// Auto-generated by automapper-generator. Do not edit.

#![allow(dead_code, unused_imports, non_camel_case_types)]

use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;

/// partnerrolle for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Partnerrolle {
    /// Messlokationsadresse
    #[serde(rename = "Z03")]
    MeloAdresse,
}

/// kommunikationseinrichtungsTyp for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum KommunikationseinrichtungsTyp {
    /// Gerätenummer
    #[serde(rename = "Z30")]
    Geraetenummer,
    /// GSM/GPRS/UMTS-Kom.-Einr.
    #[serde(rename = "GSM")]
    GsmGprsUmts,
    /// Ethernet-Kom.-Einricht. LAN/WLAN
    #[serde(rename = "ETH")]
    EthernetLanWlan,
    /// PLC-Kom.-Einrichtung
    #[serde(rename = "PLC")]
    Plc,
    /// Festnetz-Kom.-Einricht. TAE
    #[serde(rename = "PST")]
    FestnetzTae,
    /// DSL-Kom.Einr.
    #[serde(rename = "DSL")]
    Dsl,
    /// LTE-Kom.-Einr.
    #[serde(rename = "LTE")]
    Lte,
}

/// kommunikationsart for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Kommunikationsart {
    /// Elektronische Post
    #[serde(rename = "EM")]
    Email,
    /// Telefax
    #[serde(rename = "FX")]
    Telefax,
    /// Telefon
    #[serde(rename = "TE")]
    Telefon,
    /// weiteres Telefon
    #[serde(rename = "AJ")]
    WeiteresTelefon,
    /// Handy
    #[serde(rename = "AL")]
    Handy,
}

/// kontaktfunktion for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Kontaktfunktion {
    /// Informationskontakt
    #[serde(rename = "IC")]
    Informationskontakt,
}

/// marktrolle for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Marktrolle {
    /// Dokumenten-/Nachrichtenaussteller bzw. -absender
    #[serde(rename = "MS")]
    Nachrichtenaussteller,
    /// Nachrichtenempfänger
    #[serde(rename = "MR")]
    Nachrichtenempfaenger,
}

/// rollencodetyp for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Rollencodetyp {
    /// GS1
    #[serde(rename = "9")]
    Gs1,
    /// DE, DVGW Service & Consult GmbH
    #[serde(rename = "332")]
    Dvgw,
}

/// mengenumwerter.typ for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum MengenumwerterDatenTyp {
    /// Gerätenummer
    #[serde(rename = "Z30")]
    Geraetenummer,
    /// Dichtemengenumwerter
    #[serde(rename = "DMU")]
    Dichtemengenumwerter,
    /// Temperaturmengenumwerter
    #[serde(rename = "TMU")]
    Temperaturmengenumwerter,
    /// Zustandsmengenumwerter
    #[serde(rename = "ZMU")]
    Zustandsmengenumwerter,
    /// Art der Volumenerfassung
    #[serde(rename = "ZC0")]
    ArtVolumenerfassung,
}

/// gmsb.qualifier for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum MesslokationZuordnungQualifier {
    /// MSB
    #[serde(rename = "Z91")]
    Msb,
    /// gMSB
    #[serde(rename = "ZF0")]
    Gmsb,
    /// MSBA
    #[serde(rename = "ZB4")]
    Msba,
    /// H-Gas
    #[serde(rename = "Y04")]
    HGas,
    /// L-Gas
    #[serde(rename = "Y05")]
    LGas,
}

/// marktpartner.zuordnung for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum MesslokationZuordnungZuordnung {
    /// Auf vertraglicher Grundlage gegenüber Anschlussnutzer / Anschlussnehmer
    #[serde(rename = "Z19")]
    VertraglicheGrundlageAnschlussnutzer,
    /// In der Ausübung der Weiterverpflichtung durch den gMSB
    #[serde(rename = "Z20")]
    WeiterverpflichtungGmsb,
}

/// merkmal.code for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum MesslokationZuordnungCode {
    /// Zugeordneter Marktpartner
    #[serde(rename = "ZB3")]
    ZugeordneterMarktpartner,
    /// Gasqualität
    #[serde(rename = "Y02")]
    Gasqualitaet,
    /// Messlokation gesperrt und darf nicht entsperrt werden
    #[serde(rename = "ZC1")]
    MeloGesperrtEntsperrbar,
    /// Messlokation gesperrt und darf entsperrt werden
    #[serde(rename = "ZC2")]
    MeloGesperrtNichtEntsperrbar,
    /// Messlokation im Regelbetrieb
    #[serde(rename = "ZC3")]
    MeloRegelbetrieb,
}

/// merkmal.code for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum ObisDatenZaehlerZuordnungCode {
    /// Wertegranularität
    #[serde(rename = "ZE4")]
    Wertegranularitaet,
    /// Vor- und Nachkommastellen des Zählwerkes
    #[serde(rename = "Z33")]
    VorkommastellenNachkommastellen,
    /// Lokale Kennzeichnung zu Kontrollzwecken
    #[serde(rename = "Z63")]
    LokaleKennzeichnung,
}

/// merkmal.qualifier for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum ObisDatenZaehlerZuordnungQualifier {
    /// Jährlich
    #[serde(rename = "ZD9")]
    Jaehrlich,
    /// Halbjährlich
    #[serde(rename = "ZE8")]
    Halbjaehrlich,
    /// Quartalsweise
    #[serde(rename = "ZE9")]
    Quartalsweise,
    /// Monatlich
    #[serde(rename = "ZB7")]
    Monatlich,
}

/// referenz.id for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum ProzessdatenId {
    /// WiM Gas / Bestätigung Verpflichtungsanfrage
    #[serde(rename = "44169")]
    WimGasBestaetigungVerpflichtungsanfrage,
}

/// antwortPruefschritt for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum AntwortPruefschritt {
    /// Kunde verlässt oder bezieht eine schon bestehende Marktlokation
    #[serde(rename = "E01")]
    Auszug,
    /// Kunde bezieht erstmals eine Marktlokation (z. B. Neubau)
    #[serde(rename = "E02")]
    Neubezug,
    /// - Kunde bleibt an der Marktlokation, hat nur den Marktpartner gewechselt
    #[serde(rename = "E03")]
    Lieferantenwechsel,
}

/// pruefidentifikator for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Pruefidentifikator {
    /// WiM Gas / Bestätigung Verpflichtungsanfrage
    #[serde(rename = "44169")]
    WimGasBestaetigungVerpflichtungsanfrage,
}

/// transaktionsgrund for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Transaktionsgrund {
    /// Kunde verlässt oder bezieht eine schon bestehende Marktlokation
    #[serde(rename = "E01")]
    Auszug,
    /// Kunde bezieht erstmals eine Marktlokation (z. B. Neubau)
    #[serde(rename = "E02")]
    Neubezug,
    /// - Kunde bleibt an der Marktlokation, hat nur den Marktpartner gewechselt
    #[serde(rename = "E03")]
    Lieferantenwechsel,
}

/// transaktionsnummer for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Transaktionsnummer {
    /// WiM Gas / Bestätigung Verpflichtungsanfrage
    #[serde(rename = "44169")]
    WimGasBestaetigungVerpflichtungsanfrage,
}

/// geraetnummer.qualifier for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum ZaehlerZuordnungQualifier {
    /// neue Messeinrichtung Gas nach MsbG
    #[serde(rename = "NMG")]
    NeueMesseinrichtungGasMsbg,
    /// Drehkolbengaszähler
    #[serde(rename = "DKZ")]
    Drehkolbengaszaehler,
    /// Balgengaszähler
    #[serde(rename = "BGZ")]
    Balgengaszaehler,
    /// Turbinenradgaszähler
    #[serde(rename = "TRZ")]
    Turbinenradgaszaehler,
    /// Ultraschallgaszähler
    #[serde(rename = "UGZ")]
    Ultraschallgaszaehler,
    /// Wirbelgaszähler
    #[serde(rename = "WGZ")]
    Wirbelgaszaehler,
    /// elektronischer Haushaltszähler
    #[serde(rename = "EHZ")]
    ElektronischerHaushaltszaehler,
    /// Zur Sonderausstattung gehört z. B. Gas-Encoder
    #[serde(rename = "IVA")]
    IndividuelleSonderausstattung,
    /// Gerätenummer
    #[serde(rename = "Z30")]
    Geraetenummer,
    /// Art der Volumenerfassung
    #[serde(rename = "ZC0")]
    ArtVolumenerfassung,
    /// Einstutzen-Zähler
    #[serde(rename = "Z31")]
    EinstutzenZaehler,
    /// Zweistutzen-Zähler
    #[serde(rename = "Z32")]
    ZweistutzenZaehler,
    /// fernauslesbare Zähler
    #[serde(rename = "AMR")]
    Fernauslesbar,
    /// manuell ausgelesene Zähler
    #[serde(rename = "MMR")]
    ManuellAusgelesen,
}

/// merkmal.code for PID 44169
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum ZaehlerZuordnungCode {
    /// Zählertyp
    #[serde(rename = "E13")]
    Zaehlertyp,
    /// Befestigungsart Zähleinrichtung
    #[serde(rename = "Z28")]
    BefestigungsartZaehleinrichtung,
    /// Messwerterfassung an der Zähleinrichtung
    #[serde(rename = "E12")]
    MesswerterfassungZaehleinrichtung,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct KommunikationseinrichtungDatenGeraetnummer {
    /// Optional. ()
    pub codeliste_code: Option<String>,
    /// Required (X). ()
    pub nummer: Option<String>,
    /// Optional. ()
    pub teil2: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct KommunikationseinrichtungDatenKommEinrichtung {
    /// Optional. ()
    pub dimension: Option<String>,
    /// Optional. ()
    pub klasse: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct KommunikationseinrichtungDatenReferenz {
    /// Required (X). ()
    pub id: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct KontaktKontakt {
    /// Required (X). ()
    pub name: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MengenumwerterDatenGeraetnummer {
    /// Optional. ()
    pub codeliste_code: Option<String>,
    /// Required (X). ()
    pub nummer: Option<String>,
    /// Optional. ()
    pub teil2: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MengenumwerterDatenMengenumwerter {
    /// Optional. ()
    pub dimension: Option<String>,
    /// Optional. ()
    pub klasse: Option<String>,
    /// Required (X). ()
    pub typ: Option<MengenumwerterDatenTyp>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MengenumwerterDatenReferenz {
    /// Required (X). ()
    pub id: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MengenumwerterDatenVolumenerfassung {
    /// Optional. ()
    pub codeliste_code: Option<String>,
    /// Required (X). ()
    pub wert: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MessdatenregistriergeraetDatenGeraetnummer {
    /// Optional. ()
    pub codeliste_code: Option<String>,
    /// Required (X). ()
    pub nummer: Option<String>,
    /// Optional. ()
    pub teil2: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MessdatenregistriergeraetDatenReferenz {
    /// Required (X [951]). ()
    pub id: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MessdatenregistriergeraetDatenVolumenerfassung {
    /// Optional. ()
    pub codeliste_code: Option<String>,
    /// Required (X). ()
    pub wert: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MessdatenregistriergeraetDatenZaehlerCci {
    /// Optional. ()
    pub dimension: Option<String>,
    /// Optional. ()
    pub klasse: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MesslokationZuordnungGmsb {
    /// Required (X). ()
    pub qualifier: Option<MesslokationZuordnungQualifier>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MesslokationZuordnungMarktpartner {
    /// Required (X [622]). ()
    pub codeliste_code: Option<String>,
    /// Optional. ()
    pub codepflege: Option<String>,
    /// Required (X). ()
    pub qualifier: Option<MesslokationZuordnungQualifier>,
    /// Required (X). ()
    pub zuordnung: Option<MesslokationZuordnungZuordnung>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MesslokationZuordnungMerkmal {
    /// Required (X). ()
    pub code: Option<MesslokationZuordnungCode>,
    /// Optional. ()
    pub dimension: Option<String>,
    /// Optional. ()
    pub klasse: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ObisDatenZaehlerProduktIdentifikation {
    /// Required (X [324]). ()
    pub id: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ObisDatenZaehlerReferenz {
    /// Required (X). ()
    pub id: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ObisDatenZaehlerZuordnungMerkmal {
    /// Required (X). ()
    pub code: Option<ObisDatenZaehlerZuordnungCode>,
    /// Required (unknown). ()
    pub code_codepflege: Option<String>,
    /// Required (unknown). ()
    pub codeliste: Option<String>,
    /// Required (unknown). ()
    pub codepflege: Option<String>,
    /// Optional. ()
    pub dimension: Option<String>,
    /// Required (unknown). ()
    pub eigenschaft: Option<String>,
    /// Required (unknown). ()
    pub eigenschaft_2: Option<String>,
    /// Optional. ()
    pub klasse: Option<String>,
    /// Required (X). ()
    pub qualifier: Option<ObisDatenZaehlerZuordnungQualifier>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ProzessdatenReferenz {
    /// Required (X). ()
    pub id: Option<ProzessdatenId>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SmartmeterGatewayDatenGeraetnummer {
    /// Optional. ()
    pub codeliste_code: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SmartmeterGatewayDatenSmgw {
    /// Optional. ()
    pub dimension: Option<String>,
    /// Optional. ()
    pub klasse: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ZaehlerReferenz {
    /// Required (X [951]). ()
    pub id: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ZaehlerZuordnungGeraetnummer {
    /// Optional. ()
    pub codeliste_code: Option<String>,
    /// Required (unknown). ()
    pub codepflege: Option<String>,
    /// Required (unknown). ()
    pub nummer: Option<String>,
    /// Required (X). ()
    pub qualifier: Option<ZaehlerZuordnungQualifier>,
    /// Required (unknown). ()
    pub teil2: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ZaehlerZuordnungMerkmal {
    /// Required (X). ()
    pub code: Option<ZaehlerZuordnungCode>,
    /// Optional. ()
    pub dimension: Option<String>,
    /// Optional. ()
    pub klasse: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ZaehlerZuordnungVolumenerfassung {
    /// Optional. ()
    pub codeliste_code: Option<String>,
    /// Required (unknown). ()
    pub codepflege: Option<String>,
    /// Required (X). ()
    pub qualifier: Option<ZaehlerZuordnungQualifier>,
    /// Required (unknown). ()
    pub wert: Option<String>,
}

/// Map key for Geschaeftspartner instances.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
pub enum GeschaeftspartnerKey {
    #[serde(rename = "Z03")]
    Z03,
    #[serde(rename = "Z05")]
    Z05,
    #[serde(rename = "Z07")]
    Z07,
    #[serde(rename = "Z08")]
    Z08,
}

impl std::fmt::Display for GeschaeftspartnerKey {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::Z03 => write!(f, "Z03"),
            Self::Z05 => write!(f, "Z05"),
            Self::Z07 => write!(f, "Z07"),
            Self::Z08 => write!(f, "Z08"),
        }
    }
}

/// Map key for Marktteilnehmer instances.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
pub enum MarktteilnehmerKey {
    /// Dokumenten-/Nachrichtenaussteller bzw. -absender
    #[serde(rename = "MS")]
    Ms,
    /// Nachrichtenempfänger
    #[serde(rename = "MR")]
    Mr,
}

impl std::fmt::Display for MarktteilnehmerKey {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::Ms => write!(f, "MS"),
            Self::Mr => write!(f, "MR"),
        }
    }
}

/// Geschaeftspartner for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct Geschaeftspartner {
    /// Required (X). ()
    pub adresszusatz: Option<String>,
    /// Required (X). ()
    pub geschaeftspartner_id: Option<String>,
    /// Required (X). ()
    pub hausnummer: Option<String>,
    /// Required (X). ()
    pub land: Option<String>,
    /// Required (X). ()
    pub name1: Option<String>,
    /// Required (X). ()
    pub name2: Option<String>,
    /// Required (X). ()
    pub namenszusatz1: Option<String>,
    /// Required (X). ()
    pub ort: Option<String>,
    /// Required (X). ()
    pub partnerrolle: Option<Partnerrolle>,
    /// Required (X). ()
    pub postleitzahl: Option<String>,
    /// Required (X). ()
    pub region: Option<String>,
    /// Required (S [166] M [212]). ()
    pub strasse: Option<String>,
    /// Required (X). ()
    pub strasse_zusatz: Option<String>,
    /// Required (K). ()
    pub zusatzinfo: Option<String>,
    /// Required (X). ()
    pub zusatzinfo_zeile2: Option<String>,
    /// Required (X). ()
    pub zusatzinfo_zeile3: Option<String>,
    /// Required (X). ()
    pub zusatzinfo_zeile4: Option<String>,
    /// Required (X). ()
    pub zusatzinfo_zeile5: Option<String>,
}

/// KommunikationseinrichtungDaten for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct KommunikationseinrichtungDaten {
    pub geraetnummer: Option<KommunikationseinrichtungDatenGeraetnummer>,
    pub komm_einrichtung: Option<KommunikationseinrichtungDatenKommEinrichtung>,
    /// Required (X). ()
    pub kommunikationseinrichtungs_typ: Option<KommunikationseinrichtungsTyp>,
    pub referenz: Option<KommunikationseinrichtungDatenReferenz>,
}

/// Kontakt for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct Kontakt {
    /// Required (X [1P0..1]). ()
    pub kommunikationsart: Option<Kommunikationsart>,
    /// Required (X). ()
    pub kommunikationsnummer: Option<String>,
    pub kontakt: Option<KontaktKontakt>,
    /// Required (X). ()
    pub kontaktfunktion: Option<Kontaktfunktion>,
}

/// Marktteilnehmer for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct Marktteilnehmer {
    /// Optional. ()
    pub codeliste_code: Option<String>,
    /// Required (X). ()
    pub marktrolle: Option<Marktrolle>,
    /// Required (X). ()
    pub rollencodenummer: Option<String>,
    /// Required (X). ()
    pub rollencodetyp: Option<Rollencodetyp>,
}

/// MengenumwerterDaten for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct MengenumwerterDaten {
    pub geraetnummer: Option<MengenumwerterDatenGeraetnummer>,
    pub mengenumwerter: Option<MengenumwerterDatenMengenumwerter>,
    pub referenz: Option<MengenumwerterDatenReferenz>,
    pub volumenerfassung: Option<MengenumwerterDatenVolumenerfassung>,
}

/// MessdatenregistriergeraetDaten for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct MessdatenregistriergeraetDaten {
    pub geraetnummer: Option<MessdatenregistriergeraetDatenGeraetnummer>,
    pub referenz: Option<MessdatenregistriergeraetDatenReferenz>,
    pub volumenerfassung: Option<MessdatenregistriergeraetDatenVolumenerfassung>,
    pub zaehler_cci: Option<MessdatenregistriergeraetDatenZaehlerCci>,
}

/// Messlokation for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct Messlokation {
    /// Required (X [951]). ()
    pub meldepunkt_id: Option<String>,
    /// Required (X [951]). ()
    pub messlokation_id: Option<String>,
}

/// MesslokationZuordnung for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct MesslokationZuordnung {
    pub gmsb: Option<MesslokationZuordnungGmsb>,
    pub marktpartner: Option<MesslokationZuordnungMarktpartner>,
    pub merkmal: Option<MesslokationZuordnungMerkmal>,
}

/// MessproduktDaten for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct MessproduktDaten {
    /// Required (X [427]). ()
    pub messprodukt_code: Option<String>,
}

/// Nachricht for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct Nachricht {
    /// Optional. ()
    pub erstellungsdatum: Option<String>,
    /// Optional. ()
    pub nachrichtennummer: Option<String>,
    /// Optional. ()
    pub nachrichtentyp: Option<String>,
}

/// ObisDatenZaehler for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct ObisDatenZaehler {
    pub produkt_identifikation: Option<ObisDatenZaehlerProduktIdentifikation>,
    pub referenz: Option<ObisDatenZaehlerReferenz>,
}

/// ObisDatenZaehlerZuordnung for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct ObisDatenZaehlerZuordnung {
    pub merkmal: Option<ObisDatenZaehlerZuordnungMerkmal>,
    /// Required (unknown). ()
    pub zugeordneter_mp: Option<String>,
}

/// Prozessdaten for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct Prozessdaten {
    /// Required (X [UB2]). ()
    pub ablesedatum: Option<String>,
    /// Required (unknown). ()
    pub antwort_ebd_codeliste: Option<String>,
    /// Required (X). ()
    pub antwort_pruefschritt: Option<AntwortPruefschritt>,
    /// Optional. ()
    pub antwort_status_code: Option<String>,
    /// Required (X). ()
    pub pruefidentifikator: Option<Pruefidentifikator>,
    pub referenz: Option<ProzessdatenReferenz>,
    /// Optional. ()
    pub status_code: Option<String>,
    /// Required (X). ()
    pub transaktionsgrund: Option<Transaktionsgrund>,
    /// Required (X). ()
    pub transaktionsnummer: Option<Transaktionsnummer>,
    /// Required (X). ()
    pub vorgang_id: Option<String>,
}

/// SmartmeterGatewayDaten for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct SmartmeterGatewayDaten {
    /// Required (X [952]). ()
    pub gateway_nummer: Option<String>,
    pub geraetnummer: Option<SmartmeterGatewayDatenGeraetnummer>,
    pub smgw: Option<SmartmeterGatewayDatenSmgw>,
}

/// Zaehler for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct Zaehler {
    pub referenz: Option<ZaehlerReferenz>,
}

/// ZaehlerZuordnung for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct ZaehlerZuordnung {
    pub geraetnummer: Option<ZaehlerZuordnungGeraetnummer>,
    pub merkmal: Option<ZaehlerZuordnungMerkmal>,
    pub volumenerfassung: Option<ZaehlerZuordnungVolumenerfassung>,
}

/// PID 44169 transaction — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct Transaktion {
    /// Required (X).
    #[serde(default, deserialize_with = "crate::serde_helpers::deserialize_map_or_vec")]
    pub geschaeftspartner: Option<BTreeMap<GeschaeftspartnerKey, Geschaeftspartner>>,
    /// Required (X).
    pub kommunikationseinrichtung_daten: Option<KommunikationseinrichtungDaten>,
    /// Required (X).
    pub mengenumwerter_daten: Option<MengenumwerterDaten>,
    /// Required (X).
    pub messdatenregistriergeraet_daten: Option<MessdatenregistriergeraetDaten>,
    /// Required (X).
    pub messlokation: Option<Messlokation>,
    pub messlokation_zuordnung: Option<MesslokationZuordnung>,
    /// Required (X).
    pub messprodukt_daten: Option<MessproduktDaten>,
    /// Required (X).
    pub obis_daten_zaehler: Option<ObisDatenZaehler>,
    pub obis_daten_zaehler_zuordnung: Option<ObisDatenZaehlerZuordnung>,
    pub prozessdaten: Option<Prozessdaten>,
    /// Required (X).
    pub smartmeter_gateway_daten: Option<SmartmeterGatewayDaten>,
    /// Required (X).
    pub zaehler: Option<Zaehler>,
    pub zaehler_zuordnung: Option<ZaehlerZuordnung>,
}

/// PID 44169 message-level — Bestätigung Verpflicht-ungsanfrage.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
pub struct Message {
    pub kontakt: Option<Kontakt>,
    #[serde(default, deserialize_with = "crate::serde_helpers::deserialize_map_or_vec")]
    pub marktteilnehmer: Option<BTreeMap<MarktteilnehmerKey, Marktteilnehmer>>,
    pub nachricht: Option<Nachricht>,
}

/// Complete interchange for PID 44169 — Bestätigung Verpflicht-ungsanfrage.
pub type Interchange = crate::model::Interchange<Message, Transaktion>;
