"""This file was generated by xsdata, v25.4, on 2025-04-15 20:53:14

Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
"""

from dataclasses import dataclass, field
from typing import Optional

__NAMESPACE__ = "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeRecepcaoSinc"


@dataclass
class MdfeDadosMsg:
    class Meta:
        name = "mdfeDadosMsg"
        namespace = "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeRecepcaoSinc"

    value: str = field(
        default="",
        metadata={
            "required": True,
        },
    )


@dataclass
class MdfeRecepcaoResult:
    class Meta:
        name = "mdfeRecepcaoResult"
        namespace = "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeRecepcaoSinc"

    content: list[object] = field(
        default_factory=list,
        metadata={
            "type": "Wildcard",
            "namespace": "##any",
            "mixed": True,
        },
    )


@dataclass
class MdfeRecepcaoSincSoap12MdfeRecepcaoInput:
    class Meta:
        name = "Envelope"
        namespace = "http://schemas.xmlsoap.org/soap/envelope/"

    body: Optional["MdfeRecepcaoSincSoap12MdfeRecepcaoInput.Body"] = field(
        default=None,
        metadata={
            "name": "Body",
            "type": "Element",
        },
    )

    @dataclass
    class Body:
        mdfeDadosMsg: Optional[MdfeDadosMsg] = field(
            default=None,
            metadata={
                "type": "Element",
                "namespace": "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeRecepcaoSinc",
            },
        )


@dataclass
class MdfeRecepcaoSincSoap12MdfeRecepcaoOutput:
    class Meta:
        name = "Envelope"
        namespace = "http://schemas.xmlsoap.org/soap/envelope/"

    body: Optional["MdfeRecepcaoSincSoap12MdfeRecepcaoOutput.Body"] = field(
        default=None,
        metadata={
            "name": "Body",
            "type": "Element",
        },
    )

    @dataclass
    class Body:
        mdfeRecepcaoResult: Optional[MdfeRecepcaoResult] = field(
            default=None,
            metadata={
                "type": "Element",
                "namespace": "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeRecepcaoSinc",
            },
        )
        fault: Optional[
            "MdfeRecepcaoSincSoap12MdfeRecepcaoOutput.Body.Fault"
        ] = field(
            default=None,
            metadata={
                "name": "Fault",
                "type": "Element",
            },
        )

        @dataclass
        class Fault:
            faultcode: Optional[str] = field(
                default=None,
                metadata={
                    "type": "Element",
                    "namespace": "",
                },
            )
            faultstring: Optional[str] = field(
                default=None,
                metadata={
                    "type": "Element",
                    "namespace": "",
                },
            )
            faultactor: Optional[str] = field(
                default=None,
                metadata={
                    "type": "Element",
                    "namespace": "",
                },
            )
            detail: Optional[str] = field(
                default=None,
                metadata={
                    "type": "Element",
                    "namespace": "",
                },
            )


class MdfeRecepcaoSincSoap12MdfeRecepcao:
    style = "document"
    location = (
        "https://mdfe.svrs.rs.gov.br/ws/MDFeRecepcaoSinc/MDFeRecepcaoSinc.asmx"
    )
    transport = "http://schemas.xmlsoap.org/soap/http"
    soapAction = "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeRecepcaoSinc/mdfeRecepcao"
    input = MdfeRecepcaoSincSoap12MdfeRecepcaoInput
    output = MdfeRecepcaoSincSoap12MdfeRecepcaoOutput
