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

#![allow(unused_imports)]

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AnsprechpartnerKontakt {
    pub funktion_code: Option<String>,
    pub name: Option<String>,
    pub nummer: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Ansprechpartner {
    pub kommunikationsadresse: Option<String>,
    pub kommunikationstyp: Option<String>,
    pub kontakt: Option<AnsprechpartnerKontakt>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MarktteilnehmerWrapped {
    #[serde(flatten)]
    pub core: Option<bo4e_german::Marktteilnehmer>,
}

impl MarktteilnehmerWrapped {
    /// Create a wrapped entity from a core BO4E type, with companion fields defaulted.
    pub fn with_core(core: bo4e_german::Marktteilnehmer) -> Self {
        Self { core: Some(core) }
    }
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Nachricht {
    pub beschreibungsformat: Option<String>,
    pub dokumentennummer: Option<String>,
    pub dokumenttyp: Option<String>,
    pub erstellungsdatum: Option<String>,
    pub freitext1: Option<String>,
    pub freitext2: Option<String>,
    pub freitext3: Option<String>,
    pub freitext4: Option<String>,
    pub freitext5: Option<String>,
    pub freitext_code: Option<String>,
    pub freitext_funktion: Option<String>,
    pub freitext_qualifier: Option<String>,
    pub produkt_leistung_code: Option<String>,
    pub sperrdatum: Option<String>,
    pub uns_kennung: Option<String>,
    pub vertragsenddatum: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Referenz {
    pub qualifier: Option<String>,
    pub referenz: Option<String>,
}

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

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Vorgang {
    pub handlung_code: Option<String>,
    pub issuer_freitext2: Option<String>,
    pub issuer_freitext3: Option<String>,
    pub issuer_freitext4: Option<String>,
    pub issuer_freitext5: Option<String>,
    pub issuer_freitext_code: Option<String>,
    pub issuer_textfunktion: Option<String>,
    pub positionsnummer: Option<String>,
    pub subject_freitext2: Option<String>,
    pub subject_freitext3: Option<String>,
    pub subject_freitext4: Option<String>,
    pub subject_freitext5: Option<String>,
    pub subject_freitext_code: Option<String>,
    pub subject_textfunktion: Option<String>,
    pub uri_freitext_code: Option<String>,
    pub uri_textfunktion: Option<String>,
    pub zertifikatsaussteller: Option<String>,
    pub zertifikatsnutzer: Option<String>,
    pub zieladresse_ipv4: Option<String>,
    pub zieladresse_ipv6: Option<String>,
    pub produkt_identifikation: Option<VorgangProduktIdentifikation>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VorgangZuordnungMerkmal {
    pub code: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VorgangZuordnung {
    pub dimension: Option<String>,
    pub klassentyp: Option<String>,
    pub oberer_schwellwert: Option<String>,
    pub unterer_schwellwert: Option<String>,
    pub merkmal: Option<VorgangZuordnungMerkmal>,
}

