Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW] Emissão através do webservice da ginfes v3.01 #1

Open
wants to merge 1 commit into
base: generated
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added nfselib/ginfes/__init__.py
Empty file.
Empty file.
7,926 changes: 7,926 additions & 0 deletions nfselib/ginfes/v3_01/cabecalho_v03.py

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions nfselib/ginfes/v3_01/generatedsnamespaces.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

GenerateDSNamespaceDefs = {
"ConsultarLoteRpsEnvio": 'xmlns="http://www.ginfes.com.br/servico_consultar_lote_rps_envio_v03.xsd" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd"',
"EnviarLoteRpsEnvio": 'xmlns="http://www.ginfes.com.br/servico_enviar_lote_rps_envio_v03.xsd" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd"',
"ListaRpsType": 'xmlns="http://www.ginfes.com.br/tipos_v03.xsd"',
"ConsultarSituacaoLoteRpsEnvio": 'xmlns="http://www.ginfes.com.br/servico_consultar_situacao_lote_rps_envio_v03.xsd" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd"',
"cabecalho": 'xmlns:ns2="http://www.ginfes.com.br/cabecalho_v03.xsd"',
}
7,894 changes: 7,894 additions & 0 deletions nfselib/ginfes/v3_01/servico_cancelar_nfse_envio_v03.py

Large diffs are not rendered by default.

7,894 changes: 7,894 additions & 0 deletions nfselib/ginfes/v3_01/servico_cancelar_nfse_resposta_v03.py

Large diffs are not rendered by default.

7,921 changes: 7,921 additions & 0 deletions nfselib/ginfes/v3_01/servico_consultar_lote_rps_envio_v03.py

Large diffs are not rendered by default.

7,975 changes: 7,975 additions & 0 deletions nfselib/ginfes/v3_01/servico_consultar_lote_rps_resposta_v03.py

Large diffs are not rendered by default.

8,054 changes: 8,054 additions & 0 deletions nfselib/ginfes/v3_01/servico_consultar_nfse_envio_v03.py

Large diffs are not rendered by default.

7,975 changes: 7,975 additions & 0 deletions nfselib/ginfes/v3_01/servico_consultar_nfse_resposta_v03.py

Large diffs are not rendered by default.

7,905 changes: 7,905 additions & 0 deletions nfselib/ginfes/v3_01/servico_consultar_nfse_rps_envio_v03.py

Large diffs are not rendered by default.

7,894 changes: 7,894 additions & 0 deletions nfselib/ginfes/v3_01/servico_consultar_nfse_rps_resposta_v03.py

Large diffs are not rendered by default.

7,921 changes: 7,921 additions & 0 deletions nfselib/ginfes/v3_01/servico_consultar_situacao_lote_rps_envio_v03.py

Large diffs are not rendered by default.

7,933 changes: 7,933 additions & 0 deletions nfselib/ginfes/v3_01/servico_consultar_situacao_lote_rps_resposta_v03.py

Large diffs are not rendered by default.

7,894 changes: 7,894 additions & 0 deletions nfselib/ginfes/v3_01/servico_enviar_lote_rps_envio_v03.py

Large diffs are not rendered by default.

7,942 changes: 7,942 additions & 0 deletions nfselib/ginfes/v3_01/servico_enviar_lote_rps_resposta_v03.py

Large diffs are not rendered by default.

7,808 changes: 7,808 additions & 0 deletions nfselib/ginfes/v3_01/tipos_v03.py

Large diffs are not rendered by default.

3,617 changes: 3,617 additions & 0 deletions nfselib/ginfes/v3_01/xmldsig-core-schema20020212_v03.py

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions schemas/ginfes/v3_01/cabecalho_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd"
targetNamespace="http://www.ginfes.com.br/cabecalho_v03.xsd"
elementFormDefault="unqualified" attributeFormDefault="unqualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:element name="cabecalho">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="versaoDados" type="tipos:tsVersao"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
<xsd:attribute name="versao" type="tipos:tsVersao" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:schema>
19 changes: 19 additions & 0 deletions schemas/ginfes/v3_01/servico_cancelar_nfse_envio_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd"
targetNamespace="http://www.ginfes.com.br/servico_cancelar_nfse_envio_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_cancelar_nfse_envio_v03.xsd"
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" attributeFormDefault="unqualified"
elementFormDefault="unqualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="xmldsig-core-schema20020212_v03.xsd" />
<xsd:element name="CancelarNfseEnvio">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Pedido" type="tipos:tcPedidoCancelamento" />
<xsd:element ref="dsig:Signature" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
13 changes: 13 additions & 0 deletions schemas/ginfes/v3_01/servico_cancelar_nfse_resposta_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" targetNamespace="http://www.ginfes.com.br/servico_cancelar_nfse_resposta_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_cancelar_nfse_resposta_v03.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:element name="CancelarNfseResposta">
<xsd:complexType>
<xsd:choice>
<xsd:element name="Cancelamento" type="tipos:tcCancelamentoNfse"/>
<xsd:element ref="tipos:ListaMensagemRetorno" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
23 changes: 23 additions & 0 deletions schemas/ginfes/v3_01/servico_consultar_lote_rps_envio_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd"
targetNamespace="http://www.ginfes.com.br/servico_consultar_lote_rps_envio_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_consultar_lote_rps_envio_v03.xsd"
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema20020212_v03.xsd"/>
<xsd:import schemaLocation="tipos_v03.xsd"
namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:element name="ConsultarLoteRpsEnvio">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Prestador" type="tipos:tcIdentificacaoPrestador"
minOccurs="1" maxOccurs="1" />
<xsd:element name="Protocolo" type="tipos:tsNumeroProtocolo"
minOccurs="1" maxOccurs="1" />
<xsd:element ref="dsig:Signature" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="Id" type="tipos:tsIdTag"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
18 changes: 18 additions & 0 deletions schemas/ginfes/v3_01/servico_consultar_lote_rps_resposta_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" targetNamespace="http://www.ginfes.com.br/servico_consultar_lote_rps_resposta_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_consultar_lote_rps_resposta_v03.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" /> <xsd:element name="ConsultarLoteRpsResposta">
<xsd:complexType>
<xsd:choice>
<xsd:element name="ListaNfse" minOccurs="1" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="CompNfse" maxOccurs="unbounded" type="tipos:tcCompNfse" minOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element ref="tipos:ListaMensagemRetorno" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
26 changes: 26 additions & 0 deletions schemas/ginfes/v3_01/servico_consultar_nfse_envio_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.ginfes.com.br/servico_consultar_nfse_envio_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_consultar_nfse_envio_v03.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema20020212_v03.xsd"/>
<xsd:element name="ConsultarNfseEnvio">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Prestador" type="tipos:tcIdentificacaoPrestador" minOccurs="1" maxOccurs="1"/>
<xsd:element name="NumeroNfse" type="tipos:tsNumeroNfse" minOccurs="0" maxOccurs="1"/>
<xsd:element name="PeriodoEmissao" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="DataInicial" type="xsd:date" minOccurs="1" maxOccurs="1"/>
<xsd:element name="DataFinal" type="xsd:date" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Tomador" type="tipos:tcIdentificacaoTomador" minOccurs="0" maxOccurs="1"/>
<xsd:element name="IntermediarioServico" type="tipos:tcIdentificacaoIntermediarioServico" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="dsig:Signature" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="Id" type="tipos:tsIdTag"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
19 changes: 19 additions & 0 deletions schemas/ginfes/v3_01/servico_consultar_nfse_resposta_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" targetNamespace="http://www.ginfes.com.br/servico_consultar_nfse_resposta_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_consultar_nfse_resposta_v03.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:element name="ConsultarNfseResposta">
<xsd:complexType>
<xsd:choice>
<xsd:element name="ListaNfse" minOccurs="1" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="CompNfse" maxOccurs="unbounded" type="tipos:tcCompNfse" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element ref="tipos:ListaMensagemRetorno" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
23 changes: 23 additions & 0 deletions schemas/ginfes/v3_01/servico_consultar_nfse_rps_envio_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.ginfes.com.br/servico_consultar_nfse_rps_envio_v03.xsd"
xmlns:tipos = "http://www.ginfes.com.br/tipos_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_consultar_nfse_rps_envio_v03.xsd"
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd"
namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema20020212_v03.xsd"/>

<xsd:element name="ConsultarNfseRpsEnvio">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="IdentificacaoRps" type="tipos:tcIdentificacaoRps"
minOccurs="1" maxOccurs="1" />
<xsd:element name="Prestador" type="tipos:tcIdentificacaoPrestador"
minOccurs="1" maxOccurs="1" />
<xsd:element ref="dsig:Signature" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
13 changes: 13 additions & 0 deletions schemas/ginfes/v3_01/servico_consultar_nfse_rps_resposta_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" targetNamespace="http://www.ginfes.com.br/servico_consultar_nfse_rps_resposta_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_consultar_nfse_rps_resposta_v03.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:element name="ConsultarNfseRpsResposta">
<xsd:complexType>
<xsd:choice>
<xsd:element name="CompNfse" type="tipos:tcCompNfse" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="tipos:ListaMensagemRetorno" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" targetNamespace="http://www.ginfes.com.br/servico_consultar_situacao_lote_rps_envio_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_consultar_situacao_lote_rps_envio_v03.xsd" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema20020212_v03.xsd"/>

<xsd:element name="ConsultarSituacaoLoteRpsEnvio">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Prestador" type="tipos:tcIdentificacaoPrestador" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Protocolo" type="tipos:tsNumeroProtocolo" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="dsig:Signature" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="Id" type="tipos:tsIdTag"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" targetNamespace="http://www.ginfes.com.br/servico_consultar_situacao_lote_rps_resposta_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_consultar_situacao_lote_rps_resposta_v03.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:element name="ConsultarSituacaoLoteRpsResposta">
<xsd:complexType>
<xsd:choice>
<xsd:sequence>
<xsd:element name="NumeroLote" type="tipos:tsNumeroLote" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Situacao" type="tipos:tsSituacaoLoteRps" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:element ref="tipos:ListaMensagemRetorno" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
14 changes: 14 additions & 0 deletions schemas/ginfes/v3_01/servico_enviar_lote_rps_envio_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" targetNamespace="http://www.ginfes.com.br/servico_enviar_lote_rps_envio_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_enviar_lote_rps_envio_v03.xsd" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd" namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema20020212_v03.xsd"/>
<xsd:element name="EnviarLoteRpsEnvio">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="LoteRps" type="tipos:tcLoteRps"/>
<xsd:element ref="dsig:Signature" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
25 changes: 25 additions & 0 deletions schemas/ginfes/v3_01/servico_enviar_lote_rps_resposta_v03.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd"
targetNamespace="http://www.ginfes.com.br/servico_enviar_lote_rps_resposta_v03.xsd"
xmlns="http://www.ginfes.com.br/servico_enviar_lote_rps_resposta_v03.xsd"
attributeFormDefault="unqualified" elementFormDefault="qualified">
<xsd:import schemaLocation="tipos_v03.xsd"
namespace="http://www.ginfes.com.br/tipos_v03.xsd" />
<xsd:element name="EnviarLoteRpsResposta">
<xsd:complexType>
<xsd:choice>
<xsd:sequence>
<xsd:element name="NumeroLote" type="tipos:tsNumeroLote"
minOccurs="1" maxOccurs="1" />
<xsd:element name="DataRecebimento" type="xsd:dateTime"
minOccurs="1" maxOccurs="1" />
<xsd:element name="Protocolo" type="tipos:tsNumeroProtocolo"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
<xsd:element ref="tipos:ListaMensagemRetorno" minOccurs="1"
maxOccurs="1" />
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Loading