forked from Samuel-Oliveira/Java_NFe
-
Notifications
You must be signed in to change notification settings - Fork 0
Merge release para master_base #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8307f1d
SKYW-2339 - Substitui nexus-staging-maven-plugin por maven-deploy-plu…
GlauberF 7cb8d76
Merge pull request #45 from asaasdev/SKYW-2339-fix-nexus-staging-plugin
GlauberF 6b63350
SKYW-2339 - Limpa cache negativo do Maven antes do build no Dockerfil…
GlauberF cb1f566
Merge pull request #46 from asaasdev/SKYW-2339-fix-maven-source-plugi…
GlauberF 28c3784
SKYW-2339 - Remove credenciais de download do mavensettings.xml
GlauberF ffc4e02
Merge pull request #47 from asaasdev/SKYW-2339-fix-mavensettings-remo…
GlauberF 7864354
SKYW-2339 - Remove maven-source-plugin e maven-javadoc-plugin do pom-…
GlauberF 113f817
Merge pull request #48 from asaasdev/SKYW-2339-remove-source-javadoc-…
GlauberF 0611514
NfeA3 implementation
danielrbrdan 3951d7b
NfeA3 implementation
danielrbrdan b74efcf
EventoGenericoA3 implementation
danielrbrdan 73fcaf9
Merge pull request #49 from asaasdev/SKYW-2345-java-n-fe-adicionar-su…
GlauberF e49fac1
pom implementation
danielrbrdan b110771
pom-base implementation
danielrbrdan c7ae99a
Exclusion rollback
danielrbrdan 51c0a42
Merge pull request #50 from asaasdev/SKYW-2397-java-nfe-versionamento…
GlauberF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
37 changes: 37 additions & 0 deletions
37
src/main/java/br/com/swconsultoria/nfe/EventoGenericoA3.java
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| package br.com.swconsultoria.nfe; | ||
|
|
||
| import javax.xml.bind.JAXBException; | ||
| import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; | ||
| import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; | ||
| import br.com.swconsultoria.nfe.dom.enuns.ServicosEnum; | ||
| import br.com.swconsultoria.nfe.exception.NfeException; | ||
| import br.com.swconsultoria.nfe.schemas_eventos.TEnvEventoGenerico; | ||
| import br.com.swconsultoria.nfe.schemas_eventos.TProcEventoGenerico; | ||
| import br.com.swconsultoria.nfe.schemas_eventos.TRetEnvEventoGenerico; | ||
| import br.com.swconsultoria.nfe.schemas_eventos.TRetEventoGenerico; | ||
| import br.com.swconsultoria.nfe.util.ConstantesUtil; | ||
| import br.com.swconsultoria.nfe.util.XmlNfeUtil; | ||
|
|
||
| class EventoGenericoA3 { | ||
|
|
||
| private EventoGenericoA3() {} | ||
|
|
||
| static TRetEnvEventoGenerico eventoGenericoA3(ConfiguracoesNfe config, boolean valida, String xmlAssinado) | ||
| throws NfeException { | ||
| String xmlRetorno = EventosA3.enviarEvento(config, xmlAssinado, ServicosEnum.EVENTO_GENERICO, valida, DocumentoEnum.NFE); | ||
| return XmlNfeUtil.xmlToObject(xmlRetorno, TRetEnvEventoGenerico.class); | ||
| } | ||
|
|
||
| static String criaProcEventoGenericoA3(ConfiguracoesNfe config, String xmlAssinado, TRetEventoGenerico retorno) | ||
| throws NfeException { | ||
| try { | ||
| TProcEventoGenerico procEvento = new TProcEventoGenerico(); | ||
| procEvento.setVersao(ConstantesUtil.VERSAO.EVENTO_GENERICO); | ||
| procEvento.setEvento(XmlNfeUtil.xmlToObject(xmlAssinado, TEnvEventoGenerico.class).getEvento().get(0)); | ||
| procEvento.setRetEvento(retorno); | ||
| return XmlNfeUtil.objectToXml(procEvento, config.getEncode()); | ||
| } catch (JAXBException e) { | ||
| throw new NfeException(e.getMessage(), e); | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.