Skip to content

Commit de9bd42

Browse files
Implementado NT 2021.004 1.20
1 parent db73d77 commit de9bd42

File tree

18 files changed

+8781
-2495
lines changed

18 files changed

+8781
-2495
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ ________________________________________________________________________________
3838

3939
# Historico de Versões
4040

41-
## v4.00.18 - SNAPSHOT - 09/01/2022 - Schemas PL.009f
41+
## v4.00.18C - SNAPSHOT - 23/03/2022 - Schemas PL.009i
4242
- Atualizado Cacert
4343
- Alteração WebService CE
4444
- Adicionado System.getProperty("file.separator") como separado de arquivos
45+
- Implementado NT 2021.004 1.20
4546

4647
Snapshot é a versão que se encontra em teste, só use em caso de extrema necessidade.
4748
Para usar, adicione o repositorio de Snapshot ao Maven:

java-nfe-4.00.18-SNAPSHOT.jar

23.9 KB
Binary file not shown.

schemas.zip

3.86 KB
Binary file not shown.

schemas/leiauteNFe_v4.00.xsd

Lines changed: 100 additions & 204 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ para tpEmis diferente de 1</xs:documentation>
276276
</xs:simpleType>
277277
</xs:element>
278278
</xs:sequence>
279-
<xs:element name="NFref" minOccurs="0" maxOccurs="unbounded">
279+
<xs:element name="NFref" minOccurs="0" maxOccurs="500">
280280
<xs:annotation>
281281
<xs:documentation>Grupo de infromações da NF referenciada</xs:documentation>
282282
</xs:annotation>
@@ -1202,7 +1202,7 @@ Formato ”CFOP9999”.</xs:documentation>
12021202
</xs:sequence>
12031203
</xs:complexType>
12041204
</xs:element>
1205-
<xs:element name="detExport" minOccurs="0" maxOccurs="unbounded">
1205+
<xs:element name="detExport" minOccurs="0" maxOccurs="500">
12061206
<xs:annotation>
12071207
<xs:documentation>Detalhe da exportação</xs:documentation>
12081208
</xs:annotation>
@@ -1279,7 +1279,7 @@ Formato ”CFOP9999”.</xs:documentation>
12791279
<xs:documentation>Número de controle da FCI - Ficha de Conteúdo de Importação.</xs:documentation>
12801280
</xs:annotation>
12811281
</xs:element>
1282-
<xs:element name="rastro" minOccurs="0" maxOccurs="unbounded">
1282+
<xs:element name="rastro" minOccurs="0" maxOccurs="500">
12831283
<xs:complexType>
12841284
<xs:sequence>
12851285
<xs:element name="nLote">
@@ -1721,7 +1721,7 @@ N-NormalVIN</xs:documentation>
17211721
</xs:sequence>
17221722
</xs:complexType>
17231723
</xs:element>
1724-
<xs:element name="arma" maxOccurs="unbounded">
1724+
<xs:element name="arma" maxOccurs="500">
17251725
<xs:annotation>
17261726
<xs:documentation>Armamentos</xs:documentation>
17271727
</xs:annotation>
@@ -3220,6 +3220,23 @@ Operação interestadual para consumidor final com partilha do ICMS devido na o
32203220
<xs:documentation>Valor do ICMS ST</xs:documentation>
32213221
</xs:annotation>
32223222
</xs:element>
3223+
<xs:sequence minOccurs="0">
3224+
<xs:element name="vBCFCPST" type="TDec_1302">
3225+
<xs:annotation>
3226+
<xs:documentation>Valor da Base de cálculo do FCP retido por substituicao tributaria.</xs:documentation>
3227+
</xs:annotation>
3228+
</xs:element>
3229+
<xs:element name="pFCPST" type="TDec_0302a04Opc">
3230+
<xs:annotation>
3231+
<xs:documentation>Percentual de FCP retido por substituição tributária.</xs:documentation>
3232+
</xs:annotation>
3233+
</xs:element>
3234+
<xs:element name="vFCPST" type="TDec_1302">
3235+
<xs:annotation>
3236+
<xs:documentation>Valor do FCP retido por substituição tributária.</xs:documentation>
3237+
</xs:annotation>
3238+
</xs:element>
3239+
</xs:sequence>
32233240
<xs:element name="pBCOp" type="TDec_0302a04Opc">
32243241
<xs:annotation>
32253242
<xs:documentation>Percentual para determinação do valor da Base de Cálculo da operação própria.</xs:documentation>
@@ -4653,6 +4670,65 @@ Substituição Tributaria;</xs:documentation>
46534670
</xs:restriction>
46544671
</xs:simpleType>
46554672
</xs:element>
4673+
<xs:element name="obsItem" minOccurs="0">
4674+
<xs:annotation>
4675+
<xs:documentation>Grupo de observações de uso livre (para o item da NF-e) </xs:documentation>
4676+
</xs:annotation>
4677+
<xs:complexType>
4678+
<xs:sequence>
4679+
<xs:element name="obsCont" minOccurs="0">
4680+
<xs:annotation>
4681+
<xs:documentation>Grupo de observações de uso livre (para o item da NF-e) </xs:documentation>
4682+
</xs:annotation>
4683+
<xs:complexType>
4684+
<xs:sequence>
4685+
<xs:element name="xTexto">
4686+
<xs:simpleType>
4687+
<xs:restriction base="TString">
4688+
<xs:minLength value="1"/>
4689+
<xs:maxLength value="60"/>
4690+
</xs:restriction>
4691+
</xs:simpleType>
4692+
</xs:element>
4693+
</xs:sequence>
4694+
<xs:attribute name="xCampo" use="required">
4695+
<xs:simpleType>
4696+
<xs:restriction base="TString">
4697+
<xs:minLength value="1"/>
4698+
<xs:maxLength value="20"/>
4699+
</xs:restriction>
4700+
</xs:simpleType>
4701+
</xs:attribute>
4702+
</xs:complexType>
4703+
</xs:element>
4704+
<xs:element name="obsFisco" minOccurs="0">
4705+
<xs:annotation>
4706+
<xs:documentation>Grupo de observações de uso livre (para o item da NF-e) </xs:documentation>
4707+
</xs:annotation>
4708+
<xs:complexType>
4709+
<xs:sequence>
4710+
<xs:element name="xTexto">
4711+
<xs:simpleType>
4712+
<xs:restriction base="TString">
4713+
<xs:minLength value="1"/>
4714+
<xs:maxLength value="60"/>
4715+
</xs:restriction>
4716+
</xs:simpleType>
4717+
</xs:element>
4718+
</xs:sequence>
4719+
<xs:attribute name="xCampo" use="required">
4720+
<xs:simpleType>
4721+
<xs:restriction base="TString">
4722+
<xs:minLength value="1"/>
4723+
<xs:maxLength value="20"/>
4724+
</xs:restriction>
4725+
</xs:simpleType>
4726+
</xs:attribute>
4727+
</xs:complexType>
4728+
</xs:element>
4729+
</xs:sequence>
4730+
</xs:complexType>
4731+
</xs:element>
46564732
</xs:sequence>
46574733
<xs:attribute name="nItem" use="required">
46584734
<xs:annotation>
@@ -5511,6 +5587,24 @@ concessório</xs:documentation>
55115587
</xs:restriction>
55125588
</xs:simpleType>
55135589
</xs:element>
5590+
<xs:element name="tpAto" minOccurs="0">
5591+
<xs:annotation>
5592+
<xs:documentation>Tipo do ato concessório
5593+
Para origem do Processo na SEFAZ (indProc=0), informar o
5594+
tipo de ato concessório:
5595+
08=Termo de Acordo;
5596+
10=Regime Especial;
5597+
12=Autorização específica;</xs:documentation>
5598+
</xs:annotation>
5599+
<xs:simpleType>
5600+
<xs:restriction base="xs:string">
5601+
<xs:whiteSpace value="preserve"/>
5602+
<xs:enumeration value="08"/>
5603+
<xs:enumeration value="10"/>
5604+
<xs:enumeration value="12"/>
5605+
</xs:restriction>
5606+
</xs:simpleType>
5607+
</xs:element>
55145608
</xs:sequence>
55155609
</xs:complexType>
55165610
</xs:element>
@@ -5772,7 +5866,7 @@ concessório</xs:documentation>
57725866
<xs:whiteSpace value="preserve"/>
57735867
<xs:minLength value="100"/>
57745868
<xs:maxLength value="600"/>
5775-
<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}))"/>
57765870
</xs:restriction>
57775871
</xs:simpleType>
57785872
</xs:element>
@@ -6609,205 +6703,7 @@ alterado para tamanho variavel 1-4. (NT2011/004)</xs:documentation>
66096703
</xs:annotation>
66106704
<xs:restriction base="xs:string">
66116705
<xs:whiteSpace value="preserve"/>
6612-
<xs:enumeration value="01.01"/>
6613-
<xs:enumeration value="01.02"/>
6614-
<xs:enumeration value="01.03"/>
6615-
<xs:enumeration value="01.04"/>
6616-
<xs:enumeration value="01.05"/>
6617-
<xs:enumeration value="01.06"/>
6618-
<xs:enumeration value="01.07"/>
6619-
<xs:enumeration value="01.08"/>
6620-
<xs:enumeration value="01.09"/>
6621-
<xs:enumeration value="02.01"/>
6622-
<xs:enumeration value="03.02"/>
6623-
<xs:enumeration value="03.03"/>
6624-
<xs:enumeration value="03.04"/>
6625-
<xs:enumeration value="03.05"/>
6626-
<xs:enumeration value="04.01"/>
6627-
<xs:enumeration value="04.02"/>
6628-
<xs:enumeration value="04.03"/>
6629-
<xs:enumeration value="04.04"/>
6630-
<xs:enumeration value="04.05"/>
6631-
<xs:enumeration value="04.06"/>
6632-
<xs:enumeration value="04.07"/>
6633-
<xs:enumeration value="04.08"/>
6634-
<xs:enumeration value="04.09"/>
6635-
<xs:enumeration value="04.10"/>
6636-
<xs:enumeration value="04.11"/>
6637-
<xs:enumeration value="04.12"/>
6638-
<xs:enumeration value="04.13"/>
6639-
<xs:enumeration value="04.14"/>
6640-
<xs:enumeration value="04.15"/>
6641-
<xs:enumeration value="04.16"/>
6642-
<xs:enumeration value="04.17"/>
6643-
<xs:enumeration value="04.18"/>
6644-
<xs:enumeration value="04.19"/>
6645-
<xs:enumeration value="04.20"/>
6646-
<xs:enumeration value="04.21"/>
6647-
<xs:enumeration value="04.22"/>
6648-
<xs:enumeration value="04.23"/>
6649-
<xs:enumeration value="05.01"/>
6650-
<xs:enumeration value="05.02"/>
6651-
<xs:enumeration value="05.03"/>
6652-
<xs:enumeration value="05.04"/>
6653-
<xs:enumeration value="05.05"/>
6654-
<xs:enumeration value="05.06"/>
6655-
<xs:enumeration value="05.07"/>
6656-
<xs:enumeration value="05.08"/>
6657-
<xs:enumeration value="05.09"/>
6658-
<xs:enumeration value="06.01"/>
6659-
<xs:enumeration value="06.02"/>
6660-
<xs:enumeration value="06.03"/>
6661-
<xs:enumeration value="06.04"/>
6662-
<xs:enumeration value="06.05"/>
6663-
<xs:enumeration value="06.06"/>
6664-
<xs:enumeration value="07.01"/>
6665-
<xs:enumeration value="07.02"/>
6666-
<xs:enumeration value="07.03"/>
6667-
<xs:enumeration value="07.04"/>
6668-
<xs:enumeration value="07.05"/>
6669-
<xs:enumeration value="07.06"/>
6670-
<xs:enumeration value="07.07"/>
6671-
<xs:enumeration value="07.08"/>
6672-
<xs:enumeration value="07.09"/>
6673-
<xs:enumeration value="07.10"/>
6674-
<xs:enumeration value="07.11"/>
6675-
<xs:enumeration value="07.12"/>
6676-
<xs:enumeration value="07.13"/>
6677-
<xs:enumeration value="07.16"/>
6678-
<xs:enumeration value="07.17"/>
6679-
<xs:enumeration value="07.18"/>
6680-
<xs:enumeration value="07.19"/>
6681-
<xs:enumeration value="07.20"/>
6682-
<xs:enumeration value="07.21"/>
6683-
<xs:enumeration value="07.22"/>
6684-
<xs:enumeration value="08.01"/>
6685-
<xs:enumeration value="08.02"/>
6686-
<xs:enumeration value="09.01"/>
6687-
<xs:enumeration value="09.02"/>
6688-
<xs:enumeration value="09.03"/>
6689-
<xs:enumeration value="10.01"/>
6690-
<xs:enumeration value="10.02"/>
6691-
<xs:enumeration value="10.03"/>
6692-
<xs:enumeration value="10.04"/>
6693-
<xs:enumeration value="10.05"/>
6694-
<xs:enumeration value="10.06"/>
6695-
<xs:enumeration value="10.07"/>
6696-
<xs:enumeration value="10.08"/>
6697-
<xs:enumeration value="10.09"/>
6698-
<xs:enumeration value="10.10"/>
6699-
<xs:enumeration value="11.01"/>
6700-
<xs:enumeration value="11.02"/>
6701-
<xs:enumeration value="11.03"/>
6702-
<xs:enumeration value="11.04"/>
6703-
<xs:enumeration value="12.01"/>
6704-
<xs:enumeration value="12.02"/>
6705-
<xs:enumeration value="12.03"/>
6706-
<xs:enumeration value="12.04"/>
6707-
<xs:enumeration value="12.05"/>
6708-
<xs:enumeration value="12.06"/>
6709-
<xs:enumeration value="12.07"/>
6710-
<xs:enumeration value="12.08"/>
6711-
<xs:enumeration value="12.09"/>
6712-
<xs:enumeration value="12.10"/>
6713-
<xs:enumeration value="12.11"/>
6714-
<xs:enumeration value="12.12"/>
6715-
<xs:enumeration value="12.13"/>
6716-
<xs:enumeration value="12.14"/>
6717-
<xs:enumeration value="12.15"/>
6718-
<xs:enumeration value="12.16"/>
6719-
<xs:enumeration value="12.17"/>
6720-
<xs:enumeration value="13.02"/>
6721-
<xs:enumeration value="13.03"/>
6722-
<xs:enumeration value="13.04"/>
6723-
<xs:enumeration value="13.05"/>
6724-
<xs:enumeration value="14.01"/>
6725-
<xs:enumeration value="14.02"/>
6726-
<xs:enumeration value="14.03"/>
6727-
<xs:enumeration value="14.04"/>
6728-
<xs:enumeration value="14.05"/>
6729-
<xs:enumeration value="14.06"/>
6730-
<xs:enumeration value="14.07"/>
6731-
<xs:enumeration value="14.08"/>
6732-
<xs:enumeration value="14.09"/>
6733-
<xs:enumeration value="14.10"/>
6734-
<xs:enumeration value="14.11"/>
6735-
<xs:enumeration value="14.12"/>
6736-
<xs:enumeration value="14.13"/>
6737-
<xs:enumeration value="14.14"/>
6738-
<xs:enumeration value="15.01"/>
6739-
<xs:enumeration value="15.02"/>
6740-
<xs:enumeration value="15.03"/>
6741-
<xs:enumeration value="15.04"/>
6742-
<xs:enumeration value="15.05"/>
6743-
<xs:enumeration value="15.06"/>
6744-
<xs:enumeration value="15.07"/>
6745-
<xs:enumeration value="15.08"/>
6746-
<xs:enumeration value="15.09"/>
6747-
<xs:enumeration value="15.10"/>
6748-
<xs:enumeration value="15.11"/>
6749-
<xs:enumeration value="15.12"/>
6750-
<xs:enumeration value="15.13"/>
6751-
<xs:enumeration value="15.14"/>
6752-
<xs:enumeration value="15.15"/>
6753-
<xs:enumeration value="15.16"/>
6754-
<xs:enumeration value="15.17"/>
6755-
<xs:enumeration value="15.18"/>
6756-
<xs:enumeration value="16.01"/>
6757-
<xs:enumeration value="16.02"/>
6758-
<xs:enumeration value="17.01"/>
6759-
<xs:enumeration value="17.02"/>
6760-
<xs:enumeration value="17.03"/>
6761-
<xs:enumeration value="17.04"/>
6762-
<xs:enumeration value="17.05"/>
6763-
<xs:enumeration value="17.06"/>
6764-
<xs:enumeration value="17.08"/>
6765-
<xs:enumeration value="17.09"/>
6766-
<xs:enumeration value="17.10"/>
6767-
<xs:enumeration value="17.11"/>
6768-
<xs:enumeration value="17.12"/>
6769-
<xs:enumeration value="17.13"/>
6770-
<xs:enumeration value="17.14"/>
6771-
<xs:enumeration value="17.15"/>
6772-
<xs:enumeration value="17.16"/>
6773-
<xs:enumeration value="17.17"/>
6774-
<xs:enumeration value="17.18"/>
6775-
<xs:enumeration value="17.19"/>
6776-
<xs:enumeration value="17.20"/>
6777-
<xs:enumeration value="17.21"/>
6778-
<xs:enumeration value="17.22"/>
6779-
<xs:enumeration value="17.23"/>
6780-
<xs:enumeration value="17.24"/>
6781-
<xs:enumeration value="17.25"/>
6782-
<xs:enumeration value="18.01"/>
6783-
<xs:enumeration value="19.01"/>
6784-
<xs:enumeration value="20.01"/>
6785-
<xs:enumeration value="20.02"/>
6786-
<xs:enumeration value="20.03"/>
6787-
<xs:enumeration value="21.01"/>
6788-
<xs:enumeration value="22.01"/>
6789-
<xs:enumeration value="23.01"/>
6790-
<xs:enumeration value="24.01"/>
6791-
<xs:enumeration value="25.01"/>
6792-
<xs:enumeration value="25.02"/>
6793-
<xs:enumeration value="25.03"/>
6794-
<xs:enumeration value="25.04"/>
6795-
<xs:enumeration value="25.05"/>
6796-
<xs:enumeration value="26.01"/>
6797-
<xs:enumeration value="27.01"/>
6798-
<xs:enumeration value="28.01"/>
6799-
<xs:enumeration value="29.01"/>
6800-
<xs:enumeration value="30.01"/>
6801-
<xs:enumeration value="31.01"/>
6802-
<xs:enumeration value="32.01"/>
6803-
<xs:enumeration value="33.01"/>
6804-
<xs:enumeration value="34.01"/>
6805-
<xs:enumeration value="35.01"/>
6806-
<xs:enumeration value="36.01"/>
6807-
<xs:enumeration value="37.01"/>
6808-
<xs:enumeration value="38.01"/>
6809-
<xs:enumeration value="39.01"/>
6810-
<xs:enumeration value="40.01"/>
6706+
<xs:pattern value="[0-9]{2}.[0-9]{2}"/>
68116707
</xs:restriction>
68126708
</xs:simpleType>
68136709
<xs:simpleType name="TIdLote">

schemas/tiposBasico_v4.00.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@
545545
<xs:simpleType name="TPlaca">
546546
<xs:restriction base="xs:string">
547547
<xs:whiteSpace value="preserve"/>
548-
<xs:pattern value="[A-Z]{2,3}[0-9]{4}|[A-Z]{3,4}[0-9]{3}"/>
548+
<xs:pattern value="[A-Z]{2,3}[0-9]{4}|[A-Z]{3,4}[0-9]{3}|[A-Z0-9]{7}"/>
549549
</xs:restriction>
550550
</xs:simpleType>
551551
<xs:simpleType name="TCOrgaoIBGE">

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)