Skip to content

Commit

Permalink
Merge branch 'master' into adding-github-assets
Browse files Browse the repository at this point in the history
  • Loading branch information
fincatto authored Jun 8, 2020
2 parents 4465076 + e0c77c6 commit d945d57
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Git configuration
run: |
git config user.email "[email protected]"
git config user.name "Vmixvideo IT"
git config user.name "Wmix CI"
- name: Release Maven package
uses: samuelmeuli/[email protected]
Expand All @@ -36,4 +36,4 @@ jobs:
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}
maven_goals_phases: clean -B release:prepare release:perform -Darguments="-DskipTests"
maven_goals_phases: clean -B release:prepare release:perform -Darguments="-DskipTests"
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.wmixvideo</groupId>
<artifactId>nfe</artifactId>
<packaging>jar</packaging>
<version>3.0.7-SNAPSHOT</version>
<version>3.0.9-SNAPSHOT</version>
<name>nfe</name>
<description>Biblioteca de comunicacao de nota fiscal eletronica brasileira</description>
<url>https://github.com/wmixvideo/nfe</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public enum DFUnidadeFederativa {
AL("AL", "Alagoas", "27", "http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp", "http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp", "http://nfce.sefaz.al.gov.br/consultaNFCe.htm", "http://nfce.sefaz.al.gov.br/consultaNFCe.htm"),
AP("AP", "Amap\u00E1", "16", "https://www.sefaz.ap.gov.br/nfcehml/nfce.php", "https://www.sefaz.ap.gov.br/nfce/nfce.php", "https://www.sefaz.ap.gov.br/sate1/seg/SEGf_AcessarFuncao.jsp?cdFuncao=FIS_1261", "https://www.sefaz.ap.gov.br/sate/seg/SEGf_AcessarFuncao.jsp?cdFuncao=FIS_1261"),
AM("AM", "Amazonas", "13", "http://homnfce.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp", "http://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp", "homnfce.sefaz.am.gov.br/nfceweb/formConsulta.do", "sistemas.sefaz.am.gov.br/nfceweb/formConsulta.do"),
BA("BA", "Bahia", "29", "http://hnfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx", "http://nfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx", "http://hnfe.sefaz.ba.gov.br/servicos/nfce/default.aspx", "nfe.sefaz.ba.gov.br/servicos/nfce/default.aspx"),
BA("BA", "Bahia", "29", "http://hnfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx", "http://nfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx", "http://hinternet.sefaz.ba.gov.br/nfce/consulta", "http://www.sefaz.ba.gov.br/nfce/consulta"),
CE("CE", "Cear\u00E1", "23", "http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html", "http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html", "https://nfeh.sefaz.ce.gov.br/pages/consultaChaveAcesso.jsf", "https://nfe.sefaz.ce.gov.br/pages/consultaChaveAcesso.jsf"),
DF("DF", "Distrito Federal", "53", "http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx", "http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx", "http://dec.fazenda.df.gov.br/NFCE/", "http://dec.fazenda.df.gov.br/NFCE/"),
GO("GO", "Goi\u00E1s", "52", "http://homolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe", "http://nfe.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe", "http://homolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe", "http://nfe.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class NFInfoEventoRetorno extends DFBase {
@Element(name = "tpAmb")
private DFAmbiente ambiente;

@Element(name = "verAplic")
@Element(name = "verAplic", required = false)
private String versaoAplicativo;

@Element(name = "cOrgao")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public enum NFOperadoraCartao {
CABAL("09", "Cabal"),
OUTROS("99", "Outros");

private final String codigo;
private final String descricao;
private String codigo;
private String descricao;

NFOperadoraCartao(final String codigo, final String descricao) {
this.codigo = codigo;
Expand All @@ -38,4 +38,17 @@ public static NFOperadoraCartao valueOfCodigo(final String codigo) {
public String toString() {
return this.codigo + " - " + this.descricao;
}

public String getDescricao() {
return descricao;
}

public void setDescricao(String descricao) {
this.descricao = descricao;
}

public void setCodigo(String codigo) {
this.codigo = codigo;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static byte[] geraCadeiaCertificados(final DFAmbiente ambiente, final Str
keyStore.load(null, senha.toCharArray());
try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {

/*//nao eh mais usado
for (final NFAutorizador31 aut : NFAutorizador31.values()) {
// Para NFe...
final String urlNF = aut.getNfeStatusServico(ambiente);
Expand All @@ -41,6 +42,7 @@ public static byte[] geraCadeiaCertificados(final DFAmbiente ambiente, final Str
DFCadeiaCertificados.get(keyStore, host);
}
}
*/

for (final NFAutorizador400 aut : NFAutorizador400.values()) {
// Para NFe...
Expand All @@ -57,6 +59,18 @@ public static byte[] geraCadeiaCertificados(final DFAmbiente ambiente, final Str
DFCadeiaCertificados.get(keyStore, host);
}
}

//URLs especificas do AN (www.fazenda.gov.br e www1.fazenda.gov.br)
final String urlNF1 = NFAutorizador400.AN.getRecepcaoEventoAN(ambiente);
if (StringUtils.isNotBlank(urlNF1)) {
final String host = new URI(urlNF1).getHost();
DFCadeiaCertificados.get(keyStore, host);
}
final String urlNF2 = NFAutorizador400.AN.getNFeDistribuicaoDFe(ambiente);
if (StringUtils.isNotBlank(urlNF2)) {
final String host = new URI(urlNF2).getHost();
DFCadeiaCertificados.get(keyStore, host);
}

// MDFE
for (final MDFAutorizador3 aut : MDFAutorizador3.values()) {
Expand Down

0 comments on commit d945d57

Please sign in to comment.