-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
find nfelib/nfe/wsdl | xargs -n1 xsdata generate --package nfelib.nfe…
….soap --include-header
- Loading branch information
Showing
9 changed files
with
2,022 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.