Skip to content

Commit 8fcd9e0

Browse files
authored
Merge pull request #219 from leogregianin/feat/mdfe-recibo
Retorno do status do MDFe
2 parents 7a8509e + 098f3c2 commit 8fcd9e0

9 files changed

Lines changed: 579 additions & 588 deletions

pynfe/data/XSDs/MDF-e/evAlteracaoPagtoServMDFe_v3.00.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<xs:simpleType>
1616
<xs:restriction base="xs:string">
1717
<xs:whiteSpace value="preserve"/>
18-
<xs:enumeration value="Alteração Pagamento Serviço MDFe "/>
19-
<xs:enumeration value="Alteracao Pagamento Servico MDFe "/>
18+
<xs:enumeration value="Alteração Pagamento Serviço MDFe"/>
19+
<xs:enumeration value="Alteracao Pagamento Servico MDFe"/>
2020
</xs:restriction>
2121
</xs:simpleType>
2222
</xs:element>

pynfe/data/XSDs/MDF-e/mdfeModalRodoviario_v3.00.xsd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@
238238
<xs:minLength value="2"/>
239239
<xs:maxLength value="20"/>
240240
<xs:whiteSpace value="preserve"/>
241-
<xs:enumeration value="1"/>
242241
</xs:restriction>
243242
</xs:simpleType>
244243
</xs:element>
Lines changed: 79 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,84 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3-
<xs:include schemaLocation="tiposDistDFe_v1.01.xsd"/>
4-
<xs:element name="distDFeInt">
5-
<xs:annotation>
6-
<xs:documentation>Schema de pedido de distribuição de DF-e de interesse</xs:documentation>
7-
</xs:annotation>
8-
<xs:complexType>
9-
<xs:sequence>
10-
<xs:element name="tpAmb" type="TAmb">
11-
<xs:annotation>
12-
<xs:documentation>
3+
<xs:include schemaLocation="tiposDistDFe_v1.01.xsd" />
4+
<xs:element name="distDFeInt">
5+
<xs:annotation>
6+
<xs:documentation>Schema de pedido de distribuição de DF-e de interesse</xs:documentation>
7+
</xs:annotation>
8+
<xs:complexType>
9+
<xs:sequence>
10+
<xs:element name="tpAmb" type="TAmb">
11+
<xs:annotation>
12+
<xs:documentation>
1313
Identificação do Ambiente:
1414
1 - Produção
1515
2 - Homologação
16-
</xs:documentation>
17-
</xs:annotation>
18-
</xs:element>
19-
<xs:element name="cUFAutor" type="TCodUfIBGE" minOccurs="0">
20-
<xs:annotation>
21-
<xs:documentation>Código da UF do Autor</xs:documentation>
22-
</xs:annotation>
23-
</xs:element>
24-
<xs:choice>
25-
<xs:element name="CNPJ" type="TCnpj">
26-
<xs:annotation>
27-
<xs:documentation>CNPJ do interessado no DF-e</xs:documentation>
28-
</xs:annotation>
29-
</xs:element>
30-
<xs:element name="CPF" type="TCpf">
31-
<xs:annotation>
32-
<xs:documentation>CPF do interessado no DF-e</xs:documentation>
33-
</xs:annotation>
34-
</xs:element>
35-
</xs:choice>
36-
<xs:choice>
37-
<xs:element name="distNSU">
38-
<xs:annotation>
39-
<xs:documentation>Grupo para distribuir DF-e de interesse</xs:documentation>
40-
</xs:annotation>
41-
<xs:complexType>
42-
<xs:sequence>
43-
<xs:element name="ultNSU" type="TNSU">
44-
<xs:annotation>
45-
<xs:documentation>Último NSU recebido pelo ator. Caso seja informado com zero, ou com um NSU muito antigo, a consulta retornará unicamente as informações resumidas e documentos fiscais eletrônicos que tenham sido recepcionados pelo Ambiente Nacional nos últimos 3 meses.</xs:documentation>
46-
</xs:annotation>
47-
</xs:element>
48-
</xs:sequence>
49-
</xs:complexType>
50-
</xs:element>
51-
<xs:element name="consNSU">
52-
<xs:annotation>
53-
<xs:documentation>Grupo para consultar um DF-e a partir de um NSU específico</xs:documentation>
54-
</xs:annotation>
55-
<xs:complexType>
56-
<xs:sequence>
57-
<xs:element name="NSU" type="TNSU">
58-
<xs:annotation>
59-
<xs:documentation>Número Sequencial Único. Geralmente esta consulta será utilizada quando identificado pelo interessado um NSU faltante. O Web Service retornará o documento ou informará que o NSU não existe no Ambiente Nacional. Assim, esta consulta fechará a lacuna do NSU identificado como faltante.</xs:documentation>
60-
</xs:annotation>
61-
</xs:element>
62-
</xs:sequence>
63-
</xs:complexType>
64-
</xs:element>
65-
<xs:element name="consChNFe">
66-
<xs:annotation>
67-
<xs:documentation>Grupo para consultar uma NF-e a partir da chave de acesso</xs:documentation>
68-
</xs:annotation>
69-
<xs:complexType>
70-
<xs:sequence>
71-
<xs:element name="chNFe" type="TChNFe">
72-
<xs:annotation>
73-
<xs:documentation>Chave de acesso da NF-e a ser consultada</xs:documentation>
74-
</xs:annotation>
75-
</xs:element>
76-
</xs:sequence>
77-
</xs:complexType>
78-
</xs:element>
79-
</xs:choice>
80-
</xs:sequence>
81-
<xs:attribute name="versao" type="TVerDistDFe" use="required"/>
82-
</xs:complexType>
83-
</xs:element>
84-
</xs:schema>
85-
16+
</xs:documentation>
17+
</xs:annotation>
18+
</xs:element>
19+
<xs:element name="cUFAutor" type="TCodUfIBGE" minOccurs="0">
20+
<xs:annotation>
21+
<xs:documentation>Código da UF do Autor</xs:documentation>
22+
</xs:annotation>
23+
</xs:element>
24+
<xs:choice>
25+
<xs:element name="CNPJ" type="TCnpj">
26+
<xs:annotation>
27+
<xs:documentation>CNPJ do interessado no DF-e</xs:documentation>
28+
</xs:annotation>
29+
</xs:element>
30+
<xs:element name="CPF" type="TCpf">
31+
<xs:annotation>
32+
<xs:documentation>CPF do interessado no DF-e</xs:documentation>
33+
</xs:annotation>
34+
</xs:element>
35+
</xs:choice>
36+
<xs:choice>
37+
<xs:element name="distNSU">
38+
<xs:annotation>
39+
<xs:documentation>Grupo para distribuir DF-e de interesse</xs:documentation>
40+
</xs:annotation>
41+
<xs:complexType>
42+
<xs:sequence>
43+
<xs:element name="ultNSU" type="TNSU">
44+
<xs:annotation>
45+
<xs:documentation>Último NSU recebido pelo ator. Caso seja informado com zero, ou com um NSU muito antigo, a consulta retornará unicamente as informações resumidas e documentos fiscais eletrônicos que tenham sido recepcionados pelo Ambiente Nacional nos últimos 3 meses.</xs:documentation>
46+
</xs:annotation>
47+
</xs:element>
48+
</xs:sequence>
49+
</xs:complexType>
50+
</xs:element>
51+
<xs:element name="consNSU">
52+
<xs:annotation>
53+
<xs:documentation>Grupo para consultar um DF-e a partir de um NSU específico</xs:documentation>
54+
</xs:annotation>
55+
<xs:complexType>
56+
<xs:sequence>
57+
<xs:element name="NSU" type="TNSU">
58+
<xs:annotation>
59+
<xs:documentation>Número Sequencial Único. Geralmente esta consulta será utilizada quando identificado pelo interessado um NSU faltante. O Web Service retornará o documento ou informará que o NSU não existe no Ambiente Nacional. Assim, esta consulta fechará a lacuna do NSU identificado como faltante.</xs:documentation>
60+
</xs:annotation>
61+
</xs:element>
62+
</xs:sequence>
63+
</xs:complexType>
64+
</xs:element>
65+
<xs:element name="consChNFe">
66+
<xs:annotation>
67+
<xs:documentation>Grupo para consultar uma NF-e a partir da chave de acesso</xs:documentation>
68+
</xs:annotation>
69+
<xs:complexType>
70+
<xs:sequence>
71+
<xs:element name="chNFe" type="TChNFe">
72+
<xs:annotation>
73+
<xs:documentation>Chave de acesso da NF-e a ser consultada</xs:documentation>
74+
</xs:annotation>
75+
</xs:element>
76+
</xs:sequence>
77+
</xs:complexType>
78+
</xs:element>
79+
</xs:choice>
80+
</xs:sequence>
81+
<xs:attribute name="versao" type="TVerDistDFe" use="required" />
82+
</xs:complexType>
83+
</xs:element>
84+
</xs:schema>

pynfe/data/XSDs/NF-e/leiauteNFe_v4.00.xsd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,7 @@ N-NormalVIN</xs:documentation>
16981698
</xs:annotation>
16991699
<xs:simpleType>
17001700
<xs:restriction base="TString">
1701-
<xs:pattern value="[0-9]{13}|ISENTO"/>
1701+
<xs:pattern value="[0-9]{11}|[0-9]{13}|ISENTO"/>
17021702
</xs:restriction>
17031703
</xs:simpleType>
17041704
</xs:element>
@@ -5822,7 +5822,7 @@ tipo de ato concessório:
58225822
<xs:simpleType>
58235823
<xs:restriction base="xs:string">
58245824
<xs:minLength value="2"/>
5825-
<xs:maxLength value="2000"/>
5825+
<xs:maxLength value="5000"/>
58265826
</xs:restriction>
58275827
</xs:simpleType>
58285828
</xs:element>
@@ -5866,7 +5866,7 @@ tipo de ato concessório:
58665866
<xs:whiteSpace value="preserve"/>
58675867
<xs:minLength value="100"/>
58685868
<xs:maxLength value="600"/>
5869-
<xs:pattern value="(((HTTPS?|https?)://.*\?chNFe=[0-9]{44}&amp;nVersao=100&amp;tpAmb=[1-2](&amp;cDest=([A-Za-z0-9.:+-/)(]{0}|[A-Za-z0-9.:+-/)(]{5,20})?)?&amp;dhEmi=[A-Fa-f0-9]{50}&amp;vNF=(0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?)&amp;vICMS=(0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?)&amp;digVal=[A-Fa-f0-9]{56}&amp;cIdToken=[0-9]{6}&amp;cHashQRCode=[A-Fa-f0-9]{40})|((HTTPS?|https?)://.*\?p=([0-9]{34}(1|4)[0-9]{9})\|[2]\|[1-2]\|(0|[1-9]{1}([0-9]{1,5})?)\|[A-Fa-f0-9]{40})|((HTTPS?|https?)://.*\?p=([0-9]{34}9[0-9]{9})\|[2]\|[1-2]\|([0]{1}[1-9]{1}|[1-2]{1}[0-9]{1}|[3]{1}[0-1]{1})\|(0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?)\|[A-Fa-f0-9]{56}\|(0|[1-9]{1}([0-9]{1,5})?)\|[A-Fa-f0-9]{40}))"/>
5869+
<xs:pattern value="(((HTTPS?|https?)://.*\?chNFe=[0-9]{44}&amp;nVersao=100&amp;tpAmb=[1-2](&amp;cDest=([A-Za-z0-9.:+-/)(]{0}|[A-Za-z0-9.:+-/)(]{5,20})?)?&amp;dhEmi=[A-Fa-f0-9]{50}&amp;vNF=(0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?)&amp;vICMS=(0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?)&amp;digVal=[A-Fa-f0-9]{56}&amp;cIdToken=[0-9]{6}&amp;cHashQRCode=[A-Fa-f0-9]{40})|((HTTPS?|https?)://.*\?p=([0-9]{34}(1|3|4)[0-9]{9})\|[2]\|[1-2]\|(0|[1-9]{1}([0-9]{1,5})?)\|[A-Fa-f0-9]{40})|((HTTPS?|https?)://.*\?p=([0-9]{34}9[0-9]{9})\|[2]\|[1-2]\|([0]{1}[1-9]{1}|[1-2]{1}[0-9]{1}|[3]{1}[0-1]{1})\|(0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?)\|[A-Fa-f0-9]{56}\|(0|[1-9]{1}([0-9]{1,5})?)\|[A-Fa-f0-9]{40}))"/>
58705870
</xs:restriction>
58715871
</xs:simpleType>
58725872
</xs:element>

0 commit comments

Comments
 (0)