Skip to content

Commit d0d841a

Browse files
committed
Merge branch 'release' into SKYW-1824-Sincronizacao-da-branc-master_base-com-a-release-no-Java_NFe
2 parents c4cd2f2 + 688a66c commit d0d841a

38 files changed

+2863
-141
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ target/
22
.idea/
33
*.iml
44
/target/
5+
/.github/*.md
6+
show,

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Java-NFe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.49/jar)
1+
# Java-NFe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.51/jar) [![Coverage Status](https://coveralls.io/repos/github/Samuel-Oliveira/Java_NFe/badge.svg?branch=master)](https://coveralls.io/github/Samuel-Oliveira/Java_NFe?branch=master)
22
Biblioteca Java para consumo do WebService de NFe/NFCe
33

44
### Powered by
@@ -22,7 +22,7 @@ Para Iniciar :
2222
<dependency>
2323
<groupId>br.com.swconsultoria</groupId>
2424
<artifactId>java-nfe</artifactId>
25-
<version>4.00.49</version>
25+
<version>4.00.51</version>
2626
</dependency>
2727
```
2828

@@ -34,7 +34,7 @@ repositories {
3434
}
3535
}
3636
dependencies {
37-
implementation "br.com.swconsultoria:java-nfe:4.00.49"
37+
implementation "br.com.swconsultoria:java-nfe:4.00.51"
3838
}
3939
```
4040

@@ -44,6 +44,13 @@ ________________________________________________________________________________
4444

4545
# Historico de Versões
4646

47+
## v4.00.51 - 19/03/2026 - Schemas PL.010b (v1.30)
48+
- Adicionado Teste Unitarios
49+
- Atualizado Cacert
50+
51+
## v4.00.50 - 16/02/2026 - Schemas PL.010b (v1.30)
52+
- Ajustes Impressao Danfe
53+
4754
## v4.00.49 - 18/01/2026 - Schemas PL.010b (v1.30)
4855
- Corrigido monofasia retida Anteriormente.
4956
- Adicionado calculos IBSCBS para Diferimento

pom-base.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>br.com.swconsultoria</groupId>
55
<artifactId>java-nfe</artifactId>
6-
<version>4.00.49-${versao}-SNAPSHOT</version>
6+
<version>4.00.51-${versao}-SNAPSHOT</version>
77
<name>Java_NFe</name>
88
<description>Api java para consumo do webService de nota fiscal eletronica</description>
99
<url>https://github.com/Samuel-Oliveira/Java_NFe</url>
@@ -31,7 +31,7 @@
3131
<java.version>1.8</java.version>
3232

3333
<!-- Versions -->
34-
<java-certificado.version>3.13</java-certificado.version>
34+
<java-certificado.version>3.14</java-certificado.version>
3535
<httpcore.version>4.4.6</httpcore.version>
3636
<jaxb-impl.version>2.3.1</jaxb-impl.version>
3737
<jaxb-xjc.version>2.3.1</jaxb-xjc.version>

pom.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>br.com.swconsultoria</groupId>
55
<artifactId>java-nfe</artifactId>
6-
<version>4.00.49</version>
6+
<version>4.00.51</version>
77
<name>Java_NFe</name>
88
<description>Api java para consumo do webService de nota fiscal eletronica</description>
99
<url>https://github.com/Samuel-Oliveira/Java_NFe</url>
@@ -31,7 +31,7 @@
3131
<java.version>1.8</java.version>
3232

3333
<!-- Versions -->
34-
<java-certificado.version>3.13</java-certificado.version>
34+
<java-certificado.version>3.14</java-certificado.version>
3535
<httpcore.version>4.4.6</httpcore.version>
3636
<jaxb-impl.version>2.3.1</jaxb-impl.version>
3737
<jaxb-xjc.version>2.3.1</jaxb-xjc.version>
@@ -279,6 +279,15 @@
279279
<autoPublish>true</autoPublish>
280280
</configuration>
281281
</plugin>
282+
<!-- Cobertura de testes -->
283+
<plugin>
284+
<groupId>org.eluder.coveralls</groupId>
285+
<artifactId>coveralls-maven-plugin</artifactId>
286+
<version>4.3.0</version>
287+
<configuration>
288+
<repoToken>paGe4qkZvPNJtvxqY8NaJN5ImZO56RqB6</repoToken>
289+
</configuration>
290+
</plugin>
282291
</plugins>
283292
</build>
284293
</project>

schemas/leiauteNFe_v4.00.xsd

Lines changed: 102 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
<!-- PL_009m_NT2019_001_v155 - Inclusão de campos para Crédito Presumido e Redução da base de cálculo -->
1919
<!-- PL_009m_NT2023_004_v101 - Informações de Pagamentos e Outros -->
2020
<!-- PL_009p_NT2024_003_v103 - Produtos agropecuários -->
21-
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
22-
xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe"
23-
elementFormDefault="qualified" attributeFormDefault="unqualified">
21+
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:editix="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
2422
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
2523
<xs:include schemaLocation="tiposBasico_v4.00.xsd"/>
2624
<xs:include schemaLocation="DFeTiposBasicos_v1.00.xsd"/>
@@ -211,7 +209,13 @@ Campo preenchido somente quando “indPres = 5 (Operação presencial, fora do e
211209
</xs:element>
212210
<xs:element name="tpNFDebito" type="TTpNFDebito" minOccurs="0">
213211
<xs:annotation>
214-
<xs:documentation>Tipo de Nota de Débito</xs:documentation>
212+
<xs:documentation>Tipo de Nota de Débito:
213+
01=Transferência de créditos para Cooperativas;
214+
02=Anulação de Crédito por Saídas Imunes/Isentas;
215+
03=Débitos de notas fiscais não processadas na apuração;
216+
04=Multa e juros;
217+
05=Transferência de crédito de sucessão.
218+
</xs:documentation>
215219
</xs:annotation>
216220
</xs:element>
217221
<xs:element name="tpNFCredito" type="TTpNFCredito" minOccurs="0">
@@ -503,7 +507,7 @@ Preencher com &quot;2B&quot;, quando se tratar de Cupom Fiscal emitido por máqu
503507
</xs:annotation>
504508
<xs:complexType>
505509
<xs:sequence>
506-
<xs:element name="refNFe" type="TChNFe" minOccurs="1" maxOccurs="99">
510+
<xs:element name="refNFe" type="TChNFe" maxOccurs="99">
507511
<xs:annotation>
508512
<xs:documentation>Chave de acesso da NF-e de antecipação de pagamento</xs:documentation>
509513
</xs:annotation>
@@ -2557,13 +2561,15 @@ ambiente.</xs:documentation>
25572561
</xs:element>
25582562
<xs:element name="motDesICMS">
25592563
<xs:annotation>
2560-
<xs:documentation>Motivo da desoneração do ICMS:3-Uso na agropecuária;9-Outros;12-Fomento agropecuário</xs:documentation>
2564+
<xs:documentation>Motivo da desoneração do ICMS:3-Uso na agropecuária;9-Outros; 10=Deficiente Condutor (Convênio ICMS 38/12); 11=Deficiente Não Condutor (Convênio ICMS 38/12); 12-Fomento agropecuário</xs:documentation>
25612565
</xs:annotation>
25622566
<xs:simpleType>
25632567
<xs:restriction base="xs:string">
25642568
<xs:whiteSpace value="preserve"/>
25652569
<xs:enumeration value="3"/>
25662570
<xs:enumeration value="9"/>
2571+
<xs:enumeration value="10"/>
2572+
<xs:enumeration value="11"/>
25672573
<xs:enumeration value="12"/>
25682574
</xs:restriction>
25692575
</xs:simpleType>
@@ -3397,11 +3403,39 @@ Informar o motivo da desoneração:
33973403
<xs:documentation>Percentual de redução da BC</xs:documentation>
33983404
</xs:annotation>
33993405
</xs:element>
3406+
<xs:element name="cBenefRBC" minOccurs="0">
3407+
<xs:annotation>
3408+
<xs:documentation>Código de Benefício Fiscal na UF aplicado ao item quando houver RBC.</xs:documentation>
3409+
</xs:annotation>
3410+
<xs:simpleType>
3411+
<xs:restriction base="xs:string">
3412+
<xs:whiteSpace value="preserve"/>
3413+
<xs:pattern value="[!-ÿ]{8}|[!-ÿ]{10}"/>
3414+
</xs:restriction>
3415+
</xs:simpleType>
3416+
</xs:element>
34003417
<xs:element name="pICMS" type="TDec_0302a04">
34013418
<xs:annotation>
34023419
<xs:documentation>Alíquota do ICMS</xs:documentation>
34033420
</xs:annotation>
34043421
</xs:element>
3422+
<xs:sequence minOccurs="0">
3423+
<xs:element name="vICMSOp" type="TDec_1302">
3424+
<xs:annotation>
3425+
<xs:documentation>Valor do ICMS da Operação</xs:documentation>
3426+
</xs:annotation>
3427+
</xs:element>
3428+
<xs:element name="pDif" type="TDec_0302a04Max100">
3429+
<xs:annotation>
3430+
<xs:documentation>Percentual do diferemento</xs:documentation>
3431+
</xs:annotation>
3432+
</xs:element>
3433+
<xs:element name="vICMSDif" type="TDec_1302">
3434+
<xs:annotation>
3435+
<xs:documentation>Valor do ICMS da diferido</xs:documentation>
3436+
</xs:annotation>
3437+
</xs:element>
3438+
</xs:sequence>
34053439
<xs:element name="vICMS" type="TDec_1302">
34063440
<xs:annotation>
34073441
<xs:documentation>Valor do ICMS</xs:documentation>
@@ -3424,6 +3458,23 @@ Informar o motivo da desoneração:
34243458
</xs:annotation>
34253459
</xs:element>
34263460
</xs:sequence>
3461+
<xs:sequence minOccurs="0">
3462+
<xs:element name="pFCPDif" type="TDec_0302a04Opc">
3463+
<xs:annotation>
3464+
<xs:documentation>Percentual do diferimento do ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
3465+
</xs:annotation>
3466+
</xs:element>
3467+
<xs:element name="vFCPDif" type="TDec_1302">
3468+
<xs:annotation>
3469+
<xs:documentation>Valor do ICMS relativo ao Fundo de Combate à Pobreza (FCP) diferido.</xs:documentation>
3470+
</xs:annotation>
3471+
</xs:element>
3472+
<xs:element name="vFCPEfet" type="TDec_1302" minOccurs="0">
3473+
<xs:annotation>
3474+
<xs:documentation>Valor efetivo do ICMS relativo ao Fundo de Combate à Pobreza (FCP).</xs:documentation>
3475+
</xs:annotation>
3476+
</xs:element>
3477+
</xs:sequence>
34273478
</xs:sequence>
34283479
<xs:sequence minOccurs="0">
34293480
<xs:element name="modBCST">
@@ -3571,12 +3622,14 @@ Operação interestadual para consumidor final com partilha do ICMS devido na o
35713622
<xs:annotation>
35723623
<xs:documentation>Tributação pelo ICMS
35733624
10 - Tributada e com cobrança do ICMS por substituição tributária;
3625+
20 – Redução de base de cálculo
35743626
90 – Outros.</xs:documentation>
35753627
</xs:annotation>
35763628
<xs:simpleType>
35773629
<xs:restriction base="xs:string">
35783630
<xs:whiteSpace value="preserve"/>
35793631
<xs:enumeration value="10"/>
3632+
<xs:enumeration value="20"/>
35803633
<xs:enumeration value="90"/>
35813634
</xs:restriction>
35823635
</xs:simpleType>
@@ -3695,6 +3748,43 @@ Operação interestadual para consumidor final com partilha do ICMS devido na o
36953748
<xs:documentation>Sigla da UF para qual é devido o ICMS ST da operação.</xs:documentation>
36963749
</xs:annotation>
36973750
</xs:element>
3751+
<xs:sequence minOccurs="0">
3752+
<xs:annotation>
3753+
<xs:documentation>Grupo desoneração</xs:documentation>
3754+
</xs:annotation>
3755+
<xs:element name="vICMSDeson" type="TDec_1302">
3756+
<xs:annotation>
3757+
<xs:documentation>Valor do ICMS de desoneração</xs:documentation>
3758+
</xs:annotation>
3759+
</xs:element>
3760+
<xs:element name="motDesICMS">
3761+
<xs:annotation>
3762+
<xs:documentation>Motivo da desoneração do ICMS:9-Outros;10=Deficiente Condutor (Convênio ICMS 38/12) 11=Deficiente Não Condutor (Convênio ICMS 38/12)</xs:documentation>
3763+
</xs:annotation>
3764+
<xs:simpleType>
3765+
<xs:restriction base="xs:string">
3766+
<xs:whiteSpace value="preserve"/>
3767+
<xs:enumeration value="9"/>
3768+
<xs:enumeration value="10"/>
3769+
<xs:enumeration value="11"/>
3770+
</xs:restriction>
3771+
</xs:simpleType>
3772+
</xs:element>
3773+
<xs:element name="indDeduzDeson" minOccurs="0">
3774+
<xs:annotation>
3775+
<xs:documentation>Indica se o valor do ICMS desonerado (vICMSDeson) deduz do valor do item (vProd):
3776+
0=Valor do ICMS desonerado (vICMSDeson) não deduz do valor do item (vProd) / total da NF-e;
3777+
1=Valor do ICMS desonerado (vICMSDeson) deduz do valor do item (vProd) / total da NF-e.</xs:documentation>
3778+
</xs:annotation>
3779+
<xs:simpleType>
3780+
<xs:restriction base="xs:string">
3781+
<xs:whiteSpace value="preserve"/>
3782+
<xs:enumeration value="0"/>
3783+
<xs:enumeration value="1"/>
3784+
</xs:restriction>
3785+
</xs:simpleType>
3786+
</xs:element>
3787+
</xs:sequence>
36983788
</xs:sequence>
36993789
</xs:complexType>
37003790
</xs:element>
@@ -6520,16 +6610,16 @@ tipo de ato concessório:
65206610
<xs:whiteSpace value="preserve"/>
65216611
<xs:minLength value="60"/>
65226612
<xs:maxLength value="1000"/>
6523-
<!--QRCODE V1-->
65246613
<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})"/>
6525-
<!--QRCODE V2 ONLINE-->
65266614
<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})"/>
6527-
<!--QRCODE V2 OFFLINE-->
65286615
<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})"/>
6529-
<!--QRCODE V3 ONLINE-->
65306616
<xs:pattern value="((HTTPS?|https?)://.*\?p=([0-9]{34}(1|3|4)[0-9]{9})\|[3]\|[1-2])"/>
6531-
<!--QRCODE V3 OFFLINE-->
65326617
<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}))"/>
6618+
<!--QRCODE V1-->
6619+
<!--QRCODE V2 ONLINE-->
6620+
<!--QRCODE V2 OFFLINE-->
6621+
<!--QRCODE V3 ONLINE-->
6622+
<!--QRCODE V3 OFFLINE-->
65336623
</xs:restriction>
65346624
</xs:simpleType>
65356625
</xs:element>
@@ -7578,4 +7668,4 @@ alterado para tamanho variavel 1-4. (NT2011/004)</xs:documentation>
75787668
</xs:choice>
75797669
</xs:sequence>
75807670
</xs:complexType>
7581-
</xs:schema>
7671+
</xs:schema>

schemas/nfe_v4.00.xsd

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
3-
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe"
4-
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
5-
attributeFormDefault="unqualified">
6-
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
7-
<xs:element name="NFe" type="TNFe">
8-
<xs:annotation>
9-
<xs:documentation>Nota Fiscal Eletrônica</xs:documentation>
10-
</xs:annotation>
11-
</xs:element>
12-
</xs:schema>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
3+
<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">
4+
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
5+
<xs:element name="NFe" type="TNFe">
6+
<xs:annotation>
7+
<xs:documentation>Nota Fiscal Eletrônica</xs:documentation>
8+
</xs:annotation>
9+
</xs:element>
10+
</xs:schema>

0 commit comments

Comments
 (0)