From b032e91ba159c489f3079b572953d8dd5901ee0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Mon, 11 Oct 2021 00:37:45 -0300 Subject: [PATCH 1/3] nfe: WSDL files from nfe.svrs.rs.gov.br --- nfelib/nfe/wsdl/cadconsultacadastro4.wsdl | 42 ++++++++ nfelib/nfe/wsdl/nfeautorizacao4.wsdl | 112 ++++++++++++++++++++++ nfelib/nfe/wsdl/nfeconsulta4.wsdl | 65 +++++++++++++ nfelib/nfe/wsdl/nfedistribuicaodfe.wsdl | 77 +++++++++++++++ nfelib/nfe/wsdl/nfeinutilizacao4.wsdl | 65 +++++++++++++ nfelib/nfe/wsdl/nferetautorizacao4.wsdl | 65 +++++++++++++ nfelib/nfe/wsdl/nfestatusservico4.wsdl | 65 +++++++++++++ nfelib/nfe/wsdl/recepcaoevento4.wsdl | 65 +++++++++++++ wsdl/nfe/nfeautorizacao4.wsdl | 112 ++++++++++++++++++++++ wsdl/nfe/nfeconsulta4.wsdl | 65 +++++++++++++ wsdl/nfe/nfeinutilizacao4.wsdl | 65 +++++++++++++ wsdl/nfe/nferetautorizacao4.wsdl | 65 +++++++++++++ wsdl/nfe/nfestatusservico4.wsdl | 65 +++++++++++++ wsdl/nfe/recepcaoevento4.wsdl | 65 +++++++++++++ 14 files changed, 993 insertions(+) create mode 100644 nfelib/nfe/wsdl/cadconsultacadastro4.wsdl create mode 100644 nfelib/nfe/wsdl/nfeautorizacao4.wsdl create mode 100644 nfelib/nfe/wsdl/nfeconsulta4.wsdl create mode 100644 nfelib/nfe/wsdl/nfedistribuicaodfe.wsdl create mode 100644 nfelib/nfe/wsdl/nfeinutilizacao4.wsdl create mode 100644 nfelib/nfe/wsdl/nferetautorizacao4.wsdl create mode 100644 nfelib/nfe/wsdl/nfestatusservico4.wsdl create mode 100644 nfelib/nfe/wsdl/recepcaoevento4.wsdl create mode 100644 wsdl/nfe/nfeautorizacao4.wsdl create mode 100644 wsdl/nfe/nfeconsulta4.wsdl create mode 100644 wsdl/nfe/nfeinutilizacao4.wsdl create mode 100644 wsdl/nfe/nferetautorizacao4.wsdl create mode 100644 wsdl/nfe/nfestatusservico4.wsdl create mode 100644 wsdl/nfe/recepcaoevento4.wsdl diff --git a/nfelib/nfe/wsdl/cadconsultacadastro4.wsdl b/nfelib/nfe/wsdl/cadconsultacadastro4.wsdl new file mode 100644 index 00000000..4e0b05d2 --- /dev/null +++ b/nfelib/nfe/wsdl/cadconsultacadastro4.wsdl @@ -0,0 +1,42 @@ + + + + The resource cannot be found. + + + + + + +

Server Error in '/WS' Application.

+ +

The resource cannot be found.

+ + + + Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. +

+ + Requested URL: /ws/cadconsultacadastro/cadconsultacadastro4.asmx

+ +
+ + + diff --git a/nfelib/nfe/wsdl/nfeautorizacao4.wsdl b/nfelib/nfe/wsdl/nfeautorizacao4.wsdl new file mode 100644 index 00000000..dc869d57 --- /dev/null +++ b/nfelib/nfe/wsdl/nfeautorizacao4.wsdl @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nfelib/nfe/wsdl/nfeconsulta4.wsdl b/nfelib/nfe/wsdl/nfeconsulta4.wsdl new file mode 100644 index 00000000..8b1383da --- /dev/null +++ b/nfelib/nfe/wsdl/nfeconsulta4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nfelib/nfe/wsdl/nfedistribuicaodfe.wsdl b/nfelib/nfe/wsdl/nfedistribuicaodfe.wsdl new file mode 100644 index 00000000..12fb79a4 --- /dev/null +++ b/nfelib/nfe/wsdl/nfedistribuicaodfe.wsdl @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nfelib/nfe/wsdl/nfeinutilizacao4.wsdl b/nfelib/nfe/wsdl/nfeinutilizacao4.wsdl new file mode 100644 index 00000000..2ed4054a --- /dev/null +++ b/nfelib/nfe/wsdl/nfeinutilizacao4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nfelib/nfe/wsdl/nferetautorizacao4.wsdl b/nfelib/nfe/wsdl/nferetautorizacao4.wsdl new file mode 100644 index 00000000..9562dce9 --- /dev/null +++ b/nfelib/nfe/wsdl/nferetautorizacao4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nfelib/nfe/wsdl/nfestatusservico4.wsdl b/nfelib/nfe/wsdl/nfestatusservico4.wsdl new file mode 100644 index 00000000..5aa54c56 --- /dev/null +++ b/nfelib/nfe/wsdl/nfestatusservico4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nfelib/nfe/wsdl/recepcaoevento4.wsdl b/nfelib/nfe/wsdl/recepcaoevento4.wsdl new file mode 100644 index 00000000..850ebabe --- /dev/null +++ b/nfelib/nfe/wsdl/recepcaoevento4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdl/nfe/nfeautorizacao4.wsdl b/wsdl/nfe/nfeautorizacao4.wsdl new file mode 100644 index 00000000..dc869d57 --- /dev/null +++ b/wsdl/nfe/nfeautorizacao4.wsdl @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdl/nfe/nfeconsulta4.wsdl b/wsdl/nfe/nfeconsulta4.wsdl new file mode 100644 index 00000000..8b1383da --- /dev/null +++ b/wsdl/nfe/nfeconsulta4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdl/nfe/nfeinutilizacao4.wsdl b/wsdl/nfe/nfeinutilizacao4.wsdl new file mode 100644 index 00000000..2ed4054a --- /dev/null +++ b/wsdl/nfe/nfeinutilizacao4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdl/nfe/nferetautorizacao4.wsdl b/wsdl/nfe/nferetautorizacao4.wsdl new file mode 100644 index 00000000..9562dce9 --- /dev/null +++ b/wsdl/nfe/nferetautorizacao4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdl/nfe/nfestatusservico4.wsdl b/wsdl/nfe/nfestatusservico4.wsdl new file mode 100644 index 00000000..5aa54c56 --- /dev/null +++ b/wsdl/nfe/nfestatusservico4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdl/nfe/recepcaoevento4.wsdl b/wsdl/nfe/recepcaoevento4.wsdl new file mode 100644 index 00000000..850ebabe --- /dev/null +++ b/wsdl/nfe/recepcaoevento4.wsdl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 68ff52efcdd1322a62741bfe134b4cbe11958230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Sat, 24 Jun 2023 19:01:39 -0300 Subject: [PATCH 2/3] Substitution items for soap generation --- .xsdata.xml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.xsdata.xml b/.xsdata.xml index 69476f3f..41f39a87 100644 --- a/.xsdata.xml +++ b/.xsdata.xml @@ -18,7 +18,7 @@ - + @@ -27,8 +27,13 @@ - - + + + + + + + From 3979c0674bf4bc65cbd06e03b75421d0e5e890bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Sat, 24 Jun 2023 19:04:10 -0300 Subject: [PATCH 3/3] find nfelib/nfe/wsdl | xargs -n1 xsdata generate --package nfelib.nfe.soap --include-header --- nfelib/nfe/soap/__init__.py | 0 nfelib/nfe/soap/mod.py | 853 ++++++++++++++++++++++++++ nfelib/nfe/soap/nfeautorizacao4.py | 313 ++++++++++ nfelib/nfe/soap/nfeconsulta4.py | 140 +++++ nfelib/nfe/soap/nfedistribuicaodfe.py | 156 +++++ nfelib/nfe/soap/nfeinutilizacao4.py | 140 +++++ nfelib/nfe/soap/nferetautorizacao4.py | 140 +++++ nfelib/nfe/soap/nfestatusservico4.py | 140 +++++ nfelib/nfe/soap/recepcaoevento4.py | 140 +++++ 9 files changed, 2022 insertions(+) create mode 100644 nfelib/nfe/soap/__init__.py create mode 100644 nfelib/nfe/soap/mod.py create mode 100644 nfelib/nfe/soap/nfeautorizacao4.py create mode 100644 nfelib/nfe/soap/nfeconsulta4.py create mode 100644 nfelib/nfe/soap/nfedistribuicaodfe.py create mode 100644 nfelib/nfe/soap/nfeinutilizacao4.py create mode 100644 nfelib/nfe/soap/nferetautorizacao4.py create mode 100644 nfelib/nfe/soap/nfestatusservico4.py create mode 100644 nfelib/nfe/soap/recepcaoevento4.py diff --git a/nfelib/nfe/soap/__init__.py b/nfelib/nfe/soap/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/nfelib/nfe/soap/mod.py b/nfelib/nfe/soap/mod.py new file mode 100644 index 00000000..7c944966 --- /dev/null +++ b/nfelib/nfe/soap/mod.py @@ -0,0 +1,853 @@ +"""This file was generated by xsdata, v23.6, on 2023-06-24 20:51:06 + +Generator: DataclassGenerator +See: https://xsdata.readthedocs.io/ +""" +from dataclasses import dataclass, field +from typing import Optional +from nfelib.nfe.soap.nfeautorizacao4 import ( + NfeDadosMsg as Nfeautorizacao4NfeDadosMsg, + NfeMonitoria, + NfeResultMsg as Nfeautorizacao4NfeResultMsg, +) +from nfelib.nfe.soap.nfeconsulta4 import ( + NfeDadosMsg as Nfeconsulta4NfeDadosMsg, + NfeResultMsg as Nfeconsulta4NfeResultMsg, +) +from nfelib.nfe.soap.nfedistribuicaodfe import ( + NfeDistDfeInteresse, + NfeDistDfeInteresseResponse, +) +from nfelib.nfe.soap.nfeinutilizacao4 import ( + NfeDadosMsg as Nfeinutilizacao4NfeDadosMsg, + NfeResultMsg as Nfeinutilizacao4NfeResultMsg, +) +from nfelib.nfe.soap.nferetautorizacao4 import ( + NfeDadosMsg as Nferetautorizacao4NfeDadosMsg, + NfeResultMsg as Nferetautorizacao4NfeResultMsg, +) +from nfelib.nfe.soap.nfestatusservico4 import ( + NfeDadosMsg as Nfestatusservico4NfeDadosMsg, + NfeResultMsg as Nfestatusservico4NfeResultMsg, +) +from nfelib.nfe.soap.recepcaoevento4 import ( + NfeDadosMsg as Recepcaoevento4NfeDadosMsg, + NfeResultMsg as Recepcaoevento4NfeResultMsg, +) + + +@dataclass +class NfeAutorizacao4SoapNfeAutorizacaoLoteZipInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteZipInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsgZip: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + } + ) + + +@dataclass +class NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + header: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput.Header"] = field( + default=None, + metadata={ + "name": "Header", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[Nfeautorizacao4NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + "nillable": True, + } + ) + fault: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput.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: + nfeMonitoria: Optional[NfeMonitoria] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + } + ) + + +@dataclass +class NfeAutorizacao4SoapNfeAutorizacaoLoteInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[Nfeautorizacao4NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + } + ) + + +@dataclass +class NfeAutorizacao4SoapNfeAutorizacaoLoteOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + header: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteOutput.Header"] = field( + default=None, + metadata={ + "name": "Header", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[Nfeautorizacao4NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + "nillable": True, + } + ) + fault: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteOutput.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: + nfeMonitoria: Optional[NfeMonitoria] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + } + ) + + +@dataclass +class NfeConsultaProtocolo4SoapNfeConsultaNfInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeConsultaProtocolo4SoapNfeConsultaNfInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[Nfeconsulta4NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4", + } + ) + + +@dataclass +class NfeConsultaProtocolo4SoapNfeConsultaNfOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeConsultaProtocolo4SoapNfeConsultaNfOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[Nfeconsulta4NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4", + "nillable": True, + } + ) + fault: Optional["NfeConsultaProtocolo4SoapNfeConsultaNfOutput.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 NfeDistribuicaoDfeSoapNfeDistDfeInteresseInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeDistribuicaoDfeSoapNfeDistDfeInteresseInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDistDFeInteresse: Optional[NfeDistDfeInteresse] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe", + } + ) + + +@dataclass +class NfeDistribuicaoDfeSoapNfeDistDfeInteresseOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeDistribuicaoDfeSoapNfeDistDfeInteresseOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDistDFeInteresseResponse: Optional[NfeDistDfeInteresseResponse] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe", + } + ) + fault: Optional["NfeDistribuicaoDfeSoapNfeDistDfeInteresseOutput.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 NfeInutilizacao4SoapNfeInutilizacaoNfInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeInutilizacao4SoapNfeInutilizacaoNfInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[Nfeinutilizacao4NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4", + } + ) + + +@dataclass +class NfeInutilizacao4SoapNfeInutilizacaoNfOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeInutilizacao4SoapNfeInutilizacaoNfOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[Nfeinutilizacao4NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4", + "nillable": True, + } + ) + fault: Optional["NfeInutilizacao4SoapNfeInutilizacaoNfOutput.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 NfeRecepcaoEvento4SoapNfeRecepcaoEventoInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeRecepcaoEvento4SoapNfeRecepcaoEventoInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[Recepcaoevento4NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4", + } + ) + + +@dataclass +class NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[Recepcaoevento4NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4", + "nillable": True, + } + ) + fault: Optional["NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput.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 NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[Nferetautorizacao4NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4", + } + ) + + +@dataclass +class NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[Nferetautorizacao4NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4", + "nillable": True, + } + ) + fault: Optional["NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteOutput.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 NfeStatusServico4SoapNfeStatusServicoNfInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeStatusServico4SoapNfeStatusServicoNfInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[Nfestatusservico4NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4", + } + ) + + +@dataclass +class NfeStatusServico4SoapNfeStatusServicoNfOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeStatusServico4SoapNfeStatusServicoNfOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[Nfestatusservico4NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4", + "nillable": True, + } + ) + fault: Optional["NfeStatusServico4SoapNfeStatusServicoNfOutput.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 NfeAutorizacao4SoapNfeAutorizacaoLote: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote" + input = NfeAutorizacao4SoapNfeAutorizacaoLoteInput + output = NfeAutorizacao4SoapNfeAutorizacaoLoteOutput + + +class NfeAutorizacao4SoapNfeAutorizacaoLoteZip: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLoteZip" + input = NfeAutorizacao4SoapNfeAutorizacaoLoteZipInput + output = NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput + + +class NfeConsultaProtocolo4SoapNfeConsultaNf: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF" + input = NfeConsultaProtocolo4SoapNfeConsultaNfInput + output = NfeConsultaProtocolo4SoapNfeConsultaNfOutput + + +class NfeDistribuicaoDfeSoapNfeDistDfeInteresse: + style = "document" + location = "https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse" + input = NfeDistribuicaoDfeSoapNfeDistDfeInteresseInput + output = NfeDistribuicaoDfeSoapNfeDistDfeInteresseOutput + + +class NfeInutilizacao4SoapNfeInutilizacaoNf: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF" + input = NfeInutilizacao4SoapNfeInutilizacaoNfInput + output = NfeInutilizacao4SoapNfeInutilizacaoNfOutput + + +class NfeRecepcaoEvento4SoapNfeRecepcaoEvento: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEvento" + input = NfeRecepcaoEvento4SoapNfeRecepcaoEventoInput + output = NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput + + +class NfeRetAutorizacao4SoapNfeRetAutorizacaoLote: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote" + input = NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteInput + output = NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteOutput + + +class NfeStatusServico4SoapNfeStatusServicoNf: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF" + input = NfeStatusServico4SoapNfeStatusServicoNfInput + output = NfeStatusServico4SoapNfeStatusServicoNfOutput diff --git a/nfelib/nfe/soap/nfeautorizacao4.py b/nfelib/nfe/soap/nfeautorizacao4.py new file mode 100644 index 00000000..b64a09c5 --- /dev/null +++ b/nfelib/nfe/soap/nfeautorizacao4.py @@ -0,0 +1,313 @@ +"""This file was generated by xsdata, v23.6, on 2023-06-24 20:51:06 + +Generator: DataclassGenerator +See: https://xsdata.readthedocs.io/ +""" +from dataclasses import dataclass, field +from typing import Dict, List, Optional + +__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" + + +@dataclass +class NfeAutorizacao4SoapNfeAutorizacaoLoteZipInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteZipInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsgZip: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + } + ) + + +@dataclass +class NfeDadosMsg: + class Meta: + name = "nfeDadosMsg" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeDadosMsgZip: + class Meta: + name = "nfeDadosMsgZip" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" + + value: str = field( + default="", + metadata={ + "required": True, + } + ) + + +@dataclass +class NfeMonitoria: + class Meta: + name = "nfeMonitoria" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" + + nomeServidor: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + } + ) + dhServidor: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + } + ) + any_attributes: Dict[str, str] = field( + default_factory=dict, + metadata={ + "type": "Attributes", + "namespace": "##any", + } + ) + + +@dataclass +class NfeResultMsg: + class Meta: + name = "nfeResultMsg" + nillable = True + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + header: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput.Header"] = field( + default=None, + metadata={ + "name": "Header", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + "nillable": True, + } + ) + fault: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput.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: + nfeMonitoria: Optional[NfeMonitoria] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + } + ) + + +@dataclass +class NfeAutorizacao4SoapNfeAutorizacaoLoteInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + } + ) + + +@dataclass +class NfeAutorizacao4SoapNfeAutorizacaoLoteOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + header: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteOutput.Header"] = field( + default=None, + metadata={ + "name": "Header", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + "nillable": True, + } + ) + fault: Optional["NfeAutorizacao4SoapNfeAutorizacaoLoteOutput.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: + nfeMonitoria: Optional[NfeMonitoria] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", + } + ) + + +class NfeAutorizacao4SoapNfeAutorizacaoLote: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote" + input = NfeAutorizacao4SoapNfeAutorizacaoLoteInput + output = NfeAutorizacao4SoapNfeAutorizacaoLoteOutput + + +class NfeAutorizacao4SoapNfeAutorizacaoLoteZip: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLoteZip" + input = NfeAutorizacao4SoapNfeAutorizacaoLoteZipInput + output = NfeAutorizacao4SoapNfeAutorizacaoLoteZipOutput diff --git a/nfelib/nfe/soap/nfeconsulta4.py b/nfelib/nfe/soap/nfeconsulta4.py new file mode 100644 index 00000000..05fae671 --- /dev/null +++ b/nfelib/nfe/soap/nfeconsulta4.py @@ -0,0 +1,140 @@ +"""This file was generated by xsdata, v23.6, on 2023-06-24 20:51:09 + +Generator: DataclassGenerator +See: https://xsdata.readthedocs.io/ +""" +from dataclasses import dataclass, field +from typing import List, Optional + +__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4" + + +@dataclass +class NfeDadosMsg: + class Meta: + name = "nfeDadosMsg" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeResultMsg: + class Meta: + name = "nfeResultMsg" + nillable = True + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeConsultaProtocolo4SoapNfeConsultaNfInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeConsultaProtocolo4SoapNfeConsultaNfInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4", + } + ) + + +@dataclass +class NfeConsultaProtocolo4SoapNfeConsultaNfOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeConsultaProtocolo4SoapNfeConsultaNfOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4", + "nillable": True, + } + ) + fault: Optional["NfeConsultaProtocolo4SoapNfeConsultaNfOutput.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 NfeConsultaProtocolo4SoapNfeConsultaNf: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF" + input = NfeConsultaProtocolo4SoapNfeConsultaNfInput + output = NfeConsultaProtocolo4SoapNfeConsultaNfOutput diff --git a/nfelib/nfe/soap/nfedistribuicaodfe.py b/nfelib/nfe/soap/nfedistribuicaodfe.py new file mode 100644 index 00000000..a5cd1bdb --- /dev/null +++ b/nfelib/nfe/soap/nfedistribuicaodfe.py @@ -0,0 +1,156 @@ +"""This file was generated by xsdata, v23.6, on 2023-06-24 20:51:08 + +Generator: DataclassGenerator +See: https://xsdata.readthedocs.io/ +""" +from dataclasses import dataclass, field +from typing import List, Optional + +__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe" + + +@dataclass +class NfeDistDfeInteresse: + class Meta: + name = "nfeDistDFeInteresse" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe" + + nfeDadosMsg: Optional["NfeDistDfeInteresse.NfeDadosMsg"] = field( + default=None, + metadata={ + "type": "Element", + } + ) + + @dataclass + class NfeDadosMsg: + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeDistDfeInteresseResponse: + class Meta: + name = "nfeDistDFeInteresseResponse" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe" + + nfeDistDFeInteresseResult: Optional["NfeDistDfeInteresseResponse.NfeDistDfeInteresseResult"] = field( + default=None, + metadata={ + "type": "Element", + } + ) + + @dataclass + class NfeDistDfeInteresseResult: + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeDistribuicaoDfeSoapNfeDistDfeInteresseInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeDistribuicaoDfeSoapNfeDistDfeInteresseInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDistDFeInteresse: Optional[NfeDistDfeInteresse] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe", + } + ) + + +@dataclass +class NfeDistribuicaoDfeSoapNfeDistDfeInteresseOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeDistribuicaoDfeSoapNfeDistDfeInteresseOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDistDFeInteresseResponse: Optional[NfeDistDfeInteresseResponse] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe", + } + ) + fault: Optional["NfeDistribuicaoDfeSoapNfeDistDfeInteresseOutput.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 NfeDistribuicaoDfeSoapNfeDistDfeInteresse: + style = "document" + location = "https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse" + input = NfeDistribuicaoDfeSoapNfeDistDfeInteresseInput + output = NfeDistribuicaoDfeSoapNfeDistDfeInteresseOutput diff --git a/nfelib/nfe/soap/nfeinutilizacao4.py b/nfelib/nfe/soap/nfeinutilizacao4.py new file mode 100644 index 00000000..17fe4bec --- /dev/null +++ b/nfelib/nfe/soap/nfeinutilizacao4.py @@ -0,0 +1,140 @@ +"""This file was generated by xsdata, v23.6, on 2023-06-24 20:51:07 + +Generator: DataclassGenerator +See: https://xsdata.readthedocs.io/ +""" +from dataclasses import dataclass, field +from typing import List, Optional + +__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4" + + +@dataclass +class NfeDadosMsg: + class Meta: + name = "nfeDadosMsg" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeResultMsg: + class Meta: + name = "nfeResultMsg" + nillable = True + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeInutilizacao4SoapNfeInutilizacaoNfInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeInutilizacao4SoapNfeInutilizacaoNfInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4", + } + ) + + +@dataclass +class NfeInutilizacao4SoapNfeInutilizacaoNfOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeInutilizacao4SoapNfeInutilizacaoNfOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4", + "nillable": True, + } + ) + fault: Optional["NfeInutilizacao4SoapNfeInutilizacaoNfOutput.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 NfeInutilizacao4SoapNfeInutilizacaoNf: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF" + input = NfeInutilizacao4SoapNfeInutilizacaoNfInput + output = NfeInutilizacao4SoapNfeInutilizacaoNfOutput diff --git a/nfelib/nfe/soap/nferetautorizacao4.py b/nfelib/nfe/soap/nferetautorizacao4.py new file mode 100644 index 00000000..5aa69b41 --- /dev/null +++ b/nfelib/nfe/soap/nferetautorizacao4.py @@ -0,0 +1,140 @@ +"""This file was generated by xsdata, v23.6, on 2023-06-24 20:51:12 + +Generator: DataclassGenerator +See: https://xsdata.readthedocs.io/ +""" +from dataclasses import dataclass, field +from typing import List, Optional + +__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4" + + +@dataclass +class NfeDadosMsg: + class Meta: + name = "nfeDadosMsg" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeResultMsg: + class Meta: + name = "nfeResultMsg" + nillable = True + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4", + } + ) + + +@dataclass +class NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4", + "nillable": True, + } + ) + fault: Optional["NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteOutput.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 NfeRetAutorizacao4SoapNfeRetAutorizacaoLote: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote" + input = NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteInput + output = NfeRetAutorizacao4SoapNfeRetAutorizacaoLoteOutput diff --git a/nfelib/nfe/soap/nfestatusservico4.py b/nfelib/nfe/soap/nfestatusservico4.py new file mode 100644 index 00000000..e330ca6a --- /dev/null +++ b/nfelib/nfe/soap/nfestatusservico4.py @@ -0,0 +1,140 @@ +"""This file was generated by xsdata, v23.6, on 2023-06-24 20:51:10 + +Generator: DataclassGenerator +See: https://xsdata.readthedocs.io/ +""" +from dataclasses import dataclass, field +from typing import List, Optional + +__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4" + + +@dataclass +class NfeDadosMsg: + class Meta: + name = "nfeDadosMsg" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeResultMsg: + class Meta: + name = "nfeResultMsg" + nillable = True + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeStatusServico4SoapNfeStatusServicoNfInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeStatusServico4SoapNfeStatusServicoNfInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4", + } + ) + + +@dataclass +class NfeStatusServico4SoapNfeStatusServicoNfOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeStatusServico4SoapNfeStatusServicoNfOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4", + "nillable": True, + } + ) + fault: Optional["NfeStatusServico4SoapNfeStatusServicoNfOutput.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 NfeStatusServico4SoapNfeStatusServicoNf: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF" + input = NfeStatusServico4SoapNfeStatusServicoNfInput + output = NfeStatusServico4SoapNfeStatusServicoNfOutput diff --git a/nfelib/nfe/soap/recepcaoevento4.py b/nfelib/nfe/soap/recepcaoevento4.py new file mode 100644 index 00000000..565ec0a8 --- /dev/null +++ b/nfelib/nfe/soap/recepcaoevento4.py @@ -0,0 +1,140 @@ +"""This file was generated by xsdata, v23.6, on 2023-06-24 20:51:11 + +Generator: DataclassGenerator +See: https://xsdata.readthedocs.io/ +""" +from dataclasses import dataclass, field +from typing import List, Optional + +__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4" + + +@dataclass +class NfeDadosMsg: + class Meta: + name = "nfeDadosMsg" + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeResultMsg: + class Meta: + name = "nfeResultMsg" + nillable = True + namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4" + + content: List[object] = field( + default_factory=list, + metadata={ + "type": "Wildcard", + "namespace": "##any", + "mixed": True, + } + ) + + +@dataclass +class NfeRecepcaoEvento4SoapNfeRecepcaoEventoInput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeRecepcaoEvento4SoapNfeRecepcaoEventoInput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeDadosMsg: Optional[NfeDadosMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4", + } + ) + + +@dataclass +class NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput: + class Meta: + name = "Envelope" + namespace = "http://schemas.xmlsoap.org/soap/envelope/" + + body: Optional["NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput.Body"] = field( + default=None, + metadata={ + "name": "Body", + "type": "Element", + } + ) + + @dataclass + class Body: + nfeResultMsg: Optional[NfeResultMsg] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4", + "nillable": True, + } + ) + fault: Optional["NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput.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 NfeRecepcaoEvento4SoapNfeRecepcaoEvento: + style = "document" + location = "https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx" + transport = "http://schemas.xmlsoap.org/soap/http" + soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEvento" + input = NfeRecepcaoEvento4SoapNfeRecepcaoEventoInput + output = NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput