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

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

from dataclasses import dataclass, field
from typing import Optional

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


@dataclass
class MdfeCabecMsg:
    class Meta:
        name = "mdfeCabecMsg"
        namespace = "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeConsNaoEnc"

    cUF: Optional[str] = field(
        default=None,
        metadata={
            "type": "Element",
        },
    )
    versaoDados: Optional[str] = field(
        default=None,
        metadata={
            "type": "Element",
        },
    )
    any_attributes: dict[str, str] = field(
        default_factory=dict,
        metadata={
            "type": "Attributes",
            "namespace": "##any",
        },
    )


@dataclass
class MdfeConsNaoEncResult:
    class Meta:
        name = "mdfeConsNaoEncResult"
        namespace = "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeConsNaoEnc"

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


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

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


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

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

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

    @dataclass
    class Header:
        mdfeCabecMsg: Optional[MdfeCabecMsg] = field(
            default=None,
            metadata={
                "type": "Element",
                "namespace": "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeConsNaoEnc",
            },
        )


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

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

    @dataclass
    class Body:
        mdfeConsNaoEncResult: Optional[MdfeConsNaoEncResult] = field(
            default=None,
            metadata={
                "type": "Element",
                "namespace": "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeConsNaoEnc",
            },
        )
        fault: Optional[
            "MdfeConsNaoEncSoap12MdfeConsNaoEncOutput.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": "",
                },
            )

    @dataclass
    class Header:
        mdfeCabecMsg: Optional[MdfeCabecMsg] = field(
            default=None,
            metadata={
                "type": "Element",
                "namespace": "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeConsNaoEnc",
            },
        )


class MdfeConsNaoEncSoap12MdfeConsNaoEnc:
    style = "document"
    location = (
        "https://mdfe.svrs.rs.gov.br/ws/MDFeConsNaoEnc/MDFeConsNaoEnc.asmx"
    )
    transport = "http://schemas.xmlsoap.org/soap/http"
    soapAction = "http://www.portalfiscal.inf.br/mdfe/wsdl/MDFeConsNaoEnc/mdfeConsNaoEnc"
    input = MdfeConsNaoEncSoap12MdfeConsNaoEncInput
    output = MdfeConsNaoEncSoap12MdfeConsNaoEncOutput
