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

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

from dataclasses import dataclass, field
from typing import Optional

__NAMESPACE__ = "http://www.portalfiscal.inf.br/cte/wsdl/CTeRecepcaoSincV4"


@dataclass
class CteDadosMsg:
    class Meta:
        name = "cteDadosMsg"
        namespace = "http://www.portalfiscal.inf.br/cte/wsdl/CTeRecepcaoSincV4"

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


@dataclass
class CteRecepcaoResult:
    class Meta:
        name = "cteRecepcaoResult"
        namespace = "http://www.portalfiscal.inf.br/cte/wsdl/CTeRecepcaoSincV4"

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


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

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

    @dataclass
    class Body:
        cteDadosMsg: Optional[CteDadosMsg] = field(
            default=None,
            metadata={
                "type": "Element",
                "namespace": "http://www.portalfiscal.inf.br/cte/wsdl/CTeRecepcaoSincV4",
            },
        )


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

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

    @dataclass
    class Body:
        cteRecepcaoResult: Optional[CteRecepcaoResult] = field(
            default=None,
            metadata={
                "type": "Element",
                "namespace": "http://www.portalfiscal.inf.br/cte/wsdl/CTeRecepcaoSincV4",
            },
        )
        fault: Optional[
            "CteRecepcaoSincV4Soap12CteRecepcaoOutput.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 CteRecepcaoSincV4Soap12CteRecepcao:
    style = "document"
    location = "https://cte.svrs.rs.gov.br/ws/CTeRecepcaoSincV4/CTeRecepcaoSincV4.asmx"
    transport = "http://schemas.xmlsoap.org/soap/http"
    soapAction = (
        "http://www.portalfiscal.inf.br/cte/wsdl/CTeRecepcaoSincV4/cteRecepcao"
    )
    input = CteRecepcaoSincV4Soap12CteRecepcaoInput
    output = CteRecepcaoSincV4Soap12CteRecepcaoOutput
