Tax Filing Service

<back to all web services

SubmitUStVa2021AsTaxConsultantAsync

AsyncUmsatzsteuerVoranmeldungBearbeiteVorgangValidiereAuthentifiziereSendeDrucke2021

An asynchronous service to submit an preliminary VAT return (Umsatzsteuervoranmeldung) as a tax consultant for 2021.

Requires Authentication
The following routes are available for this service:
POST/SubmitUStVa2021AsTaxConsultantAsyncAn asynchronous service to submit an preliminary VAT return (Umsatzsteuervoranmeldung) as a tax consultant for 2021
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


/** @description Beim DatenLieferanten handelt es sich um diejenige natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird,um die Daten zu übersenden (auf den Sendeknopf drückt - NICHT jedoch ein etwaiger Erfüllungsgehilfe). */
// @Api(Description="Beim DatenLieferanten handelt es sich um diejenige natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird,um die Daten zu übersenden (auf den Sendeknopf drückt - NICHT jedoch ein etwaiger Erfüllungsgehilfe).")
class DatenLieferant implements JsonSerializable
{
    public function __construct(
        /** @description Der Name des Datenlieferants. */
        // @ApiMember(Description="Der Name des Datenlieferants.", IsRequired=true, Name="Name")
        /** @var string */
        public string $name='',

        /** @description Der Straßenname des Datenlieferants. */
        // @ApiMember(Description="Der Straßenname des Datenlieferants.", IsRequired=true, Name="Strasse")
        /** @var string */
        public string $strasse='',

        /** @description Die Postleitzahl des Datenlieferants. */
        // @ApiMember(Description="Die Postleitzahl des Datenlieferants.", IsRequired=true, Name="PLZ")
        /** @var string */
        public string $plz='',

        /** @description Der Ort des Datenlieferants. */
        // @ApiMember(Description="Der Ort des Datenlieferants.", IsRequired=true, Name="Ort")
        /** @var string */
        public string $ort='',

        /** @description Die Telefonnummer (optional) des Datenlieferants. */
        // @ApiMember(Description="Die Telefonnummer (optional) des Datenlieferants.", Name="Telefon")
        /** @var string|null */
        public ?string $telefon=null,

        /** @description Die Email-Adresse (optional) des Datenlieferant. */
        // @ApiMember(Description="Die Email-Adresse (optional) des Datenlieferant.", Name="Email")
        /** @var string|null */
        public ?string $email=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['strasse'])) $this->strasse = $o['strasse'];
        if (isset($o['plz'])) $this->plz = $o['plz'];
        if (isset($o['ort'])) $this->ort = $o['ort'];
        if (isset($o['telefon'])) $this->telefon = $o['telefon'];
        if (isset($o['email'])) $this->email = $o['email'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->strasse)) $o['strasse'] = $this->strasse;
        if (isset($this->plz)) $o['plz'] = $this->plz;
        if (isset($this->ort)) $o['ort'] = $this->ort;
        if (isset($this->telefon)) $o['telefon'] = $this->telefon;
        if (isset($this->email)) $o['email'] = $this->email;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Stellt einen Steuerberater dar. */
// @Api(Description="Stellt einen Steuerberater dar.")
class Berater implements JsonSerializable
{
    public function __construct(
        /** @description Der Bezeichnung (optional) des Beraters (normalerweise der Name des Beraters Unternehmen). */
        // @ApiMember(Description="Der Bezeichnung (optional) des Beraters (normalerweise der Name des Beraters Unternehmen).", Name="Bezeichnung")
        /** @var string|null */
        public ?string $bezeichnung=null,

        /** @description Der Name (optional) des Beraters. */
        // @ApiMember(Description="Der Name (optional) des Beraters.", Name="Name")
        /** @var string|null */
        public ?string $name=null,

        /** @description Der Vorname (optional) des Beraters. */
        // @ApiMember(Description="Der Vorname (optional) des Beraters.", Name="Vorname")
        /** @var string|null */
        public ?string $vorname=null,

        /** @description Der Namenvorsatz (optional) des Beraters. */
        // @ApiMember(Description="Der Namenvorsatz (optional) des Beraters.", Name="Namensvorsatz")
        /** @var string|null */
        public ?string $namensvorsatz=null,

        /** @description Der Namenzusatz (optional) des Beraters. */
        // @ApiMember(Description="Der Namenzusatz (optional) des Beraters.", Name="Namenszusatz")
        /** @var string|null */
        public ?string $namenszusatz=null,

        /** @description Der Straßenname (optional) des Beraters. */
        // @ApiMember(Description="Der Straßenname (optional) des Beraters.", Name="Str")
        /** @var string|null */
        public ?string $str=null,

        /** @description Die Hausnummer (optional) des Beraters. */
        // @ApiMember(Description="Die Hausnummer (optional) des Beraters.", Name="Hausnummer")
        /** @var string|null */
        public ?string $hausnummer=null,

        /** @description Der Hausnummernzusatz (optional) des Beraters. */
        // @ApiMember(Description="Der Hausnummernzusatz (optional) des Beraters.", Name="HNrZusatz")
        /** @var string|null */
        public ?string $hNrZusatz=null,

        /** @description Der Anschriftenzusatz (optional) des Beraters. */
        // @ApiMember(Description="Der Anschriftenzusatz (optional) des Beraters.", Name="AnschriftenZusatz")
        /** @var string|null */
        public ?string $anschriftenZusatz=null,

        /** @description Der Ort (optional) des Beraters. */
        // @ApiMember(Description="Der Ort (optional) des Beraters.", Name="Ort")
        /** @var string|null */
        public ?string $ort=null,

        /** @description Die Postleitzahl (optional) des Beraters. */
        // @ApiMember(Description="Die Postleitzahl (optional) des Beraters.", Name="PLZ")
        /** @var string|null */
        public ?string $plz=null,

        /** @description Die Auslandspostleitzahl (optional) des Beraters. */
        // @ApiMember(Description="Die Auslandspostleitzahl (optional) des Beraters.", Name="AuslandsPLZ")
        /** @var string|null */
        public ?string $auslandsPLZ=null,

        /** @description Der Ländername (falls Anschrift im Ausland) des Beraters - optional. Der Ländername des Beraters kann mit 1-20 alphanumerischen Zeichen geliefert werden. */
        // @ApiMember(Description="Der Ländername (falls Anschrift im Ausland) des Beraters - optional. \nDer Ländername des Beraters kann mit 1-20 alphanumerischen Zeichen geliefert werden.", Name="Land")
        /** @var string|null */
        public ?string $land=null,

        /** @description Der Ort des Postfaches (optional) des Beraters. */
        // @ApiMember(Description="Der Ort des Postfaches (optional) des Beraters.", Name="PostfachOrt")
        /** @var string|null */
        public ?string $postfachOrt=null,

        /** @description Das Postfach (optional) des Beraters. */
        // @ApiMember(Description="Das Postfach (optional) des Beraters.", Name="Postfach")
        /** @var string|null */
        public ?string $postfach=null,

        /** @description Die Postleitzahl (optional) des Beraters. */
        // @ApiMember(Description="Die Postleitzahl (optional) des Beraters.", Name="PostfachPLZ")
        /** @var string|null */
        public ?string $postfachPLZ=null,

        /** @description Die Großkundenpostleitzahl (optional) des Beraters. */
        // @ApiMember(Description="Die Großkundenpostleitzahl (optional) des Beraters.", Name="GKPLZ")
        /** @var string|null */
        public ?string $gkplz=null,

        /** @description Die Telefonnummer (optional) des Beraters. */
        // @ApiMember(Description="Die Telefonnummer (optional) des Beraters.", Name="Telefon")
        /** @var string|null */
        public ?string $telefon=null,

        /** @description Die Emailadresse (optional) des Beraters. */
        // @ApiMember(Description="Die Emailadresse (optional) des Beraters.", Name="Email")
        /** @var string|null */
        public ?string $email=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['bezeichnung'])) $this->bezeichnung = $o['bezeichnung'];
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['vorname'])) $this->vorname = $o['vorname'];
        if (isset($o['namensvorsatz'])) $this->namensvorsatz = $o['namensvorsatz'];
        if (isset($o['namenszusatz'])) $this->namenszusatz = $o['namenszusatz'];
        if (isset($o['str'])) $this->str = $o['str'];
        if (isset($o['hausnummer'])) $this->hausnummer = $o['hausnummer'];
        if (isset($o['hNrZusatz'])) $this->hNrZusatz = $o['hNrZusatz'];
        if (isset($o['anschriftenZusatz'])) $this->anschriftenZusatz = $o['anschriftenZusatz'];
        if (isset($o['ort'])) $this->ort = $o['ort'];
        if (isset($o['plz'])) $this->plz = $o['plz'];
        if (isset($o['auslandsPLZ'])) $this->auslandsPLZ = $o['auslandsPLZ'];
        if (isset($o['land'])) $this->land = $o['land'];
        if (isset($o['postfachOrt'])) $this->postfachOrt = $o['postfachOrt'];
        if (isset($o['postfach'])) $this->postfach = $o['postfach'];
        if (isset($o['postfachPLZ'])) $this->postfachPLZ = $o['postfachPLZ'];
        if (isset($o['gkplz'])) $this->gkplz = $o['gkplz'];
        if (isset($o['telefon'])) $this->telefon = $o['telefon'];
        if (isset($o['email'])) $this->email = $o['email'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->bezeichnung)) $o['bezeichnung'] = $this->bezeichnung;
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->vorname)) $o['vorname'] = $this->vorname;
        if (isset($this->namensvorsatz)) $o['namensvorsatz'] = $this->namensvorsatz;
        if (isset($this->namenszusatz)) $o['namenszusatz'] = $this->namenszusatz;
        if (isset($this->str)) $o['str'] = $this->str;
        if (isset($this->hausnummer)) $o['hausnummer'] = $this->hausnummer;
        if (isset($this->hNrZusatz)) $o['hNrZusatz'] = $this->hNrZusatz;
        if (isset($this->anschriftenZusatz)) $o['anschriftenZusatz'] = $this->anschriftenZusatz;
        if (isset($this->ort)) $o['ort'] = $this->ort;
        if (isset($this->plz)) $o['plz'] = $this->plz;
        if (isset($this->auslandsPLZ)) $o['auslandsPLZ'] = $this->auslandsPLZ;
        if (isset($this->land)) $o['land'] = $this->land;
        if (isset($this->postfachOrt)) $o['postfachOrt'] = $this->postfachOrt;
        if (isset($this->postfach)) $o['postfach'] = $this->postfach;
        if (isset($this->postfachPLZ)) $o['postfachPLZ'] = $this->postfachPLZ;
        if (isset($this->gkplz)) $o['gkplz'] = $this->gkplz;
        if (isset($this->telefon)) $o['telefon'] = $this->telefon;
        if (isset($this->email)) $o['email'] = $this->email;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Stellt einen Mandant dar. */
// @Api(Description="Stellt einen Mandant dar.")
class Mandant implements JsonSerializable
{
    public function __construct(
        /** @description Der Name (optional) des Mandanten. */
        // @ApiMember(Description="Der Name (optional) des Mandanten.", Name="Name")
        /** @var string|null */
        public ?string $name=null,

        /** @description Der Vorname (optional) des Mandanten. */
        // @ApiMember(Description="Der Vorname (optional) des Mandanten.", Name="Vorname")
        /** @var string|null */
        public ?string $vorname=null,

        /** @description Die Mandantennummer (optional) des Mandanten. */
        // @ApiMember(Description="Die Mandantennummer (optional) des Mandanten.", Name="MandantenNr")
        /** @var string|null */
        public ?string $mandantenNr=null,

        /** @description Das Bearbeiterkennzeichen (optional) des Mandanten. */
        // @ApiMember(Description="Das Bearbeiterkennzeichen (optional) des Mandanten.", Name="Bearbeiterkennzeichen")
        /** @var string|null */
        public ?string $bearbeiterkennzeichen=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['vorname'])) $this->vorname = $o['vorname'];
        if (isset($o['mandantenNr'])) $this->mandantenNr = $o['mandantenNr'];
        if (isset($o['bearbeiterkennzeichen'])) $this->bearbeiterkennzeichen = $o['bearbeiterkennzeichen'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->vorname)) $o['vorname'] = $this->vorname;
        if (isset($this->mandantenNr)) $o['mandantenNr'] = $this->mandantenNr;
        if (isset($this->bearbeiterkennzeichen)) $o['bearbeiterkennzeichen'] = $this->bearbeiterkennzeichen;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Stellt eine Anbindung zum ELSTER Online Portal (EOP) dar. */
// @Api(Description="Stellt eine Anbindung zum ELSTER Online Portal (EOP) dar.")
class EOP implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $transferausgabe=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['transferausgabe'])) $this->transferausgabe = $o['transferausgabe'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->transferausgabe)) $o['transferausgabe'] = $this->transferausgabe;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents a base class for a file with raw data. */
// @Api(Description="Represents a base class for a file with raw data.")
class FileBase implements JsonSerializable
{
    public function __construct(
        /** @description The raw data content of the file. */
        // @ApiMember(Description="The raw data content of the file.", Name="Content")
        /** @var ByteArray|null */
        public ?ByteArray $content=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['content'])) $this->content = JsonConverters::from('ByteArray', $o['content']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->content)) $o['content'] = JsonConverters::to('ByteArray', $this->content);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents a portal certificate that is protected by a password. */
// @Api(Description="Represents a portal certificate that is protected by a password.")
class PortalCertificate extends FileBase implements ISecuredCertificate, IHasIndex, JsonSerializable
{
    /**
     * @param ByteArray|null $content
     */
    public function __construct(
        ?ByteArray $content=null,
        /** @description The unique identifier of the certificate. */
        // @ApiMember(Description="The unique identifier of the certificate.")
        /** @var string */
        public string $id='',

        /** @description The position of the certificate element in an indexed collection of certificates. */
        // @ApiMember(Description="The position of the certificate element in an indexed collection of certificates.")
        /** @var int */
        public int $index=0,

        /** @description The password to protect the certificate from unauthorized access. */
        // @StringLength(255)
        // @ApiMember(Description="The password to protect the certificate from unauthorized access.")
        /** @var string|null */
        public ?string $pin=null,

        /** @description The description of the certificate. */
        // @StringLength(2147483647)
        // @ApiMember(Description="The description of the certificate.")
        /** @var string|null */
        public ?string $description=null,

        /** @description Tags that can be used to label or identify the certificate. */
        // @ApiMember(Description="Tags that can be used to label or identify the certificate.")
        /** @var array<string>|null */
        public ?array $tags=null,

        /** @description Gets or sets the file name of the certificate. */
        // @ApiMember(Description="Gets or sets the file name of the certificate.")
        /** @var string|null */
        public ?string $name=null
    ) {
        parent::__construct($content);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['index'])) $this->index = $o['index'];
        if (isset($o['pin'])) $this->pin = $o['pin'];
        if (isset($o['description'])) $this->description = $o['description'];
        if (isset($o['tags'])) $this->tags = JsonConverters::fromArray('string', $o['tags']);
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['content'])) $this->content = JsonConverters::from('ByteArray', $o['content']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->index)) $o['index'] = $this->index;
        if (isset($this->pin)) $o['pin'] = $this->pin;
        if (isset($this->description)) $o['description'] = $this->description;
        if (isset($this->tags)) $o['tags'] = JsonConverters::toArray('string', $this->tags);
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->content)) $o['content'] = JsonConverters::to('ByteArray', $this->content);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Submits a VAT registration (Umsatzsteueranmeldung) for 2021 and files in the XML content as a tax consultant. */
// @Api(Description="Submits a VAT registration (Umsatzsteueranmeldung) for 2021 and files in the XML content as a tax consultant.")
class SubmitUmsatzsteueranmeldung2021AsTaxConsultantBase implements IPost, IDruckRequest, IVeschlueselungsRequest, JsonSerializable
{
    public function __construct(
        /** @description Natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird, um die Daten zu übersenden (Natural person who operates the software or under whose name the software is operated in order to transmit the data). */
        // @ApiMember(Description="Natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird, um die Daten zu übersenden (Natural person who operates the software or under whose name the software is operated in order to transmit the data).", IsRequired=true, Name="DatenLieferant")
        /** @var DatenLieferant|null */
        public ?DatenLieferant $datenLieferant=null,

        /** @description Das Datum der Erstellung (Date of creation). */
        // @ApiMember(Description="Das Datum der Erstellung (Date of creation).", IsRequired=true, Name="Erstellungsdatum")
        /** @var DateTime */
        public DateTime $erstellungsdatum=new DateTime(),

        /** @description Der Steuerberater, der den Steuerfall bearbeitet und abgibt (The tax adviser who processes and submits the tax case). */
        // @ApiMember(Description="Der Steuerberater, der den Steuerfall bearbeitet und abgibt (The tax adviser who processes and submits the tax case).", Name="Berater")
        /** @var Berater|null */
        public ?Berater $berater=null,

        /** @description Der Mandant, für den der Steuerfall bearbeitet wird (The client for which the tax case is being processed). */
        // @ApiMember(Description="Der Mandant, für den der Steuerfall bearbeitet wird (The client for which the tax case is being processed).", Name="Mandant")
        /** @var Mandant|null */
        public ?Mandant $mandant=null,

        /** @description Die vierstellige Bundesfinanzamtsnummer des empfangenden Finanzamtes (The four-digit federal tax office number of the receiving tax office). */
        // @ApiMember(Description="Die vierstellige Bundesfinanzamtsnummer des empfangenden Finanzamtes (The four-digit federal tax office number of the receiving tax office).", IsRequired=true, Name="Bundesfinanzamtsnummer")
        /** @var string */
        public string $bundesfinanzamtsnummer='',

        /** @description Die Anbindung zum ELSTER Online Portal (EOP). */
        // @ApiMember(Description="Die Anbindung zum ELSTER Online Portal (EOP).", Name="EOP")
        /** @var EOP|null */
        public ?EOP $eop=null,

        /** @description Should the PDF file be prepared for a double-sided printout with a margin for punching?.  True: The straight sides are indented to the left for a stitching margin for punching. False: There is no indentation of the straight sides. The created PDF is only intended for printing pages page by page. */
        // @ApiMember(Description="Should the PDF file be prepared for a double-sided printout with a margin for punching?.  True: The straight sides are indented to the left for a stitching margin for punching. False: There is no indentation of the straight sides. The created PDF is only intended for printing pages page by page.", Name="DuplexDruck")
        /** @var bool|null */
        public ?bool $duplexDruck=null,

        /** @description Name prefix of the generated transfer protocol file. */
        // @ApiMember(Description="Name prefix of the generated transfer protocol file.", IsRequired=true, Name="ProtocolPrefix")
        /** @var string */
        public string $protocolPrefix='',

        /** @description Footer text to be used on the printout (optional). */
        // @ApiMember(Description="Footer text to be used on the printout (optional).", Name="FussText")
        /** @var string|null */
        public ?string $fussText=null,

        /** @description The authentification certificate. */
        // @ApiMember(Description="The authentification certificate.", IsRequired=true, Name="Zertifikat")
        /** @var PortalCertificate|null */
        public ?PortalCertificate $zertifikat=null,

        /** @description Gets or sets the retrieval code. This value MUST be given for the tax operation ElsterDatenabholung and tax data type ElsterVaStDaten, for which a SoftPSE certificate is used to sign.In other cases a null value should be given. It consists of 2 x 5 characters, which are joined by  '-'. Example: 'K6FG5 - RS32P'. */
        // @ApiMember(Description="Gets or sets the retrieval code. This value MUST be given for the tax operation ElsterDatenabholung and tax data type ElsterVaStDaten, for which a SoftPSE certificate is used to sign.In other cases a null value should be given. It consists of 2 x 5 characters, which are joined by  '-'. Example: 'K6FG5 - RS32P'.", Name="AbrufCode")
        /** @var string|null */
        public ?string $abrufCode=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['datenLieferant'])) $this->datenLieferant = JsonConverters::from('DatenLieferant', $o['datenLieferant']);
        if (isset($o['erstellungsdatum'])) $this->erstellungsdatum = JsonConverters::from('DateTime', $o['erstellungsdatum']);
        if (isset($o['berater'])) $this->berater = JsonConverters::from('Berater', $o['berater']);
        if (isset($o['mandant'])) $this->mandant = JsonConverters::from('Mandant', $o['mandant']);
        if (isset($o['bundesfinanzamtsnummer'])) $this->bundesfinanzamtsnummer = $o['bundesfinanzamtsnummer'];
        if (isset($o['eop'])) $this->eop = JsonConverters::from('EOP', $o['eop']);
        if (isset($o['duplexDruck'])) $this->duplexDruck = $o['duplexDruck'];
        if (isset($o['protocolPrefix'])) $this->protocolPrefix = $o['protocolPrefix'];
        if (isset($o['fussText'])) $this->fussText = $o['fussText'];
        if (isset($o['zertifikat'])) $this->zertifikat = JsonConverters::from('PortalCertificate', $o['zertifikat']);
        if (isset($o['abrufCode'])) $this->abrufCode = $o['abrufCode'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->datenLieferant)) $o['datenLieferant'] = JsonConverters::to('DatenLieferant', $this->datenLieferant);
        if (isset($this->erstellungsdatum)) $o['erstellungsdatum'] = JsonConverters::to('DateTime', $this->erstellungsdatum);
        if (isset($this->berater)) $o['berater'] = JsonConverters::to('Berater', $this->berater);
        if (isset($this->mandant)) $o['mandant'] = JsonConverters::to('Mandant', $this->mandant);
        if (isset($this->bundesfinanzamtsnummer)) $o['bundesfinanzamtsnummer'] = $this->bundesfinanzamtsnummer;
        if (isset($this->eop)) $o['eop'] = JsonConverters::to('EOP', $this->eop);
        if (isset($this->duplexDruck)) $o['duplexDruck'] = $this->duplexDruck;
        if (isset($this->protocolPrefix)) $o['protocolPrefix'] = $this->protocolPrefix;
        if (isset($this->fussText)) $o['fussText'] = $this->fussText;
        if (isset($this->zertifikat)) $o['zertifikat'] = JsonConverters::to('PortalCertificate', $this->zertifikat);
        if (isset($this->abrufCode)) $o['abrufCode'] = $this->abrufCode;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Stellt den Zeitraum für eine Anmeldung dar */
enum AnmeldungZeitraum : int
{
    case ZR01 = 1;
    case ZR02 = 2;
    case ZR03 = 3;
    case ZR04 = 4;
    case ZR05 = 5;
    case ZR06 = 6;
    case ZR07 = 7;
    case ZR08 = 8;
    case ZR09 = 9;
    case ZR10 = 10;
    case ZR11 = 11;
    case ZR12 = 12;
    case ZR41 = 41;
    case ZR42 = 42;
    case ZR43 = 43;
    case ZR44 = 44;
}

/** @description Stellt den Pflichtkennzahl Kz09 dar, welche die Angabe diverser Informationen ermöglicht. Beispiele: 74931 74931*Name Berater*Berufsbezeichnung*** 74931*****Name Mandant 74931***Tel.Nr:Berater/Vorwahl*Tel.Nr:Berater/Anschluss*Name Mandant */
// @Api(Description="Stellt den Pflichtkennzahl Kz09 dar, welche die Angabe diverser Informationen ermöglicht. Beispiele: 74931 74931*Name Berater*Berufsbezeichnung*** 74931*****Name Mandant 74931***Tel.Nr:Berater/Vorwahl*Tel.Nr:Berater/Anschluss*Name Mandant")
class Kz09 implements JsonSerializable
{
    public function __construct(
        /** @description Die Bezeichnung des Softwareherstellers (Pflicht), über dessen Software die Steuererklärung oder (Vor)anmeldung abgegeben wird. Die Bezeichnung muss 5-stellig sein. */
        // @ApiMember(Description="Die Bezeichnung des Softwareherstellers (Pflicht), über dessen Software die Steuererklärung oder (Vor)anmeldung abgegeben wird. Die Bezeichnung muss 5-stellig sein.", IsRequired=true, Name="HerstellerId")
        /** @var int */
        public int $herstellerId=0,

        /** @description Der Name des Beraters, welcher die Steuererklärung oder (Vor)anmeldung abgegeben wird. Das Name des Beraters kann von 0- bis 85-stellig sein. */
        // @ApiMember(Description="Der Name des Beraters, welcher die Steuererklärung oder (Vor)anmeldung abgegeben wird. Das Name des Beraters kann von 0- bis 85-stellig sein.", Name="BeraterName")
        /** @var string|null */
        public ?string $beraterName=null,

        /** @description Die Berufbezeichnung des Beraters. Die Berufbezeichnung des Beraterskann von 0- bis 85-stellig sein. */
        // @ApiMember(Description="Die Berufbezeichnung des Beraters. Die Berufbezeichnung des Beraterskann von 0- bis 85-stellig sein.", Name="Berufsbezeichnung")
        /** @var string|null */
        public ?string $berufsbezeichnung=null,

        /** @description Die Telefonnummervorwahl des Beraters. Die Telefonnummervorwahl des Beraters kann von 0- bis 85-stellig sein. */
        // @ApiMember(Description="Die Telefonnummervorwahl des Beraters. Die Telefonnummervorwahl des Beraters kann von 0- bis 85-stellig sein.", Name="Berufsbezeichnung")
        /** @var string|null */
        public ?string $beraterTelNrVorwahl=null,

        /** @description Der Telefonnummeranschluss des Beraters. Der Telefonnummeranschluss des Beraters kann von 0- bis 85-stellig sein. */
        // @ApiMember(Description="Der Telefonnummeranschluss des Beraters. Der Telefonnummeranschluss des Beraters kann von 0- bis 85-stellig sein.", Name="BeraterTelNrAnschluss")
        /** @var string|null */
        public ?string $beraterTelNrAnschluss=null,

        /** @description Der Name des Mandanten. Der Name des Mandanten kann von 0- bis 85-stellig sein. */
        // @ApiMember(Description="Der Name des Mandanten. Der Name des Mandanten kann von 0- bis 85-stellig sein.", Name="MandantName")
        /** @var string|null */
        public ?string $mandantName=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['herstellerId'])) $this->herstellerId = $o['herstellerId'];
        if (isset($o['beraterName'])) $this->beraterName = $o['beraterName'];
        if (isset($o['berufsbezeichnung'])) $this->berufsbezeichnung = $o['berufsbezeichnung'];
        if (isset($o['beraterTelNrVorwahl'])) $this->beraterTelNrVorwahl = $o['beraterTelNrVorwahl'];
        if (isset($o['beraterTelNrAnschluss'])) $this->beraterTelNrAnschluss = $o['beraterTelNrAnschluss'];
        if (isset($o['mandantName'])) $this->mandantName = $o['mandantName'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->herstellerId)) $o['herstellerId'] = $this->herstellerId;
        if (isset($this->beraterName)) $o['beraterName'] = $this->beraterName;
        if (isset($this->berufsbezeichnung)) $o['berufsbezeichnung'] = $this->berufsbezeichnung;
        if (isset($this->beraterTelNrVorwahl)) $o['beraterTelNrVorwahl'] = $this->beraterTelNrVorwahl;
        if (isset($this->beraterTelNrAnschluss)) $o['beraterTelNrAnschluss'] = $this->beraterTelNrAnschluss;
        if (isset($this->mandantName)) $o['mandantName'] = $this->mandantName;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Specifies an integer data type with limits and a specialized string representation */
// @Api(Description="Specifies an integer data type with limits and a specialized string representation")
class Ganzzahl implements JsonSerializable
{
    public function __construct(
        /** @description The intrinsic integer value. */
        // @ApiMember(Description="The intrinsic integer value.")
        /** @var int */
        public int $wert=0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['wert'])) $this->wert = $o['wert'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->wert)) $o['wert'] = $this->wert;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an integer data type whose value has a maximum length of 1 digit. Minus sign allowed. */
// @Api(Description="Represents an integer data type whose value has a maximum length of 1 digit. Minus sign allowed.")
class Ganzzahl1EN extends Ganzzahl implements JsonSerializable
{
    /**
     * @param int $wert
     */
    public function __construct(
        int $wert=0
    ) {
        parent::__construct($wert);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['wert'])) $this->wert = $o['wert'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->wert)) $o['wert'] = $this->wert;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Specifies an amount of money without cents with limits and a specialized string representation */
// @Api(Description="Specifies an amount of money without cents with limits and a specialized string representation")
class GrossGeldBetragOhneCent implements JsonSerializable
{
    public function __construct(
        /** @description The intrinsic currency value. */
        // @ApiMember(Description="The intrinsic currency value.")
        /** @var int */
        public int $wert=0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['wert'])) $this->wert = $o['wert'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->wert)) $o['wert'] = $this->wert;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an amount of money without cents whose value has a maximum length of 13 digits. That is, 1 to 13 digits. Minus sign allowed. */
// @Api(Description="Represents an amount of money without cents whose value has a maximum length of 13 digits. That is, 1 to 13 digits. Minus sign allowed.")
class GeldBetragOhneCent13EN extends GrossGeldBetragOhneCent implements JsonSerializable
{
    /**
     * @param int $wert
     */
    public function __construct(
        int $wert=0
    ) {
        parent::__construct($wert);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['wert'])) $this->wert = $o['wert'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->wert)) $o['wert'] = $this->wert;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Specifies an amount of money with cents with limits and a specialized string representation */
// @Api(Description="Specifies an amount of money with cents with limits and a specialized string representation")
class GeldBetragMitCent implements JsonSerializable
{
    public function __construct(
        /** @description The intrinsic currency value. */
        // @ApiMember(Description="The intrinsic currency value.")
        /** @var float */
        public float $wert=0.0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['wert'])) $this->wert = $o['wert'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->wert)) $o['wert'] = $this->wert;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an amount of money with cents whose value has a maximum length of 13 digits. That is, 1 to 11 digits before the decimal separator and 2 digits after the decimal separator. Minus sign allowed. */
// @Api(Description="Represents an amount of money with cents whose value has a maximum length of 13 digits. That is, 1 to 11 digits before the decimal separator and 2 digits after the decimal separator. Minus sign allowed.")
class GeldBetragMitCent11EN extends GeldBetragMitCent implements JsonSerializable
{
    /**
     * @param float $wert
     */
    public function __construct(
        float $wert=0.0
    ) {
        parent::__construct($wert);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['wert'])) $this->wert = $o['wert'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->wert)) $o['wert'] = $this->wert;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an unsigned amount of money with cents whose value has a maximum length of 13 digits. That is, 1 to 11 digits before the decimal separator and 2 digits after the decimal separator. Minus sign NOT allowed. */
// @Api(Description="Represents an unsigned amount of money with cents whose value has a maximum length of 13 digits. That is, 1 to 11 digits before the decimal separator and 2 digits after the decimal separator. Minus sign NOT allowed.")
class PositiverGeldBetragMitCent11EN extends GeldBetragMitCent implements JsonSerializable
{
    /**
     * @param float $wert
     */
    public function __construct(
        float $wert=0.0
    ) {
        parent::__construct($wert);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['wert'])) $this->wert = $o['wert'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->wert)) $o['wert'] = $this->wert;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an unsigned amount of money with cents whose value has a maximum length of 15 digits. That is, 1 to 13 digits before the decimal separator and 2 digits after the decimal separator. Minus sign NOT allowed. */
// @Api(Description="Represents an unsigned amount of money with cents whose value has a maximum length of 15 digits. That is, 1 to 13 digits before the decimal separator and 2 digits after the decimal separator. Minus sign NOT allowed.")
class PositiverGeldBetragMitCent13EN extends GeldBetragMitCent implements JsonSerializable
{
    /**
     * @param float $wert
     */
    public function __construct(
        float $wert=0.0
    ) {
        parent::__construct($wert);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['wert'])) $this->wert = $o['wert'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->wert)) $o['wert'] = $this->wert;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an unsigned amount of money without cents whose value has a maximum length of 13 digits. That is, 1 to 13 digits. Minus sign NOT allowed. */
// @Api(Description="Represents an unsigned amount of money without cents whose value has a maximum length of 13 digits. That is, 1 to 13 digits. Minus sign NOT allowed.")
class PositiverGeldBetragOhneCent13EN extends GrossGeldBetragOhneCent implements JsonSerializable
{
    /**
     * @param int $wert
     */
    public function __construct(
        int $wert=0
    ) {
        parent::__construct($wert);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['wert'])) $this->wert = $o['wert'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->wert)) $o['wert'] = $this->wert;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Umsatzsteuervoranmeldung für 2021 (Preliminary VAT declaration for 2021). */
// @Api(Description="Umsatzsteuervoranmeldung für 2021 (Preliminary VAT declaration for 2021).")
class Umsatzsteuervoranmeldung2021 implements JsonSerializable
{
    public function __construct(
        /** @description Das Jahr der Veranlagung. */
        // @ApiMember(Description="Das Jahr der Veranlagung.", IsRequired=true, Name="Jahr")
        /** @var int */
        public int $jahr=0,

        /** @description Anmeldungszeitraum. */
        // @ApiMember(Description="Anmeldungszeitraum.", IsRequired=true, Name="Zeitraum")
        /** @var AnmeldungZeitraum|null */
        public ?AnmeldungZeitraum $zeitraum=null,

        /** @description Steuernummer */
        // @ApiMember(Description="Steuernummer", IsRequired=true, Name="Steuernummer")
        /** @var string */
        public string $steuernummer='',

        /** @description Pflichtkennzahl, welche die Angabe diverser Informationen ermöglicht. */
        // @ApiMember(Description="Pflichtkennzahl, welche die Angabe diverser Informationen ermöglicht.", IsRequired=true, Name="Kz09")
        /** @var Kz09|null */
        public ?Kz09 $kz09=null,

        /** @description Berichtigte Anmeldung */
        // @ApiMember(Description="Berichtigte Anmeldung", Name="Kz10")
        /** @var Ganzzahl1EN|null */
        public ?Ganzzahl1EN $kz10=null,

        /** @description Nicht steuerbare sonstige Leistungen gemäß § 18b Satz 1 Nummer 2 UStG */
        // @ApiMember(Description="Nicht steuerbare sonstige Leistungen gemäß § 18b Satz 1 Nummer 2 UStG", Name="Kz21")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz21=null,

        /** @description Belege */
        // @ApiMember(Description="Belege", Name="Kz22")
        /** @var Ganzzahl1EN|null */
        public ?Ganzzahl1EN $kz22=null,

        /** @description Über die Angaben in der Steueranmeldung hinaus sind weitere oder abweichende Angaben oder Sachverhalte zu berücksichtigen */
        // @ApiMember(Description="Über die Angaben in der Steueranmeldung hinaus sind weitere oder abweichende Angaben oder Sachverhalte zu berücksichtigen", Name="Kz23")
        /** @var Ganzzahl1EN|null */
        public ?Ganzzahl1EN $kz23=null,

        /** @description Ergänzende Angaben zur Steueranmeldung */
        // @ApiMember(Description="Ergänzende Angaben zur Steueranmeldung", Name="Kz23_Begruendung")
        /** @var string|null */
        public ?string $kz23_Begruendung=null,

        /** @description Das SEPA-Lastschriftmandat wird ausnahmsweise (zum Beispiel wegen Verrechnungswünschen) für diesen Voranmeldungszeitraum widerrufen (falls ja, bitte eine 1 eintragen). Ein gegebenenfalls verbleibender Restbetrag ist gesondert zu entrichten. */
        // @ApiMember(Description="Das SEPA-Lastschriftmandat wird ausnahmsweise (zum Beispiel wegen Verrechnungswünschen) für diesen Voranmeldungszeitraum widerrufen (falls ja, bitte eine 1 eintragen). Ein gegebenenfalls verbleibender Restbetrag ist gesondert zu entrichten.", Name="Kz26")
        /** @var Ganzzahl1EN|null */
        public ?Ganzzahl1EN $kz26=null,

        /** @description Verrechnung des Erstattungsbetrags erwünscht / Erstattungsbetrag ist abgetreten (falls ja, bitte eine 1 eintragen). */
        // @ApiMember(Description="Verrechnung des Erstattungsbetrags erwünscht / Erstattungsbetrag ist abgetreten (falls ja, bitte eine 1 eintragen).", Name="Kz29")
        /** @var Ganzzahl1EN|null */
        public ?Ganzzahl1EN $kz29=null,

        /** @description zu anderen Steuersätzen (Bemessungsgrundlage) */
        // @ApiMember(Description="zu anderen Steuersätzen (Bemessungsgrundlage)", Name="Kz35")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz35=null,

        /** @description zu anderen Steuersätzen (Steuer) */
        // @ApiMember(Description="zu anderen Steuersätzen (Steuer)", Name="Kz36")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz36=null,

        /** @description Minderung der abziehbaren Vorsteuerbeträge (in der Zeile 55 aus Rechnungen von anderen Unternehmen (§ 15 Absatz 1 Satz 1 Nummer 1 UStG) sowie in den Zeilen 59 und 60 enthalten) */
        // @ApiMember(Description="Minderung der abziehbaren Vorsteuerbeträge (in der Zeile 55 aus Rechnungen von anderen Unternehmen (§ 15 Absatz 1 Satz 1 Nummer 1 UStG) sowie in den Zeilen 59 und 60 enthalten)", Name="Kz37")
        /** @var PositiverGeldBetragMitCent11EN|null */
        public ?PositiverGeldBetragMitCent11EN $kz37=null,

        /** @description Abzug der festgesetzten Sondervorauszahlung für Dauerfristverlängerung (in der Regel nur in der letzten Voranmeldung des Besteuerungszeitraums auszufüllen) */
        // @ApiMember(Description="Abzug der festgesetzten Sondervorauszahlung für Dauerfristverlängerung (in der Regel nur in der letzten Voranmeldung des Besteuerungszeitraums auszufüllen)", Name="Kz39")
        /** @var PositiverGeldBetragMitCent13EN|null */
        public ?PositiverGeldBetragMitCent13EN $kz39=null,

        /** @description Innergemeinschaftliche Lieferungen (§ 4 Nummer 1 Buchstabe b UStG) an Abnehmer mit Umsatzsteuer-Identifikationsnummer */
        // @ApiMember(Description="Innergemeinschaftliche Lieferungen (§ 4 Nummer 1 Buchstabe b UStG) an Abnehmer mit Umsatzsteuer-Identifikationsnummer", Name="Kz41")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz41=null,

        /** @description Lieferungen des ersten Abnehmers bei innergemeinschaftlichen Dreiecksgeschäften (§ 25b UStG) */
        // @ApiMember(Description="Lieferungen des ersten Abnehmers bei innergemeinschaftlichen Dreiecksgeschäften (§ 25b UStG)", Name="Kz42")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz42=null,

        /** @description Weitere steuerfreie Umsätze mit Vorsteuerabzug (zum Beispiel Ausfuhrlieferungen, Umsätze nach § 4 Nummer 2 bis 7 UStG) */
        // @ApiMember(Description="Weitere steuerfreie Umsätze mit Vorsteuerabzug (zum Beispiel Ausfuhrlieferungen, Umsätze nach § 4 Nummer 2 bis 7 UStG)", Name="Kz43")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz43=null,

        /** @description Innergemeinschaftliche Lieferungen (§ 4 Nummer 1 Buchstabe b UStG) neuer Fahrzeuge an Abnehmer ohne Umsatzsteuer-Identifikationsnummer */
        // @ApiMember(Description="Innergemeinschaftliche Lieferungen (§ 4 Nummer 1 Buchstabe b UStG) neuer Fahrzeuge an Abnehmer ohne Umsatzsteuer-Identifikationsnummer", Name="Kz44")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz44=null,

        /** @description Übrige nicht steuerbare Umsätze (Leistungsort nicht im Inland) */
        // @ApiMember(Description="Übrige nicht steuerbare Umsätze (Leistungsort nicht im Inland)", Name="Kz45")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz45=null,

        /** @description Sonstige Leistungen nach § 3a Absatz 2 UStG eines im übrigen Gemeinschaftsgebiet ansässigen Unternehmers (§ 13b Absatz 1 UStG) (Bemessungsgrundlage) */
        // @ApiMember(Description="Sonstige Leistungen nach § 3a Absatz 2 UStG eines im übrigen Gemeinschaftsgebiet ansässigen Unternehmers (§ 13b Absatz 1 UStG) (Bemessungsgrundlage)", Name="Kz46")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz46=null,

        /** @description Sonstige Leistungen nach § 3a Absatz 2 UStG eines im übrigen Gemeinschaftsgebiet ansässigen Unternehmers (§ 13b Absatz 1 UStG) (Steuer) */
        // @ApiMember(Description="Sonstige Leistungen nach § 3a Absatz 2 UStG eines im übrigen Gemeinschaftsgebiet ansässigen Unternehmers (§ 13b Absatz 1 UStG) (Steuer)", Name="Kz47")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz47=null,

        /** @description Steuerfreie Umsätze ohne Vorsteuerabzug (zum Beispiel Umsätze nach § 4 Nummer 8 bis 29 UStG) */
        // @ApiMember(Description="Steuerfreie Umsätze ohne Vorsteuerabzug (zum Beispiel Umsätze nach § 4 Nummer 8 bis 29 UStG)", Name="Kz48")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz48=null,

        /** @description Innergemeinschaftliche Lieferungen (§ 4 Nummer 1 Buchstabe b UStG) neuer Fahrzeuge außerhalb eines Unternehmens (§ 2a UStG) */
        // @ApiMember(Description="Innergemeinschaftliche Lieferungen (§ 4 Nummer 1 Buchstabe b UStG) neuer Fahrzeuge außerhalb eines Unternehmens (§ 2a UStG)", Name="Kz49")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz49=null,

        /** @description Minderung der Bemessungsgrundlage (in den Zeilen 20 bis 24 enthalten) */
        // @ApiMember(Description="Minderung der Bemessungsgrundlage (in den Zeilen 20 bis 24 enthalten)", Name="Kz50")
        /** @var PositiverGeldBetragOhneCent13EN|null */
        public ?PositiverGeldBetragOhneCent13EN $kz50=null,

        /** @description Vorsteuerabzug für innergemeinschaftliche Lieferungen neuer Fahrzeuge außerhalb eines Unternehmens (§ 2a UStG) sowie von Kleinunternehmern im Sinne des § 19 Absatz 1 UStG (§ 15 Absatz 4a UStG) */
        // @ApiMember(Description="Vorsteuerabzug für innergemeinschaftliche Lieferungen neuer Fahrzeuge außerhalb eines Unternehmens (§ 2a UStG) sowie von Kleinunternehmern im Sinne des § 19 Absatz 1 UStG (§ 15 Absatz 4a UStG)", Name="Kz59")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz59=null,

        /** @description Steuerpflichtige Umsätze des leistenden Unternehmers, für die der Leistungsempfänger die Steuer nach § 13b Absatz 5 UStG schuldet */
        // @ApiMember(Description="Steuerpflichtige Umsätze des leistenden Unternehmers, für die der Leistungsempfänger die Steuer nach § 13b Absatz 5 UStG schuldet", Name="Kz60")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz60=null,

        /** @description Vorsteuerbeträge aus dem innergemeinschaftlichen Erwerb von Gegenständen (§ 15 Absatz 1 Satz 1 Nummer 3 UStG) */
        // @ApiMember(Description="Vorsteuerbeträge aus dem innergemeinschaftlichen Erwerb von Gegenständen (§ 15 Absatz 1 Satz 1 Nummer 3 UStG)", Name="Kz61")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz61=null,

        /** @description Entstandene Einfuhrumsatzsteuer (§ 15 Absatz 1 Satz 1 Nummer 2 UStG)) */
        // @ApiMember(Description="Entstandene Einfuhrumsatzsteuer (§ 15 Absatz 1 Satz 1 Nummer 2 UStG))", Name="Kz62")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz62=null,

        /** @description Vorsteuerbeträge, die nach allgemeinen Durchschnittssätzen berechnet sind (§§ 23 und 23a UStG) */
        // @ApiMember(Description="Vorsteuerbeträge, die nach allgemeinen Durchschnittssätzen berechnet sind (§§ 23 und 23a UStG)", Name="Kz63")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz63=null,

        /** @description Berichtigung des Vorsteuerabzugs (§ 15a UStG) */
        // @ApiMember(Description="Berichtigung des Vorsteuerabzugs (§ 15a UStG)", Name="Kz64")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz64=null,

        /** @description Steuer infolge des Wechsels der Besteuerungsform sowie Nachsteuer auf versteuerte Anzahlungen und ähnlichem wegen Steuersatzänderung */
        // @ApiMember(Description="Steuer infolge des Wechsels der Besteuerungsform sowie Nachsteuer auf versteuerte Anzahlungen und ähnlichem wegen Steuersatzänderung", Name="Kz65")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz65=null,

        /** @description Vorsteuerbeträge aus Rechnungen von anderen Unternehmern (§ 15 Absatz 1 Satz 1 Nummer 1 UStG),  aus Leistungen im Sinne des § 13a Absatz 1 Nummer 6 UStG (§ 15 Absatz 1 Satz 1 Nummer 5 UStG) und aus innergemeinschaftlichen Dreiecksgeschäften (§ 25b Absatz 5 UStG) */
        // @ApiMember(Description="Vorsteuerbeträge aus Rechnungen von anderen Unternehmern (§ 15 Absatz 1 Satz 1 Nummer 1 UStG),  aus Leistungen im Sinne des § 13a Absatz 1 Nummer 6 UStG (§ 15 Absatz 1 Satz 1 Nummer 5 UStG) und aus innergemeinschaftlichen Dreiecksgeschäften (§ 25b Absatz 5 UStG)", Name="Kz66")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz66=null,

        /** @description Vorsteuerbeträge aus Leistungen im Sinne des § 13b UStG (§ 15 Absatz 1 Satz 1 Nummer 4 UStG) */
        // @ApiMember(Description="Vorsteuerbeträge aus Leistungen im Sinne des § 13b UStG (§ 15 Absatz 1 Satz 1 Nummer 4 UStG)", Name="Kz67")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz67=null,

        /** @description In Rechnungen unrichtig oder unberechtigt ausgewiesene Steuerbeträge (§ 14c UStG) sowie Steuerbeträge, die nach § 6a Absatz 4 Satz 2, § 17 Absatz 1 Satz 7, § 25b Absatz 2 UStG oder von einem Auslagerer oder Lagerhalter nach § 13a Absatz 1 Nummer 6 UStG geschuldet werden */
        // @ApiMember(Description="In Rechnungen unrichtig oder unberechtigt ausgewiesene Steuerbeträge (§ 14c UStG) sowie Steuerbeträge, die nach § 6a Absatz 4 Satz 2, § 17 Absatz 1 Satz 7, § 25b Absatz 2 UStG oder von einem Auslagerer oder Lagerhalter nach § 13a Absatz 1 Nummer 6 UStG geschuldet werden", Name="Kz69")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz69=null,

        /** @description Umsätze, die unter das GrEStG fallen (§ 13b Absatz 2 Nummer 3 UStG) (Bemessungsgrundlage) */
        // @ApiMember(Description="Umsätze, die unter das GrEStG fallen (§ 13b Absatz 2 Nummer 3 UStG) (Bemessungsgrundlage)", Name="Kz73")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz73=null,

        /** @description Umsätze, die unter das GrEStG fallen (§ 13b Absatz 2 Nummer 3 UStG) (Steuer) */
        // @ApiMember(Description="Umsätze, die unter das GrEStG fallen (§ 13b Absatz 2 Nummer 3 UStG) (Steuer)", Name="Kz74")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz74=null,

        /** @description Umsätze, für die eine Steuer nach § 24 UStG zu entrichten ist (Sägewerkserzeugnisse, Getränke und alkoholische Flüssigkeiten, zum Beispiel Wein) (Bemessungsgrundlage) */
        // @ApiMember(Description="Umsätze, für die eine Steuer nach § 24 UStG zu entrichten ist (Sägewerkserzeugnisse, Getränke und alkoholische Flüssigkeiten, zum Beispiel Wein) (Bemessungsgrundlage)", Name="Kz76")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz76=null,

        /** @description Lieferungen land- und forstwirtschaftlicher Betriebe nach § 24 UStG an Abnehmer mit Umsatzsteuer-Identifikationsnummer */
        // @ApiMember(Description="Lieferungen land- und forstwirtschaftlicher Betriebe nach § 24 UStG an Abnehmer mit Umsatzsteuer-Identifikationsnummer", Name="Kz77")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz77=null,

        /** @description Umsätze, für die eine Steuer nach § 24 UStG zu entrichten ist (Sägewerkserzeugnisse, Getränke und alkoholische Flüssigkeiten, zum Beispiel Wein) (Steuer) */
        // @ApiMember(Description="Umsätze, für die eine Steuer nach § 24 UStG zu entrichten ist (Sägewerkserzeugnisse, Getränke und alkoholische Flüssigkeiten, zum Beispiel Wein) (Steuer)", Name="Kz80")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz80=null,

        /** @description zum Steuersatz von 19 Prozent */
        // @ApiMember(Description="zum Steuersatz von 19 Prozent", Name="Kz81")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz81=null,

        /** @description Verbleibende Umsatzsteuer-Vorauszahlung beziehungsweise verbleibender Überschuss */
        // @ApiMember(Description="Verbleibende Umsatzsteuer-Vorauszahlung beziehungsweise verbleibender Überschuss", IsRequired=true, Name="Kz83")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz83=null,

        /** @description Andere Leistungen (§ 13b Absatz 2 Nummer 1, 2, 4 bis 12 UStG) (Bemessungsgrundlage) */
        // @ApiMember(Description="Andere Leistungen (§ 13b Absatz 2 Nummer 1, 2, 4 bis 12 UStG) (Bemessungsgrundlage)", Name="Kz84")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz84=null,

        /** @description Andere Leistungen (§ 13b Absatz 2 Nummer 1, 2, 4 bis 12 UStG) (Steuer) */
        // @ApiMember(Description="Andere Leistungen (§ 13b Absatz 2 Nummer 1, 2, 4 bis 12 UStG) (Steuer)", Name="Kz85")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz85=null,

        /** @description zum Steuersatz von 7 Prozent */
        // @ApiMember(Description="zum Steuersatz von 7 Prozent", Name="Kz86")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz86=null,

        /** @description zum Steuersatz von 19 Prozent */
        // @ApiMember(Description="zum Steuersatz von 19 Prozent", Name="Kz89")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz89=null,

        /** @description Steuerfreie innergemeinschaftliche Erwerbe von bestimmten Gegenständen und Anlagegold (§§ 4b und 25c UStG) */
        // @ApiMember(Description="Steuerfreie innergemeinschaftliche Erwerbe von bestimmten Gegenständen und Anlagegold (§§ 4b und 25c UStG)", Name="Kz91")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz91=null,

        /** @description zum Steuersatz von 7 Prozent */
        // @ApiMember(Description="zum Steuersatz von 7 Prozent", Name="Kz93")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz93=null,

        /** @description Erwerbe nach §§ 4b und 25c UStG */
        // @ApiMember(Description="Erwerbe nach §§ 4b und 25c UStG", Name="Kz94")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz94=null,

        /** @description zu anderen Steuersätzen (Bemessungsgrundlage) */
        // @ApiMember(Description="zu anderen Steuersätzen (Bemessungsgrundlage)", Name="Kz95")
        /** @var GeldBetragOhneCent13EN|null */
        public ?GeldBetragOhneCent13EN $kz95=null,

        /** @description neuer Fahrzeuge (§ 1b Absatz 2 und 3 UStG) von Lieferern ohne Umsatzsteuer-Identifikationsnummer zum allgemeinen Steuersatz (Steuer) */
        // @ApiMember(Description="neuer Fahrzeuge (§ 1b Absatz 2 und 3 UStG) von Lieferern ohne Umsatzsteuer-Identifikationsnummer zum allgemeinen Steuersatz (Steuer)", Name="Kz96")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz96=null,

        /** @description zu anderen Steuersätzen (Steuer) */
        // @ApiMember(Description="zu anderen Steuersätzen (Steuer)", Name="Kz98")
        /** @var GeldBetragMitCent11EN|null */
        public ?GeldBetragMitCent11EN $kz98=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['jahr'])) $this->jahr = $o['jahr'];
        if (isset($o['zeitraum'])) $this->zeitraum = JsonConverters::from('AnmeldungZeitraum', $o['zeitraum']);
        if (isset($o['steuernummer'])) $this->steuernummer = $o['steuernummer'];
        if (isset($o['kz09'])) $this->kz09 = JsonConverters::from('Kz09', $o['kz09']);
        if (isset($o['kz10'])) $this->kz10 = JsonConverters::from('Ganzzahl1EN', $o['kz10']);
        if (isset($o['kz21'])) $this->kz21 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz21']);
        if (isset($o['kz22'])) $this->kz22 = JsonConverters::from('Ganzzahl1EN', $o['kz22']);
        if (isset($o['kz23'])) $this->kz23 = JsonConverters::from('Ganzzahl1EN', $o['kz23']);
        if (isset($o['kz23_Begruendung'])) $this->kz23_Begruendung = $o['kz23_Begruendung'];
        if (isset($o['kz26'])) $this->kz26 = JsonConverters::from('Ganzzahl1EN', $o['kz26']);
        if (isset($o['kz29'])) $this->kz29 = JsonConverters::from('Ganzzahl1EN', $o['kz29']);
        if (isset($o['kz35'])) $this->kz35 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz35']);
        if (isset($o['kz36'])) $this->kz36 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz36']);
        if (isset($o['kz37'])) $this->kz37 = JsonConverters::from('PositiverGeldBetragMitCent11EN', $o['kz37']);
        if (isset($o['kz39'])) $this->kz39 = JsonConverters::from('PositiverGeldBetragMitCent13EN', $o['kz39']);
        if (isset($o['kz41'])) $this->kz41 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz41']);
        if (isset($o['kz42'])) $this->kz42 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz42']);
        if (isset($o['kz43'])) $this->kz43 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz43']);
        if (isset($o['kz44'])) $this->kz44 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz44']);
        if (isset($o['kz45'])) $this->kz45 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz45']);
        if (isset($o['kz46'])) $this->kz46 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz46']);
        if (isset($o['kz47'])) $this->kz47 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz47']);
        if (isset($o['kz48'])) $this->kz48 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz48']);
        if (isset($o['kz49'])) $this->kz49 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz49']);
        if (isset($o['kz50'])) $this->kz50 = JsonConverters::from('PositiverGeldBetragOhneCent13EN', $o['kz50']);
        if (isset($o['kz59'])) $this->kz59 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz59']);
        if (isset($o['kz60'])) $this->kz60 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz60']);
        if (isset($o['kz61'])) $this->kz61 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz61']);
        if (isset($o['kz62'])) $this->kz62 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz62']);
        if (isset($o['kz63'])) $this->kz63 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz63']);
        if (isset($o['kz64'])) $this->kz64 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz64']);
        if (isset($o['kz65'])) $this->kz65 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz65']);
        if (isset($o['kz66'])) $this->kz66 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz66']);
        if (isset($o['kz67'])) $this->kz67 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz67']);
        if (isset($o['kz69'])) $this->kz69 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz69']);
        if (isset($o['kz73'])) $this->kz73 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz73']);
        if (isset($o['kz74'])) $this->kz74 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz74']);
        if (isset($o['kz76'])) $this->kz76 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz76']);
        if (isset($o['kz77'])) $this->kz77 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz77']);
        if (isset($o['kz80'])) $this->kz80 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz80']);
        if (isset($o['kz81'])) $this->kz81 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz81']);
        if (isset($o['kz83'])) $this->kz83 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz83']);
        if (isset($o['kz84'])) $this->kz84 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz84']);
        if (isset($o['kz85'])) $this->kz85 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz85']);
        if (isset($o['kz86'])) $this->kz86 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz86']);
        if (isset($o['kz89'])) $this->kz89 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz89']);
        if (isset($o['kz91'])) $this->kz91 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz91']);
        if (isset($o['kz93'])) $this->kz93 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz93']);
        if (isset($o['kz94'])) $this->kz94 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz94']);
        if (isset($o['kz95'])) $this->kz95 = JsonConverters::from('GeldBetragOhneCent13EN', $o['kz95']);
        if (isset($o['kz96'])) $this->kz96 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz96']);
        if (isset($o['kz98'])) $this->kz98 = JsonConverters::from('GeldBetragMitCent11EN', $o['kz98']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->jahr)) $o['jahr'] = $this->jahr;
        if (isset($this->zeitraum)) $o['zeitraum'] = JsonConverters::to('AnmeldungZeitraum', $this->zeitraum);
        if (isset($this->steuernummer)) $o['steuernummer'] = $this->steuernummer;
        if (isset($this->kz09)) $o['kz09'] = JsonConverters::to('Kz09', $this->kz09);
        if (isset($this->kz10)) $o['kz10'] = JsonConverters::to('Ganzzahl1EN', $this->kz10);
        if (isset($this->kz21)) $o['kz21'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz21);
        if (isset($this->kz22)) $o['kz22'] = JsonConverters::to('Ganzzahl1EN', $this->kz22);
        if (isset($this->kz23)) $o['kz23'] = JsonConverters::to('Ganzzahl1EN', $this->kz23);
        if (isset($this->kz23_Begruendung)) $o['kz23_Begruendung'] = $this->kz23_Begruendung;
        if (isset($this->kz26)) $o['kz26'] = JsonConverters::to('Ganzzahl1EN', $this->kz26);
        if (isset($this->kz29)) $o['kz29'] = JsonConverters::to('Ganzzahl1EN', $this->kz29);
        if (isset($this->kz35)) $o['kz35'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz35);
        if (isset($this->kz36)) $o['kz36'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz36);
        if (isset($this->kz37)) $o['kz37'] = JsonConverters::to('PositiverGeldBetragMitCent11EN', $this->kz37);
        if (isset($this->kz39)) $o['kz39'] = JsonConverters::to('PositiverGeldBetragMitCent13EN', $this->kz39);
        if (isset($this->kz41)) $o['kz41'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz41);
        if (isset($this->kz42)) $o['kz42'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz42);
        if (isset($this->kz43)) $o['kz43'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz43);
        if (isset($this->kz44)) $o['kz44'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz44);
        if (isset($this->kz45)) $o['kz45'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz45);
        if (isset($this->kz46)) $o['kz46'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz46);
        if (isset($this->kz47)) $o['kz47'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz47);
        if (isset($this->kz48)) $o['kz48'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz48);
        if (isset($this->kz49)) $o['kz49'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz49);
        if (isset($this->kz50)) $o['kz50'] = JsonConverters::to('PositiverGeldBetragOhneCent13EN', $this->kz50);
        if (isset($this->kz59)) $o['kz59'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz59);
        if (isset($this->kz60)) $o['kz60'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz60);
        if (isset($this->kz61)) $o['kz61'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz61);
        if (isset($this->kz62)) $o['kz62'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz62);
        if (isset($this->kz63)) $o['kz63'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz63);
        if (isset($this->kz64)) $o['kz64'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz64);
        if (isset($this->kz65)) $o['kz65'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz65);
        if (isset($this->kz66)) $o['kz66'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz66);
        if (isset($this->kz67)) $o['kz67'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz67);
        if (isset($this->kz69)) $o['kz69'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz69);
        if (isset($this->kz73)) $o['kz73'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz73);
        if (isset($this->kz74)) $o['kz74'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz74);
        if (isset($this->kz76)) $o['kz76'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz76);
        if (isset($this->kz77)) $o['kz77'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz77);
        if (isset($this->kz80)) $o['kz80'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz80);
        if (isset($this->kz81)) $o['kz81'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz81);
        if (isset($this->kz83)) $o['kz83'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz83);
        if (isset($this->kz84)) $o['kz84'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz84);
        if (isset($this->kz85)) $o['kz85'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz85);
        if (isset($this->kz86)) $o['kz86'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz86);
        if (isset($this->kz89)) $o['kz89'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz89);
        if (isset($this->kz91)) $o['kz91'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz91);
        if (isset($this->kz93)) $o['kz93'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz93);
        if (isset($this->kz94)) $o['kz94'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz94);
        if (isset($this->kz95)) $o['kz95'] = JsonConverters::to('GeldBetragOhneCent13EN', $this->kz95);
        if (isset($this->kz96)) $o['kz96'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz96);
        if (isset($this->kz98)) $o['kz98'] = JsonConverters::to('GeldBetragMitCent11EN', $this->kz98);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Submits the preliminary VAT return (Umsatzsteuervoranmeldung) as a tax consultant for 2021. */
// @Api(Description="Submits the preliminary VAT return (Umsatzsteuervoranmeldung) as a tax consultant for 2021.")
class SubmitUStVa2021AsTaxConsultantBase extends SubmitUmsatzsteueranmeldung2021AsTaxConsultantBase implements JsonSerializable
{
    /**
     * @param DatenLieferant|null $datenLieferant
     * @param DateTime $erstellungsdatum
     * @param Berater|null $berater
     * @param Mandant|null $mandant
     * @param string $bundesfinanzamtsnummer
     * @param EOP|null $eop
     * @param bool|null $duplexDruck
     * @param string $protocolPrefix
     * @param string|null $fussText
     * @param PortalCertificate|null $zertifikat
     * @param string|null $abrufCode
     */
    public function __construct(
        ?DatenLieferant $datenLieferant=null,
        DateTime $erstellungsdatum=new DateTime(),
        ?Berater $berater=null,
        ?Mandant $mandant=null,
        string $bundesfinanzamtsnummer='',
        ?EOP $eop=null,
        ?bool $duplexDruck=null,
        string $protocolPrefix='',
        ?string $fussText=null,
        ?PortalCertificate $zertifikat=null,
        ?string $abrufCode=null,
        /** @description Die Umsatzsteuervoranmeldung (The preliminary VAT return). */
        // @ApiMember(Description="Die Umsatzsteuervoranmeldung (The preliminary VAT return).", IsRequired=true, Name="Umsatzsteuervoranmeldung")
        /** @var Umsatzsteuervoranmeldung2021|null */
        public ?Umsatzsteuervoranmeldung2021 $umsatzsteuervoranmeldung=null
    ) {
        parent::__construct($datenLieferant,$erstellungsdatum,$berater,$mandant,$bundesfinanzamtsnummer,$eop,$duplexDruck,$protocolPrefix,$fussText,$zertifikat,$abrufCode);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['umsatzsteuervoranmeldung'])) $this->umsatzsteuervoranmeldung = JsonConverters::from('Umsatzsteuervoranmeldung2021', $o['umsatzsteuervoranmeldung']);
        if (isset($o['datenLieferant'])) $this->datenLieferant = JsonConverters::from('DatenLieferant', $o['datenLieferant']);
        if (isset($o['erstellungsdatum'])) $this->erstellungsdatum = JsonConverters::from('DateTime', $o['erstellungsdatum']);
        if (isset($o['berater'])) $this->berater = JsonConverters::from('Berater', $o['berater']);
        if (isset($o['mandant'])) $this->mandant = JsonConverters::from('Mandant', $o['mandant']);
        if (isset($o['bundesfinanzamtsnummer'])) $this->bundesfinanzamtsnummer = $o['bundesfinanzamtsnummer'];
        if (isset($o['eop'])) $this->eop = JsonConverters::from('EOP', $o['eop']);
        if (isset($o['duplexDruck'])) $this->duplexDruck = $o['duplexDruck'];
        if (isset($o['protocolPrefix'])) $this->protocolPrefix = $o['protocolPrefix'];
        if (isset($o['fussText'])) $this->fussText = $o['fussText'];
        if (isset($o['zertifikat'])) $this->zertifikat = JsonConverters::from('PortalCertificate', $o['zertifikat']);
        if (isset($o['abrufCode'])) $this->abrufCode = $o['abrufCode'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->umsatzsteuervoranmeldung)) $o['umsatzsteuervoranmeldung'] = JsonConverters::to('Umsatzsteuervoranmeldung2021', $this->umsatzsteuervoranmeldung);
        if (isset($this->datenLieferant)) $o['datenLieferant'] = JsonConverters::to('DatenLieferant', $this->datenLieferant);
        if (isset($this->erstellungsdatum)) $o['erstellungsdatum'] = JsonConverters::to('DateTime', $this->erstellungsdatum);
        if (isset($this->berater)) $o['berater'] = JsonConverters::to('Berater', $this->berater);
        if (isset($this->mandant)) $o['mandant'] = JsonConverters::to('Mandant', $this->mandant);
        if (isset($this->bundesfinanzamtsnummer)) $o['bundesfinanzamtsnummer'] = $this->bundesfinanzamtsnummer;
        if (isset($this->eop)) $o['eop'] = JsonConverters::to('EOP', $this->eop);
        if (isset($this->duplexDruck)) $o['duplexDruck'] = $this->duplexDruck;
        if (isset($this->protocolPrefix)) $o['protocolPrefix'] = $this->protocolPrefix;
        if (isset($this->fussText)) $o['fussText'] = $this->fussText;
        if (isset($this->zertifikat)) $o['zertifikat'] = JsonConverters::to('PortalCertificate', $this->zertifikat);
        if (isset($this->abrufCode)) $o['abrufCode'] = $this->abrufCode;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Specifies a service response from an ERiC service operation. */
// @Api(Description="Specifies a service response from an ERiC service operation.")
class ServiceReponseBase implements IHasIndex, JsonSerializable
{
    public function __construct(
        /** @description The unique identifier of the response. */
        // @ApiMember(Description="The unique identifier of the response.", Name="Id")
        /** @var string */
        public string $id='',

        /** @description The position of the response element in an indexed collection. */
        // @ApiMember(Description="The position of the response element in an indexed collection.", Name="Index")
        /** @var int */
        public int $index=0,

        /** @description Metadata that contains structured error information on the service response. */
        // @ApiMember(Description="Metadata that contains structured error information on the service response.", Name="ResponseStatus")
        /** @var ResponseStatus|null */
        public ?ResponseStatus $responseStatus=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['index'])) $this->index = $o['index'];
        if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->index)) $o['index'] = $this->index;
        if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Enumeration of ERiC API error codes. */
enum EricFehlerCode : int
{
    case ERIC_OK = 0;
    case ERIC_GLOBAL_UNKNOWN = 610001001;
    case ERIC_GLOBAL_PRUEF_FEHLER = 610001002;
    case ERIC_GLOBAL_HINWEISE = 610001003;
    case ERIC_GLOBAL_FEHLERMELDUNG_NICHT_VORHANDEN = 610001007;
    case ERIC_GLOBAL_KEINE_DATEN_VORHANDEN = 610001008;
    case ERIC_GLOBAL_NICHT_GENUEGEND_ARBEITSSPEICHER = 610001013;
    case ERIC_GLOBAL_DATEI_NICHT_GEFUNDEN = 610001014;
    case ERIC_GLOBAL_HERSTELLER_ID_NICHT_ERLAUBT = 610001016;
    case ERIC_GLOBAL_ILLEGAL_STATE = 610001017;
    case ERIC_GLOBAL_FUNKTION_NICHT_ERLAUBT = 610001018;
    case ERIC_GLOBAL_ECHTFALL_NICHT_ERLAUBT = 610001019;
    case ERIC_GLOBAL_NO_VERSAND_IN_BETA_VERSION = 610001020;
    case ERIC_GLOBAL_TESTMERKER_UNGUELTIG = 610001025;
    case ERIC_GLOBAL_DATENSATZ_ZU_GROSS = 610001026;
    case ERIC_GLOBAL_VERSCHLUESSELUNGS_PARAMETER_NICHT_ERLAUBT = 610001027;
    case ERIC_GLOBAL_NUR_PORTALZERTIFIKAT_ERLAUBT = 610001028;
    case ERIC_GLOBAL_ABRUFCODE_NICHT_ERLAUBT = 610001029;
    case ERIC_GLOBAL_ERROR_XML_CREATE = 610001030;
    case ERIC_GLOBAL_TEXTPUFFERGROESSE_FIX = 610001031;
    case ERIC_GLOBAL_INTERNER_FEHLER = 610001032;
    case ERIC_GLOBAL_ARITHMETIKFEHLER = 610001033;
    case ERIC_GLOBAL_STEUERNUMMER_UNGUELTIG = 610001034;
    case ERIC_GLOBAL_STEUERNUMMER_FALSCHE_LAENGE = 610001035;
    case ERIC_GLOBAL_STEUERNUMMER_NICHT_NUMERISCH = 610001036;
    case ERIC_GLOBAL_LANDESNUMMER_UNBEKANNT = 610001037;
    case ERIC_GLOBAL_BUFANR_UNBEKANNT = 610001038;
    case ERIC_GLOBAL_LANDESNUMMER_BUFANR = 610001039;
    case ERIC_GLOBAL_PUFFER_ZUGRIFFSKONFLIKT = 610001040;
    case ERIC_GLOBAL_PUFFER_UEBERLAUF = 610001041;
    case ERIC_GLOBAL_DATENARTVERSION_UNBEKANNT = 610001042;
    case ERIC_GLOBAL_DATENARTVERSION_XML_INKONSISTENT = 610001044;
    case ERIC_GLOBAL_COMMONDATA_NICHT_VERFUEGBAR = 610001045;
    case ERIC_GLOBAL_LOG_EXCEPTION = 610001046;
    case ERIC_GLOBAL_TRANSPORTSCHLUESSEL_NICHT_ERLAUBT = 610001047;
    case ERIC_GLOBAL_OEFFENTLICHER_SCHLUESSEL_UNGUELTIG = 610001048;
    case ERIC_GLOBAL_TRANSPORTSCHLUESSEL_TYP_FALSCH = 610001049;
    case ERIC_GLOBAL_PUFFER_UNGLEICHER_INSTANZ = 610001050;
    case ERIC_GLOBAL_VORSATZ_UNGUELTIG = 610001051;
    case ERIC_GLOBAL_DATEIZUGRIFF_VERWEIGERT = 610001053;
    case ERIC_GLOBAL_UNGUELTIGE_INSTANZ = 610001080;
    case ERIC_GLOBAL_NICHT_INITIALISIERT = 610001081;
    case ERIC_GLOBAL_MEHRFACHE_INITIALISIERUNG = 610001082;
    case ERIC_GLOBAL_FEHLER_INITIALISIERUNG = 610001083;
    case ERIC_GLOBAL_UNKNOWN_PARAMETER_ERROR = 610001102;
    case ERIC_GLOBAL_CHECK_CORRUPTED_NDS = 610001108;
    case ERIC_GLOBAL_VERSCHLUESSELUNGS_PARAMETER_NICHT_ANGEGEBEN = 610001206;
    case ERIC_GLOBAL_SEND_FLAG_MEHR_ALS_EINES = 610001209;
    case ERIC_GLOBAL_UNGUELTIGE_FLAG_KOMBINATION = 610001218;
    case ERIC_GLOBAL_ERSTE_SEITE_DRUCK_NICHT_UNTERSTUETZT = 610001220;
    case ERIC_GLOBAL_UNGUELTIGER_PARAMETER = 610001222;
    case ERIC_GLOBAL_DRUCK_FUER_VERFAHREN_NICHT_ERLAUBT = 610001224;
    case ERIC_GLOBAL_VERSAND_ART_NICHT_UNTERSTUETZT = 610001225;
    case ERIC_GLOBAL_UNGUELTIGE_PARAMETER_VERSION = 610001226;
    case ERIC_GLOBAL_TRANSFERHANDLE = 610001227;
    case ERIC_GLOBAL_PLUGININITIALISIERUNG = 610001228;
    case ERIC_GLOBAL_INKOMPATIBLE_VERSIONEN = 610001229;
    case ERIC_GLOBAL_VERSCHLUESSELUNGSVERFAHREN_NICHT_UNTERSTUETZT = 610001230;
    case ERIC_GLOBAL_MEHRFACHAUFRUFE_NICHT_UNTERSTUETZT = 610001231;
    case ERIC_GLOBAL_UTI_COUNTRY_NOT_SUPPORTED = 610001404;
    case ERIC_GLOBAL_IBAN_FORMALER_FEHLER = 610001501;
    case ERIC_GLOBAL_IBAN_LAENDERCODE_FEHLER = 610001502;
    case ERIC_GLOBAL_IBAN_LANDESFORMAT_FEHLER = 610001503;
    case ERIC_GLOBAL_IBAN_PRUEFZIFFER_FEHLER = 610001504;
    case ERIC_GLOBAL_BIC_FORMALER_FEHLER = 610001510;
    case ERIC_GLOBAL_BIC_LAENDERCODE_FEHLER = 610001511;
    case ERIC_GLOBAL_ZULASSUNGSNUMMER_ZU_LANG = 610001519;
    case ERIC_GLOBAL_IDNUMMER_UNGUELTIG = 610001525;
    case ERIC_GLOBAL_NULL_PARAMETER = 610001526;
    case ERIC_GLOBAL_EWAZ_UNGUELTIG = 610001527;
    case ERIC_GLOBAL_EWAZ_LANDESKUERZEL_UNBEKANNT = 610001528;
    case ERIC_GLOBAL_UPDATE_NECESSARY = 610001851;
    case ERIC_GLOBAL_EINSTELLUNG_NAME_UNGUELTIG = 610001860;
    case ERIC_GLOBAL_EINSTELLUNG_WERT_UNGUELTIG = 610001861;
    case ERIC_GLOBAL_ERR_DEKODIEREN = 610001862;
    case ERIC_GLOBAL_FUNKTION_NICHT_UNTERSTUETZT = 610001863;
    case ERIC_GLOBAL_NUTZDATENTICKETS_NICHT_EINDEUTIG = 610001865;
    case ERIC_GLOBAL_NUTZDATENHEADERVERSIONEN_UNEINHEITLICH = 610001866;
    case ERIC_GLOBAL_BUNDESLAENDER_UNEINHEITLICH = 610001867;
    case ERIC_GLOBAL_ZEITRAEUME_UNEINHEITLICH = 610001868;
    case ERIC_GLOBAL_NUTZDATENHEADER_EMPFAENGER_NICHT_KORREKT = 610001869;
    case ERIC_TRANSFER_COM_ERROR = 610101200;
    case ERIC_TRANSFER_VORGANG_NICHT_UNTERSTUETZT = 610101201;
    case ERIC_TRANSFER_ERR_XML_THEADER = 610101210;
    case ERIC_TRANSFER_ERR_PARAM = 610101251;
    case ERIC_TRANSFER_ERR_DATENTEILENDNOTFOUND = 610101253;
    case ERIC_TRANSFER_ERR_BEGINDATENLIEFERANT = 610101255;
    case ERIC_TRANSFER_ERR_ENDDATENLIEFERANT = 610101256;
    case ERIC_TRANSFER_ERR_BEGINTRANSPORTSCHLUESSEL = 610101257;
    case ERIC_TRANSFER_ERR_ENDTRANSPORTSCHLUESSEL = 610101258;
    case ERIC_TRANSFER_ERR_BEGINDATENGROESSE = 610101259;
    case ERIC_TRANSFER_ERR_ENDDATENGROESSE = 610101260;
    case ERIC_TRANSFER_ERR_SEND = 610101271;
    case ERIC_TRANSFER_ERR_NOTENCRYPTED = 610101274;
    case ERIC_TRANSFER_ERR_PROXYCONNECT = 610101276;
    case ERIC_TRANSFER_ERR_CONNECTSERVER = 610101278;
    case ERIC_TRANSFER_ERR_NORESPONSE = 610101279;
    case ERIC_TRANSFER_ERR_PROXYAUTH = 610101280;
    case ERIC_TRANSFER_ERR_SEND_INIT = 610101282;
    case ERIC_TRANSFER_ERR_TIMEOUT = 610101283;
    case ERIC_TRANSFER_ERR_PROXYPORT_INVALID = 610101284;
    case ERIC_TRANSFER_ERR_OTHER = 610101291;
    case ERIC_TRANSFER_ERR_XML_NHEADER = 610101292;
    case ERIC_TRANSFER_ERR_XML_ENCODING = 610101293;
    case ERIC_TRANSFER_ERR_ENDSIGUSER = 610101294;
    case ERIC_TRANSFER_ERR_XMLTAG_NICHT_GEFUNDEN = 610101295;
    case ERIC_TRANSFER_ERR_DATENTEILFEHLER = 610101297;
    case ERIC_TRANSFER_EID_ZERTIFIKATFEHLER = 610101500;
    case ERIC_TRANSFER_EID_KEINKONTO = 610101510;
    case ERIC_TRANSFER_EID_IDNRNICHTEINDEUTIG = 610101511;
    case ERIC_TRANSFER_EID_SERVERFEHLER = 610101512;
    case ERIC_TRANSFER_EID_KEINCLIENT = 610101520;
    case ERIC_TRANSFER_EID_CLIENTFEHLER = 610101521;
    case ERIC_TRANSFER_EID_FEHLENDEFELDER = 610101522;
    case ERIC_TRANSFER_EID_IDENTIFIKATIONABGEBROCHEN = 610101523;
    case ERIC_TRANSFER_EID_NPABLOCKIERT = 610101524;
    case ERIC_CRYPT_ERROR_CREATE_KEY = 610201016;
    case ERIC_CRYPT_E_INVALID_HANDLE = 610201101;
    case ERIC_CRYPT_E_MAX_SESSION = 610201102;
    case ERIC_CRYPT_E_BUSY = 610201103;
    case ERIC_CRYPT_E_OUT_OF_MEM = 610201104;
    case ERIC_CRYPT_E_PSE_PATH = 610201105;
    case ERIC_CRYPT_E_PIN_WRONG = 610201106;
    case ERIC_CRYPT_E_PIN_LOCKED = 610201107;
    case ERIC_CRYPT_E_P7_READ = 610201108;
    case ERIC_CRYPT_E_P7_DECODE = 610201109;
    case ERIC_CRYPT_E_P7_RECIPIENT = 610201110;
    case ERIC_CRYPT_E_P12_READ = 610201111;
    case ERIC_CRYPT_E_P12_DECODE = 610201112;
    case ERIC_CRYPT_E_P12_SIG_KEY = 610201113;
    case ERIC_CRYPT_E_P12_ENC_KEY = 610201114;
    case ERIC_CRYPT_E_P11_SIG_KEY = 610201115;
    case ERIC_CRYPT_E_P11_ENC_KEY = 610201116;
    case ERIC_CRYPT_E_XML_PARSE = 610201117;
    case ERIC_CRYPT_E_XML_SIG_ADD = 610201118;
    case ERIC_CRYPT_E_XML_SIG_TAG = 610201119;
    case ERIC_CRYPT_E_XML_SIG_SIGN = 610201120;
    case ERIC_CRYPT_E_ENCODE_UNKNOWN = 610201121;
    case ERIC_CRYPT_E_ENCODE_ERROR = 610201122;
    case ERIC_CRYPT_E_XML_INIT = 610201123;
    case ERIC_CRYPT_E_ENCRYPT = 610201124;
    case ERIC_CRYPT_E_DECRYPT = 610201125;
    case ERIC_CRYPT_E_P11_SLOT_EMPTY = 610201126;
    case ERIC_CRYPT_E_NO_SIG_ENC_KEY = 610201127;
    case ERIC_CRYPT_E_LOAD_DLL = 610201128;
    case ERIC_CRYPT_E_NO_SERVICE = 610201129;
    case ERIC_CRYPT_E_ESICL_EXCEPTION = 610201130;
    case ERIC_CRYPT_E_TOKEN_TYPE_MISMATCH = 610201144;
    case ERIC_CRYPT_E_P12_CREATE = 610201146;
    case ERIC_CRYPT_E_VERIFY_CERT_CHAIN = 610201147;
    case ERIC_CRYPT_E_P11_ENGINE_LOADED = 610201148;
    case ERIC_CRYPT_E_USER_CANCEL = 610201149;
    case ERIC_CRYPT_ZERTIFIKAT = 610201200;
    case ERIC_CRYPT_SIGNATUR = 610201201;
    case ERIC_CRYPT_NICHT_UNTERSTUETZTES_PSE_FORMAT = 610201203;
    case ERIC_CRYPT_PIN_BENOETIGT = 610201205;
    case ERIC_CRYPT_PIN_STAERKE_NICHT_AUSREICHEND = 610201206;
    case ERIC_CRYPT_E_INTERN = 610201208;
    case ERIC_CRYPT_ZERTIFIKATSPFAD_KEIN_VERZEICHNIS = 610201209;
    case ERIC_CRYPT_ZERTIFIKATSDATEI_EXISTIERT_BEREITS = 610201210;
    case ERIC_CRYPT_PIN_ENTHAELT_UNGUELTIGE_ZEICHEN = 610201211;
    case ERIC_CRYPT_E_INVALID_PARAM_ABC = 610201212;
    case ERIC_CRYPT_CORRUPTED = 610201213;
    case ERIC_CRYPT_EIDKARTE_NICHT_UNTERSTUETZT = 610201214;
    case ERIC_CRYPT_E_SC_SLOT_EMPTY = 610201215;
    case ERIC_CRYPT_E_SC_NO_APPLET = 610201216;
    case ERIC_CRYPT_E_SC_SESSION = 610201217;
    case ERIC_CRYPT_E_P11_NO_SIG_CERT = 610201218;
    case ERIC_CRYPT_E_P11_INIT_FAILED = 610201219;
    case ERIC_CRYPT_E_P11_NO_ENC_CERT = 610201220;
    case ERIC_CRYPT_E_P12_NO_SIG_CERT = 610201221;
    case ERIC_CRYPT_E_P12_NO_ENC_CERT = 610201222;
    case ERIC_CRYPT_E_SC_ENC_KEY = 610201223;
    case ERIC_CRYPT_E_SC_NO_SIG_CERT = 610201224;
    case ERIC_CRYPT_E_SC_NO_ENC_CERT = 610201225;
    case ERIC_CRYPT_E_SC_INIT_FAILED = 610201226;
    case ERIC_CRYPT_E_SC_SIG_KEY = 610201227;
    case ERIC_IO_FEHLER = 610301001;
    case ERIC_IO_DATEI_INKORREKT = 610301005;
    case ERIC_IO_PARSE_FEHLER = 610301006;
    case ERIC_IO_NDS_GENERIERUNG_FEHLGESCHLAGEN = 610301007;
    case ERIC_IO_MASTERDATENSERVICE_NICHT_VERFUEGBAR = 610301010;
    case ERIC_IO_STEUERZEICHEN_IM_NDS = 610301014;
    case ERIC_IO_VERSIONSINFORMATIONEN_NICHT_GEFUNDEN = 610301031;
    case ERIC_IO_FALSCHES_VERFAHREN = 610301104;
    case ERIC_IO_READER_MEHRFACHE_STEUERFAELLE = 610301105;
    case ERIC_IO_READER_UNERWARTETE_ELEMENTE = 610301106;
    case ERIC_IO_READER_FORMALE_FEHLER = 610301107;
    case ERIC_IO_READER_FALSCHES_ENCODING = 610301108;
    case ERIC_IO_READER_MEHRFACHE_NUTZDATEN_ELEMENTE = 610301109;
    case ERIC_IO_READER_MEHRFACHE_NUTZDATENBLOCK_ELEMENTE = 610301110;
    case ERIC_IO_UNBEKANNTE_DATENART = 610301111;
    case ERIC_IO_READER_UNTERSACHBEREICH_UNGUELTIG = 610301114;
    case ERIC_IO_READER_ZU_VIELE_NUTZDATENBLOCK_ELEMENTE = 610301115;
    case ERIC_IO_READER_STEUERZEICHEN_IM_TRANSFERHEADER = 610301150;
    case ERIC_IO_READER_STEUERZEICHEN_IM_NUTZDATENHEADER = 610301151;
    case ERIC_IO_READER_STEUERZEICHEN_IN_DEN_NUTZDATEN = 610301152;
    case ERIC_IO_READER_ZU_VIELE_ANHAENGE = 610301190;
    case ERIC_IO_READER_ANHANG_ZU_GROSS = 610301191;
    case ERIC_IO_READER_ANHAENGE_ZU_GROSS = 610301192;
    case ERIC_IO_READER_SCHEMA_VALIDIERUNGSFEHLER = 610301200;
    case ERIC_IO_READER_UNBEKANNTE_XML_ENTITY = 610301201;
    case ERIC_IO_DATENTEILNOTFOUND = 610301252;
    case ERIC_IO_DATENTEILENDNOTFOUND = 610301253;
    case ERIC_IO_UEBERGABEPARAMETER_FEHLERHAFT = 610301300;
    case ERIC_IO_UNGUELTIGE_UTF8_SEQUENZ = 610301400;
    case ERIC_IO_UNGUELTIGE_ZEICHEN_IN_PARAMETER = 610301401;
    case ERIC_PRINT_INTERNER_FEHLER = 610501001;
    case ERIC_PRINT_DRUCKVORLAGE_NICHT_GEFUNDEN = 610501002;
    case ERIC_PRINT_UNGUELTIGER_DATEI_PFAD = 610501004;
    case ERIC_PRINT_INITIALISIERUNG_FEHLERHAFT = 610501007;
    case ERIC_PRINT_AUSGABEZIEL_UNBEKANNT = 610501008;
    case ERIC_PRINT_ABBRUCH_DRUCKVORBEREITUNG = 610501009;
    case ERIC_PRINT_ABBRUCH_GENERIERUNG = 610501010;
    case ERIC_PRINT_STEUERFALL_NICHT_UNTERSTUETZT = 610501011;
    case ERIC_PRINT_FUSSTEXT_ZU_LANG = 610501012;
}

/** @description Represent a base response that encapsulate any ERiC API function return value. */
// @Api(Description="Represent a base response that encapsulate any ERiC API function return value.")
class EricFehlerCodeResponse extends ServiceReponseBase implements JsonSerializable
{
    /**
     * @param string $id
     * @param int $index
     * @param ResponseStatus|null $responseStatus
     */
    public function __construct(
        string $id='',
        int $index=0,
        ?ResponseStatus $responseStatus=null,
        /** @description The status code that the ERiC API function returns. */
        // @ApiMember(Description="The status code that the ERiC API function returns.", Name="StatusCode")
        /** @var EricFehlerCode|null */
        public ?EricFehlerCode $statusCode=null,

        /** @description The status message that the ERiC API function returns. */
        // @ApiMember(Description="The status message that the ERiC API function returns.", Name="StatusText")
        /** @var string|null */
        public ?string $statusText=null
    ) {
        parent::__construct($id,$index,$responseStatus);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['statusCode'])) $this->statusCode = JsonConverters::from('EricFehlerCode', $o['statusCode']);
        if (isset($o['statusText'])) $this->statusText = $o['statusText'];
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['index'])) $this->index = $o['index'];
        if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->statusCode)) $o['statusCode'] = JsonConverters::to('EricFehlerCode', $this->statusCode);
        if (isset($this->statusText)) $o['statusText'] = $this->statusText;
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->index)) $o['index'] = $this->index;
        if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents information returned from a successful tax declaration process. */
// @Api(Description="Represents information returned from a successful tax declaration process.")
class Erfolg implements JsonSerializable
{
    public function __construct(
        /** @description The generated tele-number for the successful tax declaration process. */
        // @ApiMember(Description="The generated tele-number for the successful tax declaration process.")
        /** @var array<string>|null */
        public ?array $telenummer=null,

        /** @description The classification key for the successful tax declaration process. */
        // @ApiMember(Description="The classification key for the successful tax declaration process.")
        /** @var array<string>|null */
        public ?array $ordnungsbegriffe=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['telenummer'])) $this->telenummer = JsonConverters::fromArray('string', $o['telenummer']);
        if (isset($o['ordnungsbegriffe'])) $this->ordnungsbegriffe = JsonConverters::fromArray('string', $o['ordnungsbegriffe']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->telenummer)) $o['telenummer'] = JsonConverters::toArray('string', $this->telenummer);
        if (isset($this->ordnungsbegriffe)) $o['ordnungsbegriffe'] = JsonConverters::toArray('string', $this->ordnungsbegriffe);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents information on the delivery. */
// @Api(Description="Represents information on the delivery.")
class Transfer implements JsonSerializable
{
    public function __construct(
        /** @description The ticket of the transfer. */
        // @ApiMember(Description="The ticket of the transfer.")
        /** @var string|null */
        public ?string $transferTicket=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['transferTicket'])) $this->transferTicket = $o['transferTicket'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->transferTicket)) $o['transferTicket'] = $this->transferTicket;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents information on all data deliveries, including deliveries that have not been confirmed by the server. For more information, see the ERiC developer manual in the 'TransferTicket' section. */
// @Api(Description="Represents information on all data deliveries, including deliveries that have not been confirmed by the server. For more information, see the ERiC developer manual in the 'TransferTicket' section.")
class Transfers implements JsonSerializable
{
    public function __construct(
        /** @description Contains information on all data deliveries, including deliveries that have not been confirmed by the server. */
        // @ApiMember(Description="Contains information on all data deliveries, including deliveries that have not been confirmed by the server.")
        /** @var array<Transfer>|null */
        public ?array $transferList=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['transferList'])) $this->transferList = JsonConverters::fromArray('Transfer', $o['transferList']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->transferList)) $o['transferList'] = JsonConverters::toArray('Transfer', $this->transferList);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents value of an index field, which identfies the context about an error message. */
// @Api(Description="Represents value of an index field, which identfies the context about an error message.")
class SemantischerIndex implements JsonSerializable
{
    public function __construct(
        /** @description The name of the index field. */
        // @ApiMember(Description="The name of the index field.")
        /** @var string|null */
        public ?string $name=null,

        /** @description The value of the index field. */
        // @ApiMember(Description="The value of the index field.")
        /** @var string|null */
        public ?string $value=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['value'])) $this->value = $o['value'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->value)) $o['value'] = $this->value;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents information on an ERiC reference. */
// @Api(Description="Represents information on an ERiC reference.")
class FehlerRegelpruefung implements JsonSerializable
{
    public function __construct(
        /** @description The user data ticket of the reference. */
        // @ApiMember(Description="The user data ticket of the reference.")
        /** @var string|null */
        public ?string $nutzdatenticket=null,

        /** @description The field identifier of the reference. */
        // @ApiMember(Description="The field identifier of the reference.")
        /** @var string|null */
        public ?string $feldidentifikator=null,

        /** @description The multi-line index of the reference. */
        // @ApiMember(Description="The multi-line index of the reference.")
        /** @var string|null */
        public ?string $mehrfachzeilenindex=null,

        /** @description The delivery number form of the reference. */
        // @ApiMember(Description="The delivery number form of the reference.")
        /** @var string|null */
        public ?string $lfdNrVordruck=null,

        /** @description Indicates the line number of the error field mentioned in the form. */
        // @ApiMember(Description="Indicates the line number of the error field mentioned in the form.")
        /** @var string|null */
        public ?string $vordruckZeilennummer=null,

        /** @description Specifies the value of one or more index fields that identify the context of error messages. */
        // @ApiMember(Description="Specifies the value of one or more index fields that identify the context of error messages.")
        /** @var array<SemantischerIndex>|null */
        public ?array $semantischeIndexes=null,

        /** @description The sub-subject-area of the reference. */
        // @ApiMember(Description="The sub-subject-area of the reference.")
        /** @var string|null */
        public ?string $untersachbereich=null,

        /** @description The private identification number of the reference. */
        // @ApiMember(Description="The private identification number of the reference.")
        /** @var string|null */
        public ?string $privateKennnummer=null,

        /** @description The name of the rule that applies to the reference. */
        // @ApiMember(Description="The name of the rule that applies to the reference.")
        /** @var string|null */
        public ?string $regelName=null,

        /** @description The technical error identifier of the reference. */
        // @ApiMember(Description="The technical error identifier of the reference.")
        /** @var string|null */
        public ?string $fachlicheFehlerId=null,

        /** @description The textual details of the reference. */
        // @ApiMember(Description="The textual details of the reference.")
        /** @var string|null */
        public ?string $text=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['nutzdatenticket'])) $this->nutzdatenticket = $o['nutzdatenticket'];
        if (isset($o['feldidentifikator'])) $this->feldidentifikator = $o['feldidentifikator'];
        if (isset($o['mehrfachzeilenindex'])) $this->mehrfachzeilenindex = $o['mehrfachzeilenindex'];
        if (isset($o['lfdNrVordruck'])) $this->lfdNrVordruck = $o['lfdNrVordruck'];
        if (isset($o['vordruckZeilennummer'])) $this->vordruckZeilennummer = $o['vordruckZeilennummer'];
        if (isset($o['semantischeIndexes'])) $this->semantischeIndexes = JsonConverters::fromArray('SemantischerIndex', $o['semantischeIndexes']);
        if (isset($o['untersachbereich'])) $this->untersachbereich = $o['untersachbereich'];
        if (isset($o['privateKennnummer'])) $this->privateKennnummer = $o['privateKennnummer'];
        if (isset($o['regelName'])) $this->regelName = $o['regelName'];
        if (isset($o['fachlicheFehlerId'])) $this->fachlicheFehlerId = $o['fachlicheFehlerId'];
        if (isset($o['text'])) $this->text = $o['text'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->nutzdatenticket)) $o['nutzdatenticket'] = $this->nutzdatenticket;
        if (isset($this->feldidentifikator)) $o['feldidentifikator'] = $this->feldidentifikator;
        if (isset($this->mehrfachzeilenindex)) $o['mehrfachzeilenindex'] = $this->mehrfachzeilenindex;
        if (isset($this->lfdNrVordruck)) $o['lfdNrVordruck'] = $this->lfdNrVordruck;
        if (isset($this->vordruckZeilennummer)) $o['vordruckZeilennummer'] = $this->vordruckZeilennummer;
        if (isset($this->semantischeIndexes)) $o['semantischeIndexes'] = JsonConverters::toArray('SemantischerIndex', $this->semantischeIndexes);
        if (isset($this->untersachbereich)) $o['untersachbereich'] = $this->untersachbereich;
        if (isset($this->privateKennnummer)) $o['privateKennnummer'] = $this->privateKennnummer;
        if (isset($this->regelName)) $o['regelName'] = $this->regelName;
        if (isset($this->fachlicheFehlerId)) $o['fachlicheFehlerId'] = $this->fachlicheFehlerId;
        if (isset($this->text)) $o['text'] = $this->text;
        return empty($o) ? new class(){} : $o;
    }
}

class Hinweis implements JsonSerializable
{
    public function __construct(
        /** @description The user data ticket of the reference. */
        // @ApiMember(Description="The user data ticket of the reference.")
        /** @var string|null */
        public ?string $nutzdatenticket=null,

        /** @description The field identifier of the reference. */
        // @ApiMember(Description="The field identifier of the reference.")
        /** @var string|null */
        public ?string $feldidentifikator=null,

        /** @description The multi-line index of the reference. */
        // @ApiMember(Description="The multi-line index of the reference.")
        /** @var string|null */
        public ?string $mehrfachzeilenindex=null,

        /** @description The delivery number form of the reference. */
        // @ApiMember(Description="The delivery number form of the reference.")
        /** @var string|null */
        public ?string $lfdNrVordruck=null,

        /** @description Indicates the line number of the error field mentioned in the form. */
        // @ApiMember(Description="Indicates the line number of the error field mentioned in the form.")
        /** @var string|null */
        public ?string $vordruckZeilennummer=null,

        /** @description Specifies the value of one or more index fields that identify the context of error messages. */
        // @ApiMember(Description="Specifies the value of one or more index fields that identify the context of error messages.")
        /** @var array<SemantischerIndex>|null */
        public ?array $semantischeIndexes=null,

        /** @description The sub-subject-area of the reference. */
        // @ApiMember(Description="The sub-subject-area of the reference.")
        /** @var string|null */
        public ?string $untersachbereich=null,

        /** @description The private identification number of the reference. */
        // @ApiMember(Description="The private identification number of the reference.")
        /** @var string|null */
        public ?string $privateKennnummer=null,

        /** @description The name of the rule that applies to the reference. */
        // @ApiMember(Description="The name of the rule that applies to the reference.")
        /** @var string|null */
        public ?string $regelName=null,

        /** @description The technical note identifier of the reference. */
        // @ApiMember(Description="The technical note identifier of the reference.")
        /** @var string|null */
        public ?string $fachlicheHinweisId=null,

        /** @description The textual details of the reference. */
        // @ApiMember(Description="The textual details of the reference.")
        /** @var string|null */
        public ?string $text=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['nutzdatenticket'])) $this->nutzdatenticket = $o['nutzdatenticket'];
        if (isset($o['feldidentifikator'])) $this->feldidentifikator = $o['feldidentifikator'];
        if (isset($o['mehrfachzeilenindex'])) $this->mehrfachzeilenindex = $o['mehrfachzeilenindex'];
        if (isset($o['lfdNrVordruck'])) $this->lfdNrVordruck = $o['lfdNrVordruck'];
        if (isset($o['vordruckZeilennummer'])) $this->vordruckZeilennummer = $o['vordruckZeilennummer'];
        if (isset($o['semantischeIndexes'])) $this->semantischeIndexes = JsonConverters::fromArray('SemantischerIndex', $o['semantischeIndexes']);
        if (isset($o['untersachbereich'])) $this->untersachbereich = $o['untersachbereich'];
        if (isset($o['privateKennnummer'])) $this->privateKennnummer = $o['privateKennnummer'];
        if (isset($o['regelName'])) $this->regelName = $o['regelName'];
        if (isset($o['fachlicheHinweisId'])) $this->fachlicheHinweisId = $o['fachlicheHinweisId'];
        if (isset($o['text'])) $this->text = $o['text'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->nutzdatenticket)) $o['nutzdatenticket'] = $this->nutzdatenticket;
        if (isset($this->feldidentifikator)) $o['feldidentifikator'] = $this->feldidentifikator;
        if (isset($this->mehrfachzeilenindex)) $o['mehrfachzeilenindex'] = $this->mehrfachzeilenindex;
        if (isset($this->lfdNrVordruck)) $o['lfdNrVordruck'] = $this->lfdNrVordruck;
        if (isset($this->vordruckZeilennummer)) $o['vordruckZeilennummer'] = $this->vordruckZeilennummer;
        if (isset($this->semantischeIndexes)) $o['semantischeIndexes'] = JsonConverters::toArray('SemantischerIndex', $this->semantischeIndexes);
        if (isset($this->untersachbereich)) $o['untersachbereich'] = $this->untersachbereich;
        if (isset($this->privateKennnummer)) $o['privateKennnummer'] = $this->privateKennnummer;
        if (isset($this->regelName)) $o['regelName'] = $this->regelName;
        if (isset($this->fachlicheHinweisId)) $o['fachlicheHinweisId'] = $this->fachlicheHinweisId;
        if (isset($this->text)) $o['text'] = $this->text;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents a structure that contains the first output of the ERiC tax data submission process. */
// @Api(Description="Represents a structure that contains the first output of the ERiC tax data submission process.")
class EricBearbeiteVorgang implements JsonSerializable
{
    public function __construct(
        /** @description Information from the successful processing a tax declaration. */
        // @ApiMember(Description="Information from the successful processing a tax declaration.")
        /** @var Erfolg|null */
        public ?Erfolg $erfolg=null,

        /** @description Gets or sets information on all data deliveries, including deliveries that have not been confirmed by the server. */
        // @ApiMember(Description="Gets or sets information on all data deliveries, including deliveries that have not been confirmed by the server.")
        /** @var Transfers|null */
        public ?Transfers $transfers=null,

        /** @description Error rules that result from the processing of a tax declaration. */
        // @ApiMember(Description="Error rules that result from the processing of a tax declaration.")
        /** @var array<FehlerRegelpruefung>|null */
        public ?array $fehlerRegelpruefungen=null,

        /** @description Hints that result the processing of a tax declaration. */
        // @ApiMember(Description="Hints that result the processing of a tax declaration.")
        /** @var array<Hinweis>|null */
        public ?array $hinweise=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['erfolg'])) $this->erfolg = JsonConverters::from('Erfolg', $o['erfolg']);
        if (isset($o['transfers'])) $this->transfers = JsonConverters::from('Transfers', $o['transfers']);
        if (isset($o['fehlerRegelpruefungen'])) $this->fehlerRegelpruefungen = JsonConverters::fromArray('FehlerRegelpruefung', $o['fehlerRegelpruefungen']);
        if (isset($o['hinweise'])) $this->hinweise = JsonConverters::fromArray('Hinweis', $o['hinweise']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->erfolg)) $o['erfolg'] = JsonConverters::to('Erfolg', $this->erfolg);
        if (isset($this->transfers)) $o['transfers'] = JsonConverters::to('Transfers', $this->transfers);
        if (isset($this->fehlerRegelpruefungen)) $o['fehlerRegelpruefungen'] = JsonConverters::toArray('FehlerRegelpruefung', $this->fehlerRegelpruefungen);
        if (isset($this->hinweise)) $o['hinweise'] = JsonConverters::toArray('Hinweis', $this->hinweise);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Auflistung der gültigen Verfahren */
enum Verfahren : string
{
    case ElsterAnmeldung = 'ElsterAnmeldung';
    case ElsterBereitstellung = 'ElsterBereitstellung';
    case ElsterBilanz = 'ElsterBilanz';
    case ElsterBRM = 'ElsterBRM';
    case ElsterBRMOrg = 'ElsterBRMOrg';
    case ElsterDatenabholung = 'ElsterDatenabholung';
    case ElsterErklaerung = 'ElsterErklaerung';
    case ElsterExtern = 'ElsterExtern';
    case ElsterFSE = 'ElsterFSE';
    case ElsterKapESt = 'ElsterKapESt';
    case ElsterKMV = 'ElsterKMV';
    case ElsterKontoabfrage = 'ElsterKontoabfrage';
    case ElsterLavendel = 'ElsterLavendel';
    case ElsterLohn = 'ElsterLohn';
    case ElsterLohn2 = 'ElsterLohn2';
    case ElsterNachricht = 'ElsterNachricht';
    case ElsterSignatur = 'ElsterSignatur';
    case ElsterVollmachtDB = 'ElsterVollmachtDB';
}

/** @description Auflistung aller gültigen Datenarten. */
enum Datenart : string
{
    case Anlage34a = 'Anlage34a';
    case AnpassungVorauszahlung = 'AnpassungVorauszahlung';
    case AntragUStVerguetung4a = 'AntragUStVerguetung4a';
    case AbrufcodeAntrag = 'AbrufcodeAntrag';
    case AenderungAdresse = 'AenderungAdresse';
    case AbrufcodeStorno = 'AbrufcodeStorno';
    case AbrufvollmachtAnlage = 'AbrufvollmachtAnlage';
    case AbrufvollmachtUpdate = 'AbrufvollmachtUpdate';
    case AenderungBankverbindung = 'AenderungBankverbindung';
    case AntraegeRechteLoeschen = 'AntraegeRechteLoeschen';
    case AntraegeUndRechte = 'AntraegeUndRechte';
    case Aufzeichnung146a = 'Aufzeichnung146a';
    case BetPG = 'BetPG';
    case Bilanz = 'Bilanz';
    case Belegnachreichung = 'Belegnachreichung';
    case BSBMitteilung = 'BSBMitteilung';
    case BZSt2 = 'BZSt2';
    case C19Mitteilung = 'C19Mitteilung';
    case DUeAbmelden = 'DUeAbmelden';
    case DUeAnmelden = 'DUeAnmelden';
    case DUeUmmelden = 'DUeUmmelden';
    case Einspruch = 'Einspruch';
    case EinspruchNachtrag = 'EinspruchNachtrag';
    case EinspruchRuecknahme = 'EinspruchRuecknahme';
    case ELeVAntragELStAM = 'ELeVAntragELStAM';
    case ELeVErmaessigung = 'ELeVErmaessigung';
    case ELeVGetrenntlebend = 'ELeVGetrenntlebend';
    case ELeVSteuerklassenwechsel = 'ELeVSteuerklassenwechsel';
    case ELeVWiederaufnahmeEhe = 'ELeVWiederaufnahmeEhe';
    case EPAntwort = 'EPAntwort';
    case EPBescheid = 'EPBescheid';
    case EPMitteilung = 'EPMitteilung';
    case EPKurzmitteilung = 'EPKurzmitteilung';
    case ElsterErklaerungDaten = 'ElsterErklaerungDaten';
    case ElsterKMVDaten = 'ElsterKMVDaten';
    case ElsterLohn2Daten = 'ElsterLohn2Daten';
    case ElsterLohnDaten = 'ElsterLohnDaten';
    case ElsterVaStDaten = 'ElsterVaStDaten';
    case ElsterDIVADaten = 'ElsterDIVADaten';
    case ElsterDIVDaten = 'ElsterDIVDaten';
    case ElsterEPBescheidDaten = 'ElsterEPBescheidDaten';
    case ElsterEPMitteilungDaten = 'ElsterEPMitteilungDaten';
    case EPStBescheidAbholung = 'EPStBescheidAbholung';
    case EPStMitteilungAbholung = 'EPStMitteilungAbholung';
    case Erbschaftsteuer = 'Erbschaftsteuer';
    case ESt = 'ESt';
    case EStbeschraenkt = 'EStbeschraenkt';
    case EUER = 'EUER';
    case EUn = 'EUn';
    case FEIN = 'FEIN';
    case ForschungZulAntrag = 'ForschungZulAntrag';
    case KStAntragOptionPersG = 'KStAntragOptionPersG';
    case FLHMitteilung = 'FLHMitteilung';
    case FreistellungKapitalertraegeBV = 'FreistellungKapitalertraegeBV';
    case Fristverlaengerung = 'Fristverlaengerung';
    case FsEVerein = 'FsEVerein';
    case Gewerbemeldung = 'Gewerbemeldung';
    case GDBMitteilung = 'GDBMitteilung';
    case Gewinnermittlung13aEStG = 'Gewinnermittlung13aEStG';
    case GewSt = 'GewSt';
    case GewStZ = 'GewStZ';
    case GrundsteuerBW = 'GrundsteuerBW';
    case GrundsteuerBY = 'GrundsteuerBY';
    case GrundsteuerHE = 'GrundsteuerHE';
    case GrundsteuerHH = 'GrundsteuerHH';
    case GrundsteuerNI = 'GrundsteuerNI';
    case Grundsteuerwert = 'Grundsteuerwert';
    case InvStG56Abs5 = 'InvStG56Abs5';
    case InvStG51Feststellung = 'InvStG51Feststellung';
    case KapEStA = 'KapEStA';
    case KapEStInvStG = 'KapEStInvStG';
    case KapG = 'KapG';
    case KapGAus = 'KapGAus';
    case KKVMitteilung = 'KKVMitteilung';
    case Kontoabfrage = 'Kontoabfrage';
    case Kontoinformation = 'Kontoinformation';
    case KSt = 'KSt';
    case KStZ = 'KStZ';
    case KTTAnmeldungHH = 'KTTAnmeldungHH';
    case KTTAnzeigeHH = 'KTTAnzeigeHH';
    case Lohnersatzleistung = 'Lohnersatzleistung';
    case LohnersatzMitteilung = 'LohnersatzMitteilung';
    case LStA = 'LStA';
    case LStB = 'LStB';
    case LStHVVMAnlage = 'LStHVVMAnlage';
    case LStHVVMUpdate = 'LStHVVMUpdate';
    case OGHMitteilung = 'OGHMitteilung';
    case VermoegenswirksameLeistung = 'VermoegenswirksameLeistung';
    case VMWiderruf = 'VMWiderruf';
    case VollmachtDetails = 'VollmachtDetails';
    case VNoVMVRegistrierung = 'VNoVMVRegistrierung';
    case VNoVMVUpdate = 'VNoVMVUpdate';
    case VNoVMVLoeschung = 'VNoVMVLoeschung';
    case VollfAAnlage = 'VollfAAnlage';
    case VollfAUpdate = 'VollfAUpdate';
    case VMoVMVStBAnlage = 'VMoVMVStBAnlage';
    case VMoVMVStBUpdate = 'VMoVMVStBUpdate';
    case VMoVMVFreischaltung = 'VMoVMVFreischaltung';
    case VAGMitteilung = 'VAGMitteilung';
    case DIVADatenBZSt = 'DIVADatenBZSt';
    case DivaEinwilligungAnlageBRM = 'DivaEinwilligungAnlageBRM';
    case DivaEinwilligungFreisch = 'DivaEinwilligungFreisch';
    case DivaEinwilligungUpdateBRM = 'DivaEinwilligungUpdateBRM';
    case DivaWiderrufBRM = 'DivaWiderrufBRM';
    case DivaErgebnisliste = 'DivaErgebnisliste';
    case LStHVDivaAdresseBRM = 'LStHVDivaAdresseBRM';
    case VMErgebnisListeVNSicht = 'VMErgebnisListeVNSicht';
    case PersG = 'PersG';
    case PostfachAnfrage = 'PostfachAnfrage';
    case PostfachStatus = 'PostfachStatus';
    case ProtokollAnforderung = 'ProtokollAnforderung';
    case Registrierung = 'Registrierung';
    case Schenkungsteuer = 'Schenkungsteuer';
    case SonstigeNachrichten = 'SonstigeNachrichten';
    case SpezRechtAntrag = 'SpezRechtAntrag';
    case SpezRechtFreischaltung = 'SpezRechtFreischaltung';
    case SpezRechtListe = 'SpezRechtListe';
    case SpezRechtStorno = 'SpezRechtStorno';
    case SpezRechtTeilnahme = 'SpezRechtTeilnahme';
    case StAb50a = 'StAb50a';
    case Statusabfrage = 'Statusabfrage';
    case UnentgeltlicheDepotuebertragung = 'UnentgeltlicheDepotuebertragung';
    case UENSTAnmeldungBE = 'UENSTAnmeldungBE';
    case UENSTAnzeigeBE = 'UENSTAnzeigeBE';
    case USt = 'USt';
    case UStVA = 'UStVA';
    case UStDV = 'UStDV';
    case UStSV = 'UStSV';
    case VGNAnmeldungHB = 'VGNAnmeldungHB';
    case VGNAnmeldungBE = 'VGNAnmeldungBE';
    case VGNAnmeldungHH = 'VGNAnmeldungHH';
    case VGNAnzeigeHH = 'VGNAnzeigeHH';
    case WTBAnmeldungHB = 'WTBAnmeldungHB';
    case ZMDO = 'ZMDO';
    case ElsterVollmachtDaten = 'ElsterVollmachtDaten';
    case MitteilungAbholung = 'MitteilungAbholung';
}

/** @description Hauptinformation ob die Daten authentifiziert wurden (send-Auth) oder nicht (send-NoSig) */
enum Vorgang : string
{
    case Send_Auth = 'Send_Auth';
    case Send_Auth_Part = 'Send_Auth_Part';
    case Send_NoSig = 'Send_NoSig';
    case Send_NoSig_Part = 'Send_NoSig_Part';
}

/** @description Kennzeichnung der Datenlieferung ob es sich um einen Testfall handelt, gilt fuer die gesamte Datenlieferung. Ein Echtfall enthält dieses Element nicht. Ein Testfall muss mit einem Testmerker versehen werden, damit er nicht wie ein Echtfall verarbeitet wird. Handelt es sich um Daten, die nur zum Testen des Frontends versendet wurden, müssen sie nicht mehr weiter verarbeitet werden. */
enum Testmerker : int
{
    case TM010000001 = 10000001;
    case TM080000001 = 80000001;
    case TM160000001 = 160000001;
    case TM160000002 = 160000002;
    case TM220000000 = 220000000;
    case TM220002000 = 220002000;
    case TM230000001 = 230000001;
    case TM240000000 = 240000000;
    case TM370000001 = 370000001;
    case TM520000000 = 520000000;
    case TM700000001 = 700000001;
    case TM700000004 = 700000004;
}

/** @description Represents the signature and associated information of the compressed, encrypted, base64-encoded content of the data part of the tax declaration/statement. */
// @Api(Description="Represents the signature and associated information of the compressed, encrypted, base64-encoded content of the data part of the tax declaration/statement.")
class SigUser implements JsonSerializable
{
    public function __construct(
        /** @description The content of the data. Currently supported: Raw XML (text), XElement or IXmlSerializable */
        // @ApiMember(Description="The content of the data. Currently supported: Raw XML (text), XElement or IXmlSerializable")
        /** @var Object|null */
        public ?Object $inhalt=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['inhalt'])) $this->inhalt = JsonConverters::from('Object', $o['inhalt']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->inhalt)) $o['inhalt'] = JsonConverters::to('Object', $this->inhalt);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Einheitliche Abkürzungen fuer die Bundesländer bzw. alternative Empfänger */
enum Bundesland : string
{
    case BW = 'BW';
    case BY = 'BY';
    case BE = 'BE';
    case BB = 'BB';
    case HB = 'HB';
    case HH = 'HH';
    case HE = 'HE';
    case MV = 'MV';
    case NI = 'NI';
    case NW = 'NW';
    case RP = 'RP';
    case SL = 'SL';
    case SN = 'SN';
    case ST = 'ST';
    case SH = 'SH';
    case TH = 'TH';
    case EC = 'EC';
    case BF = 'BF';
    case CS = 'CS';
    case CD = 'CD';
    case CM = 'CM';
    case CN = 'CN';
    case DS = 'DS';
    case OP = 'OP';
    case TK = 'TK';
    case ZF = 'ZF';
}

/** @description Represents a receiver of tax data. */
// @Api(Description="Represents a receiver of tax data.")
class Empfaenger implements JsonSerializable
{
    public function __construct(
        /** @description The identifier of the receiver. */
        // @ApiMember(Description="The identifier of the receiver.")
        /** @var string|null */
        public ?string $id=null,

        /** @description The destination of the receiver. */
        // @ApiMember(Description="The destination of the receiver.")
        /** @var Bundesland|null */
        public ?Bundesland $ziel=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['ziel'])) $this->ziel = JsonConverters::from('Bundesland', $o['ziel']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->ziel)) $o['ziel'] = JsonConverters::to('Bundesland', $this->ziel);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Protokoll der Verschluesselung. Es kann vorkommen, dass verschieden Verschluesselungsarten eingesetzt werden, eine Unterscheidung ist hier nötig, um das richtige Entschluesselungstool anzusteuern. Mit welcher Verschluesselungsart wurden die Inhalte von den Elementen 'DatenLieferant' und ggf. 'SigUser' im TransferHeader und dem Element 'DatenTeil' verschluesselt */
enum Verschluesselungsart : string
{
    case PKCS_7v1_5 = 'PKCS_7v1_5';
    case PKCS_7v1_5enveloped = 'PKCS_7v1_5enveloped';
    case NO_BASE64 = 'NO_BASE64';
    case CMSEncryptedData = 'CMSEncryptedData';
    case CMSEnvelopedData = 'CMSEnvelopedData';
    case EnvelopedData__RSA_OAEP__AES_128__GZip__B64 = 'EnvelopedData__RSA_OAEP__AES_128__GZip__B64';
}

/** @description Mit welcher Kompression wurden die Inhalte von den Elementen DatenLieferant und ggf. SigUser im TransferHeader und dem Element DatenTeil komprimiert. */
enum Kompression : string
{
    case GZIP = 'GZIP';
    case NO_BASE64 = 'NO_BASE64';
}

/** @description [Documentation unavailable] */
// @Api(Description="[Documentation unavailable]")
class EricTyp implements JsonSerializable
{
    public function __construct(
        /** @description The content of the data. Currently supported: Raw XML (text), XmlElement, XElement or IXmlSerializable */
        // @ApiMember(Description="The content of the data. Currently supported: Raw XML (text), XmlElement, XElement or IXmlSerializable")
        /** @var Object|null */
        public ?Object $inhalt=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['inhalt'])) $this->inhalt = JsonConverters::from('Object', $o['inhalt']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->inhalt)) $o['inhalt'] = JsonConverters::to('Object', $this->inhalt);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description [Documentation unavailable] */
// @Api(Description="[Documentation unavailable]")
class Erstellung implements JsonSerializable
{
    public function __construct(
        /** @description [Documentation unavailable] */
        // @ApiMember(Description="[Documentation unavailable]")
        /** @var EricTyp|null */
        public ?EricTyp $eric=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['eric'])) $this->eric = JsonConverters::from('EricTyp', $o['eric']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->eric)) $o['eric'] = JsonConverters::to('EricTyp', $this->eric);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents information on the encryption of tax data. */
// @Api(Description="Represents information on the encryption of tax data.")
class Datei implements JsonSerializable
{
    public function __construct(
        /** @description The type of data encryption used. */
        // @ApiMember(Description="The type of data encryption used.")
        /** @var Verschluesselungsart|null */
        public ?Verschluesselungsart $verschluesselung=null,

        /** @description The type of data compression used. */
        // @ApiMember(Description="The type of data compression used.")
        /** @var Kompression|null */
        public ?Kompression $kompression=null,

        /** @description The transport key used in the encryption. */
        // @ApiMember(Description="The transport key used in the encryption.")
        /** @var string|null */
        public ?string $transportSchluessel=null,

        /** @description [Documentation unavailable] */
        // @ApiMember(Description="[Documentation unavailable]")
        /** @var Erstellung|null */
        public ?Erstellung $erstellung=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['verschluesselung'])) $this->verschluesselung = JsonConverters::from('Verschluesselungsart', $o['verschluesselung']);
        if (isset($o['kompression'])) $this->kompression = JsonConverters::from('Kompression', $o['kompression']);
        if (isset($o['transportSchluessel'])) $this->transportSchluessel = $o['transportSchluessel'];
        if (isset($o['erstellung'])) $this->erstellung = JsonConverters::from('Erstellung', $o['erstellung']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->verschluesselung)) $o['verschluesselung'] = JsonConverters::to('Verschluesselungsart', $this->verschluesselung);
        if (isset($this->kompression)) $o['kompression'] = JsonConverters::to('Kompression', $this->kompression);
        if (isset($this->transportSchluessel)) $o['transportSchluessel'] = $this->transportSchluessel;
        if (isset($this->erstellung)) $o['erstellung'] = JsonConverters::to('Erstellung', $this->erstellung);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an external error stack. */
// @Api(Description="Represents an external error stack.")
class Rueckgabe implements JsonSerializable
{
    public function __construct(
        /** @description The external error code. Either a zero (0) if no external errors occurred; otherwise an error number. */
        // @ApiMember(Description="The external error code. Either a zero (0) if no external errors occurred; otherwise an error number.")
        /** @var string|null */
        public ?string $code=null,

        /** @description The external error message. */
        // @ApiMember(Description="The external error message.")
        /** @var string|null */
        public ?string $text=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['code'])) $this->code = $o['code'];
        if (isset($o['text'])) $this->text = $o['text'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->code)) $o['code'] = $this->code;
        if (isset($this->text)) $o['text'] = $this->text;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an internal error stack. */
// @Api(Description="Represents an internal error stack.")
class Stack implements JsonSerializable
{
    public function __construct(
        /** @description The internal error code. Either a zero (0) if no internal errors occurred; otherwise an error number. */
        // @ApiMember(Description="The internal error code. Either a zero (0) if no internal errors occurred; otherwise an error number.")
        /** @var string|null */
        public ?string $code=null,

        /** @description The external error message. */
        // @ApiMember(Description="The external error message.")
        /** @var string|null */
        public ?string $text=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['code'])) $this->code = $o['code'];
        if (isset($o['text'])) $this->text = $o['text'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->code)) $o['code'] = $this->code;
        if (isset($this->text)) $o['text'] = $this->text;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an ERiC return code. */
// @Api(Description="Represents an ERiC return code.")
class RC implements JsonSerializable
{
    public function __construct(
        /** @description The return value of the return code. */
        // @ApiMember(Description="The return value of the return code.")
        /** @var Rueckgabe|null */
        public ?Rueckgabe $rueckgabe=null,

        /** @description The internal value of the return code. */
        // @ApiMember(Description="The internal value of the return code.")
        /** @var Stack|null */
        public ?Stack $stack=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['rueckgabe'])) $this->rueckgabe = JsonConverters::from('Rueckgabe', $o['rueckgabe']);
        if (isset($o['stack'])) $this->stack = JsonConverters::from('Stack', $o['stack']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->rueckgabe)) $o['rueckgabe'] = JsonConverters::to('Rueckgabe', $this->rueckgabe);
        if (isset($this->stack)) $o['stack'] = JsonConverters::to('Stack', $this->stack);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an ERiC extension. */
// @Api(Description="Represents an ERiC extension.")
class Zusatz implements JsonSerializable
{
    public function __construct(
        /** @description The user-customizable items for the extension. Data providers can use these items for their own extensions/information. */
        // @ApiMember(Description="The user-customizable items for the extension. Data providers can use these items for their own extensions/information.")
        /** @var array<string>|null */
        public ?array $infos=null,

        /** @description The ELSTER items for the extension. They can be included in the response XML from the ELSTER server, if special information must be returned to the user after data submission. For example, for authenticated submission, information about impending certificate expiration etc. It must not be supplied by the data provider (even when empty). */
        // @ApiMember(Description="The ELSTER items for the extension. They can be included in the response XML from the ELSTER server, if special information must be returned to the user after data submission. For example, for authenticated submission, information about impending certificate expiration etc. It must not be supplied by the data provider (even when empty).")
        /** @var array<string>|null */
        public ?array $elsterInfos=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['infos'])) $this->infos = JsonConverters::fromArray('string', $o['infos']);
        if (isset($o['elsterInfos'])) $this->elsterInfos = JsonConverters::fromArray('string', $o['elsterInfos']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->infos)) $o['infos'] = JsonConverters::toArray('string', $this->infos);
        if (isset($this->elsterInfos)) $o['elsterInfos'] = JsonConverters::toArray('string', $this->elsterInfos);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents the transfer header part of an ELSTER document. */
// @Api(Description="Represents the transfer header part of an ELSTER document.")
class TransferHeader implements JsonSerializable
{
    public function __construct(
        /** @description The version of the transfer header. */
        // @ApiMember(Description="The version of the transfer header.", IsRequired=true)
        /** @var string */
        public string $version='',

        /** @description The tax operation used in the ELSTER process. */
        // @ApiMember(Description="The tax operation used in the ELSTER process.", IsRequired=true)
        /** @var Verfahren|null */
        public ?Verfahren $verfahren=null,

        /** @description The tax data type of the ELSTER process. */
        // @ApiMember(Description="The tax data type of the ELSTER process.", IsRequired=true)
        /** @var Datenart|null */
        public ?Datenart $datenArt=null,

        /** @description The authentification procedure of the ELSTER process. */
        // @ApiMember(Description="The authentification procedure of the ELSTER process.", IsRequired=true)
        /** @var Vorgang|null */
        public ?Vorgang $vorgang=null,

        /** @description The ticket identifier after a successful ELSTER process. */
        // @ApiMember(Description="The ticket identifier after a successful ELSTER process.")
        /** @var string|null */
        public ?string $transferTicket=null,

        /** @description The flag that indicates whether the tax declaration or filing is a test case. For production purposes, this value should not be set. */
        // @ApiMember(Description="The flag that indicates whether the tax declaration or filing is a test case. For production purposes, this value should not be set.")
        /** @var Testmerker|null */
        public ?Testmerker $testmerker=null,

        /** @description The signature and associated information on the compressed, encrypted, base64-encoded content of the the data part of a tax declaration / statement. */
        // @ApiMember(Description="The signature and associated information on the compressed, encrypted, base64-encoded content of the the data part of a tax declaration / statement.")
        /** @var SigUser|null */
        public ?SigUser $sigUser=null,

        /** @description The receiving ELSTER server. */
        // @ApiMember(Description="The receiving ELSTER server.")
        /** @var Empfaenger|null */
        public ?Empfaenger $empfaenger=null,

        /** @description The identifier of the software manufacturer, through whose software the tax declaration is filed. */
        // @ApiMember(Description="The identifier of the software manufacturer, through whose software the tax declaration is filed.", IsRequired=true)
        /** @var string */
        public string $herstellerID='',

        /** @description The details of the provider that submits tax data. */
        // @ApiMember(Description="The details of the provider that submits tax data.", IsRequired=true)
        /** @var string */
        public string $datenLieferant='',

        /** @description The date of receipt of the tax data. */
        // @ApiMember(Description="The date of receipt of the tax data.")
        /** @var DateTime|null */
        public ?DateTime $eingangsDatum=null,

        /** @description The encryption data required for authenticated transmission of tax data. */
        // @ApiMember(Description="The encryption data required for authenticated transmission of tax data.")
        /** @var Datei|null */
        public ?Datei $datei=null,

        /** @description The return code of the transfer header and is included in the response XML of the ELSTER server. The value should never be set by the data provider. */
        // @ApiMember(Description="The return code of the transfer header and is included in the response XML of the ELSTER server. The value should never be set by the data provider.")
        /** @var RC|null */
        public ?RC $rc=null,

        /** @description The details of the software that submits the tax data. */
        // @ApiMember(Description="The details of the software that submits the tax data.")
        /** @var string|null */
        public ?string $versionClient=null,

        /** @description Data extensions to the transfer header. */
        // @ApiMember(Description="Data extensions to the transfer header.")
        /** @var Zusatz|null */
        public ?Zusatz $zusatz=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['version'])) $this->version = $o['version'];
        if (isset($o['verfahren'])) $this->verfahren = JsonConverters::from('Verfahren', $o['verfahren']);
        if (isset($o['datenArt'])) $this->datenArt = JsonConverters::from('Datenart', $o['datenArt']);
        if (isset($o['vorgang'])) $this->vorgang = JsonConverters::from('Vorgang', $o['vorgang']);
        if (isset($o['transferTicket'])) $this->transferTicket = $o['transferTicket'];
        if (isset($o['testmerker'])) $this->testmerker = JsonConverters::from('Testmerker', $o['testmerker']);
        if (isset($o['sigUser'])) $this->sigUser = JsonConverters::from('SigUser', $o['sigUser']);
        if (isset($o['empfaenger'])) $this->empfaenger = JsonConverters::from('Empfaenger', $o['empfaenger']);
        if (isset($o['herstellerID'])) $this->herstellerID = $o['herstellerID'];
        if (isset($o['datenLieferant'])) $this->datenLieferant = $o['datenLieferant'];
        if (isset($o['eingangsDatum'])) $this->eingangsDatum = JsonConverters::from('DateTime', $o['eingangsDatum']);
        if (isset($o['datei'])) $this->datei = JsonConverters::from('Datei', $o['datei']);
        if (isset($o['rc'])) $this->rc = JsonConverters::from('RC', $o['rc']);
        if (isset($o['versionClient'])) $this->versionClient = $o['versionClient'];
        if (isset($o['zusatz'])) $this->zusatz = JsonConverters::from('Zusatz', $o['zusatz']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->version)) $o['version'] = $this->version;
        if (isset($this->verfahren)) $o['verfahren'] = JsonConverters::to('Verfahren', $this->verfahren);
        if (isset($this->datenArt)) $o['datenArt'] = JsonConverters::to('Datenart', $this->datenArt);
        if (isset($this->vorgang)) $o['vorgang'] = JsonConverters::to('Vorgang', $this->vorgang);
        if (isset($this->transferTicket)) $o['transferTicket'] = $this->transferTicket;
        if (isset($this->testmerker)) $o['testmerker'] = JsonConverters::to('Testmerker', $this->testmerker);
        if (isset($this->sigUser)) $o['sigUser'] = JsonConverters::to('SigUser', $this->sigUser);
        if (isset($this->empfaenger)) $o['empfaenger'] = JsonConverters::to('Empfaenger', $this->empfaenger);
        if (isset($this->herstellerID)) $o['herstellerID'] = $this->herstellerID;
        if (isset($this->datenLieferant)) $o['datenLieferant'] = $this->datenLieferant;
        if (isset($this->eingangsDatum)) $o['eingangsDatum'] = JsonConverters::to('DateTime', $this->eingangsDatum);
        if (isset($this->datei)) $o['datei'] = JsonConverters::to('Datei', $this->datei);
        if (isset($this->rc)) $o['rc'] = JsonConverters::to('RC', $this->rc);
        if (isset($this->versionClient)) $o['versionClient'] = $this->versionClient;
        if (isset($this->zusatz)) $o['zusatz'] = JsonConverters::to('Zusatz', $this->zusatz);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents a receriver ID */
enum EmpfaengerID : string
{
    case L = 'L';
    case F = 'F';
}

/** @description Represents a receiver of tax data. */
// @Api(Description="Represents a receiver of tax data.")
class NDHEmpfaenger implements JsonSerializable
{
    public function __construct(
        /** @description The identifier of the receiver. */
        // @ApiMember(Description="The identifier of the receiver.")
        /** @var EmpfaengerID|null */
        public ?EmpfaengerID $id=null,

        /** @description The value of the receiver. */
        // @ApiMember(Description="The value of the receiver.")
        /** @var string|null */
        public ?string $value=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = JsonConverters::from('EmpfaengerID', $o['id']);
        if (isset($o['value'])) $this->value = $o['value'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = JsonConverters::to('EmpfaengerID', $this->id);
        if (isset($this->value)) $o['value'] = $this->value;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents a manufacturer/vendor of tax software. */
// @Api(Description="Represents a manufacturer/vendor of tax software.")
class Hersteller implements JsonSerializable
{
    public function __construct(
        /** @description The product name of the tax software produced by the manufacturer. */
        // @ApiMember(Description="The product name of the tax software produced by the manufacturer.")
        /** @var string|null */
        public ?string $produktName=null,

        /** @description The product version of the tax software produced by the manufacturer. */
        // @ApiMember(Description="The product version of the tax software produced by the manufacturer.")
        /** @var string|null */
        public ?string $produktVersion=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['produktName'])) $this->produktName = $o['produktName'];
        if (isset($o['produktVersion'])) $this->produktVersion = $o['produktVersion'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->produktName)) $o['produktName'] = $this->produktName;
        if (isset($this->produktVersion)) $o['produktVersion'] = $this->produktVersion;
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents the header of a tax data. */
// @Api(Description="Represents the header of a tax data.")
class NutzdatenHeader implements JsonSerializable
{
    public function __construct(
        /** @description The version of the header. */
        // @ApiMember(Description="The version of the header.", IsRequired=true)
        /** @var string */
        public string $version='',

        /** @description The ticket identifier of the header. */
        // @ApiMember(Description="The ticket identifier of the header.", IsRequired=true)
        /** @var string */
        public string $nutzdatenTicket='',

        /** @description The receiver of the header. */
        // @ApiMember(Description="The receiver of the header.", IsRequired=true)
        /** @var NDHEmpfaenger|null */
        public ?NDHEmpfaenger $empfaenger=null,

        /** @description The software manufacturer, through whose software the tax declaration or filing is submitted. */
        // @ApiMember(Description="The software manufacturer, through whose software the tax declaration or filing is submitted.", IsRequired=true)
        /** @var Hersteller|null */
        public ?Hersteller $hersteller=null,

        /** @description The details of the data provider (e.g. taxpayer, tax consulant or firm), who produced the tax data and it must not necessarily be the same person declared in the TransferHeader section. */
        // @ApiMember(Description="The details of the data provider (e.g. taxpayer, tax consulant or firm), who produced the tax data and it must not necessarily be the same person declared in the TransferHeader section.")
        /** @var string|null */
        public ?string $datenLieferant=null,

        /** @description The return code of the header. */
        // @ApiMember(Description="The return code of the header.")
        /** @var RC|null */
        public ?RC $rc=null,

        /** @description The data extensions of the header. */
        // @ApiMember(Description="The data extensions of the header.")
        /** @var Zusatz|null */
        public ?Zusatz $zusatz=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['version'])) $this->version = $o['version'];
        if (isset($o['nutzdatenTicket'])) $this->nutzdatenTicket = $o['nutzdatenTicket'];
        if (isset($o['empfaenger'])) $this->empfaenger = JsonConverters::from('NDHEmpfaenger', $o['empfaenger']);
        if (isset($o['hersteller'])) $this->hersteller = JsonConverters::from('Hersteller', $o['hersteller']);
        if (isset($o['datenLieferant'])) $this->datenLieferant = $o['datenLieferant'];
        if (isset($o['rc'])) $this->rc = JsonConverters::from('RC', $o['rc']);
        if (isset($o['zusatz'])) $this->zusatz = JsonConverters::from('Zusatz', $o['zusatz']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->version)) $o['version'] = $this->version;
        if (isset($this->nutzdatenTicket)) $o['nutzdatenTicket'] = $this->nutzdatenTicket;
        if (isset($this->empfaenger)) $o['empfaenger'] = JsonConverters::to('NDHEmpfaenger', $this->empfaenger);
        if (isset($this->hersteller)) $o['hersteller'] = JsonConverters::to('Hersteller', $this->hersteller);
        if (isset($this->datenLieferant)) $o['datenLieferant'] = $this->datenLieferant;
        if (isset($this->rc)) $o['rc'] = JsonConverters::to('RC', $this->rc);
        if (isset($this->zusatz)) $o['zusatz'] = JsonConverters::to('Zusatz', $this->zusatz);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an encapsulation of tax data content. */
// @Api(Description="Represents an encapsulation of tax data content.")
class Nutzdaten implements JsonSerializable
{
    public function __construct(
        /** @description The content of the tax data. This varies by tax declaration. Currently supported formats: Raw XML (text), XElement, and IXmlSerializable */
        // @ApiMember(Description="The content of the tax data. This varies by tax declaration. Currently supported formats: Raw XML (text), XElement, and IXmlSerializable", IsRequired=true)
        /** @var Object|null */
        public ?Object $inhalt=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['inhalt'])) $this->inhalt = JsonConverters::from('Object', $o['inhalt']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->inhalt)) $o['inhalt'] = JsonConverters::to('Object', $this->inhalt);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents a block of tax data. */
// @Api(Description="Represents a block of tax data.")
class Nutzdatenblock implements JsonSerializable
{
    public function __construct(
        /** @description The header part of the block. */
        // @ApiMember(Description="The header part of the block.", IsRequired=true)
        /** @var NutzdatenHeader|null */
        public ?NutzdatenHeader $nutzdatenHeader=null,

        /** @description The data part of the block. */
        // @ApiMember(Description="The data part of the block.", IsRequired=true)
        /** @var Nutzdaten|null */
        public ?Nutzdaten $nutzdaten=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['nutzdatenHeader'])) $this->nutzdatenHeader = JsonConverters::from('NutzdatenHeader', $o['nutzdatenHeader']);
        if (isset($o['nutzdaten'])) $this->nutzdaten = JsonConverters::from('Nutzdaten', $o['nutzdaten']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->nutzdatenHeader)) $o['nutzdatenHeader'] = JsonConverters::to('NutzdatenHeader', $this->nutzdatenHeader);
        if (isset($this->nutzdaten)) $o['nutzdaten'] = JsonConverters::to('Nutzdaten', $this->nutzdaten);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents the data part of an ELSTER document. */
// @Api(Description="Represents the data part of an ELSTER document.")
class DatenTeil implements JsonSerializable
{
    public function __construct(
        /** @description The blocks of tax data of the ELSTER document. */
        // @ApiMember(Description="The blocks of tax data of the ELSTER document.", IsRequired=true)
        /** @var array<Nutzdatenblock>|null */
        public ?array $nutzdatenbloecke=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['nutzdatenbloecke'])) $this->nutzdatenbloecke = JsonConverters::fromArray('Nutzdatenblock', $o['nutzdatenbloecke']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->nutzdatenbloecke)) $o['nutzdatenbloecke'] = JsonConverters::toArray('Nutzdatenblock', $this->nutzdatenbloecke);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an ELSTER document. */
// @Api(Description="Represents an ELSTER document.")
class Elster implements JsonSerializable
{
    public function __construct(
        /** @description The transfer header part of the ELSTER document. */
        // @ApiMember(Description="The transfer header part of the ELSTER document.", IsRequired=true)
        /** @var TransferHeader|null */
        public ?TransferHeader $transferHeader=null,

        /** @description The data (facts) part of the ELSTER document. */
        // @ApiMember(Description="The data (facts) part of the ELSTER document.")
        /** @var DatenTeil|null */
        public ?DatenTeil $datenTeil=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['transferHeader'])) $this->transferHeader = JsonConverters::from('TransferHeader', $o['transferHeader']);
        if (isset($o['datenTeil'])) $this->datenTeil = JsonConverters::from('DatenTeil', $o['datenTeil']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->transferHeader)) $o['transferHeader'] = JsonConverters::to('TransferHeader', $this->transferHeader);
        if (isset($this->datenTeil)) $o['datenTeil'] = JsonConverters::to('DatenTeil', $this->datenTeil);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents information about a file or directory. */
// @Api(Description="Represents information about a file or directory.")
class FileMetadata implements IFileMetadata, JsonSerializable
{
    public function __construct(
        /** @description The name of the file.For files, gets the name of the file.For directories, gets the name of the last directory in the hierarchy if a hierarchy exists; otherwise, the name of the directory. */
        // @ApiMember(Description="The name of the file.\nFor files, gets the name of the file.\nFor directories, gets the name of the last directory in the hierarchy if a hierarchy exists; otherwise, the name of the directory.", Name="Name")
        /** @var string|null */
        public ?string $name=null,

        /** @description The full path of the directory or file. */
        // @ApiMember(Description="The full path of the directory or file.", Name="FullName")
        /** @var string|null */
        public ?string $fullName=null,

        /** @description The time the current file or directory was last accessed. */
        // @ApiMember(Description="The time the current file or directory was last accessed.", Name="LastAccessTime")
        /** @var DateTime */
        public DateTime $lastAccessTime=new DateTime(),

        /** @description The name of the file. */
        // @ApiMember(Description="The name of the file.", Name="LastAccessTimeUtc")
        /** @var DateTime */
        public DateTime $lastAccessTimeUtc=new DateTime(),

        /** @description The time when the current file or directory was last written to. */
        // @ApiMember(Description="The time when the current file or directory was last written to.", Name="LastAccessTime")
        /** @var DateTime */
        public DateTime $lastWriteTime=new DateTime(),

        /** @description The time, in coordinated universal time (UTC), when the current file or directory was last written to. */
        // @ApiMember(Description="The time, in coordinated universal time (UTC), when the current file or directory was last written to.", Name="LastWriteTimeUtc")
        /** @var DateTime */
        public DateTime $lastWriteTimeUtc=new DateTime(),

        /** @description The size, in bytes, of the current file. */
        // @ApiMember(Description="The size, in bytes, of the current file.", Name="Length")
        /** @var int */
        public int $length=0,

        /** @description The size, in bytes, of the current file. */
        // @ApiMember(Description="The size, in bytes, of the current file.", Name="UserId")
        /** @var int */
        public int $userId=0,

        /** @description The file group id. */
        // @ApiMember(Description="The file group id.", Name="GroupId")
        /** @var int */
        public int $groupId=0,

        /** @description A value that indicates whether the others can read from this file. */
        // @ApiMember(Description="A value that indicates whether the others can read from this file.", Name="OthersCanRead")
        /** @var bool|null */
        public ?bool $othersCanRead=null,

        /** @description A value that indicates whether the group members can execute this file. */
        // @ApiMember(Description="A value that indicates whether the group members can execute this file.", Name="GroupCanExecute")
        /** @var bool|null */
        public ?bool $groupCanExecute=null,

        /** @description A value that indicates whether the group members can write into this file. */
        // @ApiMember(Description="A value that indicates whether the group members can write into this file.", Name="GroupCanWrite")
        /** @var bool|null */
        public ?bool $groupCanWrite=null,

        /** @description A value that indicates whether the group members can read from this file. */
        // @ApiMember(Description="A value that indicates whether the group members can read from this file.", Name="GroupCanRead")
        /** @var bool|null */
        public ?bool $groupCanRead=null,

        /** @description A value that indicates whether the owner can execute this file. */
        // @ApiMember(Description="A value that indicates whether the owner can execute this file.", Name="OwnerCanExecute")
        /** @var bool|null */
        public ?bool $ownerCanExecute=null,

        /** @description A value that indicates whether the owner can write into this file. */
        // @ApiMember(Description="A value that indicates whether the owner can write into this file.", Name="OwnerCanWrite")
        /** @var bool|null */
        public ?bool $ownerCanWrite=null,

        /** @description A value that indicates whether the owner can read from this file. */
        // @ApiMember(Description="A value that indicates whether the owner can read from this file.", Name="OthersCanRead")
        /** @var bool|null */
        public ?bool $ownerCanRead=null,

        /** @description A value that indicates whether others can read from this file. */
        // @ApiMember(Description="A value that indicates whether others can read from this file.", Name="OthersCanExecute")
        /** @var bool|null */
        public ?bool $othersCanExecute=null,

        /** @description A value that indicates whether others can write into this file. */
        // @ApiMember(Description="A value that indicates whether others can write into this file.", Name="OthersCanWrite")
        /** @var bool|null */
        public ?bool $othersCanWrite=null,

        /** @description Extensions to the file attributes. */
        // @ApiMember(Description="Extensions to the file attributes.", Name="Extensions")
        /** @var array<string,string>|null */
        public ?array $extensions=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['fullName'])) $this->fullName = $o['fullName'];
        if (isset($o['lastAccessTime'])) $this->lastAccessTime = JsonConverters::from('DateTime', $o['lastAccessTime']);
        if (isset($o['lastAccessTimeUtc'])) $this->lastAccessTimeUtc = JsonConverters::from('DateTime', $o['lastAccessTimeUtc']);
        if (isset($o['lastWriteTime'])) $this->lastWriteTime = JsonConverters::from('DateTime', $o['lastWriteTime']);
        if (isset($o['lastWriteTimeUtc'])) $this->lastWriteTimeUtc = JsonConverters::from('DateTime', $o['lastWriteTimeUtc']);
        if (isset($o['length'])) $this->length = $o['length'];
        if (isset($o['userId'])) $this->userId = $o['userId'];
        if (isset($o['groupId'])) $this->groupId = $o['groupId'];
        if (isset($o['othersCanRead'])) $this->othersCanRead = $o['othersCanRead'];
        if (isset($o['groupCanExecute'])) $this->groupCanExecute = $o['groupCanExecute'];
        if (isset($o['groupCanWrite'])) $this->groupCanWrite = $o['groupCanWrite'];
        if (isset($o['groupCanRead'])) $this->groupCanRead = $o['groupCanRead'];
        if (isset($o['ownerCanExecute'])) $this->ownerCanExecute = $o['ownerCanExecute'];
        if (isset($o['ownerCanWrite'])) $this->ownerCanWrite = $o['ownerCanWrite'];
        if (isset($o['ownerCanRead'])) $this->ownerCanRead = $o['ownerCanRead'];
        if (isset($o['othersCanExecute'])) $this->othersCanExecute = $o['othersCanExecute'];
        if (isset($o['othersCanWrite'])) $this->othersCanWrite = $o['othersCanWrite'];
        if (isset($o['extensions'])) $this->extensions = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['extensions']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->fullName)) $o['fullName'] = $this->fullName;
        if (isset($this->lastAccessTime)) $o['lastAccessTime'] = JsonConverters::to('DateTime', $this->lastAccessTime);
        if (isset($this->lastAccessTimeUtc)) $o['lastAccessTimeUtc'] = JsonConverters::to('DateTime', $this->lastAccessTimeUtc);
        if (isset($this->lastWriteTime)) $o['lastWriteTime'] = JsonConverters::to('DateTime', $this->lastWriteTime);
        if (isset($this->lastWriteTimeUtc)) $o['lastWriteTimeUtc'] = JsonConverters::to('DateTime', $this->lastWriteTimeUtc);
        if (isset($this->length)) $o['length'] = $this->length;
        if (isset($this->userId)) $o['userId'] = $this->userId;
        if (isset($this->groupId)) $o['groupId'] = $this->groupId;
        if (isset($this->othersCanRead)) $o['othersCanRead'] = $this->othersCanRead;
        if (isset($this->groupCanExecute)) $o['groupCanExecute'] = $this->groupCanExecute;
        if (isset($this->groupCanWrite)) $o['groupCanWrite'] = $this->groupCanWrite;
        if (isset($this->groupCanRead)) $o['groupCanRead'] = $this->groupCanRead;
        if (isset($this->ownerCanExecute)) $o['ownerCanExecute'] = $this->ownerCanExecute;
        if (isset($this->ownerCanWrite)) $o['ownerCanWrite'] = $this->ownerCanWrite;
        if (isset($this->ownerCanRead)) $o['ownerCanRead'] = $this->ownerCanRead;
        if (isset($this->othersCanExecute)) $o['othersCanExecute'] = $this->othersCanExecute;
        if (isset($this->othersCanWrite)) $o['othersCanWrite'] = $this->othersCanWrite;
        if (isset($this->extensions)) $o['extensions'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->extensions);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents a file that contains raw data content in bytes */
// @Api(Description="Represents a file that contains raw data content in bytes")
class BinaryFile extends FileBase implements JsonSerializable
{
    /**
     * @param ByteArray|null $content
     */
    public function __construct(
        ?ByteArray $content=null,
        /** @description The attributes of the file. */
        // @ApiMember(Description="The attributes of the file.", Name="Metadata")
        /** @var FileMetadata|null */
        public ?FileMetadata $metadata=null,

        /** @description The name of the file without information on its directory path. */
        // @ApiMember(Description="The name of the file without information on its directory path.", Name="Name")
        /** @var string|null */
        public ?string $name=null
    ) {
        parent::__construct($content);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['metadata'])) $this->metadata = JsonConverters::from('FileMetadata', $o['metadata']);
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['content'])) $this->content = JsonConverters::from('ByteArray', $o['content']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->metadata)) $o['metadata'] = JsonConverters::to('FileMetadata', $this->metadata);
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->content)) $o['content'] = JsonConverters::to('ByteArray', $this->content);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description A type that encapsulates the return values from the ERiC API function that processes tax data. */
// @Api(Description="A type that encapsulates the return values from the ERiC API function that processes tax data.")
class BearbeiteVorgangResponse extends EricFehlerCodeResponse implements JsonSerializable
{
    /**
     * @param string $id
     * @param int $index
     * @param ResponseStatus|null $responseStatus
     * @param EricFehlerCode|null $statusCode
     * @param string|null $statusText
     * @param string $id
     * @param int $index
     * @param ResponseStatus|null $responseStatus
     */
    public function __construct(
        string $id='',
        int $index=0,
        ?ResponseStatus $responseStatus=null,
        ?EricFehlerCode $statusCode=null,
        ?string $statusText=null,
        string $id='',
        int $index=0,
        ?ResponseStatus $responseStatus=null,
        /** @description The return value of the process. */
        // @ApiMember(Description="The return value of the process.")
        /** @var EricBearbeiteVorgang|null */
        public ?EricBearbeiteVorgang $rueckgabe=null,

        /** @description The server response of the process. */
        // @ApiMember(Description="The server response of the process.")
        /** @var Elster|null */
        public ?Elster $serverantwort=null,

        /** @description If available, the PDF-based files to represent generated transfer prototocols. */
        // @ApiMember(Description="If available, the PDF-based files to represent generated transfer prototocols.")
        /** @var array<BinaryFile>|null */
        public ?array $transferProtocols=null
    ) {
        parent::__construct($id,$index,$responseStatus,$statusCode,$statusText,$id,$index,$responseStatus);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['rueckgabe'])) $this->rueckgabe = JsonConverters::from('EricBearbeiteVorgang', $o['rueckgabe']);
        if (isset($o['serverantwort'])) $this->serverantwort = JsonConverters::from('Elster', $o['serverantwort']);
        if (isset($o['transferProtocols'])) $this->transferProtocols = JsonConverters::fromArray('BinaryFile', $o['transferProtocols']);
        if (isset($o['statusCode'])) $this->statusCode = JsonConverters::from('EricFehlerCode', $o['statusCode']);
        if (isset($o['statusText'])) $this->statusText = $o['statusText'];
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['index'])) $this->index = $o['index'];
        if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->rueckgabe)) $o['rueckgabe'] = JsonConverters::to('EricBearbeiteVorgang', $this->rueckgabe);
        if (isset($this->serverantwort)) $o['serverantwort'] = JsonConverters::to('Elster', $this->serverantwort);
        if (isset($this->transferProtocols)) $o['transferProtocols'] = JsonConverters::toArray('BinaryFile', $this->transferProtocols);
        if (isset($this->statusCode)) $o['statusCode'] = JsonConverters::to('EricFehlerCode', $this->statusCode);
        if (isset($this->statusText)) $o['statusText'] = $this->statusText;
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->index)) $o['index'] = $this->index;
        if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description An asynchronous service to submit an preliminary VAT return (Umsatzsteuervoranmeldung) as a tax consultant for 2021. */
// @Api(Description="An asynchronous service to submit an preliminary VAT return (Umsatzsteuervoranmeldung) as a tax consultant for 2021.")
class SubmitUStVa2021AsTaxConsultantAsync extends SubmitUStVa2021AsTaxConsultantBase implements JsonSerializable
{
    /**
     * @param DatenLieferant|null $datenLieferant
     * @param DateTime $erstellungsdatum
     * @param Berater|null $berater
     * @param Mandant|null $mandant
     * @param string $bundesfinanzamtsnummer
     * @param EOP|null $eop
     * @param bool|null $duplexDruck
     * @param string $protocolPrefix
     * @param string|null $fussText
     * @param PortalCertificate|null $zertifikat
     * @param string|null $abrufCode
     * @param Umsatzsteuervoranmeldung2021|null $umsatzsteuervoranmeldung
     * @param DatenLieferant|null $datenLieferant
     * @param DateTime $erstellungsdatum
     * @param Berater|null $berater
     * @param Mandant|null $mandant
     * @param string $bundesfinanzamtsnummer
     * @param EOP|null $eop
     * @param bool|null $duplexDruck
     * @param string $protocolPrefix
     * @param string|null $fussText
     * @param PortalCertificate|null $zertifikat
     * @param string|null $abrufCode
     */
    public function __construct(
        ?DatenLieferant $datenLieferant=null,
        DateTime $erstellungsdatum=new DateTime(),
        ?Berater $berater=null,
        ?Mandant $mandant=null,
        string $bundesfinanzamtsnummer='',
        ?EOP $eop=null,
        ?bool $duplexDruck=null,
        string $protocolPrefix='',
        ?string $fussText=null,
        ?PortalCertificate $zertifikat=null,
        ?string $abrufCode=null,
        ?Umsatzsteuervoranmeldung2021 $umsatzsteuervoranmeldung=null,
        ?DatenLieferant $datenLieferant=null,
        DateTime $erstellungsdatum=new DateTime(),
        ?Berater $berater=null,
        ?Mandant $mandant=null,
        string $bundesfinanzamtsnummer='',
        ?EOP $eop=null,
        ?bool $duplexDruck=null,
        string $protocolPrefix='',
        ?string $fussText=null,
        ?PortalCertificate $zertifikat=null,
        ?string $abrufCode=null
    ) {
        parent::__construct($datenLieferant,$erstellungsdatum,$berater,$mandant,$bundesfinanzamtsnummer,$eop,$duplexDruck,$protocolPrefix,$fussText,$zertifikat,$abrufCode,$umsatzsteuervoranmeldung,$datenLieferant,$erstellungsdatum,$berater,$mandant,$bundesfinanzamtsnummer,$eop,$duplexDruck,$protocolPrefix,$fussText,$zertifikat,$abrufCode);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['umsatzsteuervoranmeldung'])) $this->umsatzsteuervoranmeldung = JsonConverters::from('Umsatzsteuervoranmeldung2021', $o['umsatzsteuervoranmeldung']);
        if (isset($o['datenLieferant'])) $this->datenLieferant = JsonConverters::from('DatenLieferant', $o['datenLieferant']);
        if (isset($o['erstellungsdatum'])) $this->erstellungsdatum = JsonConverters::from('DateTime', $o['erstellungsdatum']);
        if (isset($o['berater'])) $this->berater = JsonConverters::from('Berater', $o['berater']);
        if (isset($o['mandant'])) $this->mandant = JsonConverters::from('Mandant', $o['mandant']);
        if (isset($o['bundesfinanzamtsnummer'])) $this->bundesfinanzamtsnummer = $o['bundesfinanzamtsnummer'];
        if (isset($o['eop'])) $this->eop = JsonConverters::from('EOP', $o['eop']);
        if (isset($o['duplexDruck'])) $this->duplexDruck = $o['duplexDruck'];
        if (isset($o['protocolPrefix'])) $this->protocolPrefix = $o['protocolPrefix'];
        if (isset($o['fussText'])) $this->fussText = $o['fussText'];
        if (isset($o['zertifikat'])) $this->zertifikat = JsonConverters::from('PortalCertificate', $o['zertifikat']);
        if (isset($o['abrufCode'])) $this->abrufCode = $o['abrufCode'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->umsatzsteuervoranmeldung)) $o['umsatzsteuervoranmeldung'] = JsonConverters::to('Umsatzsteuervoranmeldung2021', $this->umsatzsteuervoranmeldung);
        if (isset($this->datenLieferant)) $o['datenLieferant'] = JsonConverters::to('DatenLieferant', $this->datenLieferant);
        if (isset($this->erstellungsdatum)) $o['erstellungsdatum'] = JsonConverters::to('DateTime', $this->erstellungsdatum);
        if (isset($this->berater)) $o['berater'] = JsonConverters::to('Berater', $this->berater);
        if (isset($this->mandant)) $o['mandant'] = JsonConverters::to('Mandant', $this->mandant);
        if (isset($this->bundesfinanzamtsnummer)) $o['bundesfinanzamtsnummer'] = $this->bundesfinanzamtsnummer;
        if (isset($this->eop)) $o['eop'] = JsonConverters::to('EOP', $this->eop);
        if (isset($this->duplexDruck)) $o['duplexDruck'] = $this->duplexDruck;
        if (isset($this->protocolPrefix)) $o['protocolPrefix'] = $this->protocolPrefix;
        if (isset($this->fussText)) $o['fussText'] = $this->fussText;
        if (isset($this->zertifikat)) $o['zertifikat'] = JsonConverters::to('PortalCertificate', $this->zertifikat);
        if (isset($this->abrufCode)) $o['abrufCode'] = $this->abrufCode;
        return empty($o) ? new class(){} : $o;
    }
}

PHP SubmitUStVa2021AsTaxConsultantAsync DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /SubmitUStVa2021AsTaxConsultantAsync HTTP/1.1 
Host: taxfiling.pwc.de 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"umsatzsteuervoranmeldung":{"jahr":0,"zeitraum":"0","steuernummer":"String","kz09":{"herstellerId":0,"beraterName":"String","berufsbezeichnung":"String","beraterTelNrVorwahl":"String","beraterTelNrAnschluss":"String","mandantName":"String"},"kz10":{"wert":0},"kz21":{"wert":0},"kz22":{"wert":0},"kz23":{"wert":0},"kz23_Begruendung":"String","kz26":{"wert":0},"kz29":{"wert":0},"kz35":{"wert":0},"kz36":{"wert":0},"kz37":{"wert":0},"kz39":{"wert":0},"kz41":{"wert":0},"kz42":{"wert":0},"kz43":{"wert":0},"kz44":{"wert":0},"kz45":{"wert":0},"kz46":{"wert":0},"kz47":{"wert":0},"kz48":{"wert":0},"kz49":{"wert":0},"kz50":{"wert":0},"kz59":{"wert":0},"kz60":{"wert":0},"kz61":{"wert":0},"kz62":{"wert":0},"kz63":{"wert":0},"kz64":{"wert":0},"kz65":{"wert":0},"kz66":{"wert":0},"kz67":{"wert":0},"kz69":{"wert":0},"kz73":{"wert":0},"kz74":{"wert":0},"kz76":{"wert":0},"kz77":{"wert":0},"kz80":{"wert":0},"kz81":{"wert":0},"kz83":{"wert":0},"kz84":{"wert":0},"kz85":{"wert":0},"kz86":{"wert":0},"kz89":{"wert":0},"kz91":{"wert":0},"kz93":{"wert":0},"kz94":{"wert":0},"kz95":{"wert":0},"kz96":{"wert":0},"kz98":{"wert":0}},"datenLieferant":{"name":"String","strasse":"String","plz":"String","ort":"String","telefon":"String","email":"String"},"erstellungsdatum":"\/Date(-62135596800000-0000)\/","berater":{"bezeichnung":"String","name":"String","vorname":"String","namensvorsatz":"String","namenszusatz":"String","str":"String","hausnummer":"String","hNrZusatz":"String","anschriftenZusatz":"String","ort":"String","plz":"String","auslandsPLZ":"String","land":"String","postfachOrt":"String","postfach":"String","postfachPLZ":"String","gkplz":"String","telefon":"String","email":"String"},"mandant":{"name":"String","vorname":"String","mandantenNr":"String","bearbeiterkennzeichen":"String"},"bundesfinanzamtsnummer":"String","eop":{"transferausgabe":"String"},"duplexDruck":false,"protocolPrefix":"String","fussText":"String","zertifikat":{"id":"00000000000000000000000000000000","index":0,"pin":"String","description":"String","tags":["String"],"name":"String","content":"AA=="},"abrufCode":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"rueckgabe":{"erfolg":{"telenummer":["String"],"ordnungsbegriffe":["String"]},"transfers":{"transferList":[{"transferTicket":"String"}]},"fehlerRegelpruefungen":[{"nutzdatenticket":"String","feldidentifikator":"String","mehrfachzeilenindex":"String","lfdNrVordruck":"String","vordruckZeilennummer":"String","semantischeIndexes":[{"name":"String","value":"String"}],"untersachbereich":"String","privateKennnummer":"String","regelName":"String","fachlicheFehlerId":"String","text":"String"}],"hinweise":[{"nutzdatenticket":"String","feldidentifikator":"String","mehrfachzeilenindex":"String","lfdNrVordruck":"String","vordruckZeilennummer":"String","semantischeIndexes":[{"name":"String","value":"String"}],"untersachbereich":"String","privateKennnummer":"String","regelName":"String","fachlicheHinweisId":"String","text":"String"}]},"serverantwort":{"transferHeader":{"version":"String","verfahren":"ElsterAnmeldung","datenArt":"34a","vorgang":"send-Auth","transferTicket":"String","testmerker":"0","sigUser":{"inhalt":{}},"empfaenger":{"id":"String","ziel":"BW"},"herstellerID":"String","datenLieferant":"String","eingangsDatum":"\/Date(-62135596800000-0000)\/","datei":{"verschluesselung":"PKCS#7v1.5","kompression":"GZIP","transportSchluessel":"String","erstellung":{"eric":{"inhalt":{}}}},"rc":{"rueckgabe":{"code":"String","text":"String"},"stack":{"code":"String","text":"String"}},"versionClient":"String","zusatz":{"infos":["String"],"elsterInfos":["String"]}},"datenTeil":{"nutzdatenbloecke":[{"nutzdatenHeader":{"version":"String","nutzdatenTicket":"String","empfaenger":{"id":"L","value":"String"},"hersteller":{"produktName":"String","produktVersion":"String"},"datenLieferant":"String","rc":{"rueckgabe":{"code":"String","text":"String"},"stack":{"code":"String","text":"String"}},"zusatz":{"infos":["String"],"elsterInfos":["String"]}},"nutzdaten":{"inhalt":{}}}]}},"transferProtocols":[{"metadata":{"name":"String","fullName":"String","lastAccessTime":"\/Date(-62135596800000-0000)\/","lastAccessTimeUtc":"\/Date(-62135596800000-0000)\/","lastWriteTime":"\/Date(-62135596800000-0000)\/","lastWriteTimeUtc":"\/Date(-62135596800000-0000)\/","length":0,"userId":0,"groupId":0,"othersCanRead":false,"groupCanExecute":false,"groupCanWrite":false,"groupCanRead":false,"ownerCanExecute":false,"ownerCanWrite":false,"ownerCanRead":false,"othersCanExecute":false,"othersCanWrite":false,"extensions":{"String":"String"}},"name":"String","content":"AA=="}],"statusCode":"ERIC_OK","statusText":"String","id":"String","index":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}