-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
19 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Notas de versão | ||
|
||
- Adicionado Eventos Suframa Vistoria E Internaliza | ||
- Atualizado Java Certificado |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,13 @@ | |
import br.com.swconsultoria.nfe.dom.enuns.EstadosEnum; | ||
import br.com.swconsultoria.nfe.util.ConstantesUtil; | ||
import br.com.swconsultoria.nfe.util.ObjetoUtil; | ||
import lombok.extern.java.Log; | ||
|
||
import java.io.InputStream; | ||
import java.lang.reflect.Field; | ||
import java.nio.charset.Charset; | ||
import java.nio.charset.StandardCharsets; | ||
import java.time.ZoneId; | ||
import java.util.logging.Level; | ||
import java.util.logging.Logger; | ||
|
||
/** | ||
* @author Samuel Oliveira | ||
|
@@ -31,6 +30,7 @@ | |
* @see ConfiguracoesNfe | ||
* @see ConfiguracoesWebNfe | ||
*/ | ||
@Log | ||
public class ConfiguracoesNfe { | ||
|
||
private EstadosEnum estado; | ||
|
@@ -107,16 +107,14 @@ public static ConfiguracoesNfe criarConfiguracoes(EstadosEnum estado, AmbienteEn | |
} | ||
} | ||
|
||
if (Logger.getLogger("").isLoggable(Level.SEVERE)) { | ||
System.err.println("####################################################################"); | ||
System.err.println(" Api Java Nfe - Versão 4.00.28 - 20/01/2024"); | ||
if (Logger.getLogger("").isLoggable(Level.WARNING)) { | ||
System.err.println(" Samuel Olivera - [email protected] "); | ||
} | ||
System.err.println(" Pasta Schemas: " + pastaSchemas); | ||
System.err.println(" Ambiente: " + (ambiente.equals(AmbienteEnum.PRODUCAO) ? "Produção" : "Homologação") + " - Estado: " + estado.getNome()); | ||
System.err.println("####################################################################"); | ||
} | ||
log.info(String.format("JAVA-NFE | Samuel Oliveira | [email protected] " + | ||
"| VERSAO=%s | DATA_VERSAO=%s | PASTA_SCHEMAS=%s | AMBIENTE=%s | ESTADO=%s", | ||
"4.00.29", | ||
"02/03/2024", | ||
pastaSchemas, | ||
ambiente, | ||
estado.getNome().toUpperCase())); | ||
|
||
if (!certificado.isValido()) { | ||
throw new CertificadoException("Certificado Vencido/Inválido"); | ||
} | ||
|