// 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>,
}

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

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Antwortkategorie {
    pub antwort_code: Option<String>,
    pub ebd_referenz: Option<String>,
    pub freitext1: Option<String>,
    pub freitext2: Option<String>,
    pub freitext3: Option<String>,
    pub freitext4: Option<String>,
    pub freitext5: Option<String>,
    pub text_funktion: Option<String>,
    pub text_qualifier: Option<String>,
    pub text_referenz: Option<String>,
}

#[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 abonnement: Option<String>,
    pub auftragsdatum: Option<String>,
    pub beschreibungsformat: Option<String>,
    pub dokumentennummer: Option<String>,
    pub dokumenttyp: Option<String>,
    pub erstellungsdatum: Option<String>,
    pub geldbetrag: Option<String>,
    pub geldbetrag_qualifier: 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 Position {
    pub erlaeuterung: Option<String>,
    pub erlaeuterung_qualifier: Option<String>,
    pub freitext1: Option<String>,
    pub freitext2: Option<String>,
    pub freitext3: Option<String>,
    pub freitext4: Option<String>,
    pub freitext5: Option<String>,
    pub freitext_z27_1: Option<String>,
    pub freitext_z27_2: Option<String>,
    pub freitext_z28_1: Option<String>,
    pub freitext_z28_2: Option<String>,
    pub parameter_qualifier: Option<String>,
    pub positionsnummer: Option<String>,
    pub pruefung_ergebnis: Option<String>,
    pub pruefung_ergebnis2: Option<String>,
    pub pruefung_qualifier: Option<String>,
    pub pruefungs_parameter: Option<String>,
    pub pruefungs_parameter2: Option<String>,
    pub pruefungs_parameter3: Option<String>,
    pub text_funktion: Option<String>,
    pub text_funktion_z27: Option<String>,
    pub text_funktion_z28: Option<String>,
    pub text_qualifier: Option<String>,
    pub text_qualifier_z27: Option<String>,
    pub text_qualifier_z28: Option<String>,
    pub text_referenz: Option<String>,
    pub text_referenz_z27: Option<String>,
    pub text_referenz_z28: 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 Waehrung {
    pub waehrung_code: Option<String>,
    pub waehrung_qualifier: Option<String>,
    pub waehrungsverwendung: Option<String>,
}

