Tax Filing Service

<back to all web services

SubmitUmsatzsteuererklaerung2021Async

AsyncUmsatzsteuerJahressteuererklärung2021

An asynchronous service to submit an annual VAT return for 2021.

Requires Authentication
The following routes are available for this service:
POST/SubmitUmsatzsteuererklaerung2021AsyncAn asynchronous service to submit an annual VAT return 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 Basisklasse für einen benutzerdefinierten Datentyp */
// @Api(Description="Basisklasse für einen benutzerdefinierten Datentyp")
class CustomTypBase implements ICustomTyp, JsonSerializable
{
    public function __construct(
        /** @description Identifizierung der Zeile / Typ im Fremdprogramm. */
        // @ApiMember(Description="Identifizierung der Zeile / Typ im Fremdprogramm.", Name="Alias")
        /** @var string|null */
        public ?string $alias=null
    ) {
    }

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

/** @description Boolescher Datentyp, welcher als '1' (Ja) oder '' (Nein) im Jahressteuererklärung angeschrieben wird. */
// @Api(Description="Boolescher Datentyp, welcher als '1' (Ja) oder '' (Nein) im Jahressteuererklärung angeschrieben wird.")
class Bool1Typ extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wenn der Wert true ist, '1' wird im Jahressteuererklärung angeschrieben; ansonsten ein Leerstring. */
        // @ApiMember(Description="Wenn der Wert true ist, '1' wird im Jahressteuererklärung angeschrieben; ansonsten ein Leerstring.", IsRequired=true, Name="Wert")
        /** @var bool|null */
        public ?bool $wert=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Boolescher Datentyp, welcher als 'X' (Ja) oder Leerstring (Nein) im Jahressteuererklärung angeschrieben wird. */
// @Api(Description="Boolescher Datentyp, welcher als 'X' (Ja) oder Leerstring (Nein) im Jahressteuererklärung angeschrieben wird.")
class BoolXTyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wenn der Wert true ist, 'X' wird im Jahressteuererklärung angeschrieben; ansonsten ein Leerstring. */
        // @ApiMember(Description="Wenn der Wert true ist, 'X' wird im Jahressteuererklärung angeschrieben; ansonsten ein Leerstring.", IsRequired=true, Name="Wert")
        /** @var bool|null */
        public ?bool $wert=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Berichtigte Erklärung */
// @Api(Description="Berichtigte Erklärung")
class BerErkl2021 implements JsonSerializable
{
    public function __construct(
        /** @description Berichtigte Steuererklärung? Falls ja, bitte eine 'true' eintragen */
        // @ApiMember(Description="Berichtigte Steuererklärung? Falls ja, bitte eine 'true' eintragen", Name="E3000601")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3000601=null,

        /** @description Diese Steuererklärung wurde digital signiert? Falls ja, bitte eine 'true' eintragen */
        // @ApiMember(Description="Diese Steuererklärung wurde digital signiert? Falls ja, bitte eine 'true' eintragen", IsRequired=true, Name="E3000013")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3000013=null
    ) {
    }

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

/** @description Zeichenkettenfeld. */
// @Api(Description="Zeichenkettenfeld.")
class StringTyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Der Wert des Datentyps.  1 bis 999 Zeichen, alphanumerisch */
        // @ApiMember(Description="Der Wert des Datentyps. \n 1 bis 999 Zeichen, alphanumerisch", IsRequired=true, Name="Wert")
        /** @var string */
        public string $wert=''
    ) {
        parent::__construct($alias);
    }

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

/** @description Adresse oder Postfach eines Unternehmens */
// @Api(Description="Adresse oder Postfach eines Unternehmens")
class UnternehmenAdr2021 implements JsonSerializable
{
    public function __construct(
        /** @description Straße */
        // @ApiMember(Description="Straße", IsRequired=true, Name="E3001101")
        // @Validate(Validator="NotNull")
        /** @var StringTyp|null */
        public ?StringTyp $e3001101=null,

        /** @description Hausnummer */
        // @ApiMember(Description="Hausnummer", IsRequired=true, Name="E3001203")
        // @Validate(Validator="NotNull")
        /** @var StringTyp|null */
        public ?StringTyp $e3001203=null,

        /** @description Hausnummerzusatz */
        // @ApiMember(Description="Hausnummerzusatz", Name="E3001204")
        /** @var StringTyp|null */
        public ?StringTyp $e3001204=null,

        /** @description Adressergänzung */
        // @ApiMember(Description="Adressergänzung", Name="E3001205")
        /** @var StringTyp|null */
        public ?StringTyp $e3001205=null,

        /** @description Postleitzahl, Ort */
        // @ApiMember(Description="Postleitzahl, Ort", Name="E3001201")
        /** @var StringTyp|null */
        public ?StringTyp $e3001201=null,

        /** @description Postleitzahl zu Postfach */
        // @ApiMember(Description="Postleitzahl zu Postfach", Name="E3001403")
        /** @var StringTyp|null */
        public ?StringTyp $e3001403=null,

        /** @description Postfach */
        // @ApiMember(Description="Postfach", Name="E3001404")
        /** @var StringTyp|null */
        public ?StringTyp $e3001404=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3001101'])) $this->e3001101 = JsonConverters::from('StringTyp', $o['e3001101']);
        if (isset($o['e3001203'])) $this->e3001203 = JsonConverters::from('StringTyp', $o['e3001203']);
        if (isset($o['e3001204'])) $this->e3001204 = JsonConverters::from('StringTyp', $o['e3001204']);
        if (isset($o['e3001205'])) $this->e3001205 = JsonConverters::from('StringTyp', $o['e3001205']);
        if (isset($o['e3001201'])) $this->e3001201 = JsonConverters::from('StringTyp', $o['e3001201']);
        if (isset($o['e3001403'])) $this->e3001403 = JsonConverters::from('StringTyp', $o['e3001403']);
        if (isset($o['e3001404'])) $this->e3001404 = JsonConverters::from('StringTyp', $o['e3001404']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3001101)) $o['e3001101'] = JsonConverters::to('StringTyp', $this->e3001101);
        if (isset($this->e3001203)) $o['e3001203'] = JsonConverters::to('StringTyp', $this->e3001203);
        if (isset($this->e3001204)) $o['e3001204'] = JsonConverters::to('StringTyp', $this->e3001204);
        if (isset($this->e3001205)) $o['e3001205'] = JsonConverters::to('StringTyp', $this->e3001205);
        if (isset($this->e3001201)) $o['e3001201'] = JsonConverters::to('StringTyp', $this->e3001201);
        if (isset($this->e3001403)) $o['e3001403'] = JsonConverters::to('StringTyp', $this->e3001403);
        if (isset($this->e3001404)) $o['e3001404'] = JsonConverters::to('StringTyp', $this->e3001404);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Kontakt eines Unternehmens */
// @Api(Description="Kontakt eines Unternehmens")
class UnternehmenKontakt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Telefon */
        // @ApiMember(Description="Telefon", Name="E3001202")
        /** @var StringTyp|null */
        public ?StringTyp $e3001202=null,

        /** @description E-Mail Adresse */
        // @ApiMember(Description="E-Mail Adresse", Name="E3001301")
        /** @var StringTyp|null */
        public ?StringTyp $e3001301=null
    ) {
    }

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

/** @description Angaben zum Unternehmen */
// @Api(Description="Angaben zum Unternehmen")
class Unternehmen2021 implements JsonSerializable
{
    public function __construct(
        /** @description Name des Unternehmers */
        // @ApiMember(Description="Name des Unternehmers", IsRequired=true, Name="E3000901")
        // @Validate(Validator="NotNull")
        /** @var StringTyp|null */
        public ?StringTyp $e3000901=null,

        /** @description gegebenenfalls abweichender Firmenname */
        // @ApiMember(Description="gegebenenfalls abweichender Firmenname", Name="E3000902")
        /** @var StringTyp|null */
        public ?StringTyp $e3000902=null,

        /** @description Art des Unternehmens */
        // @ApiMember(Description="Art des Unternehmens", Name="E3001001")
        /** @var StringTyp|null */
        public ?StringTyp $e3001001=null,

        /** @description Adresse oder Postfach */
        // @ApiMember(Description="Adresse oder Postfach", Name="Adr")
        /** @var UnternehmenAdr2021|null */
        public ?UnternehmenAdr2021 $adr=null,

        /** @description Kontakt */
        // @ApiMember(Description="Kontakt", Name="Kontakt")
        /** @var UnternehmenKontakt2021|null */
        public ?UnternehmenKontakt2021 $kontakt=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3000901'])) $this->e3000901 = JsonConverters::from('StringTyp', $o['e3000901']);
        if (isset($o['e3000902'])) $this->e3000902 = JsonConverters::from('StringTyp', $o['e3000902']);
        if (isset($o['e3001001'])) $this->e3001001 = JsonConverters::from('StringTyp', $o['e3001001']);
        if (isset($o['adr'])) $this->adr = JsonConverters::from('UnternehmenAdr2021', $o['adr']);
        if (isset($o['kontakt'])) $this->kontakt = JsonConverters::from('UnternehmenKontakt2021', $o['kontakt']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3000901)) $o['e3000901'] = JsonConverters::to('StringTyp', $this->e3000901);
        if (isset($this->e3000902)) $o['e3000902'] = JsonConverters::to('StringTyp', $this->e3000902);
        if (isset($this->e3001001)) $o['e3001001'] = JsonConverters::to('StringTyp', $this->e3001001);
        if (isset($this->adr)) $o['adr'] = JsonConverters::to('UnternehmenAdr2021', $this->adr);
        if (isset($this->kontakt)) $o['kontakt'] = JsonConverters::to('UnternehmenKontakt2021', $this->kontakt);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Im Ausland ansässiger Unternehmer */
// @Api(Description="Im Ausland ansässiger Unternehmer")
class ImAuslAnsUnt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Im Ausland ansässiger Unternehmer (falls ja, bitte eine 1 eintragen? Bitte tätigen Sie in diesem Fall auch Angaben auf der Anlage UN. */
        // @ApiMember(Description="Im Ausland ansässiger Unternehmer (falls ja, bitte eine 1 eintragen? Bitte tätigen Sie in diesem Fall auch Angaben auf der Anlage UN.", Name="E3001402")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3001402=null
    ) {
    }

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

/** @description Fiskalvertreter */
// @Api(Description="Fiskalvertreter")
class Fiskalvertr2021 implements JsonSerializable
{
    public function __construct(
        /** @description Fiskalvertreter (falls ja, bitte eine 1 eintragen). Bitte tätigen Sie in diesem Fall auch Angaben auf der Anlage FV. */
        // @ApiMember(Description="Fiskalvertreter (falls ja, bitte eine 1 eintragen). Bitte tätigen Sie in diesem Fall auch Angaben auf der Anlage FV.", Name="E3001801")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3001801=null
    ) {
    }

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

/** @description Stellt ein Datumbereich dar (TT.MM-TT.MM) dar */
// @Api(Description="Stellt ein Datumbereich dar (TT.MM-TT.MM) dar")
class ErklaerungZeitraum implements JsonSerializable
{
    public function __construct(
        /** @description Der Anfang des Datumbreiches. */
        // @ApiMember(Description="Der Anfang des Datumbreiches.", Name="Start")
        /** @var DateTime */
        public DateTime $start=new DateTime(),

        /** @description Das Ende des Datumbereiches. */
        // @ApiMember(Description="Das Ende des Datumbereiches.", Name="Ende")
        /** @var DateTime */
        public DateTime $ende=new DateTime()
    ) {
    }

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

/** @description Datum-Uhrzeit-Typ. Format: TT.MM - TT. MM */
// @Api(Description="Datum-Uhrzeit-Typ. Format: TT.MM - TT. MM")
class ZeitraumTyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. */
        // @ApiMember(Description="Wert des Datentyps.", IsRequired=true, Name="Wert")
        /** @var ErklaerungZeitraum|null */
        public ?ErklaerungZeitraum $wert=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Dauer der Unternehmereigenschaft */
// @Api(Description="Dauer der Unternehmereigenschaft")
class DauerUntEig2021 implements JsonSerializable
{
    public function __construct(
        /** @description 1. Zeitraum */
        // @ApiMember(Description="1. Zeitraum", Name="E3001401")
        /** @var ZeitraumTyp|null */
        public ?ZeitraumTyp $e3001401=null,

        /** @description 2. Zeitraum */
        // @ApiMember(Description="2. Zeitraum", Name="E3001501")
        /** @var ZeitraumTyp|null */
        public ?ZeitraumTyp $e3001501=null
    ) {
    }

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

/** @description Art der Entgelte */
// @Flags()
enum Entgeltart : int
{
    case VereinbarteEntgelte = 1;
    case VereinnahmteEntgelte = 16;
}

/** @description Datentyp, welches die Art der Entgeltart darstellt. */
// @Api(Description="Datentyp, welches die Art der Entgeltart darstellt.")
class EntgeltartTyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. */
        // @ApiMember(Description="Wert des Datentyps.", IsRequired=true, Name="Wert")
        /** @var Entgeltart|null */
        public ?Entgeltart $wert=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Besteuerung der Entgelte */
// @Api(Description="Besteuerung der Entgelte")
class BestArt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Die Steuer wurde berechnet nach */
        // @ApiMember(Description="Die Steuer wurde berechnet nach", IsRequired=true, Name="E3002203")
        // @Validate(Validator="NotNull")
        /** @var EntgeltartTyp|null */
        public ?EntgeltartTyp $e3002203=null
    ) {
    }

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

/** @description Verrechnung / Abtretung */
// @Api(Description="Verrechnung / Abtretung")
class Verrech2021 implements JsonSerializable
{
    public function __construct(
        /** @description Verrechnung des Erstattungsbetrages erwünscht / Erstattungsbetrag ist abgetreten? */
        // @ApiMember(Description="Verrechnung des Erstattungsbetrages erwünscht / Erstattungsbetrag ist abgetreten?", Name="E3001701")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3001701=null
    ) {
    }

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

/** @description Ergänzende Angaben zur Steuererklärung */
// @Api(Description="Ergänzende Angaben zur Steuererklärung")
class ErgAngErkl2021 implements JsonSerializable
{
    public function __construct(
        /** @description Über die Angaben in der Steuererklärung hinaus sind weitere oder abweichende Angaben oder Sachverhalte zu berücksichtigen? */
        // @ApiMember(Description="Über die Angaben in der Steuererklärung hinaus sind weitere oder abweichende Angaben oder Sachverhalte zu berücksichtigen?", Name="E3002201")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3002201=null,

        /** @description Ergänzende Angaben zur Steuererklärung */
        // @ApiMember(Description="Ergänzende Angaben zur Steuererklärung", Name="E3002202")
        /** @var StringTyp|null */
        public ?StringTyp $e3002202=null
    ) {
    }

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

/** @description Allgemeine Angaben */
// @Api(Description="Allgemeine Angaben")
class Allg2021 implements JsonSerializable
{
    public function __construct(
        /** @description Angaben zum Unternehmen */
        // @ApiMember(Description="Angaben zum Unternehmen", Name="Unternehmen")
        /** @var Unternehmen2021|null */
        public ?Unternehmen2021 $unternehmen=null,

        /** @description Im Ausland ansässiger Unternehmer? */
        // @ApiMember(Description="Im Ausland ansässiger Unternehmer?", Name="ImAuslAnsUnt")
        /** @var ImAuslAnsUnt2021|null */
        public ?ImAuslAnsUnt2021 $imAuslAnsUnt=null,

        /** @description Fiskalvertreter? */
        // @ApiMember(Description="Fiskalvertreter?", Name="Fiskalvetr")
        /** @var Fiskalvertr2021|null */
        public ?Fiskalvertr2021 $fiskalvetr=null,

        /** @description Dauer der Unternehmereigenschaft (falls nicht vom 1. Januar bis zum 31. Dezember 2021) */
        // @ApiMember(Description="Dauer der Unternehmereigenschaft (falls nicht vom 1. Januar bis zum 31. Dezember 2021)", Name="DauerUntEig")
        /** @var DauerUntEig2021|null */
        public ?DauerUntEig2021 $dauerUntEig=null,

        /** @description Besteuerungen der Entgelte */
        // @ApiMember(Description="Besteuerungen der Entgelte", Name="BestArt")
        /** @var BestArt2021|null */
        public ?BestArt2021 $bestArt=null,

        /** @description Verrechnungen / Abtretungen */
        // @ApiMember(Description="Verrechnungen / Abtretungen", Name="Verrech")
        /** @var Verrech2021|null */
        public ?Verrech2021 $verrech=null,

        /** @description Ergänzende Angaben zur Steuererklärung */
        // @ApiMember(Description="Ergänzende Angaben zur Steuererklärung", Name="ErgAngErkl")
        /** @var ErgAngErkl2021|null */
        public ?ErgAngErkl2021 $ergAngErkl=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['unternehmen'])) $this->unternehmen = JsonConverters::from('Unternehmen2021', $o['unternehmen']);
        if (isset($o['imAuslAnsUnt'])) $this->imAuslAnsUnt = JsonConverters::from('ImAuslAnsUnt2021', $o['imAuslAnsUnt']);
        if (isset($o['fiskalvetr'])) $this->fiskalvetr = JsonConverters::from('Fiskalvertr2021', $o['fiskalvetr']);
        if (isset($o['dauerUntEig'])) $this->dauerUntEig = JsonConverters::from('DauerUntEig2021', $o['dauerUntEig']);
        if (isset($o['bestArt'])) $this->bestArt = JsonConverters::from('BestArt2021', $o['bestArt']);
        if (isset($o['verrech'])) $this->verrech = JsonConverters::from('Verrech2021', $o['verrech']);
        if (isset($o['ergAngErkl'])) $this->ergAngErkl = JsonConverters::from('ErgAngErkl2021', $o['ergAngErkl']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->unternehmen)) $o['unternehmen'] = JsonConverters::to('Unternehmen2021', $this->unternehmen);
        if (isset($this->imAuslAnsUnt)) $o['imAuslAnsUnt'] = JsonConverters::to('ImAuslAnsUnt2021', $this->imAuslAnsUnt);
        if (isset($this->fiskalvetr)) $o['fiskalvetr'] = JsonConverters::to('Fiskalvertr2021', $this->fiskalvetr);
        if (isset($this->dauerUntEig)) $o['dauerUntEig'] = JsonConverters::to('DauerUntEig2021', $this->dauerUntEig);
        if (isset($this->bestArt)) $o['bestArt'] = JsonConverters::to('BestArt2021', $this->bestArt);
        if (isset($this->verrech)) $o['verrech'] = JsonConverters::to('Verrech2021', $this->verrech);
        if (isset($this->ergAngErkl)) $o['ergAngErkl'] = JsonConverters::to('ErgAngErkl2021', $this->ergAngErkl);
        return empty($o) ? new class(){} : $o;
    }
}

class Kanzlei2021 implements JsonSerializable
{
    public function __construct(
        /** @description Bearbeiterkennzeichen */
        // @ApiMember(Description="Bearbeiterkennzeichen", Name="E3002509")
        /** @var StringTyp|null */
        public ?StringTyp $e3002509=null,

        /** @description Mandantennummer */
        // @ApiMember(Description="Mandantennummer", Name="E3002506")
        /** @var StringTyp|null */
        public ?StringTyp $e3002506=null,

        /** @description (Feld? wird nicht gedruckt)Mandantennummer für Bescheiddatenabholung */
        // @ApiMember(Description="(Feld? wird nicht gedruckt)Mandantennummer für Bescheiddatenabholung", Name="E3002507")
        /** @var StringTyp|null */
        public ?StringTyp $e3002507=null
    ) {
    }

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

class Bearb2021 implements JsonSerializable
{
    public function __construct(
        /** @description Name */
        // @ApiMember(Description="Name", Name="E3002501")
        /** @var StringTyp|null */
        public ?StringTyp $e3002501=null,

        /** @description Vorname */
        // @ApiMember(Description="Vorname", Name="E3002502")
        /** @var StringTyp|null */
        public ?StringTyp $e3002502=null
    ) {
    }

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

class MitwirkAdr2021 implements JsonSerializable
{
    public function __construct(
        /** @description Straße, Hausnummer */
        // @ApiMember(Description="Straße, Hausnummer", Name="E3002503")
        /** @var StringTyp|null */
        public ?StringTyp $e3002503=null,

        /** @description Postleitzahl, Wohnort */
        // @ApiMember(Description="Postleitzahl, Wohnort", Name="E3002504")
        /** @var StringTyp|null */
        public ?StringTyp $e3002504=null
    ) {
    }

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

class MitwirkKontakt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Telefon */
        // @ApiMember(Description="Telefon", Name="E3002505")
        /** @var StringTyp|null */
        public ?StringTyp $e3002505=null,

        /** @description zusätzliche Angaben */
        // @ApiMember(Description="zusätzliche Angaben", Name="E3002508")
        /** @var StringTyp|null */
        public ?StringTyp $e3002508=null
    ) {
    }

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

class MitwirkErkl2021 implements JsonSerializable
{
    public function __construct(
        /** @description Die Steuererklärung wurde unter Mitwirkung eines Angehörigen der steuerberatenden Berufe im Sinne der §§ 3 und 4 des Steuerberatungsgesetzes erstellt */
        // @ApiMember(Description="Die Steuererklärung wurde unter Mitwirkung eines Angehörigen der steuerberatenden Berufe im Sinne der §§ 3 und 4 des Steuerberatungsgesetzes erstellt", Name="E3002602")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3002602=null
    ) {
    }

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

/** @description Angaben zum Mitwirkender, der bei der Anfertigung dieser Steuererklärung einschließlich der Anlagen mitgewirkt hat. */
// @Api(Description="Angaben zum Mitwirkender, der bei der Anfertigung dieser Steuererklärung einschließlich der Anlagen mitgewirkt hat.")
class Mitwirk2021 implements JsonSerializable
{
    public function __construct(
        /** @description Angaben zu den Kanzleien */
        // @ApiMember(Description="Angaben zu den Kanzleien", Name="Kanzlei")
        /** @var Kanzlei2021|null */
        public ?Kanzlei2021 $kanzlei=null,

        /** @description Angaben zu den Bearbeiter */
        // @ApiMember(Description="Angaben zu den Bearbeiter", Name="Bearb")
        /** @var Bearb2021|null */
        public ?Bearb2021 $bearb=null,

        /** @description Adressen der Mitwirkende */
        // @ApiMember(Description="Adressen der Mitwirkende", Name="Adr")
        /** @var MitwirkAdr2021|null */
        public ?MitwirkAdr2021 $adr=null,

        /** @description Kontakte der Mitwirkende */
        // @ApiMember(Description="Kontakte der Mitwirkende", Name="Kontakt")
        /** @var MitwirkKontakt2021|null */
        public ?MitwirkKontakt2021 $kontakt=null,

        /** @description Mitwirkungen bei der Steuererklärung */
        // @ApiMember(Description="Mitwirkungen bei der Steuererklärung", Name="MitwirkErkl")
        /** @var MitwirkErkl2021|null */
        public ?MitwirkErkl2021 $mitwirkErkl=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['kanzlei'])) $this->kanzlei = JsonConverters::from('Kanzlei2021', $o['kanzlei']);
        if (isset($o['bearb'])) $this->bearb = JsonConverters::from('Bearb2021', $o['bearb']);
        if (isset($o['adr'])) $this->adr = JsonConverters::from('MitwirkAdr2021', $o['adr']);
        if (isset($o['kontakt'])) $this->kontakt = JsonConverters::from('MitwirkKontakt2021', $o['kontakt']);
        if (isset($o['mitwirkErkl'])) $this->mitwirkErkl = JsonConverters::from('MitwirkErkl2021', $o['mitwirkErkl']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->kanzlei)) $o['kanzlei'] = JsonConverters::to('Kanzlei2021', $this->kanzlei);
        if (isset($this->bearb)) $o['bearb'] = JsonConverters::to('Bearb2021', $this->bearb);
        if (isset($this->adr)) $o['adr'] = JsonConverters::to('MitwirkAdr2021', $this->adr);
        if (isset($this->kontakt)) $o['kontakt'] = JsonConverters::to('MitwirkKontakt2021', $this->kontakt);
        if (isset($this->mitwirkErkl)) $o['mitwirkErkl'] = JsonConverters::to('MitwirkErkl2021', $this->mitwirkErkl);
        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 GeldBetragOhneCent 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 5 digits.That is, 1 to 5 digits. Minus sign allowed */
// @Api(Description="Represents an amount of money without cents whose value has a maximum length of 5 digits.That is, 1 to 5 digits. Minus sign allowed")
class GeldBetragOhneCent5DE extends GeldBetragOhneCent 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 Geldbetrag ohne Cent mit 6 Stellen. Mindestens eine Ziffer und maximal 5 Ziffern. Minusvorzeichen erlaubt. */
// @Api(Description="Geldbetrag ohne Cent mit 6 Stellen. Mindestens eine Ziffer und maximal 5 Ziffern. Minusvorzeichen erlaubt.")
class GeldBetragOhneCent5DETyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. Mindestens eine Ziffer und maximal 5 Ziffern. Minusvorzeichen erlaubt. */
        // @ApiMember(Description="Wert des Datentyps. Mindestens eine Ziffer und maximal 5 Ziffern. Minusvorzeichen erlaubt.", IsRequired=true)
        /** @var GeldBetragOhneCent5DE|null */
        public ?GeldBetragOhneCent5DE $betrag=null
    ) {
        parent::__construct($alias);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['betrag'])) $this->betrag = JsonConverters::from('GeldBetragOhneCent5DE', $o['betrag']);
        if (isset($o['alias'])) $this->alias = $o['alias'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->betrag)) $o['betrag'] = JsonConverters::to('GeldBetragOhneCent5DE', $this->betrag);
        if (isset($this->alias)) $o['alias'] = $this->alias;
        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 12 digits. That is, 1 to 12 digits. Minus sign allowed. */
// @Api(Description="Represents an amount of money without cents whose value has a maximum length of 12 digits. That is, 1 to 12 digits. Minus sign allowed.")
class GeldBetragOhneCent12DE 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 Geldbetrag ohne Cent mit 13 Stellen. Mindestens eine Ziffer und maximal 12 Ziffern. Minusvorzeichen erlaubt. */
// @Api(Description="Geldbetrag ohne Cent mit 13 Stellen. Mindestens eine Ziffer und maximal 12 Ziffern. Minusvorzeichen erlaubt.")
class GeldBetragOhneCent12DETyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. Mindestens eine Ziffer und maximal 12 Ziffern. Minusvorzeichen erlaubt. */
        // @ApiMember(Description="Wert des Datentyps. Mindestens eine Ziffer und maximal 12 Ziffern. Minusvorzeichen erlaubt.", IsRequired=true)
        /** @var GeldBetragOhneCent12DE|null */
        public ?GeldBetragOhneCent12DE $betrag=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Angaben der Besteuerung von Kleinunternehmer der Umsatzsteuererklärung. */
// @Api(Description="Angaben der Besteuerung von Kleinunternehmer der Umsatzsteuererklärung.")
class Kleinuntern2021 implements JsonSerializable
{
    public function __construct(
        /** @description Umsatz im Kalenderjahr $VZ-1$ (Berechnung nach § 19 Absatz 1 und 3 UStG) */
        // @ApiMember(Description="Umsatz im Kalenderjahr $VZ-1$ (Berechnung nach § 19 Absatz 1 und 3 UStG)", Name="E3002301")
        /** @var GeldBetragOhneCent5DETyp|null */
        public ?GeldBetragOhneCent5DETyp $e3002301=null,

        /** @description Umsatz im Kalenderjahr 2021 (Berechnung nach § 19 Absatz 1 und 3 UStG) */
        // @ApiMember(Description="Umsatz im Kalenderjahr 2021 (Berechnung nach § 19 Absatz 1 und 3 UStG)", Name="E3002401")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3002401=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3002301'])) $this->e3002301 = JsonConverters::from('GeldBetragOhneCent5DETyp', $o['e3002301']);
        if (isset($o['e3002401'])) $this->e3002401 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3002401']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3002301)) $o['e3002301'] = JsonConverters::to('GeldBetragOhneCent5DETyp', $this->e3002301);
        if (isset($this->e3002401)) $o['e3002401'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3002401);
        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 14 digits. That is, 1 to 12 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 14 digits. That is, 1 to 12 digits before the decimal separator and 2 digits after the decimal separator. Minus sign allowed.")
class GeldBetragMitCent12DE 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 Geldbetrag mit Cent mit 12 Vorkommastellen. Mindestens eine Ziffer und maximal 12 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen erlaubt. ',' als Dezimaltrennzeichen. */
// @Api(Description="Geldbetrag mit Cent mit 12 Vorkommastellen. Mindestens eine Ziffer und maximal 12 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen erlaubt. ',' als Dezimaltrennzeichen.")
class GeldBetragMitCent12DETyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. Mindestens eine Ziffer und maximal 12 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen erlaubt. */
        // @ApiMember(Description="Wert des Datentyps. Mindestens eine Ziffer und maximal 12 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen erlaubt.", IsRequired=true, Name="Betrag")
        /** @var GeldBetragMitCent12DE|null */
        public ?GeldBetragMitCent12DE $betrag=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Umsätze zum allgemeinen Steuersatz */
// @Api(Description="Umsätze zum allgemeinen Steuersatz")
class UmsAllg2021 implements JsonSerializable
{
    public function __construct(
        /** @description Lieferungen und sonstige Leistungen zu 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Lieferungen und sonstige Leistungen zu 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3003303")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3003303=null,

        /** @description Lieferungen und sonstige Leistungen zu 19 Prozent (Steuer) */
        // @ApiMember(Description="Lieferungen und sonstige Leistungen zu 19 Prozent (Steuer)", Name="E3003304")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3003304=null,

        /** @description Unentgeltliche Wertabgaben - Lieferungen nach § 3 Absatz 1b UStG zu 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Unentgeltliche Wertabgaben - Lieferungen nach § 3 Absatz 1b UStG zu 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3003405")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3003405=null,

        /** @description Unentgeltliche Wertabgaben - Lieferungen nach § 3 Absatz 1b UStG zu 19 Prozent (Steuer) */
        // @ApiMember(Description="Unentgeltliche Wertabgaben - Lieferungen nach § 3 Absatz 1b UStG zu 19 Prozent (Steuer)", Name="E3003406")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3003406=null,

        /** @description Unentgeltliche Wertabgaben - Sonstige Leistungen nach § 3 Absatz 9a UStG zu 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Unentgeltliche Wertabgaben - Sonstige Leistungen nach § 3 Absatz 9a UStG zu 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3003505")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3003505=null,

        /** @description Unentgeltliche Wertabgaben - Sonstige Leistungen nach § 3 Absatz 9a UStG zu 19 Prozent (Steuer) */
        // @ApiMember(Description="Unentgeltliche Wertabgaben - Sonstige Leistungen nach § 3 Absatz 9a UStG zu 19 Prozent (Steuer)", Name="E3003506")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3003506=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3003303'])) $this->e3003303 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3003303']);
        if (isset($o['e3003304'])) $this->e3003304 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3003304']);
        if (isset($o['e3003405'])) $this->e3003405 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3003405']);
        if (isset($o['e3003406'])) $this->e3003406 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3003406']);
        if (isset($o['e3003505'])) $this->e3003505 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3003505']);
        if (isset($o['e3003506'])) $this->e3003506 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3003506']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3003303)) $o['e3003303'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3003303);
        if (isset($this->e3003304)) $o['e3003304'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3003304);
        if (isset($this->e3003405)) $o['e3003405'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3003405);
        if (isset($this->e3003406)) $o['e3003406'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3003406);
        if (isset($this->e3003505)) $o['e3003505'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3003505);
        if (isset($this->e3003506)) $o['e3003506'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3003506);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Umsätze zum ermäßigten Steuersatz */
// @Api(Description="Umsätze zum ermäßigten Steuersatz")
class UmsErm2021 implements JsonSerializable
{
    public function __construct(
        /** @description Lieferungen und sonstige Leistungen zu 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Lieferungen und sonstige Leistungen zu 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3004401")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3004401=null,

        /** @description Lieferungen und sonstige Leistungen zu 7 Prozent (Steuer) */
        // @ApiMember(Description="Lieferungen und sonstige Leistungen zu 7 Prozent (Steuer)", Name="E3004402")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3004402=null,

        /** @description Unentgeltliche Wertabgaben - Lieferungen nach § 3 Absatz 1b UStG zu 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Unentgeltliche Wertabgaben - Lieferungen nach § 3 Absatz 1b UStG zu 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3003703")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3003703=null,

        /** @description Unentgeltliche Wertabgaben - Lieferungen nach § 3 Absatz 1b UStG zu 7 Prozent (Steuer) */
        // @ApiMember(Description="Unentgeltliche Wertabgaben - Lieferungen nach § 3 Absatz 1b UStG zu 7 Prozent (Steuer)", Name="E3003704")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3003704=null,

        /** @description Unentgeltliche Wertabgaben - Sonstige Leistungen nach § 3 Absatz 9a UStG zu 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Unentgeltliche Wertabgaben - Sonstige Leistungen nach § 3 Absatz 9a UStG zu 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3003803")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3003803=null,

        /** @description Unentgeltliche Wertabgaben - Sonstige Leistungen nach § 3 Absatz 9a UStG zu 7 Prozent (Steuer) */
        // @ApiMember(Description="Unentgeltliche Wertabgaben - Sonstige Leistungen nach § 3 Absatz 9a UStG zu 7 Prozent (Steuer)", Name="E3003804")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3003804=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3004401'])) $this->e3004401 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3004401']);
        if (isset($o['e3004402'])) $this->e3004402 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3004402']);
        if (isset($o['e3003703'])) $this->e3003703 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3003703']);
        if (isset($o['e3003704'])) $this->e3003704 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3003704']);
        if (isset($o['e3003803'])) $this->e3003803 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3003803']);
        if (isset($o['e3003804'])) $this->e3003804 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3003804']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3004401)) $o['e3004401'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3004401);
        if (isset($this->e3004402)) $o['e3004402'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3004402);
        if (isset($this->e3003703)) $o['e3003703'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3003703);
        if (isset($this->e3003704)) $o['e3003704'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3003704);
        if (isset($this->e3003803)) $o['e3003803'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3003803);
        if (isset($this->e3003804)) $o['e3003804'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3003804);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Umsätze zu anderen Steuersätzen */
// @Api(Description="Umsätze zu anderen Steuersätzen")
class UmsAnd2021 implements JsonSerializable
{
    public function __construct(
        /** @description Umsätze zu anderen Steuersätzen (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Umsätze zu anderen Steuersätzen (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3005001")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3005001=null,

        /** @description Umsätze zu anderen Steuersätzen (Steuer) */
        // @ApiMember(Description="Umsätze zu anderen Steuersätzen (Steuer)", Name="E3005002")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3005002=null
    ) {
    }

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

/** @description Umsätze land- und forstwirtschaftlicher Betriebe nach § 24 UStG */
// @Api(Description="Umsätze land- und forstwirtschaftlicher Betriebe nach § 24 UStG")
class UmsLuf2021 implements JsonSerializable
{
    public function __construct(
        /** @description Lieferungen in das übrige Gemeinschaftsgebiet an Abnehmer mit USt-Identifikationsnummer (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Lieferungen in das übrige Gemeinschaftsgebiet an Abnehmer mit USt-Identifikationsnummer (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3005201")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3005201=null,

        /** @description Steuerpflichtige Lieferungen (einschließlich unentgeltlicher Wertabgaben) von Sägewerkserzeugnissen, die in der Anlage 2 zum UStG nicht aufgeführt sind (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Steuerpflichtige Lieferungen (einschließlich unentgeltlicher Wertabgaben) von Sägewerkserzeugnissen, die in der Anlage 2 zum UStG nicht aufgeführt sind (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3005301")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3005301=null,

        /** @description Steuerpflichtige Lieferungen (einschließlich unentgeltlicher Wertabgaben) von Sägewerkserzeugnissen, die in der Anlage 2 zum UStG nicht aufgeführt sind (Steuer) */
        // @ApiMember(Description="Steuerpflichtige Lieferungen (einschließlich unentgeltlicher Wertabgaben) von Sägewerkserzeugnissen, die in der Anlage 2 zum UStG nicht aufgeführt sind (Steuer)", Name="E3005302")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3005302=null,

        /** @description Steuerpflichtige Umsätze (einschließlich unentgeltlicher Wertabgaben) von Getränken, die in der Anlage 2 zum UStG nicht aufgeführt sind, sowie von alkoholischen Flüssigkeiten (zum Beispiel Wein) zu 8,3 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Steuerpflichtige Umsätze (einschließlich unentgeltlicher Wertabgaben) von Getränken, die in der Anlage 2 zum UStG nicht aufgeführt sind, sowie von alkoholischen Flüssigkeiten (zum Beispiel Wein) zu 8,3 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3005003")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3005003=null,

        /** @description Steuerpflichtige Umsätze (einschließlich unentgeltlicher Wertabgaben) von Getränken, die in der Anlage 2 zum UStG nicht aufgeführt sind, sowie von alkoholischen Flüssigkeiten (zum Beispiel Wein) zu 8,3 Prozent (Steuer) */
        // @ApiMember(Description="Steuerpflichtige Umsätze (einschließlich unentgeltlicher Wertabgaben) von Getränken, die in der Anlage 2 zum UStG nicht aufgeführt sind, sowie von alkoholischen Flüssigkeiten (zum Beispiel Wein) zu 8,3 Prozent (Steuer)", Name="E3005004")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3005004=null,

        /** @description Steuerpflichtige Umsätze (einschließlich unentgeltlicher Wertabgaben) von Getränken, die in der Anlage 2 zum UStG nicht aufgeführt sind, sowie von alkoholischen Flüssigkeiten (zum Beispiel Wein) - Umsätze zu anderen Steuersätzen (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Steuerpflichtige Umsätze (einschließlich unentgeltlicher Wertabgaben) von Getränken, die in der Anlage 2 zum UStG nicht aufgeführt sind, sowie von alkoholischen Flüssigkeiten (zum Beispiel Wein) - Umsätze zu anderen Steuersätzen (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3005701")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3005701=null,

        /** @description Steuerpflichtige Umsätze (einschließlich unentgeltlicher Wertabgaben) von Getränken, die in der Anlage 2 zum UStG nicht aufgeführt sind, sowie von alkoholischen Flüssigkeiten (zum Beispiel Wein) - Umsätze zu anderen Steuersätzen (Steuer) */
        // @ApiMember(Description="Steuerpflichtige Umsätze (einschließlich unentgeltlicher Wertabgaben) von Getränken, die in der Anlage 2 zum UStG nicht aufgeführt sind, sowie von alkoholischen Flüssigkeiten (zum Beispiel Wein) - Umsätze zu anderen Steuersätzen (Steuer)", Name="E3005702")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3005702=null,

        /** @description Übrige steuerpflichtige Umsätze land- und forstwirtschaftlicher Betriebe, für die keine Steuer zu entrichten ist (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Übrige steuerpflichtige Umsätze land- und forstwirtschaftlicher Betriebe, für die keine Steuer zu entrichten ist (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3005801")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3005801=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3005201'])) $this->e3005201 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3005201']);
        if (isset($o['e3005301'])) $this->e3005301 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3005301']);
        if (isset($o['e3005302'])) $this->e3005302 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3005302']);
        if (isset($o['e3005003'])) $this->e3005003 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3005003']);
        if (isset($o['e3005004'])) $this->e3005004 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3005004']);
        if (isset($o['e3005701'])) $this->e3005701 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3005701']);
        if (isset($o['e3005702'])) $this->e3005702 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3005702']);
        if (isset($o['e3005801'])) $this->e3005801 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3005801']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3005201)) $o['e3005201'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3005201);
        if (isset($this->e3005301)) $o['e3005301'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3005301);
        if (isset($this->e3005302)) $o['e3005302'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3005302);
        if (isset($this->e3005003)) $o['e3005003'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3005003);
        if (isset($this->e3005004)) $o['e3005004'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3005004);
        if (isset($this->e3005701)) $o['e3005701'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3005701);
        if (isset($this->e3005702)) $o['e3005702'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3005702);
        if (isset($this->e3005801)) $o['e3005801'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3005801);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an unsigned amount of money with cents whose value has a maximum length of 14 digits. That is, 1 to 12 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 14 digits. That is, 1 to 12 digits before the decimal separator and 2 digits after the decimal separator. Minus sign NOT allowed.")
class PositiverGeldBetragMitCent12DE 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 Absoluter Geldbetrag mit Cent mit 12 Vorkommastellen. Mindestens eine Ziffer und maximal 12 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen NICHT erlaubt. ',' als Dezimaltrennzeichen. */
// @Api(Description="Absoluter Geldbetrag mit Cent mit 12 Vorkommastellen. Mindestens eine Ziffer und maximal 12 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen NICHT erlaubt. ',' als Dezimaltrennzeichen.")
class PositiverGeldBetragMitCent12DETyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps.  Mindestens eine Ziffer und maximal 12 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen NICHT erlaubt. */
        // @ApiMember(Description="Wert des Datentyps.  Mindestens eine Ziffer und maximal 12 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen NICHT erlaubt.", IsRequired=true, Name="Betrag")
        /** @var PositiverGeldBetragMitCent12DE|null */
        public ?PositiverGeldBetragMitCent12DE $betrag=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Steuer infolge Wechsels der Besteuerungsform */
// @Api(Description="Steuer infolge Wechsels der Besteuerungsform")
class WechsBestForm2021 implements JsonSerializable
{
    public function __construct(
        /** @description Steuer (Nachsteuer) auf vereinnahmte Anzahlungen infolge des Wechsels der Besteuerungsform */
        // @ApiMember(Description="Steuer (Nachsteuer) auf vereinnahmte Anzahlungen infolge des Wechsels der Besteuerungsform", Name="E3102901")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3102901=null
    ) {
    }

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

/** @description Nachsteuer auf versteuerte Anzahlungen und ähnlich wegen Steuersatzänderung */
// @Api(Description="Nachsteuer auf versteuerte Anzahlungen und ähnlich wegen Steuersatzänderung")
class NachstStSatzAend2021 implements JsonSerializable
{
    public function __construct(
        /** @description Nachsteuer auf versteuerte Anzahlungen und ähnlich wegen Steuersatzänderung (Steuer) */
        // @ApiMember(Description="Nachsteuer auf versteuerte Anzahlungen und ähnlich wegen Steuersatzänderung (Steuer)", Name="E3005901")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3005901=null
    ) {
    }

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

/** @description Summe */
// @Api(Description="Summe")
class UmsSum2021 implements JsonSerializable
{
    public function __construct(
        /** @description Summe der Steuer (zu übertragen in Zeile 152) */
        // @ApiMember(Description="Summe der Steuer (zu übertragen in Zeile 152)", Name="E3006001")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006001=null
    ) {
    }

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

/** @description Steuerpflichtige Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben */
// @Api(Description="Steuerpflichtige Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben")
class Umsaetze2021 implements JsonSerializable
{
    public function __construct(
        /** @description Umsätze zum allgemeinen Steuersatz */
        // @ApiMember(Description="Umsätze zum allgemeinen Steuersatz", Name="UmsAllg")
        /** @var UmsAllg2021|null */
        public ?UmsAllg2021 $umsAllg=null,

        /** @description Umsätze zum ermäßigten Steuersatz */
        // @ApiMember(Description="Umsätze zum ermäßigten Steuersatz", Name="UmsErm")
        /** @var UmsErm2021|null */
        public ?UmsErm2021 $umsErm=null,

        /** @description Umsätze zu anderen Steuersätzen */
        // @ApiMember(Description="Umsätze zu anderen Steuersätzen", Name="UmsAnd")
        /** @var UmsAnd2021|null */
        public ?UmsAnd2021 $umsAnd=null,

        /** @description Umsätze land- und forstwirtschaftlicher Betriebe nach § 24 UStG */
        // @ApiMember(Description="Umsätze land- und forstwirtschaftlicher Betriebe nach § 24 UStG", Name="UmsLuf")
        /** @var UmsLuf2021|null */
        public ?UmsLuf2021 $umsLuf=null,

        /** @description Steuer infolge Wechsels der Besteuerungsform */
        // @ApiMember(Description="Steuer infolge Wechsels der Besteuerungsform", Name="WechsBestForm")
        /** @var WechsBestForm2021|null */
        public ?WechsBestForm2021 $wechsBestForm=null,

        /** @description Nachsteuer auf versteuerte Anzahlungen und ähnlich wegen Steuersatzänderung */
        // @ApiMember(Description="Nachsteuer auf versteuerte Anzahlungen und ähnlich wegen Steuersatzänderung", Name="NachstStSatzAend")
        /** @var NachstStSatzAend2021|null */
        public ?NachstStSatzAend2021 $nachstStSatzAend=null,

        /** @description Summe */
        // @ApiMember(Description="Summe", Name="UmsSum")
        /** @var UmsSum2021|null */
        public ?UmsSum2021 $umsSum=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['umsAllg'])) $this->umsAllg = JsonConverters::from('UmsAllg2021', $o['umsAllg']);
        if (isset($o['umsErm'])) $this->umsErm = JsonConverters::from('UmsErm2021', $o['umsErm']);
        if (isset($o['umsAnd'])) $this->umsAnd = JsonConverters::from('UmsAnd2021', $o['umsAnd']);
        if (isset($o['umsLuf'])) $this->umsLuf = JsonConverters::from('UmsLuf2021', $o['umsLuf']);
        if (isset($o['wechsBestForm'])) $this->wechsBestForm = JsonConverters::from('WechsBestForm2021', $o['wechsBestForm']);
        if (isset($o['nachstStSatzAend'])) $this->nachstStSatzAend = JsonConverters::from('NachstStSatzAend2021', $o['nachstStSatzAend']);
        if (isset($o['umsSum'])) $this->umsSum = JsonConverters::from('UmsSum2021', $o['umsSum']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->umsAllg)) $o['umsAllg'] = JsonConverters::to('UmsAllg2021', $this->umsAllg);
        if (isset($this->umsErm)) $o['umsErm'] = JsonConverters::to('UmsErm2021', $this->umsErm);
        if (isset($this->umsAnd)) $o['umsAnd'] = JsonConverters::to('UmsAnd2021', $this->umsAnd);
        if (isset($this->umsLuf)) $o['umsLuf'] = JsonConverters::to('UmsLuf2021', $this->umsLuf);
        if (isset($this->wechsBestForm)) $o['wechsBestForm'] = JsonConverters::to('WechsBestForm2021', $this->wechsBestForm);
        if (isset($this->nachstStSatzAend)) $o['nachstStSatzAend'] = JsonConverters::to('NachstStSatzAend2021', $this->nachstStSatzAend);
        if (isset($this->umsSum)) $o['umsSum'] = JsonConverters::to('UmsSum2021', $this->umsSum);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Innergemeinschaftliche Lieferungen (§ 4 Nummer 1 Buchstabe b UStG) */
// @Api(Description="Innergemeinschaftliche Lieferungen (§ 4 Nummer 1 Buchstabe b UStG)")
class IgLfg2021 implements JsonSerializable
{
    public function __construct(
        /** @description an Abnehmer mit USt-Identifikationsnummer (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="an Abnehmer mit USt-Identifikationsnummer (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3103301")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3103301=null,

        /** @description neuer Fahrzeuge an Abnehmer ohne USt-Identifikationsnummer (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="neuer Fahrzeuge an Abnehmer ohne USt-Identifikationsnummer (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3103401")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3103401=null,

        /** @description neuer Fahrzeuge außerhalb eines Unternehmens (§ 2a UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="neuer Fahrzeuge außerhalb eines Unternehmens (§ 2a UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3103501")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3103501=null
    ) {
    }

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

/** @description Weitere steuerfreie Umsätze mit Vorsteuerabzug (zum Beispiel nach § 4 Nummer 1 Buchstabe a, 2 bis 7 UStG) */
// @Api(Description="Weitere steuerfreie Umsätze mit Vorsteuerabzug (zum Beispiel nach § 4 Nummer 1 Buchstabe a, 2 bis 7 UStG)")
class UmsStFreiWeit2021 implements JsonSerializable
{
    public function __construct(
        /** @description Ausfuhrlieferungen und Lohnveredelungen an Gegenständen der Ausfuhr (§ 4 Nummer 1 Buchstabe a UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Ausfuhrlieferungen und Lohnveredelungen an Gegenständen der Ausfuhr (§ 4 Nummer 1 Buchstabe a UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3103801")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3103801=null,

        /** @description Umsätze nach § ... UStG: */
        // @ApiMember(Description="Umsätze nach § ... UStG:", Name="E3103901")
        /** @var StringTyp|null */
        public ?StringTyp $e3103901=null,

        /** @description Umsätze nach § ... UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Umsätze nach § ... UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3103902")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3103902=null,

        /** @description Umsätze im Sinne des Offshore-Steuerabkommens, des Zusatzabkommens zum NATO-Truppenstatut und des Ergänzungsabkommens zum Protokoll über die NATO-Hauptquartiere (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Umsätze im Sinne des Offshore-Steuerabkommens, des Zusatzabkommens zum NATO-Truppenstatut und des Ergänzungsabkommens zum Protokoll über die NATO-Hauptquartiere (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3104001")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3104001=null,

        /** @description Reiseleistungen nach § 25 Absatz 2 UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Reiseleistungen nach § 25 Absatz 2 UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3104101")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3104101=null,

        /** @description Summe der Zeilen 67 bis 70 (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Summe der Zeilen 67 bis 70 (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3104201")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3104201=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3103801'])) $this->e3103801 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3103801']);
        if (isset($o['e3103901'])) $this->e3103901 = JsonConverters::from('StringTyp', $o['e3103901']);
        if (isset($o['e3103902'])) $this->e3103902 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3103902']);
        if (isset($o['e3104001'])) $this->e3104001 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3104001']);
        if (isset($o['e3104101'])) $this->e3104101 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3104101']);
        if (isset($o['e3104201'])) $this->e3104201 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3104201']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3103801)) $o['e3103801'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3103801);
        if (isset($this->e3103901)) $o['e3103901'] = JsonConverters::to('StringTyp', $this->e3103901);
        if (isset($this->e3103902)) $o['e3103902'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3103902);
        if (isset($this->e3104001)) $o['e3104001'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3104001);
        if (isset($this->e3104101)) $o['e3104101'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3104101);
        if (isset($this->e3104201)) $o['e3104201'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3104201);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Steuerfreie Umsätze mit Vorsteuerabzug */
// @Api(Description="Steuerfreie Umsätze mit Vorsteuerabzug")
class MitVoStAbz2021 implements JsonSerializable
{
    public function __construct(
        /** @description a) Liste innergemeinschaftlicher Lieferungen (§ 4 Nummer 1 Buchstabe b UStG) */
        // @ApiMember(Description="a) Liste innergemeinschaftlicher Lieferungen (§ 4 Nummer 1 Buchstabe b UStG)", Name="IgLfg")
        /** @var IgLfg2021|null */
        public ?IgLfg2021 $igLfg=null,

        /** @description b) Liste weiterer steuerfreien Umsätze mit Vorsteuerabzug (zum Beispiel nach § 4 Nummer 1 Buchstabe a, 2 bis 7 UStG) */
        // @ApiMember(Description="b) Liste weiterer steuerfreien Umsätze mit Vorsteuerabzug (zum Beispiel nach § 4 Nummer 1 Buchstabe a, 2 bis 7 UStG)", Name="IgLfg")
        /** @var UmsStFreiWeit2021|null */
        public ?UmsStFreiWeit2021 $umsStFreiWeit=null
    ) {
    }

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

/** @description Steuerfreie Umsätze ohne Vorsteuerabzug nicht zum Gesamtumsatz (§ 19 Absatz 3 UStG) gehörend */
// @Api(Description="Steuerfreie Umsätze ohne Vorsteuerabzug nicht zum Gesamtumsatz (§ 19 Absatz 3 UStG) gehörend")
class NichtGesUms2021 implements JsonSerializable
{
    public function __construct(
        /** @description nach § 4 Nummer 12 UStG (Vermietung und Verpachtung von Grundstücken und so weiter) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="nach § 4 Nummer 12 UStG (Vermietung und Verpachtung von Grundstücken und so weiter) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3104401")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3104401=null,

        /** @description nach § 4 Nummer ... UStG */
        // @ApiMember(Description="nach § 4 Nummer ... UStG", Name="E3104501")
        /** @var StringTyp|null */
        public ?StringTyp $e3104501=null,

        /** @description nach § 4 Nummer ... UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="nach § 4 Nummer ... UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3104502")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3104502=null,

        /** @description Summe der Zeilen 73 und 74 (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Summe der Zeilen 73 und 74 (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3104601")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3104601=null
    ) {
    }

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

class GesUms2021 implements JsonSerializable
{
    public function __construct(
        /** @description nach § ... UStG */
        // @ApiMember(Description="nach § ... UStG", Name="E3104901")
        /** @var StringTyp|null */
        public ?StringTyp $e3104901=null,

        /** @description nach § ... UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="nach § ... UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3104902")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3104902=null
    ) {
    }

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

/** @description Steuerfreie Umsätze ohne Vorsteuerabzug */
// @Api(Description="Steuerfreie Umsätze ohne Vorsteuerabzug")
class OhneVoStAbz2021 implements JsonSerializable
{
    public function __construct(
        /** @description a) Steuerfreie Umsätze ohne Vorsteuerabzug nicht zum Gesamtumsatz (§ 19 Absatz 3 UStG) gehörend */
        // @ApiMember(Description="a) Steuerfreie Umsätze ohne Vorsteuerabzug nicht zum Gesamtumsatz (§ 19 Absatz 3 UStG) gehörend", Name="NichtGesUms")
        /** @var NichtGesUms2021|null */
        public ?NichtGesUms2021 $nichtGesUms=null,

        /** @description b) Steuerfreie Umsätze ohne Vorsteuerabzug zum Gesamtumsatz(§ 19 Absatz 3 UStG) gehörend */
        // @ApiMember(Description="b) Steuerfreie Umsätze ohne Vorsteuerabzug zum Gesamtumsatz(§ 19 Absatz 3 UStG) gehörend", Name="GesUms")
        /** @var GesUms2021|null */
        public ?GesUms2021 $gesUms=null
    ) {
    }

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

/** @description Steuerfreie Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben. */
// @Api(Description="Steuerfreie Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben.")
class UmsStfrei2021 implements JsonSerializable
{
    public function __construct(
        /** @description Steuerfreie Umsätze mit Vorsteuerabzug */
        // @ApiMember(Description="Steuerfreie Umsätze mit Vorsteuerabzug", Name="MitVoStAbz")
        /** @var MitVoStAbz2021|null */
        public ?MitVoStAbz2021 $mitVoStAbz=null,

        /** @description Steuerfreie Umsätze ohne Vorsteuerabzug */
        // @ApiMember(Description="Steuerfreie Umsätze ohne Vorsteuerabzug", Name="OhneVoStAbz")
        /** @var OhneVoStAbz2021|null */
        public ?OhneVoStAbz2021 $ohneVoStAbz=null
    ) {
    }

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

class Stfrei2021 implements JsonSerializable
{
    public function __construct(
        /** @description von bestimmten Gegenständen und Anlagegold nach §§ 4b und 25c UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="von bestimmten Gegenständen und Anlagegold nach §§ 4b und 25c UStG (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3100901")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3100901=null
    ) {
    }

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

/** @description Steuerpflichtige innergemeinschaftliche Erwerbe (§ 1a UStG) */
// @Api(Description="Steuerpflichtige innergemeinschaftliche Erwerbe (§ 1a UStG)")
class Stpfl2021 implements JsonSerializable
{
    public function __construct(
        /** @description zum Steuersatz von 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="zum Steuersatz von 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3100902")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3100902=null,

        /** @description zum Steuersatz von 19 Prozent (Steuer) */
        // @ApiMember(Description="zum Steuersatz von 19 Prozent (Steuer)", Name="E3100903")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3100903=null,

        /** @description zum Steuersatz von 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="zum Steuersatz von 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3101301")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3101301=null,

        /** @description zum Steuersatz von 7 Prozent (Steuer) */
        // @ApiMember(Description="zum Steuersatz von 7 Prozent (Steuer)", Name="E3101302")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3101302=null,

        /** @description zu anderen Steuersätzen (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="zu anderen Steuersätzen (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3101303")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3101303=null,

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

        /** @description neuer Fahrzeuge (§ 1b Absatz 2 und 3 UStG) von Lieferern ohne USt-Identifikationsnummer zum allgemeinen Steuersatz (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="neuer Fahrzeuge (§ 1b Absatz 2 und 3 UStG) von Lieferern ohne USt-Identifikationsnummer zum allgemeinen Steuersatz (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3101401")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3101401=null,

        /** @description neuer Fahrzeuge (§ 1b Absatz 2 und 3 UStG) von Lieferern ohne USt-Identifikationsnummer zum allgemeinen Steuersatz (Steuer) */
        // @ApiMember(Description="neuer Fahrzeuge (§ 1b Absatz 2 und 3 UStG) von Lieferern ohne USt-Identifikationsnummer zum allgemeinen Steuersatz (Steuer)", Name="E3101402")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3101402=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3100902'])) $this->e3100902 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3100902']);
        if (isset($o['e3100903'])) $this->e3100903 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3100903']);
        if (isset($o['e3101301'])) $this->e3101301 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3101301']);
        if (isset($o['e3101302'])) $this->e3101302 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3101302']);
        if (isset($o['e3101303'])) $this->e3101303 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3101303']);
        if (isset($o['e3101304'])) $this->e3101304 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3101304']);
        if (isset($o['e3101401'])) $this->e3101401 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3101401']);
        if (isset($o['e3101402'])) $this->e3101402 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3101402']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3100902)) $o['e3100902'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3100902);
        if (isset($this->e3100903)) $o['e3100903'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3100903);
        if (isset($this->e3101301)) $o['e3101301'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3101301);
        if (isset($this->e3101302)) $o['e3101302'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3101302);
        if (isset($this->e3101303)) $o['e3101303'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3101303);
        if (isset($this->e3101304)) $o['e3101304'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3101304);
        if (isset($this->e3101401)) $o['e3101401'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3101401);
        if (isset($this->e3101402)) $o['e3101402'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3101402);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Summe */
// @Api(Description="Summe")
class IgErwSum2021 implements JsonSerializable
{
    public function __construct(
        /** @description Summe der Steuer (zu übertragen in Zeile 153) */
        // @ApiMember(Description="Summe der Steuer (zu übertragen in Zeile 153)", Name="E3101501")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3101501=null
    ) {
    }

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

/** @description Innergemeinschaftliche Erwerbe */
// @Api(Description="Innergemeinschaftliche Erwerbe")
class IgErw2021 implements JsonSerializable
{
    public function __construct(
        /** @description Steuerfreie innergemeinschaftliche Erwerbe */
        // @ApiMember(Description="Steuerfreie innergemeinschaftliche Erwerbe", Name="Stfrei")
        /** @var Stfrei2021|null */
        public ?Stfrei2021 $stfrei=null,

        /** @description Steuerpflichtige innergemeinschaftliche Erwerbe (§ 1a UStG) */
        // @ApiMember(Description="Steuerpflichtige innergemeinschaftliche Erwerbe (§ 1a UStG)", Name="Stpfl")
        /** @var Stpfl2021|null */
        public ?Stpfl2021 $stpfl=null,

        /** @description Summe */
        // @ApiMember(Description="Summe", Name="IgErwSum")
        /** @var IgErwSum2021|null */
        public ?IgErwSum2021 $igErwSum=null
    ) {
    }

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

/** @description Summe der Steuer (zu übertragen in Zeile 154) */
// @Api(Description="Summe der Steuer (zu übertragen in Zeile 154)")
class Auslag13aSum2021 implements JsonSerializable
{
    public function __construct(
        /** @description Summe der Steuer (zu übertragen in Zeile 154) */
        // @ApiMember(Description="Summe der Steuer (zu übertragen in Zeile 154)", Name="E3102904")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3102904=null
    ) {
    }

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

/** @description Steuerschuldner bei Auslagerung (§ 13a Absatz 1 Nummer 6 UStG) */
// @Api(Description="Steuerschuldner bei Auslagerung (§ 13a Absatz 1 Nummer 6 UStG)")
class Auslag13a2021 implements JsonSerializable
{
    public function __construct(
        /** @description Lieferungen, die der Auslagerung vorangegangen sind (§ 4 Nummer 4a Satz 1 Buchstabe a Satz 2 UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Lieferungen, die der Auslagerung vorangegangen sind (§ 4 Nummer 4a Satz 1 Buchstabe a Satz 2 UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3102804")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3102804=null,

        /** @description Lieferungen, die der Auslagerung vorangegangen sind (§ 4 Nummer 4a Satz 1 Buchstabe a Satz 2 UStG) (Steuer) */
        // @ApiMember(Description="Lieferungen, die der Auslagerung vorangegangen sind (§ 4 Nummer 4a Satz 1 Buchstabe a Satz 2 UStG) (Steuer)", Name="E3102805")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3102805=null,

        /** @description Summe der Steuer (zu übertragen in Zeile 154) */
        // @ApiMember(Description="Summe der Steuer (zu übertragen in Zeile 154)", Name="Auslag13aSum")
        /** @var Auslag13aSum2021|null */
        public ?Auslag13aSum2021 $auslag13aSum=null
    ) {
    }

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

/** @description Lieferungen des ersten Abnehmers */
// @Api(Description="Lieferungen des ersten Abnehmers")
class LfgErstAbn2021 implements JsonSerializable
{
    public function __construct(
        /** @description Bemessungsgrundlage ohne Umsatzsteuer (volle EUR) */
        // @ApiMember(Description="Bemessungsgrundlage ohne Umsatzsteuer (volle EUR)", Name="E3101801")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3101801=null
    ) {
    }

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

/** @description Lieferungen, für die der letzte Abnehmer die Umsatzsteuer schuldet */
// @Api(Description="Lieferungen, für die der letzte Abnehmer die Umsatzsteuer schuldet")
class LfgLetztAbn2021 implements JsonSerializable
{
    public function __construct(
        /** @description zum Steuersatz von 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="zum Steuersatz von 19 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3101701")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3101701=null,

        /** @description zum Steuersatz von 19 Prozent (Steuer) */
        // @ApiMember(Description="zum Steuersatz von 19 Prozent (Steuer)", Name="E3101702")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3101702=null,

        /** @description zum Steuersatz von 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="zum Steuersatz von 7 Prozent (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3102301")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3102301=null,

        /** @description zum Steuersatz von 7 Prozent (Steuer) */
        // @ApiMember(Description="zum Steuersatz von 7 Prozent (Steuer)", Name="E3102302")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3102302=null,

        /** @description zu anderen Steuersätzen (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="zu anderen Steuersätzen (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3102303")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3102303=null,

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

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3101701'])) $this->e3101701 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3101701']);
        if (isset($o['e3101702'])) $this->e3101702 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3101702']);
        if (isset($o['e3102301'])) $this->e3102301 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3102301']);
        if (isset($o['e3102302'])) $this->e3102302 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3102302']);
        if (isset($o['e3102303'])) $this->e3102303 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3102303']);
        if (isset($o['e3102304'])) $this->e3102304 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3102304']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3101701)) $o['e3101701'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3101701);
        if (isset($this->e3101702)) $o['e3101702'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3101702);
        if (isset($this->e3102301)) $o['e3102301'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3102301);
        if (isset($this->e3102302)) $o['e3102302'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3102302);
        if (isset($this->e3102303)) $o['e3102303'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3102303);
        if (isset($this->e3102304)) $o['e3102304'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3102304);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Summe */
// @Api(Description="Summe")
class IgDreiSum2021 implements JsonSerializable
{
    public function __construct(
        /** @description Summe der Steuer (zu übertragen in Zeile 155) */
        // @ApiMember(Description="Summe der Steuer (zu übertragen in Zeile 155)", Name="E3102401")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3102401=null
    ) {
    }

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

/** @description Innergemeinschaftliche Dreiecksgeschäfte (§ 25b UStG) */
// @Api(Description="Innergemeinschaftliche Dreiecksgeschäfte (§ 25b UStG)")
class IgDrei2021 implements JsonSerializable
{
    public function __construct(
        /** @description Lieferungen des ersten Abnehmers */
        // @ApiMember(Description="Lieferungen des ersten Abnehmers", Name="LfgErstAbn")
        /** @var LfgErstAbn2021|null */
        public ?LfgErstAbn2021 $lfgErstAbn=null,

        /** @description Lieferungen, für die der letzte Abnehmer die Umsatzsteuer schuldet */
        // @ApiMember(Description="Lieferungen, für die der letzte Abnehmer die Umsatzsteuer schuldet", Name="LfgLetztAbn")
        /** @var LfgLetztAbn2021|null */
        public ?LfgLetztAbn2021 $lfgLetztAbn=null,

        /** @description Summe */
        // @ApiMember(Description="Summe", Name="IgDreiSum")
        /** @var IgDreiSum2021|null */
        public ?IgDreiSum2021 $igDreiSum=null
    ) {
    }

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

/** @description Summe der Steuer (zu übertragen in Zeile 156) */
// @Api(Description="Summe der Steuer (zu übertragen in Zeile 156)")
class Ums13bSum2021 implements JsonSerializable
{
    public function __construct(
        /** @description Summe der Steuer (zu übertragen in Zeile 156) */
        // @ApiMember(Description="Summe der Steuer (zu übertragen in Zeile 156)", Name="E3102601")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3102601=null
    ) {
    }

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

class Ums13b2021 implements JsonSerializable
{
    public function __construct(
        /** @description Steuerpflichtige sonstige Leistungen eines im übrigen Gemeinschaftsgebiet ansässigen Unternehmers (§ 13b Absatz 1 UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Steuerpflichtige sonstige Leistungen eines im übrigen Gemeinschaftsgebiet ansässigen Unternehmers (§ 13b Absatz 1 UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3102205")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3102205=null,

        /** @description Steuerpflichtige sonstige Leistungen eines im übrigen Gemeinschaftsgebiet ansässigen Unternehmers (§ 13b Absatz 1 UStG) (Steuer) */
        // @ApiMember(Description="Steuerpflichtige sonstige Leistungen eines im übrigen Gemeinschaftsgebiet ansässigen Unternehmers (§ 13b Absatz 1 UStG) (Steuer)", Name="E3102206")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3102206=null,

        /** @description Umsätze, die unter das GrEStG fallen (§ 13b Absatz 2 Nummer 3 UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Umsätze, die unter das GrEStG fallen (§ 13b Absatz 2 Nummer 3 UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3102307")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3102307=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="E3102308")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3102308=null,

        /** @description Andere Leistungen (§ 13b Absatz 2 Nummer 1, 2, 4 bis 12 UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Andere Leistungen (§ 13b Absatz 2 Nummer 1, 2, 4 bis 12 UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3102503")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3102503=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="E3102504")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3102504=null,

        /** @description Summe */
        // @ApiMember(Description="Summe", Name="Ums13bSum")
        /** @var Ums13bSum2021|null */
        public ?Ums13bSum2021 $ums13bSum=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3102205'])) $this->e3102205 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3102205']);
        if (isset($o['e3102206'])) $this->e3102206 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3102206']);
        if (isset($o['e3102307'])) $this->e3102307 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3102307']);
        if (isset($o['e3102308'])) $this->e3102308 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3102308']);
        if (isset($o['e3102503'])) $this->e3102503 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3102503']);
        if (isset($o['e3102504'])) $this->e3102504 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3102504']);
        if (isset($o['ums13bSum'])) $this->ums13bSum = JsonConverters::from('Ums13bSum2021', $o['ums13bSum']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3102205)) $o['e3102205'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3102205);
        if (isset($this->e3102206)) $o['e3102206'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3102206);
        if (isset($this->e3102307)) $o['e3102307'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3102307);
        if (isset($this->e3102308)) $o['e3102308'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3102308);
        if (isset($this->e3102503)) $o['e3102503'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3102503);
        if (isset($this->e3102504)) $o['e3102504'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3102504);
        if (isset($this->ums13bSum)) $o['ums13bSum'] = JsonConverters::to('Ums13bSum2021', $this->ums13bSum);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Represents an unsigned amount of money without cents whose value has a maximum length of 12 digits. That is, 1 to 12 digits. Minus sign NOT allowed. */
// @Api(Description="Represents an unsigned amount of money without cents whose value has a maximum length of 12 digits. That is, 1 to 12 digits. Minus sign NOT allowed.")
class PositiverGeldBetragOhneCent12DE 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 Positiver Geldbetrag ohne Cent mit 13 Stellen. Mindestens eine Ziffer und maximal 12 Ziffern. Minusvorzeichen NICHT erlaubt. */
// @Api(Description="Positiver Geldbetrag ohne Cent mit 13 Stellen. Mindestens eine Ziffer und maximal 12 Ziffern. Minusvorzeichen NICHT erlaubt.")
class PositiverGeldBetragOhneCent12DETyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. Mindestens eine Ziffer und maximal 12 Ziffern. Minusvorzeichen NICHT erlaubt. */
        // @ApiMember(Description="Wert des Datentyps. Mindestens eine Ziffer und maximal 12 Ziffern. Minusvorzeichen NICHT erlaubt.", IsRequired=true)
        /** @var PositiverGeldBetragOhneCent12DE|null */
        public ?PositiverGeldBetragOhneCent12DE $betrag=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Ergänzende Angaben zu Umsätzen */
// @Api(Description="Ergänzende Angaben zu Umsätzen")
class ErgAngUms2021 implements JsonSerializable
{
    public function __construct(
        /** @description Umsätze, die auf Grund eines Verzichts auf Steuerbefreiung (§ 9 UStG) als steuerpflichtig behandelt worden sind (Betrag volle EUR) */
        // @ApiMember(Description="Umsätze, die auf Grund eines Verzichts auf Steuerbefreiung (§ 9 UStG) als steuerpflichtig behandelt worden sind (Betrag volle EUR)", Name="E3105201")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105201=null,

        /** @description Steuerpflichtige Umsätze, für die der Leistungsempfänger die Steuer nach § 13b Absatz 5 UStG schuldet (Betrag volle EUR) */
        // @ApiMember(Description="Steuerpflichtige Umsätze, für die der Leistungsempfänger die Steuer nach § 13b Absatz 5 UStG schuldet (Betrag volle EUR)", Name="E3105301")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105301=null,

        /** @description Beförderungs- und Versendungslieferungen in das übrige Gemeinschaftsgebiet bis zum 30.06.2021 (§ 3c UStG) in Abschnitt B oder C enthalten (Betrag volle EUR) */
        // @ApiMember(Description="Beförderungs- und Versendungslieferungen in das übrige Gemeinschaftsgebiet bis zum 30.06.2021 (§ 3c UStG) in Abschnitt B oder C enthalten (Betrag volle EUR)", Name="E3105501")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105501=null,

        /** @description Beförderungs- und Versendungslieferungen in das übrige Gemeinschaftsgebiet bis zum 30.06.2021 (§ 3c UStG) in anderen EU-Mitgliedstaaten zu versteuern (Betrag volle EUR) */
        // @ApiMember(Description="Beförderungs- und Versendungslieferungen in das übrige Gemeinschaftsgebiet bis zum 30.06.2021 (§ 3c UStG) in anderen EU-Mitgliedstaaten zu versteuern (Betrag volle EUR)", Name="E3105601")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105601=null,

        /** @description Telekommunikations-, Rundfunk- und Fernsehdienstleistungen sowie auf elektronischem Weg erbrachte sonstige Leistungen an im übrigen Gemeinschaftsgebiet ansässige Nichtunternehmer sowie ab dem 1.7.2021 innergemeinschaftliche Fernverkäufe in das übrige Gemeinschaftsgebiet unter der Voraussetzung des § 3a Absatz 5 Sätze 3 und 4 UStG und § 3c Absatz 4 Sätze 1 und 2 UStG in Abschnitt B oder C enthalten (Betrag volle EUR) */
        // @ApiMember(Description="Telekommunikations-, Rundfunk- und Fernsehdienstleistungen sowie auf elektronischem Weg erbrachte sonstige Leistungen an im übrigen Gemeinschaftsgebiet ansässige Nichtunternehmer sowie ab dem 1.7.2021 innergemeinschaftliche Fernverkäufe in das übrige Gemeinschaftsgebiet unter der Voraussetzung des § 3a Absatz 5 Sätze 3 und 4 UStG und § 3c Absatz 4 Sätze 1 und 2 UStG in Abschnitt B oder C enthalten (Betrag volle EUR)", Name="E3105101")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105101=null,

        /** @description Telekommunikations-, Rundfunk- und Fernsehdienstleistungen sowie auf elektronischem Weg erbrachte sonstige Leistungen an im übrigen Gemeinschaftsgebiet ansässige Nichtunternehmer unter der Voraussetzung des § 3a Absatz 5 Sätze 3 und 4 UStG in anderen EU-Mitgliedstaaten zu versteuern (Betrag volle EUR) */
        // @ApiMember(Description="Telekommunikations-, Rundfunk- und Fernsehdienstleistungen sowie auf elektronischem Weg erbrachte sonstige Leistungen an im übrigen Gemeinschaftsgebiet ansässige Nichtunternehmer unter der Voraussetzung des § 3a Absatz 5 Sätze 3 und 4 UStG in anderen EU-Mitgliedstaaten zu versteuern (Betrag volle EUR)", Name="E3105102")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105102=null,

        /** @description Nicht steuerbare Geschäftsveräußerung im Ganzen gemäß § 1 Absatz 1a UStG (Betrag volle EUR) */
        // @ApiMember(Description="Nicht steuerbare Geschäftsveräußerung im Ganzen gemäß § 1 Absatz 1a UStG (Betrag volle EUR)", Name="E3105602")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105602=null,

        /** @description Nicht steuerbare sonstige Leistungen gemäß § 18b Satz 1 Nummer 2 UStG (Betrag volle EUR) */
        // @ApiMember(Description="Nicht steuerbare sonstige Leistungen gemäß § 18b Satz 1 Nummer 2 UStG (Betrag volle EUR)", Name="E3105702")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105702=null,

        /** @description Übrige nicht steuerbare Umsätze (Leistungsort nicht im Inland) (Betrag volle EUR) */
        // @ApiMember(Description="Übrige nicht steuerbare Umsätze (Leistungsort nicht im Inland) (Betrag volle EUR)", Name="E3105801")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105801=null,

        /** @description In den Zeilen 108, 112, 114 und 115 enthaltene Umsätze, die nach § 15 Absatz 2 und 3 UStG den Vorsteuerabzug ausschließen (Betrag volle EUR) */
        // @ApiMember(Description="In den Zeilen 108, 112, 114 und 115 enthaltene Umsätze, die nach § 15 Absatz 2 und 3 UStG den Vorsteuerabzug ausschließen (Betrag volle EUR)", Name="E3105901")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3105901=null,

        /** @description Auf den inländischen Streckenanteil entfallende Umsätze grenzüberschreitender Personenbeförderungen im Luftverkehr (§ 26 Absatz 3 UStG) (Betrag volle EUR) */
        // @ApiMember(Description="Auf den inländischen Streckenanteil entfallende Umsätze grenzüberschreitender Personenbeförderungen im Luftverkehr (§ 26 Absatz 3 UStG) (Betrag volle EUR)", Name="E3106001")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3106001=null,

        /** @description Minderung der Bemessungsgrundlage nach § 17 Absatz 1 Satz 1 in Verbindung mit Absatz 2 Nummer 1 Satz 1 UStG (in Abschnitt B oder C enthalten) (Betrag volle EUR) */
        // @ApiMember(Description="Minderung der Bemessungsgrundlage nach § 17 Absatz 1 Satz 1 in Verbindung mit Absatz 2 Nummer 1 Satz 1 UStG (in Abschnitt B oder C enthalten) (Betrag volle EUR)", Name="E3106101")
        /** @var PositiverGeldBetragOhneCent12DETyp|null */
        public ?PositiverGeldBetragOhneCent12DETyp $e3106101=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3105201'])) $this->e3105201 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105201']);
        if (isset($o['e3105301'])) $this->e3105301 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105301']);
        if (isset($o['e3105501'])) $this->e3105501 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105501']);
        if (isset($o['e3105601'])) $this->e3105601 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105601']);
        if (isset($o['e3105101'])) $this->e3105101 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105101']);
        if (isset($o['e3105102'])) $this->e3105102 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105102']);
        if (isset($o['e3105602'])) $this->e3105602 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105602']);
        if (isset($o['e3105702'])) $this->e3105702 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105702']);
        if (isset($o['e3105801'])) $this->e3105801 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105801']);
        if (isset($o['e3105901'])) $this->e3105901 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3105901']);
        if (isset($o['e3106001'])) $this->e3106001 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3106001']);
        if (isset($o['e3106101'])) $this->e3106101 = JsonConverters::from('PositiverGeldBetragOhneCent12DETyp', $o['e3106101']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3105201)) $o['e3105201'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105201);
        if (isset($this->e3105301)) $o['e3105301'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105301);
        if (isset($this->e3105501)) $o['e3105501'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105501);
        if (isset($this->e3105601)) $o['e3105601'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105601);
        if (isset($this->e3105101)) $o['e3105101'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105101);
        if (isset($this->e3105102)) $o['e3105102'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105102);
        if (isset($this->e3105602)) $o['e3105602'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105602);
        if (isset($this->e3105702)) $o['e3105702'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105702);
        if (isset($this->e3105801)) $o['e3105801'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105801);
        if (isset($this->e3105901)) $o['e3105901'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3105901);
        if (isset($this->e3106001)) $o['e3106001'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3106001);
        if (isset($this->e3106101)) $o['e3106101'] = JsonConverters::to('PositiverGeldBetragOhneCent12DETyp', $this->e3106101);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Summe der Vorsteuerbeträge (zu übertragen in Zeile 158) */
// @Api(Description="Summe der Vorsteuerbeträge (zu übertragen in Zeile 158)")
class AbzVoStSum2021 implements JsonSerializable
{
    public function __construct(
        /** @description Summe der Vorsteuerbeträge (zu übertragen in Zeile 158) */
        // @ApiMember(Description="Summe der Vorsteuerbeträge (zu übertragen in Zeile 158)", Name="E3006901")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006901=null
    ) {
    }

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

class ErgAng2021 implements JsonSerializable
{
    public function __construct(
        /** @description Minderung der abziehbaren Vorsteuerbeträge nach § 17 Absatz 1 Satz 2 in Verbindung mit Absatz 2 Nummer 1 Satz 1 UStG (in den Zeilen 122, 127 bis 129 enthalten) */
        // @ApiMember(Description="Minderung der abziehbaren Vorsteuerbeträge nach § 17 Absatz 1 Satz 2 in Verbindung mit Absatz 2 Nummer 1 Satz 1 UStG (in den Zeilen 122, 127 bis 129 enthalten)", Name="E3007001")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3007001=null
    ) {
    }

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

/** @description Abziehbare Vorsteuerbeträge */
// @Api(Description="Abziehbare Vorsteuerbeträge")
class AbzVoSt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Vorsteuerbeträge aus Rechnungen von anderen Unternehmern (§ 15 Absatz 1 Satz 1 Nummer 1 UStG) */
        // @ApiMember(Description="Vorsteuerbeträge aus Rechnungen von anderen Unternehmern (§ 15 Absatz 1 Satz 1 Nummer 1 UStG)", Name="E3006201")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006201=null,

        /** @description Vorsteuerbeträge aus innergemeinschaftlichen Erwerben von Gegenständen (§ 15 Absatz 1 Satz 1 Nummer 3 UStG)  */
        // @ApiMember(Description="Vorsteuerbeträge aus innergemeinschaftlichen Erwerben von Gegenständen (§ 15 Absatz 1 Satz 1 Nummer 3 UStG) ", Name="E3006301")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006301=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="E3006401")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006401=null,

        /** @description Vorsteuerabzug für die Steuer, die der Abnehmer als Auslagerer nach § 13a Absatz 1 Nummer 6 UStG schuldet (§ 15 Absatz 1 Satz 1 Nummer 5 UStG) */
        // @ApiMember(Description="Vorsteuerabzug für die Steuer, die der Abnehmer als Auslagerer nach § 13a Absatz 1 Nummer 6 UStG schuldet (§ 15 Absatz 1 Satz 1 Nummer 5 UStG)", Name="E3006503")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006503=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="E3006502")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006502=null,

        /** @description Vorsteuerbeträge, die nach den allgemeinen Durchschnittssätzen berechnet sind (§ 23 UStG) */
        // @ApiMember(Description="Vorsteuerbeträge, die nach den allgemeinen Durchschnittssätzen berechnet sind (§ 23 UStG)", Name="E3006501")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006501=null,

        /** @description Vorsteuerbeträge nach dem Durchschnittssatz für bestimmte Körperschaften, Personenvereinigungen und Vermögensmassen (§ 23a UStG) */
        // @ApiMember(Description="Vorsteuerbeträge nach dem Durchschnittssatz für bestimmte Körperschaften, Personenvereinigungen und Vermögensmassen (§ 23a UStG)", Name="E3006601")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006601=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="E3006701")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006701=null,

        /** @description Vorsteuerbeträge aus innergemeinschaftlichen Dreiecksgeschäften (§ 25b Absatz 5 UStG) */
        // @ApiMember(Description="Vorsteuerbeträge aus innergemeinschaftlichen Dreiecksgeschäften (§ 25b Absatz 5 UStG)", Name="E3006801")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3006801=null,

        /** @description Summe der Vorsteuerbeträge (zu übertragen in Zeile 158) */
        // @ApiMember(Description="Summe der Vorsteuerbeträge (zu übertragen in Zeile 158)", Name="AbzVoStSum")
        /** @var AbzVoStSum2021|null */
        public ?AbzVoStSum2021 $abzVoStSum=null,

        /** @description Ergänzende Angabe */
        // @ApiMember(Description="Ergänzende Angabe", Name="AbzVoStSum")
        /** @var ErgAng2021|null */
        public ?ErgAng2021 $ergAng=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3006201'])) $this->e3006201 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3006201']);
        if (isset($o['e3006301'])) $this->e3006301 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3006301']);
        if (isset($o['e3006401'])) $this->e3006401 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3006401']);
        if (isset($o['e3006503'])) $this->e3006503 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3006503']);
        if (isset($o['e3006502'])) $this->e3006502 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3006502']);
        if (isset($o['e3006501'])) $this->e3006501 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3006501']);
        if (isset($o['e3006601'])) $this->e3006601 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3006601']);
        if (isset($o['e3006701'])) $this->e3006701 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3006701']);
        if (isset($o['e3006801'])) $this->e3006801 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3006801']);
        if (isset($o['abzVoStSum'])) $this->abzVoStSum = JsonConverters::from('AbzVoStSum2021', $o['abzVoStSum']);
        if (isset($o['ergAng'])) $this->ergAng = JsonConverters::from('ErgAng2021', $o['ergAng']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3006201)) $o['e3006201'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3006201);
        if (isset($this->e3006301)) $o['e3006301'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3006301);
        if (isset($this->e3006401)) $o['e3006401'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3006401);
        if (isset($this->e3006503)) $o['e3006503'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3006503);
        if (isset($this->e3006502)) $o['e3006502'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3006502);
        if (isset($this->e3006501)) $o['e3006501'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3006501);
        if (isset($this->e3006601)) $o['e3006601'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3006601);
        if (isset($this->e3006701)) $o['e3006701'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3006701);
        if (isset($this->e3006801)) $o['e3006801'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3006801);
        if (isset($this->abzVoStSum)) $o['abzVoStSum'] = JsonConverters::to('AbzVoStSum2021', $this->abzVoStSum);
        if (isset($this->ergAng)) $o['ergAng'] = JsonConverters::to('ErgAng2021', $this->ergAng);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Datum-Uhrzeit-Typ. Format: TT.MM.JJJJ. */
// @Api(Description="Datum-Uhrzeit-Typ. Format: TT.MM.JJJJ.")
class DatumUhrzeitTyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. */
        // @ApiMember(Description="Wert des Datentyps.", IsRequired=true, Name="Wert")
        /** @var DateTime */
        public DateTime $wert=new DateTime()
    ) {
        parent::__construct($alias);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['wert'])) $this->wert = JsonConverters::from('DateTime', $o['wert']);
        if (isset($o['alias'])) $this->alias = $o['alias'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->wert)) $o['wert'] = JsonConverters::to('DateTime', $this->wert);
        if (isset($this->alias)) $o['alias'] = $this->alias;
        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 PositiverGeldBetragMitCent13DE 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 Absoluter Geldbetrag mit Cent mit 13 Vorkommastellen. Mindestens eine Ziffer und maximal 13 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen NICHT erlaubt. ',' als Dezimaltrennzeichen. */
// @Api(Description="Absoluter Geldbetrag mit Cent mit 13 Vorkommastellen. Mindestens eine Ziffer und maximal 13 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen NICHT erlaubt. ',' als Dezimaltrennzeichen.")
class PositiverGeldBetragMitCent13DETyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps.  Mindestens eine Ziffer und maximal 13 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen NICHT erlaubt. */
        // @ApiMember(Description="Wert des Datentyps.  Mindestens eine Ziffer und maximal 13 Ziffern vor dem Dezimaltrennzeichen. 2 Ziffern nach dem Dezimaltrennzeichen. Minusvorzeichen NICHT erlaubt.", IsRequired=true)
        /** @var PositiverGeldBetragMitCent13DE|null */
        public ?PositiverGeldBetragMitCent13DE $betrag=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Angaben zum Grundstück oder Gebäude. */
// @Api(Description="Angaben zum Grundstück oder Gebäude.")
class AngGrdst2021 implements JsonSerializable
{
    public function __construct(
        /** @description Lage des Grundstücks oder Gebäudes */
        // @ApiMember(Description="Lage des Grundstücks oder Gebäudes", Name="E3007401")
        /** @var StringTyp|null */
        public ?StringTyp $e3007401=null,

        /** @description Zeitpunkt der erstmaligen tatsächlichen Verwendung */
        // @ApiMember(Description="Zeitpunkt der erstmaligen tatsächlichen Verwendung", Name="E3007402")
        /** @var DatumUhrzeitTyp|null */
        public ?DatumUhrzeitTyp $e3007402=null,

        /** @description Art der Verwendung im Erstjahr */
        // @ApiMember(Description="Art der Verwendung im Erstjahr", Name="E3007403")
        /** @var StringTyp|null */
        public ?StringTyp $e3007403=null,

        /** @description Umfang der Verwendung im Erstjahr */
        // @ApiMember(Description="Umfang der Verwendung im Erstjahr", Name="E3007404")
        /** @var PositiverGeldBetragMitCent13DETyp|null */
        public ?PositiverGeldBetragMitCent13DETyp $e3007404=null,

        /** @description insgesamt angefallene Vorsteuer */
        // @ApiMember(Description="insgesamt angefallene Vorsteuer", Name="E3007405")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3007405=null,

        /** @description in den Vorjahren - Investitionsphase - bereits abgezogene Vorsteuer */
        // @ApiMember(Description="in den Vorjahren - Investitionsphase - bereits abgezogene Vorsteuer", Name="E3007406")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3007406=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3007401'])) $this->e3007401 = JsonConverters::from('StringTyp', $o['e3007401']);
        if (isset($o['e3007402'])) $this->e3007402 = JsonConverters::from('DatumUhrzeitTyp', $o['e3007402']);
        if (isset($o['e3007403'])) $this->e3007403 = JsonConverters::from('StringTyp', $o['e3007403']);
        if (isset($o['e3007404'])) $this->e3007404 = JsonConverters::from('PositiverGeldBetragMitCent13DETyp', $o['e3007404']);
        if (isset($o['e3007405'])) $this->e3007405 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3007405']);
        if (isset($o['e3007406'])) $this->e3007406 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3007406']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3007401)) $o['e3007401'] = JsonConverters::to('StringTyp', $this->e3007401);
        if (isset($this->e3007402)) $o['e3007402'] = JsonConverters::to('DatumUhrzeitTyp', $this->e3007402);
        if (isset($this->e3007403)) $o['e3007403'] = JsonConverters::to('StringTyp', $this->e3007403);
        if (isset($this->e3007404)) $o['e3007404'] = JsonConverters::to('PositiverGeldBetragMitCent13DETyp', $this->e3007404);
        if (isset($this->e3007405)) $o['e3007405'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3007405);
        if (isset($this->e3007406)) $o['e3007406'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3007406);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Sind im Kalenderjahr 2021 Grundstücke, Grundstücksteile, Gebäude oder Gebäudeteile, für die Vorsteuer abgezogen worden ist, erstmals tatsächlich verwendet worden? */
// @Api(Description="Sind im Kalenderjahr 2021 Grundstücke, Grundstücksteile, Gebäude oder Gebäudeteile, für die Vorsteuer abgezogen worden ist, erstmals tatsächlich verwendet worden?")
class GrdstErstmVerw2021 implements JsonSerializable
{
    public function __construct(
        /** @description Falls ja, bitte eine 1 eintragen */
        // @ApiMember(Description="Falls ja, bitte eine 1 eintragen", Name="E3007301")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3007301=null,

        /** @description Angaben zum Grundstück oder Gebäude. */
        // @ApiMember(Description="Angaben zum Grundstück oder Gebäude.", Name="AngGrdst")
        /** @var AngGrdst2021|null */
        public ?AngGrdst2021 $angGrdst=null
    ) {
    }

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

/** @description Haben sich im Jahr 2021 die für den ursprünglichen Vorsteuerabzug maßgebenden Verhältnisse geändert bei. */
// @Api(Description="Haben sich im Jahr 2021 die für den ursprünglichen Vorsteuerabzug maßgebenden Verhältnisse geändert bei.")
class AendVerh2021 implements JsonSerializable
{
    public function __construct(
        /** @description 1. Grundstücken, Grundstücksteilen, Gebäuden oder Gebäudeteilen, die innerhalb der letzten 10 Jahre erstmals tatsächlich und nicht nur einmalig zur Ausführung von Umsätzen verwendet worden sind? Falls ja, bitte eine 'true' eintragen */
        // @ApiMember(Description="1. Grundstücken, Grundstücksteilen, Gebäuden oder Gebäudeteilen, die innerhalb der letzten 10 Jahre erstmals tatsächlich und nicht nur einmalig zur Ausführung von Umsätzen verwendet worden sind? Falls ja, bitte eine 'true' eintragen", Name="E3007601")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3007601=null,

        /** @description 2. anderen Wirtschaftsgütern und sonstigen Leistungen, die innerhalb der letzten 5 Jahre erstmals tatsächlich und nicht nur einmalig zur Ausführung von Umsätzen verwendet worden sind? Falls ja, bitte eine 'true' eintragen) */
        // @ApiMember(Description="2. anderen Wirtschaftsgütern und sonstigen Leistungen, die innerhalb der letzten 5 Jahre erstmals tatsächlich und nicht nur einmalig zur Ausführung von Umsätzen verwendet worden sind? Falls ja, bitte eine 'true' eintragen)", Name="E3008501")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3008501=null,

        /** @description 3. Wirtschaftsgütern und sonstigen Leistungen, die nur einmalig zur Ausführung von Umsätzen verwendet worden sind? Falls ja, bitte eine 1 eintragen */
        // @ApiMember(Description="3. Wirtschaftsgütern und sonstigen Leistungen, die nur einmalig zur Ausführung von Umsätzen verwendet worden sind? Falls ja, bitte eine 1 eintragen", Name="E3008601")
        /** @var Bool1Typ|null */
        public ?Bool1Typ $e3008601=null
    ) {
    }

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

/** @description Nutzungsänderung. */
// @Api(Description="Nutzungsänderung.")
class NutzAend2021 implements JsonSerializable
{
    public function __construct(
        /** @description Nutzungsänderung, und zwar */
        // @ApiMember(Description="Nutzungsänderung, und zwar", Name="E3007901")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3007901=null,

        /** @description Übergang von steuerpflichtiger zu steuerfreier Vermietung oder umgekehrt beziehungsweise Änderung des Verwendungsschlüssels bei gemischt genutzten Grundstücken (insbesondere bei Mieterwechsel) */
        // @ApiMember(Description="Übergang von steuerpflichtiger zu steuerfreier Vermietung oder umgekehrt beziehungsweise Änderung des Verwendungsschlüssels bei gemischt genutzten Grundstücken (insbesondere bei Mieterwechsel)", Name="E3008001")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3008001=null,

        /** @description steuerfreie Vermietung bisher eigengewerblich genutzter Räume oder umgekehrt; Übergang von einer Vermietung für NATO- oder ähnliche Zwecke zu einer nach  § 4 Nummer 12 UStG steuerfreien Vermietung */
        // @ApiMember(Description="steuerfreie Vermietung bisher eigengewerblich genutzter Räume oder umgekehrt; Übergang von einer Vermietung für NATO- oder ähnliche Zwecke zu einer nach  § 4 Nummer 12 UStG steuerfreien Vermietung", Name="E3008202")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3008202=null,

        /** @description Andere Gründe für die geänderte Beurteilung des Vorsteuerabzugs: */
        // @ApiMember(Description="Andere Gründe für die geänderte Beurteilung des Vorsteuerabzugs:", Name="E3008401")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3008401=null,

        /** @description Begründung */
        // @ApiMember(Description="Begründung", Name="E3008402")
        /** @var StringTyp|null */
        public ?StringTyp $e3008402=null
    ) {
    }

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

/** @description Die Verhältnisse, die ursprünglich für die Beurteilung des Vorsteuerabzugs maßgebend waren, haben sich seitdem geändert durch: */
// @Api(Description="Die Verhältnisse, die ursprünglich für die Beurteilung des Vorsteuerabzugs maßgebend waren, haben sich seitdem geändert durch:")
class GrundAendVerh2021 implements JsonSerializable
{
    public function __construct(
        /** @description Veräußerung */
        // @ApiMember(Description="Veräußerung", Name="E3007801")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3007801=null,

        /** @description Lieferung im Sinne des § 3 Absatz 1b UStG */
        // @ApiMember(Description="Lieferung im Sinne des § 3 Absatz 1b UStG", Name="E3007802")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3007802=null,

        /** @description Wechsel der Besteuerungsform, § 15a Absatz 7 UStG */
        // @ApiMember(Description="Wechsel der Besteuerungsform, § 15a Absatz 7 UStG", Name="E3007803")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3007803=null,

        /** @description Nutzungsänderungen */
        // @ApiMember(Description="Nutzungsänderungen", Name="NutzAend")
        /** @var NutzAend2021|null */
        public ?NutzAend2021 $nutzAend=null
    ) {
    }

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

/** @description Summe */
// @Api(Description="Summe")
class VoStBerBetrSum2021 implements JsonSerializable
{
    public function __construct(
        /** @description Summe nachträglich abziehbar (zu übertragen in Zeile 159) */
        // @ApiMember(Description="Summe nachträglich abziehbar (zu übertragen in Zeile 159)", Name="E3008901")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3008901=null,

        /** @description Summe zurückzuzahlen (zu übertragen in Zeile 161) */
        // @ApiMember(Description="Summe zurückzuzahlen (zu übertragen in Zeile 161)", Name="E3008902")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3008902=null
    ) {
    }

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

/** @description Vorsteuerberichtigungsbeträge. */
// @Api(Description="Vorsteuerberichtigungsbeträge.")
class VoStBerBetr2021 implements JsonSerializable
{
    public function __construct(
        /** @description zu 1. Grundstücke und so weiter, § 15a Absatz 1 Satz 2 UStG (nachträglich abziehbar) */
        // @ApiMember(Description="zu 1. Grundstücke und so weiter, § 15a Absatz 1 Satz 2 UStG (nachträglich abziehbar)", Name="E3008701")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3008701=null,

        /** @description zu 1. Grundstücke und so weiter, § 15a Absatz 1 Satz 2 UStG (zurückzuzahlen) */
        // @ApiMember(Description="zu 1. Grundstücke und so weiter, § 15a Absatz 1 Satz 2 UStG (zurückzuzahlen)", Name="E3008702")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3008702=null,

        /** @description zu 2. andere Wirtschaftsgüter und so weiter, § 15a Absatz 1 Satz 1 UStG (nachträglich abziehbar) */
        // @ApiMember(Description="zu 2. andere Wirtschaftsgüter und so weiter, § 15a Absatz 1 Satz 1 UStG (nachträglich abziehbar)", Name="E3008801")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3008801=null,

        /** @description zu 2. andere Wirtschaftsgüter und so weiter, § 15a Absatz 1 Satz 1 UStG (zurückzuzahlen) */
        // @ApiMember(Description="zu 2. andere Wirtschaftsgüter und so weiter, § 15a Absatz 1 Satz 1 UStG (zurückzuzahlen)", Name="E3008802")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3008802=null,

        /** @description zu 3. Wirtschaftsgüter und so weiter, § 15a Absatz 2 UStG (nachträglich abziehbar) */
        // @ApiMember(Description="zu 3. Wirtschaftsgüter und so weiter, § 15a Absatz 2 UStG (nachträglich abziehbar)", Name="E3008803")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3008803=null,

        /** @description zu 3. Wirtschaftsgüter und so weiter, § 15a Absatz 2 UStG (zurückzuzahlen) */
        // @ApiMember(Description="zu 3. Wirtschaftsgüter und so weiter, § 15a Absatz 2 UStG (zurückzuzahlen)", Name="E3008804")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3008804=null,

        /** @description Summe */
        // @ApiMember(Description="Summe", Name="VoStBerBetrSum")
        /** @var VoStBerBetrSum2021|null */
        public ?VoStBerBetrSum2021 $voStBerBetrSum=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3008701'])) $this->e3008701 = JsonConverters::from('PositiverGeldBetragMitCent12DETyp', $o['e3008701']);
        if (isset($o['e3008702'])) $this->e3008702 = JsonConverters::from('PositiverGeldBetragMitCent12DETyp', $o['e3008702']);
        if (isset($o['e3008801'])) $this->e3008801 = JsonConverters::from('PositiverGeldBetragMitCent12DETyp', $o['e3008801']);
        if (isset($o['e3008802'])) $this->e3008802 = JsonConverters::from('PositiverGeldBetragMitCent12DETyp', $o['e3008802']);
        if (isset($o['e3008803'])) $this->e3008803 = JsonConverters::from('PositiverGeldBetragMitCent12DETyp', $o['e3008803']);
        if (isset($o['e3008804'])) $this->e3008804 = JsonConverters::from('PositiverGeldBetragMitCent12DETyp', $o['e3008804']);
        if (isset($o['voStBerBetrSum'])) $this->voStBerBetrSum = JsonConverters::from('VoStBerBetrSum2021', $o['voStBerBetrSum']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3008701)) $o['e3008701'] = JsonConverters::to('PositiverGeldBetragMitCent12DETyp', $this->e3008701);
        if (isset($this->e3008702)) $o['e3008702'] = JsonConverters::to('PositiverGeldBetragMitCent12DETyp', $this->e3008702);
        if (isset($this->e3008801)) $o['e3008801'] = JsonConverters::to('PositiverGeldBetragMitCent12DETyp', $this->e3008801);
        if (isset($this->e3008802)) $o['e3008802'] = JsonConverters::to('PositiverGeldBetragMitCent12DETyp', $this->e3008802);
        if (isset($this->e3008803)) $o['e3008803'] = JsonConverters::to('PositiverGeldBetragMitCent12DETyp', $this->e3008803);
        if (isset($this->e3008804)) $o['e3008804'] = JsonConverters::to('PositiverGeldBetragMitCent12DETyp', $this->e3008804);
        if (isset($this->voStBerBetrSum)) $o['voStBerBetrSum'] = JsonConverters::to('VoStBerBetrSum2021', $this->voStBerBetrSum);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Berichtigung des Vorsteuerabzugs (§ 15a UStG). */
// @Api(Description="Berichtigung des Vorsteuerabzugs (§ 15a UStG).")
class BerVoSt15a2021 implements JsonSerializable
{
    public function __construct(
        /** @description Sind im Kalenderjahr 2021 Grundstücke, Grundstücksteile, Gebäude oder Gebäudeteile, für die Vorsteuer abgezogen worden ist, erstmals tatsächlich verwendet worden? */
        // @ApiMember(Description="Sind im Kalenderjahr 2021 Grundstücke, Grundstücksteile, Gebäude oder Gebäudeteile, für die Vorsteuer abgezogen worden ist, erstmals tatsächlich verwendet worden?", Name="GrdstErstmVerw")
        /** @var GrdstErstmVerw2021|null */
        public ?GrdstErstmVerw2021 $grdstErstmVerw=null,

        /** @description Haben sich im Jahr 2021 die für den ursprünglichen Vorsteuerabzug maßgebenden Verhältnisse geändert bei */
        // @ApiMember(Description="Haben sich im Jahr 2021 die für den ursprünglichen Vorsteuerabzug maßgebenden Verhältnisse geändert bei", Name="AendVerh")
        /** @var AendVerh2021|null */
        public ?AendVerh2021 $aendVerh=null,

        /** @description Die Verhältnisse, die ursprünglich für die Beurteilung des Vorsteuerabzugs maßgebend waren, haben sich seitdem geändert durch: */
        // @ApiMember(Description="Die Verhältnisse, die ursprünglich für die Beurteilung des Vorsteuerabzugs maßgebend waren, haben sich seitdem geändert durch:", Name="GrundAendVerh")
        /** @var GrundAendVerh2021|null */
        public ?GrundAendVerh2021 $grundAendVerh=null,

        /** @description Nutzungsänderung */
        // @ApiMember(Description="Nutzungsänderung", Name="VoStBerBetr")
        /** @var VoStBerBetr2021|null */
        public ?VoStBerBetr2021 $voStBerBetr=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['grdstErstmVerw'])) $this->grdstErstmVerw = JsonConverters::from('GrdstErstmVerw2021', $o['grdstErstmVerw']);
        if (isset($o['aendVerh'])) $this->aendVerh = JsonConverters::from('AendVerh2021', $o['aendVerh']);
        if (isset($o['grundAendVerh'])) $this->grundAendVerh = JsonConverters::from('GrundAendVerh2021', $o['grundAendVerh']);
        if (isset($o['voStBerBetr'])) $this->voStBerBetr = JsonConverters::from('VoStBerBetr2021', $o['voStBerBetr']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->grdstErstmVerw)) $o['grdstErstmVerw'] = JsonConverters::to('GrdstErstmVerw2021', $this->grdstErstmVerw);
        if (isset($this->aendVerh)) $o['aendVerh'] = JsonConverters::to('AendVerh2021', $this->aendVerh);
        if (isset($this->grundAendVerh)) $o['grundAendVerh'] = JsonConverters::to('GrundAendVerh2021', $this->grundAendVerh);
        if (isset($this->voStBerBetr)) $o['voStBerBetr'] = JsonConverters::to('VoStBerBetr2021', $this->voStBerBetr);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Verbleibende Umsatzsteuer / Verbleibender Überschuss. */
// @Api(Description="Verbleibende Umsatzsteuer / Verbleibender Überschuss.")
class VerblUSt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Verbleibende Umsatzsteuer / Verbleibender Überschuss (bei verbleibendem Überschuss - bitte dem Betrag ein Minuszeichen voranstellen) */
        // @ApiMember(Description="Verbleibende Umsatzsteuer / Verbleibender Überschuss (bei verbleibendem Überschuss - bitte dem Betrag ein Minuszeichen voranstellen)", IsRequired=true, Name="E3011101")
        // @Validate(Validator="NotNull")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3011101=null,

        /** @description Vorauszahlungssoll 2021 (einschließlich Sondervorauszahlung) */
        // @ApiMember(Description="Vorauszahlungssoll 2021 (einschließlich Sondervorauszahlung)", IsRequired=true, Name="E3011301")
        // @Validate(Validator="NotNull")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3011301=null
    ) {
    }

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

/** @description Noch an die Finanzkasse zu entrichten - Abschlusszahlung / Erstattungsanspruch - */
// @Api(Description="Noch an die Finanzkasse zu entrichten - Abschlusszahlung / Erstattungsanspruch -")
class ZahlErstatt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Noch an die Finanzkasse zu entrichten - Abschlusszahlung / Erstattungsanspruch (bei Erstattungsanspruch - bitte dem Betrag ein Minuszeichen voranstellen) */
        // @ApiMember(Description="Noch an die Finanzkasse zu entrichten - Abschlusszahlung / Erstattungsanspruch (bei Erstattungsanspruch - bitte dem Betrag ein Minuszeichen voranstellen)", IsRequired=true, Name="E3011401")
        // @Validate(Validator="NotNull")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3011401=null
    ) {
    }

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

/** @description Berechnung der zu entrichtenden Umsatzsteuer. */
// @Api(Description="Berechnung der zu entrichtenden Umsatzsteuer.")
class BerechUSt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Umsatzsteuer auf steuerpflichtige Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben (aus Zeile 60) */
        // @ApiMember(Description="Umsatzsteuer auf steuerpflichtige Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben (aus Zeile 60)", Name="E3009201")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3009201=null,

        /** @description Umsatzsteuer auf innergemeinschaftliche Erwerbe (aus Zeile 86) */
        // @ApiMember(Description="Umsatzsteuer auf innergemeinschaftliche Erwerbe (aus Zeile 86)", Name="E3009401")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3009401=null,

        /** @description Umsatzsteuer, die vom Auslagerer oder Lagerhalter geschuldet wird (§ 13a Absatz 1 Nummer 6 UStG) (aus Zeile 90) */
        // @ApiMember(Description="Umsatzsteuer, die vom Auslagerer oder Lagerhalter geschuldet wird (§ 13a Absatz 1 Nummer 6 UStG) (aus Zeile 90)", Name="E3009602")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3009602=null,

        /** @description Umsatzsteuer, die vom letzten Abnehmer im innergemeinschaftlichen Dreiecksgeschäft geschuldet wird (§ 25b Absatz 2 UStG) (aus Zeile 97) */
        // @ApiMember(Description="Umsatzsteuer, die vom letzten Abnehmer im innergemeinschaftlichen Dreiecksgeschäft geschuldet wird (§ 25b Absatz 2 UStG) (aus Zeile 97)", Name="E3009501")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3009501=null,

        /** @description Umsatzsteuer, die vom Leistungsempfänger nach § 13b UStG geschuldet wird (aus Zeile 103) */
        // @ApiMember(Description="Umsatzsteuer, die vom Leistungsempfänger nach § 13b UStG geschuldet wird (aus Zeile 103)", Name="E3009502")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3009502=null,

        /** @description Zwischensumme */
        // @ApiMember(Description="Zwischensumme", Name="E3009801")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3009801=null,

        /** @description Abziehbare Vorsteuerbeträge (aus Zeile 131) */
        // @ApiMember(Description="Abziehbare Vorsteuerbeträge (aus Zeile 131)", Name="E3009901")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3009901=null,

        /** @description Vorsteuerbeträge, die auf Grund des § 15a UStG nachträglich abziehbar sind (aus Zeile 150) */
        // @ApiMember(Description="Vorsteuerbeträge, die auf Grund des § 15a UStG nachträglich abziehbar sind (aus Zeile 150)", Name="E3010001")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3010001=null,

        /** @description Verbleibender Betrag */
        // @ApiMember(Description="Verbleibender Betrag", Name="E3010201")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3010201=null,

        /** @description Vorsteuerbeträge, die auf Grund des § 15a UStG zurückzuzahlen sind (aus Zeile 150) */
        // @ApiMember(Description="Vorsteuerbeträge, die auf Grund des § 15a UStG zurückzuzahlen sind (aus Zeile 150)", Name="E3009701")
        /** @var PositiverGeldBetragMitCent12DETyp|null */
        public ?PositiverGeldBetragMitCent12DETyp $e3009701=null,

        /** @description In Rechnungen unrichtig oder unberechtigt ausgewiesene Steuerbeträge (§ 14c UStG) sowie Steuerbeträge, die nach § 6a Absatz 4 Satz 2 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 UStG geschuldet werden", Name="E3010301")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3010301=null,

        /** @description Steuerbeträge, die nach § 17 Absatz 1 Satz 7 UStG geschuldet werden */
        // @ApiMember(Description="Steuerbeträge, die nach § 17 Absatz 1 Satz 7 UStG geschuldet werden", Name="E3010401")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3010401=null,

        /** @description Steuer- und Vorsteuerbeträge, die auf frühere Besteuerungszeiträume entfallen (nur für Kleinunternehmer, die § 19 Absatz 1 UStG anwenden) */
        // @ApiMember(Description="Steuer- und Vorsteuerbeträge, die auf frühere Besteuerungszeiträume entfallen (nur für Kleinunternehmer, die § 19 Absatz 1 UStG anwenden)", Name="E3010501")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3010501=null,

        /** @description Umsatzsteuer / Überschuss (bei Überschuss - bitte dem Betrag ein Minuszeichen voranstellen) */
        // @ApiMember(Description="Umsatzsteuer / Überschuss (bei Überschuss - bitte dem Betrag ein Minuszeichen voranstellen)", Name="E3010601")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3010601=null,

        /** @description Anrechenbare Beträge (aus Zeile 23 der Anlage UN) */
        // @ApiMember(Description="Anrechenbare Beträge (aus Zeile 23 der Anlage UN)", Name="E3010602")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3010602=null,

        /** @description Verbleibende Umsatzsteuer / Verbleibender Überschuss */
        // @ApiMember(Description="Verbleibende Umsatzsteuer / Verbleibender Überschuss", Name="VerblUSt")
        /** @var VerblUSt2021|null */
        public ?VerblUSt2021 $verblUSt=null,

        /** @description Noch an die Finanzkasse zu entrichten - Abschlusszahlung / Erstattungsanspruch - */
        // @ApiMember(Description="Noch an die Finanzkasse zu entrichten - Abschlusszahlung / Erstattungsanspruch -", Name="ZahlErstatt")
        /** @var ZahlErstatt2021|null */
        public ?ZahlErstatt2021 $zahlErstatt=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3009201'])) $this->e3009201 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3009201']);
        if (isset($o['e3009401'])) $this->e3009401 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3009401']);
        if (isset($o['e3009602'])) $this->e3009602 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3009602']);
        if (isset($o['e3009501'])) $this->e3009501 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3009501']);
        if (isset($o['e3009502'])) $this->e3009502 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3009502']);
        if (isset($o['e3009801'])) $this->e3009801 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3009801']);
        if (isset($o['e3009901'])) $this->e3009901 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3009901']);
        if (isset($o['e3010001'])) $this->e3010001 = JsonConverters::from('PositiverGeldBetragMitCent12DETyp', $o['e3010001']);
        if (isset($o['e3010201'])) $this->e3010201 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3010201']);
        if (isset($o['e3009701'])) $this->e3009701 = JsonConverters::from('PositiverGeldBetragMitCent12DETyp', $o['e3009701']);
        if (isset($o['e3010301'])) $this->e3010301 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3010301']);
        if (isset($o['e3010401'])) $this->e3010401 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3010401']);
        if (isset($o['e3010501'])) $this->e3010501 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3010501']);
        if (isset($o['e3010601'])) $this->e3010601 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3010601']);
        if (isset($o['e3010602'])) $this->e3010602 = JsonConverters::from('GeldBetragMitCent12DETyp', $o['e3010602']);
        if (isset($o['verblUSt'])) $this->verblUSt = JsonConverters::from('VerblUSt2021', $o['verblUSt']);
        if (isset($o['zahlErstatt'])) $this->zahlErstatt = JsonConverters::from('ZahlErstatt2021', $o['zahlErstatt']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3009201)) $o['e3009201'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3009201);
        if (isset($this->e3009401)) $o['e3009401'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3009401);
        if (isset($this->e3009602)) $o['e3009602'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3009602);
        if (isset($this->e3009501)) $o['e3009501'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3009501);
        if (isset($this->e3009502)) $o['e3009502'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3009502);
        if (isset($this->e3009801)) $o['e3009801'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3009801);
        if (isset($this->e3009901)) $o['e3009901'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3009901);
        if (isset($this->e3010001)) $o['e3010001'] = JsonConverters::to('PositiverGeldBetragMitCent12DETyp', $this->e3010001);
        if (isset($this->e3010201)) $o['e3010201'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3010201);
        if (isset($this->e3009701)) $o['e3009701'] = JsonConverters::to('PositiverGeldBetragMitCent12DETyp', $this->e3009701);
        if (isset($this->e3010301)) $o['e3010301'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3010301);
        if (isset($this->e3010401)) $o['e3010401'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3010401);
        if (isset($this->e3010501)) $o['e3010501'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3010501);
        if (isset($this->e3010601)) $o['e3010601'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3010601);
        if (isset($this->e3010602)) $o['e3010602'] = JsonConverters::to('GeldBetragMitCent12DETyp', $this->e3010602);
        if (isset($this->verblUSt)) $o['verblUSt'] = JsonConverters::to('VerblUSt2021', $this->verblUSt);
        if (isset($this->zahlErstatt)) $o['zahlErstatt'] = JsonConverters::to('ZahlErstatt2021', $this->zahlErstatt);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Bankverbindung. */
// @Api(Description="Bankverbindung.")
class Bank2021 implements JsonSerializable
{
    public function __construct(
        /** @description IBAN */
        // @ApiMember(Description="IBAN", Name="E3201001")
        /** @var StringTyp|null */
        public ?StringTyp $e3201001=null,

        /** @description BIC (nur bei Bankverbindungen außerhalb des Europäischen Wirtschaftsraums) */
        // @ApiMember(Description="BIC (nur bei Bankverbindungen außerhalb des Europäischen Wirtschaftsraums)", Name="E3201002")
        /** @var StringTyp|null */
        public ?StringTyp $e3201002=null,

        /** @description Name des Geldinstituts (Zweigstelle) und Ort */
        // @ApiMember(Description="Name des Geldinstituts (Zweigstelle) und Ort", Name="E3200901")
        /** @var StringTyp|null */
        public ?StringTyp $e3200901=null,

        /** @description Kontonummer (nur bei Bankverbindungen außerhalb des Europäischen Zahlungsverkehrsraums - SEPA) */
        // @ApiMember(Description="Kontonummer (nur bei Bankverbindungen außerhalb des Europäischen Zahlungsverkehrsraums - SEPA)", Name="E3200902")
        /** @var StringTyp|null */
        public ?StringTyp $e3200902=null,

        /** @description Kontoinhaber ist der Unternehmer laut den allgemeinen Angaben auf Vordruck USt2A */
        // @ApiMember(Description="Kontoinhaber ist der Unternehmer laut den allgemeinen Angaben auf Vordruck USt2A", Name="E3200904")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3200904=null,

        /** @description Name des Kontoinhabers */
        // @ApiMember(Description="Name des Kontoinhabers", Name="E3200905")
        /** @var StringTyp|null */
        public ?StringTyp $e3200905=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3201001'])) $this->e3201001 = JsonConverters::from('StringTyp', $o['e3201001']);
        if (isset($o['e3201002'])) $this->e3201002 = JsonConverters::from('StringTyp', $o['e3201002']);
        if (isset($o['e3200901'])) $this->e3200901 = JsonConverters::from('StringTyp', $o['e3200901']);
        if (isset($o['e3200902'])) $this->e3200902 = JsonConverters::from('StringTyp', $o['e3200902']);
        if (isset($o['e3200904'])) $this->e3200904 = JsonConverters::from('BoolXTyp', $o['e3200904']);
        if (isset($o['e3200905'])) $this->e3200905 = JsonConverters::from('StringTyp', $o['e3200905']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3201001)) $o['e3201001'] = JsonConverters::to('StringTyp', $this->e3201001);
        if (isset($this->e3201002)) $o['e3201002'] = JsonConverters::to('StringTyp', $this->e3201002);
        if (isset($this->e3200901)) $o['e3200901'] = JsonConverters::to('StringTyp', $this->e3200901);
        if (isset($this->e3200902)) $o['e3200902'] = JsonConverters::to('StringTyp', $this->e3200902);
        if (isset($this->e3200904)) $o['e3200904'] = JsonConverters::to('BoolXTyp', $this->e3200904);
        if (isset($this->e3200905)) $o['e3200905'] = JsonConverters::to('StringTyp', $this->e3200905);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Angaben zur Unterschrift. */
// @Api(Description="Angaben zur Unterschrift.")
class AngUnterschr2021 implements JsonSerializable
{
    public function __construct(
        /** @description Die Umsatzsteuererklärung wurde vom Bevollmächtigten elektronisch authentifiziert übermittelt. Die Voraussetzungen des § 150 Absatz 3 AO liegen vor. */
        // @ApiMember(Description="Die Umsatzsteuererklärung wurde vom Bevollmächtigten elektronisch authentifiziert übermittelt. Die Voraussetzungen des § 150 Absatz 3 AO liegen vor.", Name="E3201701")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3201701=null
    ) {
    }

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

/** @description Bevollmächtigter/Empfangsbevollmächtigter. */
// @Api(Description="Bevollmächtigter/Empfangsbevollmächtigter.")
class Vollm2021 implements JsonSerializable
{
    public function __construct(
        /** @description Zur Wahrnehmung der steuerlichen Pflichten und Rechte als Bevollmächtigter (§ 80 AO) ist bestellt: */
        // @ApiMember(Description="Zur Wahrnehmung der steuerlichen Pflichten und Rechte als Bevollmächtigter (§ 80 AO) ist bestellt:", Name="E3201301")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3201301=null,

        /** @description Zum Empfang von Schriftstücken als Empfangsbevollmächtigter (§ 123 AO) ist bestellt: */
        // @ApiMember(Description="Zum Empfang von Schriftstücken als Empfangsbevollmächtigter (§ 123 AO) ist bestellt:", Name="E3201401")
        /** @var BoolXTyp|null */
        public ?BoolXTyp $e3201401=null,

        /** @description Name */
        // @ApiMember(Description="Name", Name="E3201501")
        /** @var StringTyp|null */
        public ?StringTyp $e3201501=null,

        /** @description Straße */
        // @ApiMember(Description="Straße", Name="E3201601")
        /** @var StringTyp|null */
        public ?StringTyp $e3201601=null,

        /** @description Hausnummer */
        // @ApiMember(Description="Hausnummer", Name="E3201302")
        /** @var StringTyp|null */
        public ?StringTyp $e3201302=null,

        /** @description Hausnummerzusatz */
        // @ApiMember(Description="Hausnummerzusatz", Name="E3201303")
        /** @var StringTyp|null */
        public ?StringTyp $e3201303=null,

        /** @description Adressergänzung */
        // @ApiMember(Description="Adressergänzung", Name="E3201304")
        /** @var StringTyp|null */
        public ?StringTyp $e3201304=null,

        /** @description Postleitzahl, Ort */
        // @ApiMember(Description="Postleitzahl, Ort", Name="E3201402")
        /** @var StringTyp|null */
        public ?StringTyp $e3201402=null,

        /** @description Postleitzahl zu Postfach */
        // @ApiMember(Description="Postleitzahl zu Postfach", Name="E3201503")
        /** @var StringTyp|null */
        public ?StringTyp $e3201503=null,

        /** @description Postfach */
        // @ApiMember(Description="Postfach", Name="E3201504")
        /** @var StringTyp|null */
        public ?StringTyp $e3201504=null,

        /** @description Telefon */
        // @ApiMember(Description="Telefon", Name="E3201602")
        /** @var StringTyp|null */
        public ?StringTyp $e3201602=null,

        /** @description E-Mail-Adresse */
        // @ApiMember(Description="E-Mail-Adresse", Name="E3201502")
        /** @var StringTyp|null */
        public ?StringTyp $e3201502=null,

        /** @description Angaben zur Unterschrift */
        // @ApiMember(Description="Angaben zur Unterschrift", Name="AngUnterschr")
        /** @var AngUnterschr2021|null */
        public ?AngUnterschr2021 $angUnterschr=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3201301'])) $this->e3201301 = JsonConverters::from('BoolXTyp', $o['e3201301']);
        if (isset($o['e3201401'])) $this->e3201401 = JsonConverters::from('BoolXTyp', $o['e3201401']);
        if (isset($o['e3201501'])) $this->e3201501 = JsonConverters::from('StringTyp', $o['e3201501']);
        if (isset($o['e3201601'])) $this->e3201601 = JsonConverters::from('StringTyp', $o['e3201601']);
        if (isset($o['e3201302'])) $this->e3201302 = JsonConverters::from('StringTyp', $o['e3201302']);
        if (isset($o['e3201303'])) $this->e3201303 = JsonConverters::from('StringTyp', $o['e3201303']);
        if (isset($o['e3201304'])) $this->e3201304 = JsonConverters::from('StringTyp', $o['e3201304']);
        if (isset($o['e3201402'])) $this->e3201402 = JsonConverters::from('StringTyp', $o['e3201402']);
        if (isset($o['e3201503'])) $this->e3201503 = JsonConverters::from('StringTyp', $o['e3201503']);
        if (isset($o['e3201504'])) $this->e3201504 = JsonConverters::from('StringTyp', $o['e3201504']);
        if (isset($o['e3201602'])) $this->e3201602 = JsonConverters::from('StringTyp', $o['e3201602']);
        if (isset($o['e3201502'])) $this->e3201502 = JsonConverters::from('StringTyp', $o['e3201502']);
        if (isset($o['angUnterschr'])) $this->angUnterschr = JsonConverters::from('AngUnterschr2021', $o['angUnterschr']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3201301)) $o['e3201301'] = JsonConverters::to('BoolXTyp', $this->e3201301);
        if (isset($this->e3201401)) $o['e3201401'] = JsonConverters::to('BoolXTyp', $this->e3201401);
        if (isset($this->e3201501)) $o['e3201501'] = JsonConverters::to('StringTyp', $this->e3201501);
        if (isset($this->e3201601)) $o['e3201601'] = JsonConverters::to('StringTyp', $this->e3201601);
        if (isset($this->e3201302)) $o['e3201302'] = JsonConverters::to('StringTyp', $this->e3201302);
        if (isset($this->e3201303)) $o['e3201303'] = JsonConverters::to('StringTyp', $this->e3201303);
        if (isset($this->e3201304)) $o['e3201304'] = JsonConverters::to('StringTyp', $this->e3201304);
        if (isset($this->e3201402)) $o['e3201402'] = JsonConverters::to('StringTyp', $this->e3201402);
        if (isset($this->e3201503)) $o['e3201503'] = JsonConverters::to('StringTyp', $this->e3201503);
        if (isset($this->e3201504)) $o['e3201504'] = JsonConverters::to('StringTyp', $this->e3201504);
        if (isset($this->e3201602)) $o['e3201602'] = JsonConverters::to('StringTyp', $this->e3201602);
        if (isset($this->e3201502)) $o['e3201502'] = JsonConverters::to('StringTyp', $this->e3201502);
        if (isset($this->angUnterschr)) $o['angUnterschr'] = JsonConverters::to('AngUnterschr2021', $this->angUnterschr);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Allgemeine Angaben. */
// @Api(Description="Allgemeine Angaben.")
class UnAllg2021 implements JsonSerializable
{
    public function __construct(
        /** @description Bankverbindung */
        // @ApiMember(Description="Bankverbindung", Name="Bank")
        /** @var Bank2021|null */
        public ?Bank2021 $bank=null,

        /** @description Bevollmächtigter/Empfangsbevollmächtigter */
        // @ApiMember(Description="Bevollmächtigter/Empfangsbevollmächtigter", Name="Vollm")
        /** @var Vollm2021|null */
        public ?Vollm2021 $vollm=null
    ) {
    }

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

/** @description Boolescher Datentyp, welcher als '1' (Ja) oder '2' (Nein) im Jahressteuererklärung angeschrieben wird. */
// @Api(Description="Boolescher Datentyp, welcher als '1' (Ja) oder '2' (Nein) im Jahressteuererklärung angeschrieben wird.")
class Bool12Typ extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wenn der Wert true ist, '1' wird im Jahressteuererklärung angeschrieben; ansonsten '2'. */
        // @ApiMember(Description="Wenn der Wert true ist, '1' wird im Jahressteuererklärung angeschrieben; ansonsten '2'.", IsRequired=true, Name="Wert")
        /** @var bool|null */
        public ?bool $wert=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Vorsteuer-Vergütungsverfahren beim Bundeszentralamt für Steuern. */
// @Api(Description="Vorsteuer-Vergütungsverfahren beim Bundeszentralamt für Steuern.")
class VoStVerguetBZSt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Ist für das Kalenderjahr die Vergütung von Vorsteuern in einem besonderen Verfahren (§ 18 Absatz 9 UStG, §§ 59 bis 61a UStDV) beantragt worden? */
        // @ApiMember(Description="Ist für das Kalenderjahr die Vergütung von Vorsteuern in einem besonderen Verfahren (§ 18 Absatz 9 UStG, §§ 59 bis 61a UStDV) beantragt worden?", Name="E3201101")
        /** @var Bool12Typ|null */
        public ?Bool12Typ $e3201101=null
    ) {
    }

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

/** @description C. Anrechenbare Beträge. */
// @Api(Description="C. Anrechenbare Beträge.")
class AnrechBetr2021 implements JsonSerializable
{
    public function __construct(
        /** @description Bei der Beförderungseinzelbesteuerung entrichtete Umsatzsteuer (§ 18 Absatz 5b Satz 2 UStG) - Belege bitte gesondert übermitteln - */
        // @ApiMember(Description="Bei der Beförderungseinzelbesteuerung entrichtete Umsatzsteuer (§ 18 Absatz 5b Satz 2 UStG) - Belege bitte gesondert übermitteln -", Name="E3201902")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3201902=null,

        /** @description Entrichtete Sicherheitsleistungen (§ 18 Absatz 12 Satz 5 UStG) - Belege bitte gesondert übermitteln - */
        // @ApiMember(Description="Entrichtete Sicherheitsleistungen (§ 18 Absatz 12 Satz 5 UStG) - Belege bitte gesondert übermitteln -", Name="E3202002")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3202002=null,

        /** @description Summe (zu übertragen in Zeile 166 der Steuererklärung) */
        // @ApiMember(Description="Summe (zu übertragen in Zeile 166 der Steuererklärung)", Name="E3202102")
        /** @var GeldBetragMitCent12DETyp|null */
        public ?GeldBetragMitCent12DETyp $e3202102=null
    ) {
    }

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

/** @description In den steuerpflichtigen Umsätzen enthaltene Umsätze. */
// @Api(Description="In den steuerpflichtigen Umsätzen enthaltene Umsätze.")
class InstpflUmsEnt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Beförderungs- und Versendungslieferungen / Innergemeinschaftliche Fernverkäufe aus dem übrigen Gemeinschaftsgebiet (§ 3c UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Beförderungs- und Versendungslieferungen / Innergemeinschaftliche Fernverkäufe aus dem übrigen Gemeinschaftsgebiet (§ 3c UStG) (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3201901")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3201901=null
    ) {
    }

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

/** @description Datum-Uhrzeit-Typ. Format: TT.MM. */
// @Api(Description="Datum-Uhrzeit-Typ. Format: TT.MM.")
class YearlessDateTimeTyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. */
        // @ApiMember(Description="Wert des Datentyps.", IsRequired=true, Name="Wert")
        /** @var DateTime */
        public DateTime $wert=new DateTime()
    ) {
        parent::__construct($alias);
    }

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

/** @description Sonstigen Leistungen auf dem Gebiet der Telekommunikation, Rundfunk- und Fernsehdienstleistungen und die auf elektronischem Weg erbrachten sonstigen Leistungen (§ 3a Absatz 5 UStG). */
// @Api(Description="Sonstigen Leistungen auf dem Gebiet der Telekommunikation, Rundfunk- und Fernsehdienstleistungen und die auf elektronischem Weg erbrachten sonstigen Leistungen (§ 3a Absatz 5 UStG).")
class SonstLstgElekr2021 implements JsonSerializable
{
    public function __construct(
        /** @description Sonstige Leistungen auf dem Gebiet der Telekommunikation, Rundfunk- und Fernsehdienstleistungen aud auf die elektronischem Weg erbrachten sonstigen Leistungen (§ 3a Abs. 5 UStG), die bei */
        // @ApiMember(Description="Sonstige Leistungen auf dem Gebiet der Telekommunikation, Rundfunk- und Fernsehdienstleistungen aud auf die elektronischem Weg erbrachten sonstigen Leistungen (§ 3a Abs. 5 UStG), die bei", Name="E3202901")
        /** @var StringTyp|null */
        public ?StringTyp $e3202901=null,

        /** @description für Besteuerungszeitraum 2021 (vom) */
        // @ApiMember(Description="für Besteuerungszeitraum 2021 (vom)", Name="E3202902")
        /** @var YearlessDateTimeTyp|null */
        public ?YearlessDateTimeTyp $e3202902=null,

        /** @description bis zum Besteuerungszeitraum 2021 (bis) */
        // @ApiMember(Description="bis zum Besteuerungszeitraum 2021 (bis)", Name="E3202903")
        /** @var YearlessDateTimeTyp|null */
        public ?YearlessDateTimeTyp $e3202903=null,

        /** @description unter der Registriernummer: */
        // @ApiMember(Description="unter der Registriernummer:", Name="E3202904")
        /** @var StringTyp|null */
        public ?StringTyp $e3202904=null,

        /** @description Betrag (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR) */
        // @ApiMember(Description="Betrag (Bemessungsgrundlage ohne Umsatzsteuer, volle EUR)", Name="E3202905")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3202905=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['e3202901'])) $this->e3202901 = JsonConverters::from('StringTyp', $o['e3202901']);
        if (isset($o['e3202902'])) $this->e3202902 = JsonConverters::from('YearlessDateTimeTyp', $o['e3202902']);
        if (isset($o['e3202903'])) $this->e3202903 = JsonConverters::from('YearlessDateTimeTyp', $o['e3202903']);
        if (isset($o['e3202904'])) $this->e3202904 = JsonConverters::from('StringTyp', $o['e3202904']);
        if (isset($o['e3202905'])) $this->e3202905 = JsonConverters::from('GeldBetragOhneCent12DETyp', $o['e3202905']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->e3202901)) $o['e3202901'] = JsonConverters::to('StringTyp', $this->e3202901);
        if (isset($this->e3202902)) $o['e3202902'] = JsonConverters::to('YearlessDateTimeTyp', $this->e3202902);
        if (isset($this->e3202903)) $o['e3202903'] = JsonConverters::to('YearlessDateTimeTyp', $this->e3202903);
        if (isset($this->e3202904)) $o['e3202904'] = JsonConverters::to('StringTyp', $this->e3202904);
        if (isset($this->e3202905)) $o['e3202905'] = JsonConverters::to('GeldBetragOhneCent12DETyp', $this->e3202905);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description In den steuerpflichtigen Umsätzen enthaltene Umsätze. */
// @Api(Description="In den steuerpflichtigen Umsätzen enthaltene Umsätze.")
class UnInstpflUmsNichtEnt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Sonstigen Leistungen auf dem Gebiet der Telekommunikation, Rundfunk- und Fernsehdienstleistungen und die auf elektronischem Weg erbrachten sonstigen Leistungen (§ 3a Absatz 5 UStG) */
        // @ApiMember(Description="Sonstigen Leistungen auf dem Gebiet der Telekommunikation, Rundfunk- und Fernsehdienstleistungen und die auf elektronischem Weg erbrachten sonstigen Leistungen (§ 3a Absatz 5 UStG)", Name="SonstLstgElekr")
        /** @var SonstLstgElekr2021|null */
        public ?SonstLstgElekr2021 $sonstLstgElekr=null
    ) {
    }

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

/** @description Ergänzende Angaben zu Umsätzen. */
// @Api(Description="Ergänzende Angaben zu Umsätzen.")
class UnErgAngUms2021 implements JsonSerializable
{
    public function __construct(
        /** @description In den steuerpflichtigen Umsätzen enthaltene Umsätze */
        // @ApiMember(Description="In den steuerpflichtigen Umsätzen enthaltene Umsätze", Name="InstpflUmsEnt")
        /** @var InstpflUmsEnt2021|null */
        public ?InstpflUmsEnt2021 $instpflUmsEnt=null,

        /** @description In den steuerpflichtigen Umsätzen enthaltene Umsätze */
        // @ApiMember(Description="In den steuerpflichtigen Umsätzen enthaltene Umsätze", Name="InstpflUmsNichtEnt")
        /** @var UnInstpflUmsNichtEnt2021|null */
        public ?UnInstpflUmsNichtEnt2021 $instpflUmsNichtEnt=null
    ) {
    }

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

/** @description Anlage UN zur Umsatzsteuererklärung für im Ausland ansässige Unternehmer. */
// @Api(Description="Anlage UN zur Umsatzsteuererklärung für im Ausland ansässige Unternehmer.")
class UN2021 implements JsonSerializable
{
    public function __construct(
        /** @description A. Allgemeine Angaben */
        // @ApiMember(Description="A. Allgemeine Angaben", Name="Allg")
        /** @var UnAllg2021|null */
        public ?UnAllg2021 $allg=null,

        /** @description B. Vorsteuer-Vergütungsverfahren beim Bundeszentralamt für Steuern */
        // @ApiMember(Description="B. Vorsteuer-Vergütungsverfahren beim Bundeszentralamt für Steuern", Name="VoStVerguetBZSt")
        /** @var VoStVerguetBZSt2021|null */
        public ?VoStVerguetBZSt2021 $voStVerguetBZSt=null,

        /** @description C. Anrechenbare Beträge */
        // @ApiMember(Description="C. Anrechenbare Beträge", Name="AnrechBetr")
        /** @var AnrechBetr2021|null */
        public ?AnrechBetr2021 $anrechBetr=null,

        /** @description D. Ergänzende Angaben zu Umsätzen */
        // @ApiMember(Description="D. Ergänzende Angaben zu Umsätzen", Name="ErgAngUms")
        /** @var UnErgAngUms2021|null */
        public ?UnErgAngUms2021 $ergAngUms=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['allg'])) $this->allg = JsonConverters::from('UnAllg2021', $o['allg']);
        if (isset($o['voStVerguetBZSt'])) $this->voStVerguetBZSt = JsonConverters::from('VoStVerguetBZSt2021', $o['voStVerguetBZSt']);
        if (isset($o['anrechBetr'])) $this->anrechBetr = JsonConverters::from('AnrechBetr2021', $o['anrechBetr']);
        if (isset($o['ergAngUms'])) $this->ergAngUms = JsonConverters::from('UnErgAngUms2021', $o['ergAngUms']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->allg)) $o['allg'] = JsonConverters::to('UnAllg2021', $this->allg);
        if (isset($this->voStVerguetBZSt)) $o['voStVerguetBZSt'] = JsonConverters::to('VoStVerguetBZSt2021', $this->voStVerguetBZSt);
        if (isset($this->anrechBetr)) $o['anrechBetr'] = JsonConverters::to('AnrechBetr2021', $this->anrechBetr);
        if (isset($this->ergAngUms)) $o['ergAngUms'] = JsonConverters::to('UnErgAngUms2021', $this->ergAngUms);
        return empty($o) ? new class(){} : $o;
    }
}

/** @description Einzelner vertretene Unternehmer */
// @Api(Description="Einzelner vertretene Unternehmer")
class Einz2021 implements JsonSerializable
{
    public function __construct(
        /** @description Name des vertretenen Unternehmers */
        // @ApiMember(Description="Name des vertretenen Unternehmers", Name="E3300201")
        /** @var StringTyp|null */
        public ?StringTyp $e3300201=null,

        /** @description Anschrift des vertretenen Unternehmers */
        // @ApiMember(Description="Anschrift des vertretenen Unternehmers", Name="E3300202")
        /** @var StringTyp|null */
        public ?StringTyp $e3300202=null,

        /** @description Umsatzsteuer-Identifikationsnummer des vertretenen Unternehmers */
        // @ApiMember(Description="Umsatzsteuer-Identifikationsnummer des vertretenen Unternehmers", Name="E3300203")
        /** @var StringTyp|null */
        public ?StringTyp $e3300203=null,

        /** @description Summe der jeweiligen Bemessungsgrundlagen in EUR */
        // @ApiMember(Description="Summe der jeweiligen Bemessungsgrundlagen in EUR", Name="E3300204")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3300204=null
    ) {
    }

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

/** @description Summe */
// @Api(Description="Summe")
class AufstAllerVertrUntSum2021 implements JsonSerializable
{
    public function __construct(
        /** @description  Summe aller Bemessungsgrundlagen in EUR */
        // @ApiMember(Description=" Summe aller Bemessungsgrundlagen in EUR", Name="E3300301")
        /** @var GeldBetragOhneCent12DETyp|null */
        public ?GeldBetragOhneCent12DETyp $e3300301=null
    ) {
    }

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

/** @description Aufstellung aller vertretenen Unternehmer */
// @Api(Description="Aufstellung aller vertretenen Unternehmer")
class AufstAllerVertrUnt2021 implements JsonSerializable
{
    public function __construct(
        /** @description Die vertretenen Unternehmer */
        // @ApiMember(Description="Die vertretenen Unternehmer", Name="Einzs")
        /** @var array<Einz2021>|null */
        public ?array $einzs=null,

        /** @description Die Summe */
        // @ApiMember(Description="Die Summe", Name="Sum")
        /** @var AufstAllerVertrUntSum2021|null */
        public ?AufstAllerVertrUntSum2021 $sum=null
    ) {
    }

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

/** @description Anlage FV zur Umsatzsteuererklärung 2021 */
// @Api(Description="Anlage FV zur Umsatzsteuererklärung 2021")
class FV2021 implements JsonSerializable
{
    public function __construct(
        /** @description Aufstellung aller vertretenen Unternehmer */
        // @ApiMember(Description="Aufstellung aller vertretenen Unternehmer", Name="AufstAllerVertrUnt")
        /** @var AufstAllerVertrUnt2021|null */
        public ?AufstAllerVertrUnt2021 $aufstAllerVertrUnt=null
    ) {
    }

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

/** @description Stellt den Vorgang bei einer Veranlagung dar. */
enum VeranlagungVorgang : int
{
    case NurVeranlagung = 1;
    case VeranlagungMitVorauszahlung = 4;
}

/** @description Datentyp, welches den Vorgang bei einer Veranlagung darstellt. */
// @Api(Description="Datentyp, welches den Vorgang bei einer Veranlagung darstellt.")
class VeranlagungVorgangTyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. */
        // @ApiMember(Description="Wert des Datentyps.", IsRequired=true, Name="Wert")
        /** @var VeranlagungVorgang|null */
        public ?VeranlagungVorgang $wert=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Stellt die Art der Ordnungsnummer dar. */
enum OrdNrArt : string
{
    case S = 'S';
    case O = 'O';
}

/** @description Datentyp, welches die ermittelten Ordnungsbegriff zu füllen darstellt. */
// @Api(Description="Datentyp, welches die ermittelten Ordnungsbegriff zu füllen darstellt.")
class OrdNrArtTyp extends CustomTypBase implements JsonSerializable
{
    /**
     * @param string|null $alias
     */
    public function __construct(
        ?string $alias=null,
        /** @description Wert des Datentyps. */
        // @ApiMember(Description="Wert des Datentyps.", IsRequired=true, Name="Wert")
        /** @var OrdNrArt|null */
        public ?OrdNrArt $wert=null
    ) {
        parent::__construct($alias);
    }

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

/** @description Stellt die Informationen zur Bescheidrückübermittlung für die neue Struktur der Jahrresteuererklärung dar. */
// @Api(Description="Stellt die Informationen zur Bescheidrückübermittlung für die neue Struktur der Jahrresteuererklärung dar.")
class E50Rueckuebermittlung implements JsonSerializable
{
    public function __construct(
        /** @description Wird die elektronische Bereitstellung der Bescheiddaten gewünscht? */
        // @ApiMember(Description="Wird die elektronische Bereitstellung der Bescheiddaten gewünscht?")
        /** @var Bool12Typ|null */
        public ?Bool12Typ $bescheid=null,

        /** @description Art der Benachrichtigung über vorliegende Bescheiddaten zur Abholung. */
        // @ApiMember(Description="Art der Benachrichtigung über vorliegende Bescheiddaten zur Abholung.")
        /** @var StringTyp|null */
        public ?StringTyp $artRueckuebermittlung=null,

        /** @description Schlüssel unter dem die Bescheiddaten verschlüsselt zur Abholung bereitgestellt werden sollen */
        // @ApiMember(Description="Schlüssel unter dem die Bescheiddaten verschlüsselt zur Abholung bereitgestellt werden sollen")
        /** @var StringTyp|null */
        public ?StringTyp $schluesselRueckuebermittlung=null,

        /** @description Benachrichtigungsadresse (in der Regel E-Mail-Adresse) für die Benachrichtigung über die elektronische Bereitstellung der Bescheiddaten. */
        // @ApiMember(Description="Benachrichtigungsadresse (in der Regel E-Mail-Adresse) für die Benachrichtigung über die elektronische Bereitstellung der Bescheiddaten.")
        /** @var StringTyp|null */
        public ?StringTyp $adresseRueckuebermittlung=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['bescheid'])) $this->bescheid = JsonConverters::from('Bool12Typ', $o['bescheid']);
        if (isset($o['artRueckuebermittlung'])) $this->artRueckuebermittlung = JsonConverters::from('StringTyp', $o['artRueckuebermittlung']);
        if (isset($o['schluesselRueckuebermittlung'])) $this->schluesselRueckuebermittlung = JsonConverters::from('StringTyp', $o['schluesselRueckuebermittlung']);
        if (isset($o['adresseRueckuebermittlung'])) $this->adresseRueckuebermittlung = JsonConverters::from('StringTyp', $o['adresseRueckuebermittlung']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->bescheid)) $o['bescheid'] = JsonConverters::to('Bool12Typ', $this->bescheid);
        if (isset($this->artRueckuebermittlung)) $o['artRueckuebermittlung'] = JsonConverters::to('StringTyp', $this->artRueckuebermittlung);
        if (isset($this->schluesselRueckuebermittlung)) $o['schluesselRueckuebermittlung'] = JsonConverters::to('StringTyp', $this->schluesselRueckuebermittlung);
        if (isset($this->adresseRueckuebermittlung)) $o['adresseRueckuebermittlung'] = JsonConverters::to('StringTyp', $this->adresseRueckuebermittlung);
        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 an annual VAT return (Umsatzsteuerjahresserklärung) for 2021. */
// @Api(Description="Submits an annual VAT return (Umsatzsteuerjahresserklärung) for 2021.")
class SubmitUmsatzsteuererklaerung2021Base implements IPost, IDruckRequest, IVeschlueselungsRequest, JsonSerializable
{
    public function __construct(
        /** @description Berichtigte Erklärung */
        // @ApiMember(Description="Berichtigte Erklärung", Name="BerErkl")
        /** @var BerErkl2021|null */
        public ?BerErkl2021 $berErkl=null,

        /** @description A. Allgemeine Angaben. */
        // @ApiMember(Description="A. Allgemeine Angaben.", Name="Allg")
        /** @var Allg2021|null */
        public ?Allg2021 $allg=null,

        /** @description Angaben zu den Mitwirkenden, die bei der Anfertigung dieser Steuererklärung einschließlich der Anlagen mitgewirkt haben. */
        // @ApiMember(Description="Angaben zu den Mitwirkenden, die bei der Anfertigung dieser Steuererklärung einschließlich der Anlagen mitgewirkt haben.", Name="Mitwirk")
        /** @var Mitwirk2021|null */
        public ?Mitwirk2021 $mitwirk=null,

        /** @description B. Angaben zur Besteuerung der Kleinunternehmer (§ 19 Absatz 1 UStG). Die Zeilen 33 und 34 sind nur auszufüllen, wenn der Umsatz $VZ-1$ (zuzüglich Steuer) nicht mehr als 22.000 € betragen hat und auf die Anwendung des § 19 Absatz 1 UStG nicht verzichtet worden ist. */
        // @ApiMember(Description="B. Angaben zur Besteuerung der Kleinunternehmer (§ 19 Absatz 1 UStG). Die Zeilen 33 und 34 sind nur auszufüllen, wenn der Umsatz $VZ-1$ (zuzüglich Steuer) nicht mehr als 22.000 € betragen hat und auf die Anwendung des § 19 Absatz 1 UStG nicht verzichtet worden ist.", Name="Kleinuntern")
        /** @var Kleinuntern2021|null */
        public ?Kleinuntern2021 $kleinuntern=null,

        /** @description C. Steuerpflichtige Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben. */
        // @ApiMember(Description="C. Steuerpflichtige Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben.", Name="Umsaetze")
        /** @var Umsaetze2021|null */
        public ?Umsaetze2021 $umsaetze=null,

        /** @description D. Steuerfreie Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben. */
        // @ApiMember(Description="D. Steuerfreie Lieferungen, sonstige Leistungen und unentgeltliche Wertabgaben.", Name="UmsStfrei")
        /** @var UmsStfrei2021|null */
        public ?UmsStfrei2021 $umsStfrei=null,

        /** @description E. Innergemeinschaftliche Erwerbe. */
        // @ApiMember(Description="E. Innergemeinschaftliche Erwerbe.", Name="IgErw")
        /** @var IgErw2021|null */
        public ?IgErw2021 $igErw=null,

        /** @description F. Steuerschuldner bei Auslagerung (§ 13a Absatz 1 Nummer 6 UStG). */
        // @ApiMember(Description="F. Steuerschuldner bei Auslagerung (§ 13a Absatz 1 Nummer 6 UStG).", Name="Auslag13a")
        /** @var Auslag13a2021|null */
        public ?Auslag13a2021 $auslag13a=null,

        /** @description G. Innergemeinschaftliche Dreiecksgeschäfte (§ 25b UStG). */
        // @ApiMember(Description="G. Innergemeinschaftliche Dreiecksgeschäfte (§ 25b UStG).", Name="IgDrei")
        /** @var IgDrei2021|null */
        public ?IgDrei2021 $igDrei=null,

        /** @description H. Leistungsempfänger als Steuerschuldner (§ 13b UStG). */
        // @ApiMember(Description="H. Leistungsempfänger als Steuerschuldner (§ 13b UStG).", Name="Ums13b")
        /** @var Ums13b2021|null */
        public ?Ums13b2021 $ums13b=null,

        /** @description I. Ergänzende Angaben zu Umsätzen. */
        // @ApiMember(Description="I. Ergänzende Angaben zu Umsätzen.", Name="ErgAngUms")
        /** @var ErgAngUms2021|null */
        public ?ErgAngUms2021 $ergAngUms=null,

        /** @description J. Abziehbare Vorsteuerbeträge */
        // @ApiMember(Description="J. Abziehbare Vorsteuerbeträge", Name="AbzVoSt")
        /** @var AbzVoSt2021|null */
        public ?AbzVoSt2021 $abzVoSt=null,

        /** @description K. Berichtigung des Vorsteuerabzugs (§ 15a UStG) */
        // @ApiMember(Description="K. Berichtigung des Vorsteuerabzugs (§ 15a UStG)", Name="BerVoSt15a")
        /** @var BerVoSt15a2021|null */
        public ?BerVoSt15a2021 $berVoSt15a=null,

        /** @description L. Berechnung der zu entrichtenden Umsatzsteuer */
        // @ApiMember(Description="L. Berechnung der zu entrichtenden Umsatzsteuer", Name="BerechUSt")
        /** @var BerechUSt2021|null */
        public ?BerechUSt2021 $berechUSt=null,

        /** @description Anlage UN zur Umsatzsteuererklärung für im Ausland ansässige Unternehmer */
        // @ApiMember(Description="Anlage UN zur Umsatzsteuererklärung für im Ausland ansässige Unternehmer", Name="Un")
        /** @var UN2021|null */
        public ?UN2021 $un=null,

        /** @description Anlage FV zur Umsatzsteuererklärung $VZ$ */
        // @ApiMember(Description="Anlage FV zur Umsatzsteuererklärung $VZ$", Name="Fv")
        /** @var FV2021|null */
        public ?FV2021 $fv=null,

        /** @description Der Vorgang bei einer Veranlagung. */
        // @ApiMember(Description="Der Vorgang bei einer Veranlagung.")
        /** @var VeranlagungVorgangTyp|null */
        public ?VeranlagungVorgangTyp $vorgang=null,

        /** @description Die Steuernummer. Bundeseinheitliche 13-stellige Steuernummer im ELSTER-Steuernummernformat */
        // @ApiMember(Description="Die Steuernummer. Bundeseinheitliche 13-stellige Steuernummer im ELSTER-Steuernummernformat")
        /** @var StringTyp|null */
        public ?StringTyp $stNr=null,

        /** @description Ordnungsbegriff */
        // @ApiMember(Description="Ordnungsbegriff")
        /** @var StringTyp|null */
        public ?StringTyp $ordnungsbegriff=null,

        /** @description Identifikationsnummer steuerpflichtige Person / Ehemann / Person A */
        // @ApiMember(Description="Identifikationsnummer steuerpflichtige Person / Ehemann / Person A")
        /** @var StringTyp|null */
        public ?StringTyp $id=null,

        /** @description Identifikationsnummer Ehefrau / Person B */
        // @ApiMember(Description="Identifikationsnummer Ehefrau / Person B")
        /** @var StringTyp|null */
        public ?StringTyp $idEhefrau=null,

        /** @description Name, alphanumerisch, max. 45-stellig. */
        // @ApiMember(Description="Name, alphanumerisch, max. 45-stellig.")
        /** @var StringTyp|null */
        public ?StringTyp $absName=null,

        /** @description Straße und Hausnummer, alphanumerisch, max. 30-stellig. */
        // @ApiMember(Description="Straße und Hausnummer, alphanumerisch, max. 30-stellig.")
        /** @var StringTyp|null */
        public ?StringTyp $absStr=null,

        /** @description Postleitzahl des Absenders der Erklärung, numerisch, 5-stellig. */
        // @ApiMember(Description="Postleitzahl des Absenders der Erklärung, numerisch, 5-stellig.")
        /** @var StringTyp|null */
        public ?StringTyp $absPlz=null,

        /** @description Ort, alphanumerisch, max. 29-stellig. */
        // @ApiMember(Description="Ort, alphanumerisch, max. 29-stellig.")
        /** @var StringTyp|null */
        public ?StringTyp $absOrt=null,

        /** @description Copyrightmeldung des SW-Herstellers, alphanumerisch, max.50-stellig */
        // @ApiMember(Description="Copyrightmeldung des SW-Herstellers, alphanumerisch, max.50-stellig")
        /** @var StringTyp|null */
        public ?StringTyp $copyright=null,

        /** @description TeleNummer (für finanzamtsinterne Zwecke; keine Eingabe durch Anwender) */
        // @ApiMember(Description="TeleNummer (für finanzamtsinterne Zwecke; keine Eingabe durch Anwender)")
        /** @var StringTyp|null */
        public ?StringTyp $teleNummer=null,

        /** @description Die Art des ermittelten Ordnungsbegriffs zu füllen. */
        // @ApiMember(Description="Die Art des ermittelten Ordnungsbegriffs zu füllen.")
        /** @var OrdNrArtTyp|null */
        public ?OrdNrArtTyp $ordNrArt=null,

        /** @description Die zur Abholung notwendigen Informationen werden hier angegeben. */
        // @ApiMember(Description="Die zur Abholung notwendigen Informationen werden hier angegeben.")
        /** @var E50Rueckuebermittlung|null */
        public ?E50Rueckuebermittlung $rueckuebermittlung=null,

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

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

        /** @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
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['berErkl'])) $this->berErkl = JsonConverters::from('BerErkl2021', $o['berErkl']);
        if (isset($o['allg'])) $this->allg = JsonConverters::from('Allg2021', $o['allg']);
        if (isset($o['mitwirk'])) $this->mitwirk = JsonConverters::from('Mitwirk2021', $o['mitwirk']);
        if (isset($o['kleinuntern'])) $this->kleinuntern = JsonConverters::from('Kleinuntern2021', $o['kleinuntern']);
        if (isset($o['umsaetze'])) $this->umsaetze = JsonConverters::from('Umsaetze2021', $o['umsaetze']);
        if (isset($o['umsStfrei'])) $this->umsStfrei = JsonConverters::from('UmsStfrei2021', $o['umsStfrei']);
        if (isset($o['igErw'])) $this->igErw = JsonConverters::from('IgErw2021', $o['igErw']);
        if (isset($o['auslag13a'])) $this->auslag13a = JsonConverters::from('Auslag13a2021', $o['auslag13a']);
        if (isset($o['igDrei'])) $this->igDrei = JsonConverters::from('IgDrei2021', $o['igDrei']);
        if (isset($o['ums13b'])) $this->ums13b = JsonConverters::from('Ums13b2021', $o['ums13b']);
        if (isset($o['ergAngUms'])) $this->ergAngUms = JsonConverters::from('ErgAngUms2021', $o['ergAngUms']);
        if (isset($o['abzVoSt'])) $this->abzVoSt = JsonConverters::from('AbzVoSt2021', $o['abzVoSt']);
        if (isset($o['berVoSt15a'])) $this->berVoSt15a = JsonConverters::from('BerVoSt15a2021', $o['berVoSt15a']);
        if (isset($o['berechUSt'])) $this->berechUSt = JsonConverters::from('BerechUSt2021', $o['berechUSt']);
        if (isset($o['un'])) $this->un = JsonConverters::from('UN2021', $o['un']);
        if (isset($o['fv'])) $this->fv = JsonConverters::from('FV2021', $o['fv']);
        if (isset($o['vorgang'])) $this->vorgang = JsonConverters::from('VeranlagungVorgangTyp', $o['vorgang']);
        if (isset($o['stNr'])) $this->stNr = JsonConverters::from('StringTyp', $o['stNr']);
        if (isset($o['ordnungsbegriff'])) $this->ordnungsbegriff = JsonConverters::from('StringTyp', $o['ordnungsbegriff']);
        if (isset($o['id'])) $this->id = JsonConverters::from('StringTyp', $o['id']);
        if (isset($o['idEhefrau'])) $this->idEhefrau = JsonConverters::from('StringTyp', $o['idEhefrau']);
        if (isset($o['absName'])) $this->absName = JsonConverters::from('StringTyp', $o['absName']);
        if (isset($o['absStr'])) $this->absStr = JsonConverters::from('StringTyp', $o['absStr']);
        if (isset($o['absPlz'])) $this->absPlz = JsonConverters::from('StringTyp', $o['absPlz']);
        if (isset($o['absOrt'])) $this->absOrt = JsonConverters::from('StringTyp', $o['absOrt']);
        if (isset($o['copyright'])) $this->copyright = JsonConverters::from('StringTyp', $o['copyright']);
        if (isset($o['teleNummer'])) $this->teleNummer = JsonConverters::from('StringTyp', $o['teleNummer']);
        if (isset($o['ordNrArt'])) $this->ordNrArt = JsonConverters::from('OrdNrArtTyp', $o['ordNrArt']);
        if (isset($o['rueckuebermittlung'])) $this->rueckuebermittlung = JsonConverters::from('E50Rueckuebermittlung', $o['rueckuebermittlung']);
        if (isset($o['bundesfinanzamtsnummer'])) $this->bundesfinanzamtsnummer = $o['bundesfinanzamtsnummer'];
        if (isset($o['datenLieferant'])) $this->datenLieferant = $o['datenLieferant'];
        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']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->berErkl)) $o['berErkl'] = JsonConverters::to('BerErkl2021', $this->berErkl);
        if (isset($this->allg)) $o['allg'] = JsonConverters::to('Allg2021', $this->allg);
        if (isset($this->mitwirk)) $o['mitwirk'] = JsonConverters::to('Mitwirk2021', $this->mitwirk);
        if (isset($this->kleinuntern)) $o['kleinuntern'] = JsonConverters::to('Kleinuntern2021', $this->kleinuntern);
        if (isset($this->umsaetze)) $o['umsaetze'] = JsonConverters::to('Umsaetze2021', $this->umsaetze);
        if (isset($this->umsStfrei)) $o['umsStfrei'] = JsonConverters::to('UmsStfrei2021', $this->umsStfrei);
        if (isset($this->igErw)) $o['igErw'] = JsonConverters::to('IgErw2021', $this->igErw);
        if (isset($this->auslag13a)) $o['auslag13a'] = JsonConverters::to('Auslag13a2021', $this->auslag13a);
        if (isset($this->igDrei)) $o['igDrei'] = JsonConverters::to('IgDrei2021', $this->igDrei);
        if (isset($this->ums13b)) $o['ums13b'] = JsonConverters::to('Ums13b2021', $this->ums13b);
        if (isset($this->ergAngUms)) $o['ergAngUms'] = JsonConverters::to('ErgAngUms2021', $this->ergAngUms);
        if (isset($this->abzVoSt)) $o['abzVoSt'] = JsonConverters::to('AbzVoSt2021', $this->abzVoSt);
        if (isset($this->berVoSt15a)) $o['berVoSt15a'] = JsonConverters::to('BerVoSt15a2021', $this->berVoSt15a);
        if (isset($this->berechUSt)) $o['berechUSt'] = JsonConverters::to('BerechUSt2021', $this->berechUSt);
        if (isset($this->un)) $o['un'] = JsonConverters::to('UN2021', $this->un);
        if (isset($this->fv)) $o['fv'] = JsonConverters::to('FV2021', $this->fv);
        if (isset($this->vorgang)) $o['vorgang'] = JsonConverters::to('VeranlagungVorgangTyp', $this->vorgang);
        if (isset($this->stNr)) $o['stNr'] = JsonConverters::to('StringTyp', $this->stNr);
        if (isset($this->ordnungsbegriff)) $o['ordnungsbegriff'] = JsonConverters::to('StringTyp', $this->ordnungsbegriff);
        if (isset($this->id)) $o['id'] = JsonConverters::to('StringTyp', $this->id);
        if (isset($this->idEhefrau)) $o['idEhefrau'] = JsonConverters::to('StringTyp', $this->idEhefrau);
        if (isset($this->absName)) $o['absName'] = JsonConverters::to('StringTyp', $this->absName);
        if (isset($this->absStr)) $o['absStr'] = JsonConverters::to('StringTyp', $this->absStr);
        if (isset($this->absPlz)) $o['absPlz'] = JsonConverters::to('StringTyp', $this->absPlz);
        if (isset($this->absOrt)) $o['absOrt'] = JsonConverters::to('StringTyp', $this->absOrt);
        if (isset($this->copyright)) $o['copyright'] = JsonConverters::to('StringTyp', $this->copyright);
        if (isset($this->teleNummer)) $o['teleNummer'] = JsonConverters::to('StringTyp', $this->teleNummer);
        if (isset($this->ordNrArt)) $o['ordNrArt'] = JsonConverters::to('OrdNrArtTyp', $this->ordNrArt);
        if (isset($this->rueckuebermittlung)) $o['rueckuebermittlung'] = JsonConverters::to('E50Rueckuebermittlung', $this->rueckuebermittlung);
        if (isset($this->bundesfinanzamtsnummer)) $o['bundesfinanzamtsnummer'] = $this->bundesfinanzamtsnummer;
        if (isset($this->datenLieferant)) $o['datenLieferant'] = $this->datenLieferant;
        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);
        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 annual VAT return for 2021. */
// @Api(Description="An asynchronous service to submit an annual VAT return for 2021.")
class SubmitUmsatzsteuererklaerung2021Async extends SubmitUmsatzsteuererklaerung2021Base implements JsonSerializable
{
    /**
     * @param BerErkl2021|null $berErkl
     * @param Allg2021|null $allg
     * @param Mitwirk2021|null $mitwirk
     * @param Kleinuntern2021|null $kleinuntern
     * @param Umsaetze2021|null $umsaetze
     * @param UmsStfrei2021|null $umsStfrei
     * @param IgErw2021|null $igErw
     * @param Auslag13a2021|null $auslag13a
     * @param IgDrei2021|null $igDrei
     * @param Ums13b2021|null $ums13b
     * @param ErgAngUms2021|null $ergAngUms
     * @param AbzVoSt2021|null $abzVoSt
     * @param BerVoSt15a2021|null $berVoSt15a
     * @param BerechUSt2021|null $berechUSt
     * @param UN2021|null $un
     * @param FV2021|null $fv
     * @param VeranlagungVorgangTyp|null $vorgang
     * @param StringTyp|null $stNr
     * @param StringTyp|null $ordnungsbegriff
     * @param StringTyp|null $id
     * @param StringTyp|null $idEhefrau
     * @param StringTyp|null $absName
     * @param StringTyp|null $absStr
     * @param StringTyp|null $absPlz
     * @param StringTyp|null $absOrt
     * @param StringTyp|null $copyright
     * @param StringTyp|null $teleNummer
     * @param OrdNrArtTyp|null $ordNrArt
     * @param E50Rueckuebermittlung|null $rueckuebermittlung
     * @param string $bundesfinanzamtsnummer
     * @param string $datenLieferant
     * @param bool|null $duplexDruck
     * @param string $protocolPrefix
     * @param string|null $fussText
     * @param PortalCertificate|null $zertifikat
     */
    public function __construct(
        ?BerErkl2021 $berErkl=null,
        ?Allg2021 $allg=null,
        ?Mitwirk2021 $mitwirk=null,
        ?Kleinuntern2021 $kleinuntern=null,
        ?Umsaetze2021 $umsaetze=null,
        ?UmsStfrei2021 $umsStfrei=null,
        ?IgErw2021 $igErw=null,
        ?Auslag13a2021 $auslag13a=null,
        ?IgDrei2021 $igDrei=null,
        ?Ums13b2021 $ums13b=null,
        ?ErgAngUms2021 $ergAngUms=null,
        ?AbzVoSt2021 $abzVoSt=null,
        ?BerVoSt15a2021 $berVoSt15a=null,
        ?BerechUSt2021 $berechUSt=null,
        ?UN2021 $un=null,
        ?FV2021 $fv=null,
        ?VeranlagungVorgangTyp $vorgang=null,
        ?StringTyp $stNr=null,
        ?StringTyp $ordnungsbegriff=null,
        ?StringTyp $id=null,
        ?StringTyp $idEhefrau=null,
        ?StringTyp $absName=null,
        ?StringTyp $absStr=null,
        ?StringTyp $absPlz=null,
        ?StringTyp $absOrt=null,
        ?StringTyp $copyright=null,
        ?StringTyp $teleNummer=null,
        ?OrdNrArtTyp $ordNrArt=null,
        ?E50Rueckuebermittlung $rueckuebermittlung=null,
        string $bundesfinanzamtsnummer='',
        string $datenLieferant='',
        ?bool $duplexDruck=null,
        string $protocolPrefix='',
        ?string $fussText=null,
        ?PortalCertificate $zertifikat=null
    ) {
        parent::__construct($berErkl,$allg,$mitwirk,$kleinuntern,$umsaetze,$umsStfrei,$igErw,$auslag13a,$igDrei,$ums13b,$ergAngUms,$abzVoSt,$berVoSt15a,$berechUSt,$un,$fv,$vorgang,$stNr,$ordnungsbegriff,$id,$idEhefrau,$absName,$absStr,$absPlz,$absOrt,$copyright,$teleNummer,$ordNrArt,$rueckuebermittlung,$bundesfinanzamtsnummer,$datenLieferant,$duplexDruck,$protocolPrefix,$fussText,$zertifikat);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['berErkl'])) $this->berErkl = JsonConverters::from('BerErkl2021', $o['berErkl']);
        if (isset($o['allg'])) $this->allg = JsonConverters::from('Allg2021', $o['allg']);
        if (isset($o['mitwirk'])) $this->mitwirk = JsonConverters::from('Mitwirk2021', $o['mitwirk']);
        if (isset($o['kleinuntern'])) $this->kleinuntern = JsonConverters::from('Kleinuntern2021', $o['kleinuntern']);
        if (isset($o['umsaetze'])) $this->umsaetze = JsonConverters::from('Umsaetze2021', $o['umsaetze']);
        if (isset($o['umsStfrei'])) $this->umsStfrei = JsonConverters::from('UmsStfrei2021', $o['umsStfrei']);
        if (isset($o['igErw'])) $this->igErw = JsonConverters::from('IgErw2021', $o['igErw']);
        if (isset($o['auslag13a'])) $this->auslag13a = JsonConverters::from('Auslag13a2021', $o['auslag13a']);
        if (isset($o['igDrei'])) $this->igDrei = JsonConverters::from('IgDrei2021', $o['igDrei']);
        if (isset($o['ums13b'])) $this->ums13b = JsonConverters::from('Ums13b2021', $o['ums13b']);
        if (isset($o['ergAngUms'])) $this->ergAngUms = JsonConverters::from('ErgAngUms2021', $o['ergAngUms']);
        if (isset($o['abzVoSt'])) $this->abzVoSt = JsonConverters::from('AbzVoSt2021', $o['abzVoSt']);
        if (isset($o['berVoSt15a'])) $this->berVoSt15a = JsonConverters::from('BerVoSt15a2021', $o['berVoSt15a']);
        if (isset($o['berechUSt'])) $this->berechUSt = JsonConverters::from('BerechUSt2021', $o['berechUSt']);
        if (isset($o['un'])) $this->un = JsonConverters::from('UN2021', $o['un']);
        if (isset($o['fv'])) $this->fv = JsonConverters::from('FV2021', $o['fv']);
        if (isset($o['vorgang'])) $this->vorgang = JsonConverters::from('VeranlagungVorgangTyp', $o['vorgang']);
        if (isset($o['stNr'])) $this->stNr = JsonConverters::from('StringTyp', $o['stNr']);
        if (isset($o['ordnungsbegriff'])) $this->ordnungsbegriff = JsonConverters::from('StringTyp', $o['ordnungsbegriff']);
        if (isset($o['id'])) $this->id = JsonConverters::from('StringTyp', $o['id']);
        if (isset($o['idEhefrau'])) $this->idEhefrau = JsonConverters::from('StringTyp', $o['idEhefrau']);
        if (isset($o['absName'])) $this->absName = JsonConverters::from('StringTyp', $o['absName']);
        if (isset($o['absStr'])) $this->absStr = JsonConverters::from('StringTyp', $o['absStr']);
        if (isset($o['absPlz'])) $this->absPlz = JsonConverters::from('StringTyp', $o['absPlz']);
        if (isset($o['absOrt'])) $this->absOrt = JsonConverters::from('StringTyp', $o['absOrt']);
        if (isset($o['copyright'])) $this->copyright = JsonConverters::from('StringTyp', $o['copyright']);
        if (isset($o['teleNummer'])) $this->teleNummer = JsonConverters::from('StringTyp', $o['teleNummer']);
        if (isset($o['ordNrArt'])) $this->ordNrArt = JsonConverters::from('OrdNrArtTyp', $o['ordNrArt']);
        if (isset($o['rueckuebermittlung'])) $this->rueckuebermittlung = JsonConverters::from('E50Rueckuebermittlung', $o['rueckuebermittlung']);
        if (isset($o['bundesfinanzamtsnummer'])) $this->bundesfinanzamtsnummer = $o['bundesfinanzamtsnummer'];
        if (isset($o['datenLieferant'])) $this->datenLieferant = $o['datenLieferant'];
        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']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->berErkl)) $o['berErkl'] = JsonConverters::to('BerErkl2021', $this->berErkl);
        if (isset($this->allg)) $o['allg'] = JsonConverters::to('Allg2021', $this->allg);
        if (isset($this->mitwirk)) $o['mitwirk'] = JsonConverters::to('Mitwirk2021', $this->mitwirk);
        if (isset($this->kleinuntern)) $o['kleinuntern'] = JsonConverters::to('Kleinuntern2021', $this->kleinuntern);
        if (isset($this->umsaetze)) $o['umsaetze'] = JsonConverters::to('Umsaetze2021', $this->umsaetze);
        if (isset($this->umsStfrei)) $o['umsStfrei'] = JsonConverters::to('UmsStfrei2021', $this->umsStfrei);
        if (isset($this->igErw)) $o['igErw'] = JsonConverters::to('IgErw2021', $this->igErw);
        if (isset($this->auslag13a)) $o['auslag13a'] = JsonConverters::to('Auslag13a2021', $this->auslag13a);
        if (isset($this->igDrei)) $o['igDrei'] = JsonConverters::to('IgDrei2021', $this->igDrei);
        if (isset($this->ums13b)) $o['ums13b'] = JsonConverters::to('Ums13b2021', $this->ums13b);
        if (isset($this->ergAngUms)) $o['ergAngUms'] = JsonConverters::to('ErgAngUms2021', $this->ergAngUms);
        if (isset($this->abzVoSt)) $o['abzVoSt'] = JsonConverters::to('AbzVoSt2021', $this->abzVoSt);
        if (isset($this->berVoSt15a)) $o['berVoSt15a'] = JsonConverters::to('BerVoSt15a2021', $this->berVoSt15a);
        if (isset($this->berechUSt)) $o['berechUSt'] = JsonConverters::to('BerechUSt2021', $this->berechUSt);
        if (isset($this->un)) $o['un'] = JsonConverters::to('UN2021', $this->un);
        if (isset($this->fv)) $o['fv'] = JsonConverters::to('FV2021', $this->fv);
        if (isset($this->vorgang)) $o['vorgang'] = JsonConverters::to('VeranlagungVorgangTyp', $this->vorgang);
        if (isset($this->stNr)) $o['stNr'] = JsonConverters::to('StringTyp', $this->stNr);
        if (isset($this->ordnungsbegriff)) $o['ordnungsbegriff'] = JsonConverters::to('StringTyp', $this->ordnungsbegriff);
        if (isset($this->id)) $o['id'] = JsonConverters::to('StringTyp', $this->id);
        if (isset($this->idEhefrau)) $o['idEhefrau'] = JsonConverters::to('StringTyp', $this->idEhefrau);
        if (isset($this->absName)) $o['absName'] = JsonConverters::to('StringTyp', $this->absName);
        if (isset($this->absStr)) $o['absStr'] = JsonConverters::to('StringTyp', $this->absStr);
        if (isset($this->absPlz)) $o['absPlz'] = JsonConverters::to('StringTyp', $this->absPlz);
        if (isset($this->absOrt)) $o['absOrt'] = JsonConverters::to('StringTyp', $this->absOrt);
        if (isset($this->copyright)) $o['copyright'] = JsonConverters::to('StringTyp', $this->copyright);
        if (isset($this->teleNummer)) $o['teleNummer'] = JsonConverters::to('StringTyp', $this->teleNummer);
        if (isset($this->ordNrArt)) $o['ordNrArt'] = JsonConverters::to('OrdNrArtTyp', $this->ordNrArt);
        if (isset($this->rueckuebermittlung)) $o['rueckuebermittlung'] = JsonConverters::to('E50Rueckuebermittlung', $this->rueckuebermittlung);
        if (isset($this->bundesfinanzamtsnummer)) $o['bundesfinanzamtsnummer'] = $this->bundesfinanzamtsnummer;
        if (isset($this->datenLieferant)) $o['datenLieferant'] = $this->datenLieferant;
        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);
        return empty($o) ? new class(){} : $o;
    }
}

PHP SubmitUmsatzsteuererklaerung2021Async DTOs

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

HTTP + X-MSGPACK

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

POST /SubmitUmsatzsteuererklaerung2021Async HTTP/1.1 
Host: taxfiling.pwc.de 
Accept: application/x-msgpack
Content-Type: application/x-msgpack
Content-Length: length

{"berErkl":{"e3000601":{"wert":false,"alias":"String"},"e3000013":{"wert":false,"alias":"String"}},"allg":{"unternehmen":{"e3000901":{"wert":"String","alias":"String"},"e3000902":{"wert":"String","alias":"String"},"e3001001":{"wert":"String","alias":"String"},"adr":{"e3001101":{"wert":"String","alias":"String"},"e3001203":{"wert":"String","alias":"String"},"e3001204":{"wert":"String","alias":"String"},"e3001205":{"wert":"String","alias":"String"},"e3001201":{"wert":"String","alias":"String"},"e3001403":{"wert":"String","alias":"String"},"e3001404":{"wert":"String","alias":"String"}},"kontakt":{"e3001202":{"wert":"String","alias":"String"},"e3001301":{"wert":"String","alias":"String"}}},"imAuslAnsUnt":{"e3001402":{"wert":false,"alias":"String"}},"fiskalvetr":{"e3001801":{"wert":false,"alias":"String"}},"dauerUntEig":{"e3001401":{"wert":{"start":"\/Date(-62135596800000-0000)\/","ende":"\/Date(-62135596800000-0000)\/"},"alias":"String"},"e3001501":{"wert":{"start":"\/Date(-62135596800000-0000)\/","ende":"\/Date(-62135596800000-0000)\/"},"alias":"String"}},"bestArt":{"e3002203":{"wert":1,"alias":"String"}},"verrech":{"e3001701":{"wert":false,"alias":"String"}},"ergAngErkl":{"e3002201":{"wert":false,"alias":"String"},"e3002202":{"wert":"String","alias":"String"}}},"mitwirk":{"kanzlei":{"e3002509":{"wert":"String","alias":"String"},"e3002506":{"wert":"String","alias":"String"},"e3002507":{"wert":"String","alias":"String"}},"bearb":{"e3002501":{"wert":"String","alias":"String"},"e3002502":{"wert":"String","alias":"String"}},"adr":{"e3002503":{"wert":"String","alias":"String"},"e3002504":{"wert":"String","alias":"String"}},"kontakt":{"e3002505":{"wert":"String","alias":"String"},"e3002508":{"wert":"String","alias":"String"}},"mitwirkErkl":{"e3002602":{"wert":false,"alias":"String"}}},"kleinuntern":{"e3002301":{"betrag":{"wert":0},"alias":"String"},"e3002401":{"betrag":{"wert":0},"alias":"String"}},"umsaetze":{"umsAllg":{"e3003303":{"betrag":{"wert":0},"alias":"String"},"e3003304":{"betrag":{"wert":0},"alias":"String"},"e3003405":{"betrag":{"wert":0},"alias":"String"},"e3003406":{"betrag":{"wert":0},"alias":"String"},"e3003505":{"betrag":{"wert":0},"alias":"String"},"e3003506":{"betrag":{"wert":0},"alias":"String"}},"umsErm":{"e3004401":{"betrag":{"wert":0},"alias":"String"},"e3004402":{"betrag":{"wert":0},"alias":"String"},"e3003703":{"betrag":{"wert":0},"alias":"String"},"e3003704":{"betrag":{"wert":0},"alias":"String"},"e3003803":{"betrag":{"wert":0},"alias":"String"},"e3003804":{"betrag":{"wert":0},"alias":"String"}},"umsAnd":{"e3005001":{"betrag":{"wert":0},"alias":"String"},"e3005002":{"betrag":{"wert":0},"alias":"String"}},"umsLuf":{"e3005201":{"betrag":{"wert":0},"alias":"String"},"e3005301":{"betrag":{"wert":0},"alias":"String"},"e3005302":{"betrag":{"wert":0},"alias":"String"},"e3005003":{"betrag":{"wert":0},"alias":"String"},"e3005004":{"betrag":{"wert":0},"alias":"String"},"e3005701":{"betrag":{"wert":0},"alias":"String"},"e3005702":{"betrag":{"wert":0},"alias":"String"},"e3005801":{"betrag":{"wert":0},"alias":"String"}},"wechsBestForm":{"e3102901":{"betrag":{"wert":0},"alias":"String"}},"nachstStSatzAend":{"e3005901":{"betrag":{"wert":0},"alias":"String"}},"umsSum":{"e3006001":{"betrag":{"wert":0},"alias":"String"}}},"umsStfrei":{"mitVoStAbz":{"igLfg":{"e3103301":{"betrag":{"wert":0},"alias":"String"},"e3103401":{"betrag":{"wert":0},"alias":"String"},"e3103501":{"betrag":{"wert":0},"alias":"String"}},"umsStFreiWeit":{"e3103801":{"betrag":{"wert":0},"alias":"String"},"e3103901":{"wert":"String","alias":"String"},"e3103902":{"betrag":{"wert":0},"alias":"String"},"e3104001":{"betrag":{"wert":0},"alias":"String"},"e3104101":{"betrag":{"wert":0},"alias":"String"},"e3104201":{"betrag":{"wert":0},"alias":"String"}}},"ohneVoStAbz":{"nichtGesUms":{"e3104401":{"betrag":{"wert":0},"alias":"String"},"e3104501":{"wert":"String","alias":"String"},"e3104502":{"betrag":{"wert":0},"alias":"String"},"e3104601":{"betrag":{"wert":0},"alias":"String"}},"gesUms":{"e3104901":{"wert":"String","alias":"String"},"e3104902":{"betrag":{"wert":0},"alias":"String"}}}},"igErw":{"stfrei":{"e3100901":{"betrag":{"wert":0},"alias":"String"}},"stpfl":{"e3100902":{"betrag":{"wert":0},"alias":"String"},"e3100903":{"betrag":{"wert":0},"alias":"String"},"e3101301":{"betrag":{"wert":0},"alias":"String"},"e3101302":{"betrag":{"wert":0},"alias":"String"},"e3101303":{"betrag":{"wert":0},"alias":"String"},"e3101304":{"betrag":{"wert":0},"alias":"String"},"e3101401":{"betrag":{"wert":0},"alias":"String"},"e3101402":{"betrag":{"wert":0},"alias":"String"}},"igErwSum":{"e3101501":{"betrag":{"wert":0},"alias":"String"}}},"auslag13a":{"e3102804":{"betrag":{"wert":0},"alias":"String"},"e3102805":{"betrag":{"wert":0},"alias":"String"},"auslag13aSum":{"e3102904":{"betrag":{"wert":0},"alias":"String"}}},"igDrei":{"lfgErstAbn":{"e3101801":{"betrag":{"wert":0},"alias":"String"}},"lfgLetztAbn":{"e3101701":{"betrag":{"wert":0},"alias":"String"},"e3101702":{"betrag":{"wert":0},"alias":"String"},"e3102301":{"betrag":{"wert":0},"alias":"String"},"e3102302":{"betrag":{"wert":0},"alias":"String"},"e3102303":{"betrag":{"wert":0},"alias":"String"},"e3102304":{"betrag":{"wert":0},"alias":"String"}},"igDreiSum":{"e3102401":{"betrag":{"wert":0},"alias":"String"}}},"ums13b":{"e3102205":{"betrag":{"wert":0},"alias":"String"},"e3102206":{"betrag":{"wert":0},"alias":"String"},"e3102307":{"betrag":{"wert":0},"alias":"String"},"e3102308":{"betrag":{"wert":0},"alias":"String"},"e3102503":{"betrag":{"wert":0},"alias":"String"},"e3102504":{"betrag":{"wert":0},"alias":"String"},"ums13bSum":{"e3102601":{"betrag":{"wert":0},"alias":"String"}}},"ergAngUms":{"e3105201":{"betrag":{"wert":0},"alias":"String"},"e3105301":{"betrag":{"wert":0},"alias":"String"},"e3105501":{"betrag":{"wert":0},"alias":"String"},"e3105601":{"betrag":{"wert":0},"alias":"String"},"e3105101":{"betrag":{"wert":0},"alias":"String"},"e3105102":{"betrag":{"wert":0},"alias":"String"},"e3105602":{"betrag":{"wert":0},"alias":"String"},"e3105702":{"betrag":{"wert":0},"alias":"String"},"e3105801":{"betrag":{"wert":0},"alias":"String"},"e3105901":{"betrag":{"wert":0},"alias":"String"},"e3106001":{"betrag":{"wert":0},"alias":"String"},"e3106101":{"betrag":{"wert":0},"alias":"String"}},"abzVoSt":{"e3006201":{"betrag":{"wert":0},"alias":"String"},"e3006301":{"betrag":{"wert":0},"alias":"String"},"e3006401":{"betrag":{"wert":0},"alias":"String"},"e3006503":{"betrag":{"wert":0},"alias":"String"},"e3006502":{"betrag":{"wert":0},"alias":"String"},"e3006501":{"betrag":{"wert":0},"alias":"String"},"e3006601":{"betrag":{"wert":0},"alias":"String"},"e3006701":{"betrag":{"wert":0},"alias":"String"},"e3006801":{"betrag":{"wert":0},"alias":"String"},"abzVoStSum":{"e3006901":{"betrag":{"wert":0},"alias":"String"}},"ergAng":{"e3007001":{"betrag":{"wert":0},"alias":"String"}}},"berVoSt15a":{"grdstErstmVerw":{"e3007301":{"wert":false,"alias":"String"},"angGrdst":{"e3007401":{"wert":"String","alias":"String"},"e3007402":{"wert":"\/Date(-62135596800000-0000)\/","alias":"String"},"e3007403":{"wert":"String","alias":"String"},"e3007404":{"betrag":{"wert":0},"alias":"String"},"e3007405":{"betrag":{"wert":0},"alias":"String"},"e3007406":{"betrag":{"wert":0},"alias":"String"}}},"aendVerh":{"e3007601":{"wert":false,"alias":"String"},"e3008501":{"wert":false,"alias":"String"},"e3008601":{"wert":false,"alias":"String"}},"grundAendVerh":{"e3007801":{"wert":false,"alias":"String"},"e3007802":{"wert":false,"alias":"String"},"e3007803":{"wert":false,"alias":"String"},"nutzAend":{"e3007901":{"wert":false,"alias":"String"},"e3008001":{"wert":false,"alias":"String"},"e3008202":{"wert":false,"alias":"String"},"e3008401":{"wert":false,"alias":"String"},"e3008402":{"wert":"String","alias":"String"}}},"voStBerBetr":{"e3008701":{"betrag":{"wert":0},"alias":"String"},"e3008702":{"betrag":{"wert":0},"alias":"String"},"e3008801":{"betrag":{"wert":0},"alias":"String"},"e3008802":{"betrag":{"wert":0},"alias":"String"},"e3008803":{"betrag":{"wert":0},"alias":"String"},"e3008804":{"betrag":{"wert":0},"alias":"String"},"voStBerBetrSum":{"e3008901":{"betrag":{"wert":0},"alias":"String"},"e3008902":{"betrag":{"wert":0},"alias":"String"}}}},"berechUSt":{"e3009201":{"betrag":{"wert":0},"alias":"String"},"e3009401":{"betrag":{"wert":0},"alias":"String"},"e3009602":{"betrag":{"wert":0},"alias":"String"},"e3009501":{"betrag":{"wert":0},"alias":"String"},"e3009502":{"betrag":{"wert":0},"alias":"String"},"e3009801":{"betrag":{"wert":0},"alias":"String"},"e3009901":{"betrag":{"wert":0},"alias":"String"},"e3010001":{"betrag":{"wert":0},"alias":"String"},"e3010201":{"betrag":{"wert":0},"alias":"String"},"e3009701":{"betrag":{"wert":0},"alias":"String"},"e3010301":{"betrag":{"wert":0},"alias":"String"},"e3010401":{"betrag":{"wert":0},"alias":"String"},"e3010501":{"betrag":{"wert":0},"alias":"String"},"e3010601":{"betrag":{"wert":0},"alias":"String"},"e3010602":{"betrag":{"wert":0},"alias":"String"},"verblUSt":{"e3011101":{"betrag":{"wert":0},"alias":"String"},"e3011301":{"betrag":{"wert":0},"alias":"String"}},"zahlErstatt":{"e3011401":{"betrag":{"wert":0},"alias":"String"}}},"un":{"allg":{"bank":{"e3201001":{"wert":"String","alias":"String"},"e3201002":{"wert":"String","alias":"String"},"e3200901":{"wert":"String","alias":"String"},"e3200902":{"wert":"String","alias":"String"},"e3200904":{"wert":false,"alias":"String"},"e3200905":{"wert":"String","alias":"String"}},"vollm":{"e3201301":{"wert":false,"alias":"String"},"e3201401":{"wert":false,"alias":"String"},"e3201501":{"wert":"String","alias":"String"},"e3201601":{"wert":"String","alias":"String"},"e3201302":{"wert":"String","alias":"String"},"e3201303":{"wert":"String","alias":"String"},"e3201304":{"wert":"String","alias":"String"},"e3201402":{"wert":"String","alias":"String"},"e3201503":{"wert":"String","alias":"String"},"e3201504":{"wert":"String","alias":"String"},"e3201602":{"wert":"String","alias":"String"},"e3201502":{"wert":"String","alias":"String"},"angUnterschr":{"e3201701":{"wert":false,"alias":"String"}}}},"voStVerguetBZSt":{"e3201101":{"wert":false,"alias":"String"}},"anrechBetr":{"e3201902":{"betrag":{"wert":0},"alias":"String"},"e3202002":{"betrag":{"wert":0},"alias":"String"},"e3202102":{"betrag":{"wert":0},"alias":"String"}},"ergAngUms":{"instpflUmsEnt":{"e3201901":{"betrag":{"wert":0},"alias":"String"}},"instpflUmsNichtEnt":{"sonstLstgElekr":{"e3202901":{"wert":"String","alias":"String"},"e3202902":{"wert":"\/Date(-62135596800000-0000)\/","alias":"String"},"e3202903":{"wert":"\/Date(-62135596800000-0000)\/","alias":"String"},"e3202904":{"wert":"String","alias":"String"},"e3202905":{"betrag":{"wert":0},"alias":"String"}}}}},"fv":{"aufstAllerVertrUnt":{"einzs":[{"e3300201":{"wert":"String","alias":"String"},"e3300202":{"wert":"String","alias":"String"},"e3300203":{"wert":"String","alias":"String"},"e3300204":{"betrag":{"wert":0},"alias":"String"}}],"sum":{"e3300301":{"betrag":{"wert":0},"alias":"String"}}}},"vorgang":{"wert":"NurVeranlagung","alias":"String"},"stNr":{"wert":"String","alias":"String"},"ordnungsbegriff":{"wert":"String","alias":"String"},"id":{"wert":"String","alias":"String"},"idEhefrau":{"wert":"String","alias":"String"},"absName":{"wert":"String","alias":"String"},"absStr":{"wert":"String","alias":"String"},"absPlz":{"wert":"String","alias":"String"},"absOrt":{"wert":"String","alias":"String"},"copyright":{"wert":"String","alias":"String"},"teleNummer":{"wert":"String","alias":"String"},"ordNrArt":{"wert":"S","alias":"String"},"rueckuebermittlung":{"bescheid":{"wert":false,"alias":"String"},"artRueckuebermittlung":{"wert":"String","alias":"String"},"schluesselRueckuebermittlung":{"wert":"String","alias":"String"},"adresseRueckuebermittlung":{"wert":"String","alias":"String"}},"bundesfinanzamtsnummer":"String","datenLieferant":"String","duplexDruck":false,"protocolPrefix":"String","fussText":"String","zertifikat":{"id":"00000000000000000000000000000000","index":0,"pin":"String","description":"String","tags":["String"],"name":"String","content":"AA=="}}
HTTP/1.1 200 OK
Content-Type: application/x-msgpack
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"}}}