Skip to content

Commit

Permalink
find nfelib/nfe/wsdl | xargs -n1 xsdata generate --package nfelib.nfe…
Browse files Browse the repository at this point in the history
….soap --include-header
  • Loading branch information
rvalyi committed Jun 25, 2023
1 parent 68ff52e commit 3979c06
Show file tree
Hide file tree
Showing 9 changed files with 2,022 additions and 0 deletions.
Empty file added nfelib/nfe/soap/__init__.py
Empty file.
853 changes: 853 additions & 0 deletions nfelib/nfe/soap/mod.py

Large diffs are not rendered by default.

313 changes: 313 additions & 0 deletions nfelib/nfe/soap/nfeautorizacao4.py
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 3979c06

Please sign in to comment.