Skip to content

Commit 8953442

Browse files
authored
Merge pull request #74 from adrbarros/master
Atualização dos Schemas NFe
2 parents b5ac6b2 + 73b4aca commit 8953442

File tree

2 files changed

+13
-86
lines changed

2 files changed

+13
-86
lines changed

NFe.AppTeste/Schemas/leiauteNFe_v4.00.xsd

Lines changed: 12 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -6286,88 +6286,6 @@ tipo de ato concessório:
62866286
</xs:sequence>
62876287
</xs:complexType>
62886288
</xs:element>
6289-
<xs:element name="agropecuario" minOccurs="0">
6290-
<xs:annotation>
6291-
<xs:documentation>Produtos Agropecurários Animais, Vegetais e Florestais</xs:documentation>
6292-
</xs:annotation>
6293-
<xs:complexType>
6294-
<xs:choice>
6295-
<xs:element name="defensivo">
6296-
<xs:annotation>
6297-
<xs:documentation>Defensivo Agrícola / Agrotóxico</xs:documentation>
6298-
</xs:annotation>
6299-
<xs:complexType>
6300-
<xs:sequence>
6301-
<xs:element name="nReceituario">
6302-
<xs:annotation>
6303-
<xs:documentation>Número do Receituário ou Receita do Defensivo / Agrotóxico</xs:documentation>
6304-
</xs:annotation>
6305-
<xs:simpleType>
6306-
<xs:restriction base="xs:string">
6307-
<xs:maxLength value="20"/>
6308-
<xs:minLength value="1"/>
6309-
</xs:restriction>
6310-
</xs:simpleType>
6311-
</xs:element>
6312-
<xs:element name="CPFRespTec" type="TCpf">
6313-
<xs:annotation>
6314-
<xs:documentation>CPF do Responsável Técnico pelo receituário</xs:documentation>
6315-
</xs:annotation>
6316-
</xs:element>
6317-
</xs:sequence>
6318-
</xs:complexType>
6319-
</xs:element>
6320-
<xs:element name="guiaTransito">
6321-
<xs:annotation>
6322-
<xs:documentation>Guias De Trânsito de produtos agropecurários animais, vegetais e de origem florestal.</xs:documentation>
6323-
</xs:annotation>
6324-
<xs:complexType>
6325-
<xs:sequence>
6326-
<xs:element name="tpGuia">
6327-
<xs:annotation>
6328-
<xs:documentation>Tipo da Guia: 1 - GTA; 2 - TTA; 3 - DTA; 4 - ATV; 5 - PTV; 6 - GTV; 7 - Guia Florestal (DOF, SisFlora - PA e MT, SIAM - MG)</xs:documentation>
6329-
</xs:annotation>
6330-
<xs:simpleType>
6331-
<xs:restriction base="xs:string">
6332-
<xs:whiteSpace value="preserve"/>
6333-
<xs:enumeration value="1"/>
6334-
<xs:enumeration value="2"/>
6335-
<xs:enumeration value="3"/>
6336-
<xs:enumeration value="4"/>
6337-
<xs:enumeration value="5"/>
6338-
<xs:enumeration value="6"/>
6339-
<xs:enumeration value="7"/>
6340-
</xs:restriction>
6341-
</xs:simpleType>
6342-
</xs:element>
6343-
<xs:element name="UFGuia" type="TUfEmi" minOccurs="0"/>
6344-
<xs:element name="serieGuia" minOccurs="0">
6345-
<xs:annotation>
6346-
<xs:documentation>Série da Guia</xs:documentation>
6347-
</xs:annotation>
6348-
<xs:simpleType>
6349-
<xs:restriction base="TString">
6350-
<xs:minLength value="1"/>
6351-
<xs:maxLength value="9"/>
6352-
</xs:restriction>
6353-
</xs:simpleType>
6354-
</xs:element>
6355-
<xs:element name="nGuia">
6356-
<xs:annotation>
6357-
<xs:documentation>Número da Guia</xs:documentation>
6358-
</xs:annotation>
6359-
<xs:simpleType>
6360-
<xs:restriction base="xs:string">
6361-
<xs:pattern value="[0-9]{1,9}"/>
6362-
</xs:restriction>
6363-
</xs:simpleType>
6364-
</xs:element>
6365-
</xs:sequence>
6366-
</xs:complexType>
6367-
</xs:element>
6368-
</xs:choice>
6369-
</xs:complexType>
6370-
</xs:element>
63716289
</xs:sequence>
63726290
<xs:attribute name="versao" type="TVerNFe" use="required">
63736291
<xs:annotation>
@@ -6403,9 +6321,18 @@ tipo de ato concessório:
64036321
<xs:simpleType>
64046322
<xs:restriction base="xs:string">
64056323
<xs:whiteSpace value="preserve"/>
6406-
<xs:minLength value="100"/>
6407-
<xs:maxLength value="600"/>
6408-
<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}))"/>
6324+
<xs:minLength value="60"/>
6325+
<xs:maxLength value="1000"/>
6326+
<!--QRCODE V1-->
6327+
<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})"/>
6328+
<!--QRCODE V2 ONLINE-->
6329+
<xs:pattern value="((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})"/>
6330+
<!--QRCODE V2 OFFLINE-->
6331+
<xs:pattern value="((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})"/>
6332+
<!--QRCODE V3 ONLINE-->
6333+
<xs:pattern value="((HTTPS?|https?)://.*\?p=([0-9]{34}(1|3|4)[0-9]{9})\|[3]\|[1-2])"/>
6334+
<!--QRCODE V3 OFFLINE-->
6335+
<xs:pattern value="((HTTPS?|https?)://.*\?p=([0-9]{34}(9)[0-9]{9})\|[3]\|[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})?)\|((1|2|3)?)\|(([0-9]{3,14})?)\|([a-zA-Z0-9+/]+[=]{0,2}))"/>
64096336
</xs:restriction>
64106337
</xs:simpleType>
64116338
</xs:element>

NFe.AppTeste/Schemas/xmldsig-core-schema_v1.01.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@
9595
<enumeration value="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
9696
</restriction>
9797
</simpleType>
98-
</schema>
98+
</schema>

0 commit comments

Comments
 (0)