From 02b6a75834cc2bca33f4eee454a00492c51392a1 Mon Sep 17 00:00:00 2001 From: "jardel.novaes" Date: Sat, 13 Jul 2024 16:19:52 -0300 Subject: [PATCH 01/13] Tratamento de certificados na camada TLS/SSL em multithreading --- .../swconsultoria/nfe/DistribuicaoDFe.java | 9 ++++-- .../java/br/com/swconsultoria/nfe/Status.java | 14 +++++--- .../com/swconsultoria/nfe/util/StubUtil.java | 32 +++++++++++++++++++ 3 files changed, 47 insertions(+), 8 deletions(-) create mode 100644 src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java diff --git a/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java b/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java index 1bb8f55e..c86ea9ab 100644 --- a/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java @@ -1,5 +1,6 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.dom.enuns.ConsultaDFeEnum; import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; @@ -10,6 +11,7 @@ import br.com.swconsultoria.nfe.schema.retdistdfeint.RetDistDFeInt; import br.com.swconsultoria.nfe.util.ConstantesUtil; import br.com.swconsultoria.nfe.util.ObjetoUtil; +import br.com.swconsultoria.nfe.util.StubUtil; import br.com.swconsultoria.nfe.util.WebServiceUtil; import br.com.swconsultoria.nfe.util.XmlNfeUtil; import br.com.swconsultoria.nfe.wsdl.NFeDistribuicaoDFe.NFeDistribuicaoDFeStub; @@ -85,8 +87,9 @@ static RetDistDFeInt consultaNfe(ConfiguracoesNfe config, PessoaEnum tipoPessoa, NFeDistribuicaoDFeStub.NfeDistDFeInteresse distDFeInteresse = new NFeDistribuicaoDFeStub.NfeDistDFeInteresse(); distDFeInteresse.setNfeDadosMsg(dadosMsgType0); - NFeDistribuicaoDFeStub stub = new NFeDistribuicaoDFeStub( - WebServiceUtil.getUrl(config, DocumentoEnum.NFE, ServicosEnum.DISTRIBUICAO_DFE)); + String url = WebServiceUtil.getUrl(config, DocumentoEnum.NFE, ServicosEnum.DISTRIBUICAO_DFE); + NFeDistribuicaoDFeStub stub = new NFeDistribuicaoDFeStub(url); + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -100,7 +103,7 @@ static RetDistDFeInt consultaNfe(ConfiguracoesNfe config, PessoaEnum tipoPessoa, return XmlNfeUtil.xmlToObject(result.getNfeDistDFeInteresseResult().getExtraElement().toString(), RetDistDFeInt.class); - } catch (RemoteException | XMLStreamException | JAXBException e) { + } catch (RemoteException | XMLStreamException | JAXBException | CertificadoException e) { throw new NfeException(e.getMessage(),e); } } diff --git a/src/main/java/br/com/swconsultoria/nfe/Status.java b/src/main/java/br/com/swconsultoria/nfe/Status.java index 683b24dc..f22076f1 100644 --- a/src/main/java/br/com/swconsultoria/nfe/Status.java +++ b/src/main/java/br/com/swconsultoria/nfe/Status.java @@ -1,5 +1,6 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; import br.com.swconsultoria.nfe.dom.enuns.EstadosEnum; @@ -8,6 +9,7 @@ import br.com.swconsultoria.nfe.schema_4.consStatServ.TConsStatServ; import br.com.swconsultoria.nfe.schema_4.retConsStatServ.TRetConsStatServ; import br.com.swconsultoria.nfe.util.ConstantesUtil; +import br.com.swconsultoria.nfe.util.StubUtil; import br.com.swconsultoria.nfe.util.WebServiceUtil; import br.com.swconsultoria.nfe.util.XmlNfeUtil; import br.com.swconsultoria.nfe.wsdl.NFeStatusServico4.NFeStatusServico4Stub; @@ -73,14 +75,16 @@ static TRetConsStatServ statusServico(ConfiguracoesNfe config, DocumentoEnum tip OMElement ome = AXIOMUtil.stringToOM(xml); + String url = WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.STATUS_SERVICO); + if (EstadosEnum.MS.equals(config.getEstado())) { br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub.NfeDadosMsg dadosMsg = new br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub stub = - new br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub( - WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.STATUS_SERVICO)); + new br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub(url); + StubUtil.configuraHttpClient(stub, config, url); br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub.NfeResultMsg result = stub.nfeStatusServicoNF(dadosMsg); @@ -90,8 +94,8 @@ static TRetConsStatServ statusServico(ConfiguracoesNfe config, DocumentoEnum tip NFeStatusServico4Stub.NfeDadosMsg dadosMsg = new NFeStatusServico4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); - NFeStatusServico4Stub stub = new NFeStatusServico4Stub( - WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.STATUS_SERVICO)); + NFeStatusServico4Stub stub = new NFeStatusServico4Stub(url); + StubUtil.configuraHttpClient(stub, config, url); NFeStatusServico4Stub.NfeResultMsg result = stub.nfeStatusServicoNF(dadosMsg); @@ -99,7 +103,7 @@ static TRetConsStatServ statusServico(ConfiguracoesNfe config, DocumentoEnum tip return XmlNfeUtil.xmlToObject(result.getExtraElement().toString(), TRetConsStatServ.class); } - } catch (RemoteException | XMLStreamException | JAXBException e) { + } catch (RemoteException | XMLStreamException | JAXBException | CertificadoException e) { throw new NfeException(e.getMessage(),e); } } diff --git a/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java new file mode 100644 index 00000000..7475f655 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java @@ -0,0 +1,32 @@ +package br.com.swconsultoria.nfe.util; + +import br.com.swconsultoria.certificado.Certificado; +import br.com.swconsultoria.certificado.CertificadoService; +import br.com.swconsultoria.certificado.exception.CertificadoException; +import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; +import org.apache.axis2.client.Stub; +import org.apache.axis2.transport.http.HTTPConstants; +import org.apache.commons.httpclient.HttpClient; + +public class StubUtil { + + /** + * + * @param stub {@link org.apache.axis2.client.Stub} que terá a conexão configurada para o {@link org.apache.commons.httpclient.HttpClient} + * específico do certificado. + * @param configuracoesNfe {@link br.com.swconsultoria.nfe.dom.ConfiguracoesNfe} config que possui o {@link br.com.swconsultoria.certificado.Certificado} + * que será configurado no HttpClient. + * @param url {@link String} url que será executada. + * @throws CertificadoException + */ + public static void configuraHttpClient(Stub stub, ConfiguracoesNfe configuracoesNfe, String url) throws CertificadoException { + Certificado certificado = configuracoesNfe.getCertificado(); + + HttpClient httpClient = ObjetoUtil.verifica(configuracoesNfe.getCacert()).isPresent() + ? CertificadoService.getHttpsClient(certificado, url, configuracoesNfe.getCacert()) + : CertificadoService.getHttpsClient(certificado, url); + + stub._getServiceClient().getOptions().setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient); + stub._getServiceClient().getOptions().setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, httpClient.getHostConfiguration().getProtocol()); + } +} From 5d3979696bd40c6aa7fc6c3f15f977caa205998e Mon Sep 17 00:00:00 2001 From: "jardel.novaes" Date: Fri, 11 Oct 2024 15:55:58 -0300 Subject: [PATCH 02/13] =?UTF-8?q?Ajusta=20e=20move=20fun=C3=A7=C3=A3o=20ge?= =?UTF-8?q?raHashCSRT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/swconsultoria/nfe/util/NFCeUtil.java | 25 ++++++++- .../swconsultoria/nfe/util/XmlNfeUtil.java | 16 ------ .../swconsultoria/nfe/util/NFCeUtilTest.java | 52 +++++++++++++++++++ .../nfe/util/XmlNfeUtilTest.java | 33 ------------ 4 files changed, 75 insertions(+), 51 deletions(-) create mode 100644 src/test/java/br/com/swconsultoria/nfe/util/NFCeUtilTest.java diff --git a/src/main/java/br/com/swconsultoria/nfe/util/NFCeUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/NFCeUtil.java index 5fae4c65..8c62c1ec 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/NFCeUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/NFCeUtil.java @@ -1,8 +1,9 @@ package br.com.swconsultoria.nfe.util; +import java.security.InvalidParameterException; import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; - +import java.security.NoSuchAlgorithmException; + /** * * @author Samuel Oliveira @@ -58,6 +59,26 @@ public static String getCodeQRCodeContingencia(String chave, String ambiente, St return urlConsulta + "?p=" + value + "|" + cHashQRCode; } + /** + * + * Função responsável por gerar o hashCSRT conforme definições da NT2018.005 v1.40. + * + * @param chave Chave da nota fiscal com 44 caracteres. + * @param csrt Token/Código de Segurança do Responsável Técnico, fornecido pela Sefaz de da estado. + * @return bytes conforme definição da NF2018.005 v1.40 sem fazer encode em base64. + * Isso porque já será feito ao gerar o xml devido ao tipo no XSD ser xs:base64Binary. + * @throws NoSuchAlgorithmException caso não encontre suporte para SHA-1. + */ + public static byte[] geraHashCSRT(String chave, String csrt) throws NoSuchAlgorithmException { + ObjetoUtil.verifica(chave).orElseThrow(() -> new InvalidParameterException("Chave não deve ser nula ou vazia")); + ObjetoUtil.verifica(csrt).orElseThrow(() -> new InvalidParameterException("CSRT não deve ser nulo ou vazio")); + if (chave.length() != 44) { + throw new InvalidParameterException("Chave deve conter 44 caracteres."); + } + + return getHash(csrt + chave); + } + /** * @param valor diff --git a/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java index 8cc46450..095d5b70 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java @@ -30,12 +30,8 @@ import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; -import java.security.InvalidParameterException; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; import java.time.LocalDateTime; import java.time.ZoneId; -import java.util.Base64; import java.util.GregorianCalendar; import java.util.List; import java.util.StringJoiner; @@ -426,16 +422,4 @@ public static String dataNfe(LocalDateTime dataASerFormatada, ZoneId zoneId) { } return null; } - - public static byte[] geraHashCSRT(String chave, String csrt) throws NoSuchAlgorithmException { - - ObjetoUtil.verifica(chave).orElseThrow(() -> new InvalidParameterException("Chave não deve ser nula ou vazia")); - ObjetoUtil.verifica(csrt).orElseThrow(() -> new InvalidParameterException("CSRT não deve ser nulo ou vazio")); - if (chave.length() != 44) { - throw new InvalidParameterException("Chave deve conter 44 caracteres."); - } - MessageDigest md = MessageDigest.getInstance("SHA-1"); - md.update((csrt + chave).getBytes()); - return Base64.getEncoder().encode(md.digest()); - } } diff --git a/src/test/java/br/com/swconsultoria/nfe/util/NFCeUtilTest.java b/src/test/java/br/com/swconsultoria/nfe/util/NFCeUtilTest.java new file mode 100644 index 00000000..96b73add --- /dev/null +++ b/src/test/java/br/com/swconsultoria/nfe/util/NFCeUtilTest.java @@ -0,0 +1,52 @@ +package br.com.swconsultoria.nfe.util; + +import org.junit.jupiter.api.Test; + +import java.nio.charset.StandardCharsets; +import java.security.NoSuchAlgorithmException; +import java.util.Base64; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; + +class NFCeUtilTest { + + @Test + void geraHashCSRTSucesso() throws NoSuchAlgorithmException { + String chave = "41180678393592000146558900000006041028190697"; + String csrt = "G8063VRTNDMO886SFNK5LDUDEI24XJ22YIPO"; + + assertArrayEquals("aWv6LeEM4X6u4+qBI2OYZ8grigw=".getBytes(StandardCharsets.UTF_8), geraHashCSRTBase64(chave, csrt)); + } + + @Test + void geraHashCSRTParametrosInvalidos() { + String chave = "41180678393592000146558900000006041028190697"; + String csrt = "G8063VRTNDMO886SFNK5LDUDEI24XJ22YIPO"; + + //Chave Nula + IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () + -> geraHashCSRTBase64(null, csrt) + ); + assertEquals(exception.getMessage(), "Chave não deve ser nula ou vazia"); + + //Chave Com menos Caracteres + exception = assertThrows(IllegalArgumentException.class, () + -> geraHashCSRTBase64("123", csrt) + ); + assertEquals(exception.getMessage(), "Chave deve conter 44 caracteres."); + + //CSRC Vazio + exception = assertThrows(IllegalArgumentException.class, () + -> geraHashCSRTBase64(chave, "") + ); + assertEquals(exception.getMessage(), "CSRT não deve ser nulo ou vazio"); + } + + private byte[] geraHashCSRTBase64(String chave, String csrt) throws NoSuchAlgorithmException { + //O XSD é xs:base64Binary e já faz o base64, aqui é uma "simulação" para os testes + return Base64.getEncoder().encode(NFCeUtil.geraHashCSRT(chave, csrt)); + } + +} \ No newline at end of file diff --git a/src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java b/src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java index 82b847a9..8bdfb13f 100644 --- a/src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java +++ b/src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java @@ -6,8 +6,6 @@ import java.io.FileNotFoundException; import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.security.NoSuchAlgorithmException; import static org.junit.jupiter.api.Assertions.*; @@ -57,36 +55,5 @@ void leXmlParametroVazioNull() { assertEquals(exception.getMessage(), "Arquivo xml não pode ser nulo/vazio."); } - @Test - void geraHashCSRTSucesso() throws NoSuchAlgorithmException { - String chave = "41180678393592000146558900000006041028190697"; - String csrt = "G8063VRTNDMO886SFNK5LDUDEI24XJ22YIPO"; - - assertArrayEquals("aWv6LeEM4X6u4+qBI2OYZ8grigw=".getBytes(StandardCharsets.UTF_8), XmlNfeUtil.geraHashCSRT(chave, csrt)); - } - - @Test - void geraHashCSRTParametrosInvalidos() { - String chave = "41180678393592000146558900000006041028190697"; - String csrt = "G8063VRTNDMO886SFNK5LDUDEI24XJ22YIPO"; - - //Chave Nula - IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () - -> XmlNfeUtil.geraHashCSRT(null, csrt) - ); - assertEquals(exception.getMessage(), "Chave não deve ser nula ou vazia"); - - //Chave Com menos Caracteres - exception = assertThrows(IllegalArgumentException.class, () - -> XmlNfeUtil.geraHashCSRT("123", csrt) - ); - assertEquals(exception.getMessage(), "Chave deve conter 44 caracteres."); - - //CSRC Vazio - exception = assertThrows(IllegalArgumentException.class, () - -> XmlNfeUtil.geraHashCSRT(chave, "") - ); - assertEquals(exception.getMessage(), "CSRT não deve ser nulo ou vazio"); - } } From a924884a9d0a5febaf1ebd70d0afecfc4dc887af Mon Sep 17 00:00:00 2001 From: "jardel.novaes" Date: Sat, 13 Jul 2024 16:19:52 -0300 Subject: [PATCH 03/13] Tratamento de certificados na camada TLS/SSL em multithreading --- .../swconsultoria/nfe/DistribuicaoDFe.java | 9 ++++-- .../java/br/com/swconsultoria/nfe/Status.java | 14 +++++--- .../com/swconsultoria/nfe/util/StubUtil.java | 32 +++++++++++++++++++ 3 files changed, 47 insertions(+), 8 deletions(-) create mode 100644 src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java diff --git a/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java b/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java index 1bb8f55e..c86ea9ab 100644 --- a/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java @@ -1,5 +1,6 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.dom.enuns.ConsultaDFeEnum; import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; @@ -10,6 +11,7 @@ import br.com.swconsultoria.nfe.schema.retdistdfeint.RetDistDFeInt; import br.com.swconsultoria.nfe.util.ConstantesUtil; import br.com.swconsultoria.nfe.util.ObjetoUtil; +import br.com.swconsultoria.nfe.util.StubUtil; import br.com.swconsultoria.nfe.util.WebServiceUtil; import br.com.swconsultoria.nfe.util.XmlNfeUtil; import br.com.swconsultoria.nfe.wsdl.NFeDistribuicaoDFe.NFeDistribuicaoDFeStub; @@ -85,8 +87,9 @@ static RetDistDFeInt consultaNfe(ConfiguracoesNfe config, PessoaEnum tipoPessoa, NFeDistribuicaoDFeStub.NfeDistDFeInteresse distDFeInteresse = new NFeDistribuicaoDFeStub.NfeDistDFeInteresse(); distDFeInteresse.setNfeDadosMsg(dadosMsgType0); - NFeDistribuicaoDFeStub stub = new NFeDistribuicaoDFeStub( - WebServiceUtil.getUrl(config, DocumentoEnum.NFE, ServicosEnum.DISTRIBUICAO_DFE)); + String url = WebServiceUtil.getUrl(config, DocumentoEnum.NFE, ServicosEnum.DISTRIBUICAO_DFE); + NFeDistribuicaoDFeStub stub = new NFeDistribuicaoDFeStub(url); + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -100,7 +103,7 @@ static RetDistDFeInt consultaNfe(ConfiguracoesNfe config, PessoaEnum tipoPessoa, return XmlNfeUtil.xmlToObject(result.getNfeDistDFeInteresseResult().getExtraElement().toString(), RetDistDFeInt.class); - } catch (RemoteException | XMLStreamException | JAXBException e) { + } catch (RemoteException | XMLStreamException | JAXBException | CertificadoException e) { throw new NfeException(e.getMessage(),e); } } diff --git a/src/main/java/br/com/swconsultoria/nfe/Status.java b/src/main/java/br/com/swconsultoria/nfe/Status.java index 683b24dc..f22076f1 100644 --- a/src/main/java/br/com/swconsultoria/nfe/Status.java +++ b/src/main/java/br/com/swconsultoria/nfe/Status.java @@ -1,5 +1,6 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; import br.com.swconsultoria.nfe.dom.enuns.EstadosEnum; @@ -8,6 +9,7 @@ import br.com.swconsultoria.nfe.schema_4.consStatServ.TConsStatServ; import br.com.swconsultoria.nfe.schema_4.retConsStatServ.TRetConsStatServ; import br.com.swconsultoria.nfe.util.ConstantesUtil; +import br.com.swconsultoria.nfe.util.StubUtil; import br.com.swconsultoria.nfe.util.WebServiceUtil; import br.com.swconsultoria.nfe.util.XmlNfeUtil; import br.com.swconsultoria.nfe.wsdl.NFeStatusServico4.NFeStatusServico4Stub; @@ -73,14 +75,16 @@ static TRetConsStatServ statusServico(ConfiguracoesNfe config, DocumentoEnum tip OMElement ome = AXIOMUtil.stringToOM(xml); + String url = WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.STATUS_SERVICO); + if (EstadosEnum.MS.equals(config.getEstado())) { br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub.NfeDadosMsg dadosMsg = new br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub stub = - new br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub( - WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.STATUS_SERVICO)); + new br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub(url); + StubUtil.configuraHttpClient(stub, config, url); br.com.swconsultoria.nfe.wsdl.NFeStatusServico4MS.NFeStatusServico4Stub.NfeResultMsg result = stub.nfeStatusServicoNF(dadosMsg); @@ -90,8 +94,8 @@ static TRetConsStatServ statusServico(ConfiguracoesNfe config, DocumentoEnum tip NFeStatusServico4Stub.NfeDadosMsg dadosMsg = new NFeStatusServico4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); - NFeStatusServico4Stub stub = new NFeStatusServico4Stub( - WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.STATUS_SERVICO)); + NFeStatusServico4Stub stub = new NFeStatusServico4Stub(url); + StubUtil.configuraHttpClient(stub, config, url); NFeStatusServico4Stub.NfeResultMsg result = stub.nfeStatusServicoNF(dadosMsg); @@ -99,7 +103,7 @@ static TRetConsStatServ statusServico(ConfiguracoesNfe config, DocumentoEnum tip return XmlNfeUtil.xmlToObject(result.getExtraElement().toString(), TRetConsStatServ.class); } - } catch (RemoteException | XMLStreamException | JAXBException e) { + } catch (RemoteException | XMLStreamException | JAXBException | CertificadoException e) { throw new NfeException(e.getMessage(),e); } } diff --git a/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java new file mode 100644 index 00000000..7475f655 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java @@ -0,0 +1,32 @@ +package br.com.swconsultoria.nfe.util; + +import br.com.swconsultoria.certificado.Certificado; +import br.com.swconsultoria.certificado.CertificadoService; +import br.com.swconsultoria.certificado.exception.CertificadoException; +import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; +import org.apache.axis2.client.Stub; +import org.apache.axis2.transport.http.HTTPConstants; +import org.apache.commons.httpclient.HttpClient; + +public class StubUtil { + + /** + * + * @param stub {@link org.apache.axis2.client.Stub} que terá a conexão configurada para o {@link org.apache.commons.httpclient.HttpClient} + * específico do certificado. + * @param configuracoesNfe {@link br.com.swconsultoria.nfe.dom.ConfiguracoesNfe} config que possui o {@link br.com.swconsultoria.certificado.Certificado} + * que será configurado no HttpClient. + * @param url {@link String} url que será executada. + * @throws CertificadoException + */ + public static void configuraHttpClient(Stub stub, ConfiguracoesNfe configuracoesNfe, String url) throws CertificadoException { + Certificado certificado = configuracoesNfe.getCertificado(); + + HttpClient httpClient = ObjetoUtil.verifica(configuracoesNfe.getCacert()).isPresent() + ? CertificadoService.getHttpsClient(certificado, url, configuracoesNfe.getCacert()) + : CertificadoService.getHttpsClient(certificado, url); + + stub._getServiceClient().getOptions().setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient); + stub._getServiceClient().getOptions().setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, httpClient.getHostConfiguration().getProtocol()); + } +} From f04ec5e48b86a12f6f3473d4cce3aeaa52c25fb8 Mon Sep 17 00:00:00 2001 From: "jardel.novaes" Date: Fri, 11 Oct 2024 15:55:58 -0300 Subject: [PATCH 04/13] =?UTF-8?q?Ajusta=20e=20move=20fun=C3=A7=C3=A3o=20ge?= =?UTF-8?q?raHashCSRT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/swconsultoria/nfe/util/NFCeUtil.java | 25 ++++++++- .../swconsultoria/nfe/util/XmlNfeUtil.java | 16 ------ .../swconsultoria/nfe/util/NFCeUtilTest.java | 52 +++++++++++++++++++ .../nfe/util/XmlNfeUtilTest.java | 33 ------------ 4 files changed, 75 insertions(+), 51 deletions(-) create mode 100644 src/test/java/br/com/swconsultoria/nfe/util/NFCeUtilTest.java diff --git a/src/main/java/br/com/swconsultoria/nfe/util/NFCeUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/NFCeUtil.java index 5fae4c65..8c62c1ec 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/NFCeUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/NFCeUtil.java @@ -1,8 +1,9 @@ package br.com.swconsultoria.nfe.util; +import java.security.InvalidParameterException; import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; - +import java.security.NoSuchAlgorithmException; + /** * * @author Samuel Oliveira @@ -58,6 +59,26 @@ public static String getCodeQRCodeContingencia(String chave, String ambiente, St return urlConsulta + "?p=" + value + "|" + cHashQRCode; } + /** + * + * Função responsável por gerar o hashCSRT conforme definições da NT2018.005 v1.40. + * + * @param chave Chave da nota fiscal com 44 caracteres. + * @param csrt Token/Código de Segurança do Responsável Técnico, fornecido pela Sefaz de da estado. + * @return bytes conforme definição da NF2018.005 v1.40 sem fazer encode em base64. + * Isso porque já será feito ao gerar o xml devido ao tipo no XSD ser xs:base64Binary. + * @throws NoSuchAlgorithmException caso não encontre suporte para SHA-1. + */ + public static byte[] geraHashCSRT(String chave, String csrt) throws NoSuchAlgorithmException { + ObjetoUtil.verifica(chave).orElseThrow(() -> new InvalidParameterException("Chave não deve ser nula ou vazia")); + ObjetoUtil.verifica(csrt).orElseThrow(() -> new InvalidParameterException("CSRT não deve ser nulo ou vazio")); + if (chave.length() != 44) { + throw new InvalidParameterException("Chave deve conter 44 caracteres."); + } + + return getHash(csrt + chave); + } + /** * @param valor diff --git a/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java index 8cc46450..095d5b70 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java @@ -30,12 +30,8 @@ import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; -import java.security.InvalidParameterException; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; import java.time.LocalDateTime; import java.time.ZoneId; -import java.util.Base64; import java.util.GregorianCalendar; import java.util.List; import java.util.StringJoiner; @@ -426,16 +422,4 @@ public static String dataNfe(LocalDateTime dataASerFormatada, ZoneId zoneId) { } return null; } - - public static byte[] geraHashCSRT(String chave, String csrt) throws NoSuchAlgorithmException { - - ObjetoUtil.verifica(chave).orElseThrow(() -> new InvalidParameterException("Chave não deve ser nula ou vazia")); - ObjetoUtil.verifica(csrt).orElseThrow(() -> new InvalidParameterException("CSRT não deve ser nulo ou vazio")); - if (chave.length() != 44) { - throw new InvalidParameterException("Chave deve conter 44 caracteres."); - } - MessageDigest md = MessageDigest.getInstance("SHA-1"); - md.update((csrt + chave).getBytes()); - return Base64.getEncoder().encode(md.digest()); - } } diff --git a/src/test/java/br/com/swconsultoria/nfe/util/NFCeUtilTest.java b/src/test/java/br/com/swconsultoria/nfe/util/NFCeUtilTest.java new file mode 100644 index 00000000..96b73add --- /dev/null +++ b/src/test/java/br/com/swconsultoria/nfe/util/NFCeUtilTest.java @@ -0,0 +1,52 @@ +package br.com.swconsultoria.nfe.util; + +import org.junit.jupiter.api.Test; + +import java.nio.charset.StandardCharsets; +import java.security.NoSuchAlgorithmException; +import java.util.Base64; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; + +class NFCeUtilTest { + + @Test + void geraHashCSRTSucesso() throws NoSuchAlgorithmException { + String chave = "41180678393592000146558900000006041028190697"; + String csrt = "G8063VRTNDMO886SFNK5LDUDEI24XJ22YIPO"; + + assertArrayEquals("aWv6LeEM4X6u4+qBI2OYZ8grigw=".getBytes(StandardCharsets.UTF_8), geraHashCSRTBase64(chave, csrt)); + } + + @Test + void geraHashCSRTParametrosInvalidos() { + String chave = "41180678393592000146558900000006041028190697"; + String csrt = "G8063VRTNDMO886SFNK5LDUDEI24XJ22YIPO"; + + //Chave Nula + IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () + -> geraHashCSRTBase64(null, csrt) + ); + assertEquals(exception.getMessage(), "Chave não deve ser nula ou vazia"); + + //Chave Com menos Caracteres + exception = assertThrows(IllegalArgumentException.class, () + -> geraHashCSRTBase64("123", csrt) + ); + assertEquals(exception.getMessage(), "Chave deve conter 44 caracteres."); + + //CSRC Vazio + exception = assertThrows(IllegalArgumentException.class, () + -> geraHashCSRTBase64(chave, "") + ); + assertEquals(exception.getMessage(), "CSRT não deve ser nulo ou vazio"); + } + + private byte[] geraHashCSRTBase64(String chave, String csrt) throws NoSuchAlgorithmException { + //O XSD é xs:base64Binary e já faz o base64, aqui é uma "simulação" para os testes + return Base64.getEncoder().encode(NFCeUtil.geraHashCSRT(chave, csrt)); + } + +} \ No newline at end of file diff --git a/src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java b/src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java index 82b847a9..8bdfb13f 100644 --- a/src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java +++ b/src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java @@ -6,8 +6,6 @@ import java.io.FileNotFoundException; import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.security.NoSuchAlgorithmException; import static org.junit.jupiter.api.Assertions.*; @@ -57,36 +55,5 @@ void leXmlParametroVazioNull() { assertEquals(exception.getMessage(), "Arquivo xml não pode ser nulo/vazio."); } - @Test - void geraHashCSRTSucesso() throws NoSuchAlgorithmException { - String chave = "41180678393592000146558900000006041028190697"; - String csrt = "G8063VRTNDMO886SFNK5LDUDEI24XJ22YIPO"; - - assertArrayEquals("aWv6LeEM4X6u4+qBI2OYZ8grigw=".getBytes(StandardCharsets.UTF_8), XmlNfeUtil.geraHashCSRT(chave, csrt)); - } - - @Test - void geraHashCSRTParametrosInvalidos() { - String chave = "41180678393592000146558900000006041028190697"; - String csrt = "G8063VRTNDMO886SFNK5LDUDEI24XJ22YIPO"; - - //Chave Nula - IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () - -> XmlNfeUtil.geraHashCSRT(null, csrt) - ); - assertEquals(exception.getMessage(), "Chave não deve ser nula ou vazia"); - - //Chave Com menos Caracteres - exception = assertThrows(IllegalArgumentException.class, () - -> XmlNfeUtil.geraHashCSRT("123", csrt) - ); - assertEquals(exception.getMessage(), "Chave deve conter 44 caracteres."); - - //CSRC Vazio - exception = assertThrows(IllegalArgumentException.class, () - -> XmlNfeUtil.geraHashCSRT(chave, "") - ); - assertEquals(exception.getMessage(), "CSRT não deve ser nulo ou vazio"); - } } From afba6caf06f978f957072f96e0b539997baf75fa Mon Sep 17 00:00:00 2001 From: "jardel.novaes" Date: Mon, 14 Oct 2024 13:57:56 -0300 Subject: [PATCH 05/13] Tratamento de certificados na camada TLS/SSL em multithreading - Ajustes Code Review --- .../br/com/swconsultoria/nfe/util/StubUtil.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java index 7475f655..4eb3c2f0 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java @@ -11,6 +11,9 @@ public class StubUtil { /** + * + * Configura o stub para usar certificado específico, desde que esteja com + * configuracoesNfe.getCertificado().isModoMultithreading() ativo. * * @param stub {@link org.apache.axis2.client.Stub} que terá a conexão configurada para o {@link org.apache.commons.httpclient.HttpClient} * específico do certificado. @@ -21,12 +24,13 @@ public class StubUtil { */ public static void configuraHttpClient(Stub stub, ConfiguracoesNfe configuracoesNfe, String url) throws CertificadoException { Certificado certificado = configuracoesNfe.getCertificado(); + if (certificado.isModoMultithreading()) { + HttpClient httpClient = ObjetoUtil.verifica(configuracoesNfe.getCacert()).isPresent() + ? CertificadoService.getHttpsClient(certificado, url, configuracoesNfe.getCacert()) + : CertificadoService.getHttpsClient(certificado, url); - HttpClient httpClient = ObjetoUtil.verifica(configuracoesNfe.getCacert()).isPresent() - ? CertificadoService.getHttpsClient(certificado, url, configuracoesNfe.getCacert()) - : CertificadoService.getHttpsClient(certificado, url); - - stub._getServiceClient().getOptions().setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient); - stub._getServiceClient().getOptions().setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, httpClient.getHostConfiguration().getProtocol()); + stub._getServiceClient().getOptions().setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient); + stub._getServiceClient().getOptions().setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, httpClient.getHostConfiguration().getProtocol()); + } } } From cc86d8526bb7ab7f33a9d0f7869a9581d95d3f6e Mon Sep 17 00:00:00 2001 From: "jardel.novaes" Date: Mon, 14 Oct 2024 13:59:05 -0300 Subject: [PATCH 06/13] Tratamento de certificados na camada TLS/SSL em multithreading - Ajustes Code Review --- src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java index 4eb3c2f0..65c4bca8 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java @@ -12,7 +12,7 @@ public class StubUtil { /** * - * Configura o stub para usar certificado específico, desde que esteja com + * Configura o stub para usar certificado e HttpClient específicos, desde que esteja com * configuracoesNfe.getCertificado().isModoMultithreading() ativo. * * @param stub {@link org.apache.axis2.client.Stub} que terá a conexão configurada para o {@link org.apache.commons.httpclient.HttpClient} From 68c649b25b3f74d0423271601894bceff1f646ba Mon Sep 17 00:00:00 2001 From: SamuelOliveira Date: Sat, 30 Nov 2024 23:22:30 -0300 Subject: [PATCH 07/13] Adicionado multiThread a todos os consumos do servidor. --- README.md | 4 +++ pom.xml | 2 +- .../swconsultoria/nfe/ConsultaCadastro.java | 28 +++++++++++-------- .../com/swconsultoria/nfe/ConsultaRecibo.java | 18 +++++++----- .../br/com/swconsultoria/nfe/ConsultaXml.java | 27 ++++++++++-------- .../swconsultoria/nfe/DistribuicaoDFe.java | 9 +++--- .../java/br/com/swconsultoria/nfe/Enviar.java | 14 ++++++++-- .../br/com/swconsultoria/nfe/Eventos.java | 10 ++++++- .../br/com/swconsultoria/nfe/Inutilizar.java | 15 ++++++++-- .../br/com/swconsultoria/nfe/Validar.java | 3 +- .../com/swconsultoria/nfe/util/StubUtil.java | 3 ++ 11 files changed, 88 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 643f384e..8868930e 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,10 @@ ________________________________________________________________________________ # Historico de Versões +## v4.00.35 - 30/11/2024 - Schemas PL.009n +- Atualizado CACERT +- Adicionado modo Multithreading + ## v4.00.34 - 08/06/2024 - Schemas PL.009n - Atualizacao de URL Webservice - Unificacao SVAN e SVC-AN Em Homologacao diff --git a/pom.xml b/pom.xml index 9c97d628..820f06f0 100644 --- a/pom.xml +++ b/pom.xml @@ -84,7 +84,7 @@ br.com.swconsultoria java_certificado - 3.6 + 3.8 diff --git a/src/main/java/br/com/swconsultoria/nfe/ConsultaCadastro.java b/src/main/java/br/com/swconsultoria/nfe/ConsultaCadastro.java index 79d6ecc0..c4f3ecc7 100644 --- a/src/main/java/br/com/swconsultoria/nfe/ConsultaCadastro.java +++ b/src/main/java/br/com/swconsultoria/nfe/ConsultaCadastro.java @@ -1,5 +1,6 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; import br.com.swconsultoria.nfe.dom.enuns.EstadosEnum; @@ -9,10 +10,7 @@ import br.com.swconsultoria.nfe.schema.consCad.TConsCad; import br.com.swconsultoria.nfe.schema.consCad.TUfCons; import br.com.swconsultoria.nfe.schema.retConsCad.TRetConsCad; -import br.com.swconsultoria.nfe.util.ConstantesUtil; -import br.com.swconsultoria.nfe.util.ObjetoUtil; -import br.com.swconsultoria.nfe.util.WebServiceUtil; -import br.com.swconsultoria.nfe.util.XmlNfeUtil; +import br.com.swconsultoria.nfe.util.*; import br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.CadConsultaCadastro4Stub; import lombok.extern.java.Log; import org.apache.axiom.om.OMElement; @@ -67,13 +65,16 @@ static TRetConsCad consultaCadastro(ConfiguracoesNfe config, PessoaEnum tipoPess configConsulta.setEstado(estado); configConsulta.setAmbiente(config.getAmbiente()); + String url = WebServiceUtil.getUrl(configConsulta, DocumentoEnum.NFE, ServicosEnum.CONSULTA_CADASTRO); if (EstadosEnum.MS.equals(estado)) { br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.ms.CadConsultaCadastro4Stub.NfeDadosMsg dadosMsg = new br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.ms.CadConsultaCadastro4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); - br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.ms.CadConsultaCadastro4Stub stub = new br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.ms.CadConsultaCadastro4Stub( - WebServiceUtil.getUrl(configConsulta, DocumentoEnum.NFE, ServicosEnum.CONSULTA_CADASTRO)); + br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.ms.CadConsultaCadastro4Stub stub = + new br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.ms.CadConsultaCadastro4Stub(url); + + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -93,8 +94,10 @@ static TRetConsCad consultaCadastro(ConfiguracoesNfe config, PessoaEnum tipoPess dadosMsg.setExtraElement(ome); consultaCadastro.setNfeDadosMsg(dadosMsg); - br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.rs.CadConsultaCadastro4Stub stub = new br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.rs.CadConsultaCadastro4Stub( - WebServiceUtil.getUrl(configConsulta, DocumentoEnum.NFE, ServicosEnum.CONSULTA_CADASTRO)); + br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.rs.CadConsultaCadastro4Stub stub = + new br.com.swconsultoria.nfe.wsdl.CadConsultaCadastro.rs.CadConsultaCadastro4Stub(url); + + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -111,8 +114,9 @@ static TRetConsCad consultaCadastro(ConfiguracoesNfe config, PessoaEnum tipoPess CadConsultaCadastro4Stub.NfeDadosMsg dadosMsg = new CadConsultaCadastro4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); - CadConsultaCadastro4Stub stub = new CadConsultaCadastro4Stub( - WebServiceUtil.getUrl(configConsulta, DocumentoEnum.NFE, ServicosEnum.CONSULTA_CADASTRO)); + CadConsultaCadastro4Stub stub = new CadConsultaCadastro4Stub(url); + + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -127,8 +131,8 @@ static TRetConsCad consultaCadastro(ConfiguracoesNfe config, PessoaEnum tipoPess return XmlNfeUtil.xmlToObject(result.getExtraElement().toString(), TRetConsCad.class); } - } catch (RemoteException | XMLStreamException | JAXBException e) { - throw new NfeException(e.getMessage(),e); + } catch (RemoteException | XMLStreamException | JAXBException | CertificadoException e) { + throw new NfeException(e.getMessage(), e); } } diff --git a/src/main/java/br/com/swconsultoria/nfe/ConsultaRecibo.java b/src/main/java/br/com/swconsultoria/nfe/ConsultaRecibo.java index 75a38ec9..e994758a 100644 --- a/src/main/java/br/com/swconsultoria/nfe/ConsultaRecibo.java +++ b/src/main/java/br/com/swconsultoria/nfe/ConsultaRecibo.java @@ -1,15 +1,13 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; 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.schema_4.consReciNFe.TConsReciNFe; import br.com.swconsultoria.nfe.schema_4.retConsReciNFe.TRetConsReciNFe; -import br.com.swconsultoria.nfe.util.ConstantesUtil; -import br.com.swconsultoria.nfe.util.ObjetoUtil; -import br.com.swconsultoria.nfe.util.WebServiceUtil; -import br.com.swconsultoria.nfe.util.XmlNfeUtil; +import br.com.swconsultoria.nfe.util.*; import br.com.swconsultoria.nfe.wsdl.NFeRetAutorizacao.NFeRetAutorizacao4Stub; import lombok.extern.java.Log; import org.apache.axiom.om.OMElement; @@ -28,6 +26,9 @@ @Log class ConsultaRecibo { + private ConsultaRecibo() { + } + /** * Metodo Responsavel Por Pegar o Xml De Retorno. * @@ -58,7 +59,10 @@ static TRetConsReciNFe reciboNfe(ConfiguracoesNfe config, String recibo, Documen NFeRetAutorizacao4Stub.NfeDadosMsg dadosMsg = new NFeRetAutorizacao4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); - NFeRetAutorizacao4Stub stub = new NFeRetAutorizacao4Stub(WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.CONSULTA_RECIBO)); + String url = WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.CONSULTA_RECIBO); + NFeRetAutorizacao4Stub stub = new NFeRetAutorizacao4Stub(url); + + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -71,8 +75,8 @@ static TRetConsReciNFe reciboNfe(ConfiguracoesNfe config, String recibo, Documen log.info("[XML-RETORNO]: " + result.getExtraElement().toString()); return XmlNfeUtil.xmlToObject(result.getExtraElement().toString(), TRetConsReciNFe.class); - } catch (RemoteException | XMLStreamException | JAXBException e) { - throw new NfeException(e.getMessage(),e); + } catch (RemoteException | XMLStreamException | JAXBException | CertificadoException e) { + throw new NfeException(e.getMessage(), e); } } diff --git a/src/main/java/br/com/swconsultoria/nfe/ConsultaXml.java b/src/main/java/br/com/swconsultoria/nfe/ConsultaXml.java index 6ad541e4..35b247ee 100644 --- a/src/main/java/br/com/swconsultoria/nfe/ConsultaXml.java +++ b/src/main/java/br/com/swconsultoria/nfe/ConsultaXml.java @@ -1,5 +1,6 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; import br.com.swconsultoria.nfe.dom.enuns.EstadosEnum; @@ -7,10 +8,7 @@ import br.com.swconsultoria.nfe.exception.NfeException; import br.com.swconsultoria.nfe.schema_4.consSitNFe.TConsSitNFe; import br.com.swconsultoria.nfe.schema_4.retConsSitNFe.TRetConsSitNFe; -import br.com.swconsultoria.nfe.util.ConstantesUtil; -import br.com.swconsultoria.nfe.util.ObjetoUtil; -import br.com.swconsultoria.nfe.util.WebServiceUtil; -import br.com.swconsultoria.nfe.util.XmlNfeUtil; +import br.com.swconsultoria.nfe.util.*; import br.com.swconsultoria.nfe.wsdl.NFeConsultaProtocolo.NFeConsultaProtocolo4Stub; import lombok.extern.java.Log; import org.apache.axiom.om.OMElement; @@ -29,6 +27,8 @@ @Log class ConsultaXml { + private ConsultaXml() {} + /** * Classe Reponsavel Por Consultar o status da NFE na SEFAZ * @@ -49,16 +49,19 @@ static TRetConsSitNFe consultaXml(ConfiguracoesNfe config, String chave, Documen String xml = XmlNfeUtil.objectToXml(consSitNFe, config.getEncode()); - log.info("[XML-ENVIO]: " +xml); + log.info("[XML-ENVIO]: " + xml); OMElement ome = AXIOMUtil.stringToOM(xml); - if(EstadosEnum.MS.equals(config.getEstado())) { + String url = WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.CONSULTA_XML); + if (EstadosEnum.MS.equals(config.getEstado())) { br.com.swconsultoria.nfe.wsdl.NFeConsultaProtocoloMS.NFeConsultaProtocolo4Stub.NfeDadosMsg dadosMsg = new br.com.swconsultoria.nfe.wsdl.NFeConsultaProtocoloMS.NFeConsultaProtocolo4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); - br.com.swconsultoria.nfe.wsdl.NFeConsultaProtocoloMS.NFeConsultaProtocolo4Stub stub = new br.com.swconsultoria.nfe.wsdl.NFeConsultaProtocoloMS.NFeConsultaProtocolo4Stub( - WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.CONSULTA_XML)); + br.com.swconsultoria.nfe.wsdl.NFeConsultaProtocoloMS.NFeConsultaProtocolo4Stub stub = + new br.com.swconsultoria.nfe.wsdl.NFeConsultaProtocoloMS.NFeConsultaProtocolo4Stub(url); + + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -75,7 +78,9 @@ static TRetConsSitNFe consultaXml(ConfiguracoesNfe config, String chave, Documen dadosMsg.setExtraElement(ome); NFeConsultaProtocolo4Stub stub = new NFeConsultaProtocolo4Stub( - WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.CONSULTA_XML)); + url); + + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -89,8 +94,8 @@ static TRetConsSitNFe consultaXml(ConfiguracoesNfe config, String chave, Documen return XmlNfeUtil.xmlToObject(result.getExtraElement().toString(), TRetConsSitNFe.class); } - } catch (RemoteException | XMLStreamException | JAXBException e) { - throw new NfeException(e.getMessage(),e); + } catch (RemoteException | XMLStreamException | JAXBException | CertificadoException e) { + throw new NfeException(e.getMessage(), e); } } diff --git a/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java b/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java index c86ea9ab..4d1a41ea 100644 --- a/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/DistribuicaoDFe.java @@ -9,11 +9,7 @@ import br.com.swconsultoria.nfe.exception.NfeException; import br.com.swconsultoria.nfe.schema.distdfeint.DistDFeInt; import br.com.swconsultoria.nfe.schema.retdistdfeint.RetDistDFeInt; -import br.com.swconsultoria.nfe.util.ConstantesUtil; -import br.com.swconsultoria.nfe.util.ObjetoUtil; -import br.com.swconsultoria.nfe.util.StubUtil; -import br.com.swconsultoria.nfe.util.WebServiceUtil; -import br.com.swconsultoria.nfe.util.XmlNfeUtil; +import br.com.swconsultoria.nfe.util.*; import br.com.swconsultoria.nfe.wsdl.NFeDistribuicaoDFe.NFeDistribuicaoDFeStub; import lombok.extern.java.Log; import org.apache.axiom.om.OMElement; @@ -30,6 +26,9 @@ @Log class DistribuicaoDFe { + private DistribuicaoDFe() { + } + /** * Classe Reponsavel Por Consultar as NFE na SEFAZ * diff --git a/src/main/java/br/com/swconsultoria/nfe/Enviar.java b/src/main/java/br/com/swconsultoria/nfe/Enviar.java index 32ffbb9b..97d9a915 100644 --- a/src/main/java/br/com/swconsultoria/nfe/Enviar.java +++ b/src/main/java/br/com/swconsultoria/nfe/Enviar.java @@ -1,5 +1,6 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.dom.enuns.AssinaturaEnum; import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; @@ -9,6 +10,7 @@ import br.com.swconsultoria.nfe.schema_4.enviNFe.TEnviNFe; import br.com.swconsultoria.nfe.schema_4.enviNFe.TRetEnviNFe; import br.com.swconsultoria.nfe.util.ObjetoUtil; +import br.com.swconsultoria.nfe.util.StubUtil; import br.com.swconsultoria.nfe.util.WebServiceUtil; import br.com.swconsultoria.nfe.util.XmlNfeUtil; import br.com.swconsultoria.nfe.ws.RetryParameter; @@ -36,6 +38,9 @@ @Log class Enviar { + private Enviar() { + } + /** * Metodo para Montar a NFE * @@ -73,7 +78,7 @@ static TEnviNFe montaNfe(ConfiguracoesNfe config, TEnviNFe enviNFe, boolean vali return XmlNfeUtil.xmlToObject(xml, TEnviNFe.class); } catch (Exception e) { - throw new NfeException(e.getMessage(),e); + throw new NfeException(e.getMessage(), e); } } @@ -113,7 +118,10 @@ static TRetEnviNFe enviaNfe(ConfiguracoesNfe config, TEnviNFe enviNFe, Documento NFeAutorizacao4Stub.NfeDadosMsg dadosMsg = new NFeAutorizacao4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); - NFeAutorizacao4Stub stub = new NFeAutorizacao4Stub(WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.ENVIO)); + String url = WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.ENVIO); + NFeAutorizacao4Stub stub = new NFeAutorizacao4Stub(url); + + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -134,7 +142,7 @@ static TRetEnviNFe enviaNfe(ConfiguracoesNfe config, TEnviNFe enviNFe, Documento log.info("[XML-RETORNO]: " + result.getExtraElement().toString()); return XmlNfeUtil.xmlToObject(result.getExtraElement().toString(), TRetEnviNFe.class); - } catch (RemoteException | XMLStreamException | JAXBException e) { + } catch (RemoteException | XMLStreamException | JAXBException | CertificadoException e) { throw new NfeException(e.getMessage(), e); } diff --git a/src/main/java/br/com/swconsultoria/nfe/Eventos.java b/src/main/java/br/com/swconsultoria/nfe/Eventos.java index 22d32708..2af75806 100644 --- a/src/main/java/br/com/swconsultoria/nfe/Eventos.java +++ b/src/main/java/br/com/swconsultoria/nfe/Eventos.java @@ -1,11 +1,13 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.dom.enuns.AssinaturaEnum; 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.util.ObjetoUtil; +import br.com.swconsultoria.nfe.util.StubUtil; import br.com.swconsultoria.nfe.util.WebServiceUtil; import br.com.swconsultoria.nfe.ws.RetryParameter; import br.com.swconsultoria.nfe.wsdl.NFeRecepcaoEvento.NFeRecepcaoEvento4Stub; @@ -20,6 +22,9 @@ @Log class Eventos { + private Eventos() { + } + static String enviarEvento(ConfiguracoesNfe config, String xml, ServicosEnum tipoEvento, boolean valida, boolean assina, DocumentoEnum tipoDocumento) throws NfeException { @@ -43,6 +48,9 @@ static String enviarEvento(ConfiguracoesNfe config, String xml, ServicosEnum tip String url = WebServiceUtil.getUrl(config, tipoDocumento, tipoEvento); NFeRecepcaoEvento4Stub stub = new NFeRecepcaoEvento4Stub(url); + + StubUtil.configuraHttpClient(stub, config, url); + // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { stub._getServiceClient().getOptions().setProperty(HTTPConstants.SO_TIMEOUT, config.getTimeout()); @@ -57,7 +65,7 @@ static String enviarEvento(ConfiguracoesNfe config, String xml, ServicosEnum tip log.info("[XML-RETORNO-" + tipoEvento + "]: " + result.getExtraElement().toString()); return result.getExtraElement().toString(); - } catch (RemoteException | XMLStreamException e) { + } catch (RemoteException | XMLStreamException | CertificadoException e) { throw new NfeException(e.getMessage(),e); } diff --git a/src/main/java/br/com/swconsultoria/nfe/Inutilizar.java b/src/main/java/br/com/swconsultoria/nfe/Inutilizar.java index 04c62acd..980dd00a 100644 --- a/src/main/java/br/com/swconsultoria/nfe/Inutilizar.java +++ b/src/main/java/br/com/swconsultoria/nfe/Inutilizar.java @@ -1,5 +1,6 @@ package br.com.swconsultoria.nfe; +import br.com.swconsultoria.certificado.exception.CertificadoException; import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.dom.enuns.AssinaturaEnum; import br.com.swconsultoria.nfe.dom.enuns.DocumentoEnum; @@ -9,6 +10,7 @@ import br.com.swconsultoria.nfe.schema_4.inutNFe.TInutNFe; import br.com.swconsultoria.nfe.schema_4.inutNFe.TRetInutNFe; import br.com.swconsultoria.nfe.util.ObjetoUtil; +import br.com.swconsultoria.nfe.util.StubUtil; import br.com.swconsultoria.nfe.util.WebServiceUtil; import br.com.swconsultoria.nfe.util.XmlNfeUtil; import br.com.swconsultoria.nfe.wsdl.NFeInutilizacao.NFeInutilizacao4Stub; @@ -29,6 +31,9 @@ @Log class Inutilizar { + private Inutilizar() { + } + static TRetInutNFe inutiliza(ConfiguracoesNfe config, TInutNFe inutNFe, DocumentoEnum tipoDocumento, boolean validar) throws NfeException { @@ -46,12 +51,14 @@ static TRetInutNFe inutiliza(ConfiguracoesNfe config, TInutNFe inutNFe, Document OMElement ome = AXIOMUtil.stringToOM(xml); + String url = WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.INUTILIZACAO); if (EstadosEnum.CE.equals(config.getEstado()) ) { br.com.swconsultoria.nfe.wsdl.NFeInutilizacao.ce.NFeInutilizacao4Stub.NfeDadosMsg dadosMsgCe = new br.com.swconsultoria.nfe.wsdl.NFeInutilizacao.ce.NFeInutilizacao4Stub.NfeDadosMsg(); dadosMsgCe.setExtraElement(ome); br.com.swconsultoria.nfe.wsdl.NFeInutilizacao.ce.NFeInutilizacao4Stub stubCe = new br.com.swconsultoria.nfe.wsdl.NFeInutilizacao.ce.NFeInutilizacao4Stub( - WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.INUTILIZACAO)); + url); + StubUtil.configuraHttpClient(stubCe, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -66,7 +73,9 @@ static TRetInutNFe inutiliza(ConfiguracoesNfe config, TInutNFe inutNFe, Document NFeInutilizacao4Stub.NfeDadosMsg dadosMsg = new NFeInutilizacao4Stub.NfeDadosMsg(); dadosMsg.setExtraElement(ome); NFeInutilizacao4Stub stub = new NFeInutilizacao4Stub( - WebServiceUtil.getUrl(config, tipoDocumento, ServicosEnum.INUTILIZACAO)); + url); + + StubUtil.configuraHttpClient(stub, config, url); // Timeout if (ObjetoUtil.verifica(config.getTimeout()).isPresent()) { @@ -79,7 +88,7 @@ static TRetInutNFe inutiliza(ConfiguracoesNfe config, TInutNFe inutNFe, Document return XmlNfeUtil.xmlToObject(result.getExtraElement().toString(), TRetInutNFe.class); } - } catch (RemoteException | XMLStreamException | JAXBException e) { + } catch (RemoteException | XMLStreamException | JAXBException | CertificadoException e) { throw new NfeException(e.getMessage(),e); } diff --git a/src/main/java/br/com/swconsultoria/nfe/Validar.java b/src/main/java/br/com/swconsultoria/nfe/Validar.java index 1c7c9f4a..891de8e7 100644 --- a/src/main/java/br/com/swconsultoria/nfe/Validar.java +++ b/src/main/java/br/com/swconsultoria/nfe/Validar.java @@ -30,14 +30,13 @@ public boolean isValidXml(ConfiguracoesNfe config, String xml, ServicosEnum serv public boolean isValidXml(String xsd, String xml) { try { validaXml(xsd, xml); - return true; } catch (NfeException ex) { return false; } } - void validaXml(String xsd, String xml) throws NfeException { + private void validaXml(String xsd, String xml) throws NfeException { System.setProperty("jdk.xml.maxOccurLimit", "99999"); String errosValidacao; diff --git a/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java index 65c4bca8..a35b89ce 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java @@ -10,6 +10,9 @@ public class StubUtil { + private StubUtil() { + } + /** * * Configura o stub para usar certificado e HttpClient específicos, desde que esteja com From 9180fae6d598aa33f6f680b80049134ae7d556e5 Mon Sep 17 00:00:00 2001 From: SamuelOliveira Date: Sat, 30 Nov 2024 23:33:06 -0300 Subject: [PATCH 08/13] tualizado Schemas para PL.009p1 --- README.md | 5 +- schemas/consReciNFe_v4.00.xsd | 4 +- schemas/consStatServ_v4.00.xsd | 4 +- schemas/enviNFe_v4.00.xsd | 4 +- schemas/inutNFe_v4.00.xsd | 4 +- schemas/leiauteConsStatServ_v4.00.xsd | 4 +- schemas/leiauteNFe_v4.00.xsd | 87 ++- schemas/nfe_v4.00.xsd | 4 +- schemas/procInutNFe_v4.00.xsd | 4 +- schemas/procNFe_v4.00.xsd | 4 +- schemas/retConsReciNFe_v4.00.xsd | 4 +- schemas/retConsSitNFe_v4.00.xsd | 4 +- schemas/retConsStatServ_v4.00.xsd | 4 +- schemas/retEnviNFe_v4.00.xsd | 4 +- schemas/retInutNFe_v4.00.xsd | 4 +- .../schema_4/consReciNFe/ObjectFactory.java | 24 + .../nfe/schema_4/consReciNFe/TNFe.java | 624 ++++++++++++++++- .../nfe/schema_4/enviNFe/ObjectFactory.java | 24 + .../nfe/schema_4/enviNFe/TNFe.java | 624 ++++++++++++++++- .../retConsReciNFe/ObjectFactory.java | 24 + .../nfe/schema_4/retConsReciNFe/TNFe.java | 624 ++++++++++++++++- .../schema_4/retEnviNFe/ObjectFactory.java | 24 + .../nfe/schema_4/retEnviNFe/TNFe.java | 638 ++++++++++++++++-- 23 files changed, 2590 insertions(+), 160 deletions(-) diff --git a/README.md b/README.md index 8868930e..dbeaadb8 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,12 @@ ________________________________________________________________________________ # Historico de Versões -## v4.00.35 - 30/11/2024 - Schemas PL.009n +## v4.00.35 - 30/11/2024 - Schemas PL.009p1 - Atualizado CACERT - Adicionado modo Multithreading +- Atualizado Schemas para PL.009p1 +- Implementado NT2024.001 +- Implementado NT2024.003 ## v4.00.34 - 08/06/2024 - Schemas PL.009n - Atualizacao de URL Webservice diff --git a/schemas/consReciNFe_v4.00.xsd b/schemas/consReciNFe_v4.00.xsd index 748501a4..34523528 100644 --- a/schemas/consReciNFe_v4.00.xsd +++ b/schemas/consReciNFe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/consStatServ_v4.00.xsd b/schemas/consStatServ_v4.00.xsd index 2fbb7b9a..3b30fd0f 100644 --- a/schemas/consStatServ_v4.00.xsd +++ b/schemas/consStatServ_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/enviNFe_v4.00.xsd b/schemas/enviNFe_v4.00.xsd index ef3bf005..26ee7924 100644 --- a/schemas/enviNFe_v4.00.xsd +++ b/schemas/enviNFe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/inutNFe_v4.00.xsd b/schemas/inutNFe_v4.00.xsd index 5a4a4504..fc0c0363 100644 --- a/schemas/inutNFe_v4.00.xsd +++ b/schemas/inutNFe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/leiauteConsStatServ_v4.00.xsd b/schemas/leiauteConsStatServ_v4.00.xsd index a3755e14..d6afb431 100644 --- a/schemas/leiauteConsStatServ_v4.00.xsd +++ b/schemas/leiauteConsStatServ_v4.00.xsd @@ -1,8 +1,8 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/leiauteNFe_v4.00.xsd b/schemas/leiauteNFe_v4.00.xsd index 793302db..95bed30c 100644 --- a/schemas/leiauteNFe_v4.00.xsd +++ b/schemas/leiauteNFe_v4.00.xsd @@ -1,5 +1,5 @@ - + @@ -17,6 +17,7 @@ + @@ -1084,7 +1085,7 @@ Formato ”CFOP9999”. - Numero do Documento de Importação (DI, DSI, DIRE, DUImp) (NT2011/004) + Número do Documento de Importação (DI, DSI, DIRE, DUImp) (NT2011/004) @@ -6287,6 +6288,88 @@ tipo de ato concessório: + + + Produtos Agropecurários Animais, Vegetais e Florestais + + + + + + Defensivo Agrícola / Agrotóxico + + + + + + Número do Receituário ou Receita do Defensivo / Agrotóxico + + + + + + + + + + + CPF do Responsável Técnico pelo receituário + + + + + + + + Guias De Trânsito de produtos agropecurários animais, vegetais e de origem florestal. + + + + + + Tipo da Guia: 1 - GTA; 2 - TTA; 3 - DTA; 4 - ATV; 5 - PTV; 6 - GTV; 7 - Guia Florestal (DOF, SisFlora - PA e MT, SIAM - MG) + + + + + + + + + + + + + + + + + + Série da Guia + + + + + + + + + + + Número da Guia + + + + + + + + + + + + + diff --git a/schemas/nfe_v4.00.xsd b/schemas/nfe_v4.00.xsd index 00e7a413..7d90a66e 100644 --- a/schemas/nfe_v4.00.xsd +++ b/schemas/nfe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/procInutNFe_v4.00.xsd b/schemas/procInutNFe_v4.00.xsd index 6275ec1d..3201b26c 100644 --- a/schemas/procInutNFe_v4.00.xsd +++ b/schemas/procInutNFe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/procNFe_v4.00.xsd b/schemas/procNFe_v4.00.xsd index c4af351e..5f7aa6fc 100644 --- a/schemas/procNFe_v4.00.xsd +++ b/schemas/procNFe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/retConsReciNFe_v4.00.xsd b/schemas/retConsReciNFe_v4.00.xsd index 345c6a62..cd311b8f 100644 --- a/schemas/retConsReciNFe_v4.00.xsd +++ b/schemas/retConsReciNFe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/retConsSitNFe_v4.00.xsd b/schemas/retConsSitNFe_v4.00.xsd index c347e9c1..850de90f 100644 --- a/schemas/retConsSitNFe_v4.00.xsd +++ b/schemas/retConsSitNFe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/retConsStatServ_v4.00.xsd b/schemas/retConsStatServ_v4.00.xsd index bb23d3f9..a0d5dd45 100644 --- a/schemas/retConsStatServ_v4.00.xsd +++ b/schemas/retConsStatServ_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/retEnviNFe_v4.00.xsd b/schemas/retEnviNFe_v4.00.xsd index 9f3e8284..41c2e527 100644 --- a/schemas/retEnviNFe_v4.00.xsd +++ b/schemas/retEnviNFe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/retInutNFe_v4.00.xsd b/schemas/retInutNFe_v4.00.xsd index bb0c9d6a..c2f2b5f2 100644 --- a/schemas/retInutNFe_v4.00.xsd +++ b/schemas/retInutNFe_v4.00.xsd @@ -1,7 +1,7 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/ObjectFactory.java index abee5119..de203907 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/ObjectFactory.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/ObjectFactory.java @@ -76,6 +76,14 @@ public TNFe.InfNFe createTNFeInfNFe() { return new TNFe.InfNFe(); } + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario } + * + */ + public TNFe.InfNFe.Agropecuario createTNFeInfNFeAgropecuario() { + return new TNFe.InfNFe.Agropecuario(); + } + /** * Create an instance of {@link TNFe.InfNFe.Cana } * @@ -484,6 +492,22 @@ public TNFe.InfNFe.InfSolicNFF createTNFeInfNFeInfSolicNFF() { return new TNFe.InfNFe.InfSolicNFF(); } + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public TNFe.InfNFe.Agropecuario.Defensivo createTNFeInfNFeAgropecuarioDefensivo() { + return new TNFe.InfNFe.Agropecuario.Defensivo(); + } + + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public TNFe.InfNFe.Agropecuario.GuiaTransito createTNFeInfNFeAgropecuarioGuiaTransito() { + return new TNFe.InfNFe.Agropecuario.GuiaTransito(); + } + /** * Create an instance of {@link TNFe.InfNFe.Cana.ForDia } * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TNFe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TNFe.java index d2a82de7..baed88b9 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TNFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TNFe.java @@ -336,6 +336,7 @@ * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> @@ -2150,7 +2151,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -2297,7 +2298,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -3614,6 +3615,75 @@ * </complexContent> * </complexType> * </element> + * <element name="agropecuario" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <element name="defensivo"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nReceituario"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="20"/> + * <minLength value="1"/> + * </restriction> + * </simpleType> + * </element> + * <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="guiaTransito"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="tpGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <whiteSpace value="preserve"/> + * <enumeration value="1"/> + * <enumeration value="2"/> + * <enumeration value="3"/> + * <enumeration value="4"/> + * <enumeration value="5"/> + * <enumeration value="6"/> + * <enumeration value="7"/> + * </restriction> + * </simpleType> + * </element> + * <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/> + * <element name="serieGuia" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.portalfiscal.inf.br/nfe}TString"> + * <minLength value="1"/> + * <maxLength value="9"/> + * </restriction> + * </simpleType> + * </element> + * <element name="nGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <pattern value="[0-9]{1,9}"/> + * </restriction> + * </simpleType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </choice> + * </restriction> + * </complexContent> + * </complexType> + * </element> * </sequence> * <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerNFe" /> * <attribute name="Id" use="required"> @@ -4072,6 +4142,7 @@ public void setSignature(SignatureType value) { * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> @@ -5886,7 +5957,7 @@ public void setSignature(SignatureType value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -6033,7 +6104,7 @@ public void setSignature(SignatureType value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -7350,6 +7421,75 @@ public void setSignature(SignatureType value) { * </complexContent> * </complexType> * </element> + * <element name="agropecuario" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <element name="defensivo"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nReceituario"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="20"/> + * <minLength value="1"/> + * </restriction> + * </simpleType> + * </element> + * <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="guiaTransito"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="tpGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <whiteSpace value="preserve"/> + * <enumeration value="1"/> + * <enumeration value="2"/> + * <enumeration value="3"/> + * <enumeration value="4"/> + * <enumeration value="5"/> + * <enumeration value="6"/> + * <enumeration value="7"/> + * </restriction> + * </simpleType> + * </element> + * <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/> + * <element name="serieGuia" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.portalfiscal.inf.br/nfe}TString"> + * <minLength value="1"/> + * <maxLength value="9"/> + * </restriction> + * </simpleType> + * </element> + * <element name="nGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <pattern value="[0-9]{1,9}"/> + * </restriction> + * </simpleType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </choice> + * </restriction> + * </complexContent> + * </complexType> + * </element> * </sequence> * <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerNFe" /> * <attribute name="Id" use="required"> @@ -7386,7 +7526,8 @@ public void setSignature(SignatureType value) { "compra", "cana", "infRespTec", - "infSolicNFF" + "infSolicNFF", + "agropecuario" }) public static class InfNFe { @@ -7428,6 +7569,8 @@ public static class InfNFe { protected TInfRespTec infRespTec; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TNFe.InfNFe.InfSolicNFF infSolicNFF; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario agropecuario; @XmlAttribute(name = "versao", required = true) protected String versao; @XmlAttribute(name = "Id", required = true) @@ -7901,6 +8044,30 @@ public void setInfSolicNFF(TNFe.InfNFe.InfSolicNFF value) { this.infSolicNFF = value; } + /** + * Obtém o valor da propriedade agropecuario. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario } + * + */ + public TNFe.InfNFe.Agropecuario getAgropecuario() { + return agropecuario; + } + + /** + * Define o valor da propriedade agropecuario. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario } + * + */ + public void setAgropecuario(TNFe.InfNFe.Agropecuario value) { + this.agropecuario = value; + } + /** * Obtém o valor da propriedade versao. * @@ -7950,6 +8117,402 @@ public void setId(String value) { } + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <choice>
+         *         <element name="defensivo">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="nReceituario">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <maxLength value="20"/>
+         *                         <minLength value="1"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *         <element name="guiaTransito">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="tpGuia">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <enumeration value="1"/>
+         *                         <enumeration value="2"/>
+         *                         <enumeration value="3"/>
+         *                         <enumeration value="4"/>
+         *                         <enumeration value="5"/>
+         *                         <enumeration value="6"/>
+         *                         <enumeration value="7"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/>
+         *                   <element name="serieGuia" minOccurs="0">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *                         <minLength value="1"/>
+         *                         <maxLength value="9"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="nGuia">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <pattern value="[0-9]{1,9}"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </choice>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "defensivo", + "guiaTransito" + }) + public static class Agropecuario { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario.Defensivo defensivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario.GuiaTransito guiaTransito; + + /** + * Obtém o valor da propriedade defensivo. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public TNFe.InfNFe.Agropecuario.Defensivo getDefensivo() { + return defensivo; + } + + /** + * Define o valor da propriedade defensivo. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public void setDefensivo(TNFe.InfNFe.Agropecuario.Defensivo value) { + this.defensivo = value; + } + + /** + * Obtém o valor da propriedade guiaTransito. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public TNFe.InfNFe.Agropecuario.GuiaTransito getGuiaTransito() { + return guiaTransito; + } + + /** + * Define o valor da propriedade guiaTransito. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public void setGuiaTransito(TNFe.InfNFe.Agropecuario.GuiaTransito value) { + this.guiaTransito = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence>
+             *         <element name="nReceituario">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <maxLength value="20"/>
+             *               <minLength value="1"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "nReceituario", + "cpfRespTec" + }) + public static class Defensivo { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nReceituario; + @XmlElement(name = "CPFRespTec", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cpfRespTec; + + /** + * Obtém o valor da propriedade nReceituario. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNReceituario() { + return nReceituario; + } + + /** + * Define o valor da propriedade nReceituario. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNReceituario(String value) { + this.nReceituario = value; + } + + /** + * Obtém o valor da propriedade cpfRespTec. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPFRespTec() { + return cpfRespTec; + } + + /** + * Define o valor da propriedade cpfRespTec. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPFRespTec(String value) { + this.cpfRespTec = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence>
+             *         <element name="tpGuia">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <enumeration value="1"/>
+             *               <enumeration value="2"/>
+             *               <enumeration value="3"/>
+             *               <enumeration value="4"/>
+             *               <enumeration value="5"/>
+             *               <enumeration value="6"/>
+             *               <enumeration value="7"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/>
+             *         <element name="serieGuia" minOccurs="0">
+             *           <simpleType>
+             *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+             *               <minLength value="1"/>
+             *               <maxLength value="9"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="nGuia">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <pattern value="[0-9]{1,9}"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpGuia", + "ufGuia", + "serieGuia", + "nGuia" + }) + public static class GuiaTransito { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpGuia; + @XmlElement(name = "UFGuia", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufGuia; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String serieGuia; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nGuia; + + /** + * Obtém o valor da propriedade tpGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpGuia() { + return tpGuia; + } + + /** + * Define o valor da propriedade tpGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpGuia(String value) { + this.tpGuia = value; + } + + /** + * Obtém o valor da propriedade ufGuia. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFGuia() { + return ufGuia; + } + + /** + * Define o valor da propriedade ufGuia. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFGuia(TUfEmi value) { + this.ufGuia = value; + } + + /** + * Obtém o valor da propriedade serieGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSerieGuia() { + return serieGuia; + } + + /** + * Define o valor da propriedade serieGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSerieGuia(String value) { + this.serieGuia = value; + } + + /** + * Obtém o valor da propriedade nGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNGuia() { + return nGuia; + } + + /** + * Define o valor da propriedade nGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNGuia(String value) { + this.nGuia = value; + } + + } + + } + + /** *

Classe Java de anonymous complex type. * @@ -11501,7 +12064,7 @@ public void setEmail(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -11648,7 +12211,7 @@ public void setEmail(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13259,7 +13822,7 @@ public void setNItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13406,7 +13969,7 @@ public void setNItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13920,16 +14483,16 @@ public void setNItem(String value) { public static class Imposto { @XmlElementRefs({ - @XmlElementRef(name = "PIS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "COFINSST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "ICMS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "II", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "vTotTrib", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) + @XmlElementRef(name = "PIS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "II", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) }) protected List> content; @@ -13939,8 +14502,8 @@ public static class Imposto { *

* Você está obtendo esta propriedade "catch-all" pelo seguinte motivo: * O nome do campo "IPI" é usado por duas partes diferentes de um esquema. Consulte: - * linha 4281 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd - * linha 4249 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4283 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4251 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd *

* Para eliminar esta propriedade, aplique uma personalização de propriedade a uma * das seguintes declarações, a fim de alterar seus nomes: @@ -13961,16 +14524,16 @@ public static class Imposto { * *

* Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINSST }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMS }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@code >} * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} * {@link JAXBElement }{@code <}{@link TIpi }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} * * */ @@ -15856,7 +16419,7 @@ public void setIndSomaCOFINSST(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -16003,7 +16566,7 @@ public void setIndSomaCOFINSST(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -22813,7 +23376,7 @@ public void setVCredICMSSN(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -22840,7 +23403,7 @@ public void setVCredICMSSN(String value) { }) public static class ICMSSN102 { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String orig; @XmlElement(name = "CSOSN", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String csosn; @@ -24081,7 +24644,7 @@ public void setVICMSEfet(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -24168,7 +24731,7 @@ public void setVICMSEfet(String value) { }) public static class ICMSSN900 { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String orig; @XmlElement(name = "CSOSN", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String csosn; @@ -33103,6 +33666,7 @@ public void setTpRest(String value) { * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/ObjectFactory.java index 6872f14e..a53c7e46 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/ObjectFactory.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/ObjectFactory.java @@ -76,6 +76,14 @@ public TNFe.InfNFe createTNFeInfNFe() { return new TNFe.InfNFe(); } + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario } + * + */ + public TNFe.InfNFe.Agropecuario createTNFeInfNFeAgropecuario() { + return new TNFe.InfNFe.Agropecuario(); + } + /** * Create an instance of {@link TNFe.InfNFe.Cana } * @@ -484,6 +492,22 @@ public TNFe.InfNFe.InfSolicNFF createTNFeInfNFeInfSolicNFF() { return new TNFe.InfNFe.InfSolicNFF(); } + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public TNFe.InfNFe.Agropecuario.Defensivo createTNFeInfNFeAgropecuarioDefensivo() { + return new TNFe.InfNFe.Agropecuario.Defensivo(); + } + + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public TNFe.InfNFe.Agropecuario.GuiaTransito createTNFeInfNFeAgropecuarioGuiaTransito() { + return new TNFe.InfNFe.Agropecuario.GuiaTransito(); + } + /** * Create an instance of {@link TNFe.InfNFe.Cana.ForDia } * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TNFe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TNFe.java index 80522754..43e0bc0e 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TNFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TNFe.java @@ -336,6 +336,7 @@ * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> @@ -2150,7 +2151,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -2297,7 +2298,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -3614,6 +3615,75 @@ * </complexContent> * </complexType> * </element> + * <element name="agropecuario" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <element name="defensivo"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nReceituario"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="20"/> + * <minLength value="1"/> + * </restriction> + * </simpleType> + * </element> + * <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="guiaTransito"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="tpGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <whiteSpace value="preserve"/> + * <enumeration value="1"/> + * <enumeration value="2"/> + * <enumeration value="3"/> + * <enumeration value="4"/> + * <enumeration value="5"/> + * <enumeration value="6"/> + * <enumeration value="7"/> + * </restriction> + * </simpleType> + * </element> + * <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/> + * <element name="serieGuia" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.portalfiscal.inf.br/nfe}TString"> + * <minLength value="1"/> + * <maxLength value="9"/> + * </restriction> + * </simpleType> + * </element> + * <element name="nGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <pattern value="[0-9]{1,9}"/> + * </restriction> + * </simpleType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </choice> + * </restriction> + * </complexContent> + * </complexType> + * </element> * </sequence> * <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerNFe" /> * <attribute name="Id" use="required"> @@ -4072,6 +4142,7 @@ public void setSignature(SignatureType value) { * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> @@ -5886,7 +5957,7 @@ public void setSignature(SignatureType value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -6033,7 +6104,7 @@ public void setSignature(SignatureType value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -7350,6 +7421,75 @@ public void setSignature(SignatureType value) { * </complexContent> * </complexType> * </element> + * <element name="agropecuario" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <element name="defensivo"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nReceituario"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="20"/> + * <minLength value="1"/> + * </restriction> + * </simpleType> + * </element> + * <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="guiaTransito"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="tpGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <whiteSpace value="preserve"/> + * <enumeration value="1"/> + * <enumeration value="2"/> + * <enumeration value="3"/> + * <enumeration value="4"/> + * <enumeration value="5"/> + * <enumeration value="6"/> + * <enumeration value="7"/> + * </restriction> + * </simpleType> + * </element> + * <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/> + * <element name="serieGuia" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.portalfiscal.inf.br/nfe}TString"> + * <minLength value="1"/> + * <maxLength value="9"/> + * </restriction> + * </simpleType> + * </element> + * <element name="nGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <pattern value="[0-9]{1,9}"/> + * </restriction> + * </simpleType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </choice> + * </restriction> + * </complexContent> + * </complexType> + * </element> * </sequence> * <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerNFe" /> * <attribute name="Id" use="required"> @@ -7386,7 +7526,8 @@ public void setSignature(SignatureType value) { "compra", "cana", "infRespTec", - "infSolicNFF" + "infSolicNFF", + "agropecuario" }) public static class InfNFe { @@ -7428,6 +7569,8 @@ public static class InfNFe { protected TInfRespTec infRespTec; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TNFe.InfNFe.InfSolicNFF infSolicNFF; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario agropecuario; @XmlAttribute(name = "versao", required = true) protected String versao; @XmlAttribute(name = "Id", required = true) @@ -7901,6 +8044,30 @@ public void setInfSolicNFF(TNFe.InfNFe.InfSolicNFF value) { this.infSolicNFF = value; } + /** + * Obtém o valor da propriedade agropecuario. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario } + * + */ + public TNFe.InfNFe.Agropecuario getAgropecuario() { + return agropecuario; + } + + /** + * Define o valor da propriedade agropecuario. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario } + * + */ + public void setAgropecuario(TNFe.InfNFe.Agropecuario value) { + this.agropecuario = value; + } + /** * Obtém o valor da propriedade versao. * @@ -7950,6 +8117,402 @@ public void setId(String value) { } + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <choice>
+         *         <element name="defensivo">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="nReceituario">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <maxLength value="20"/>
+         *                         <minLength value="1"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *         <element name="guiaTransito">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="tpGuia">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <enumeration value="1"/>
+         *                         <enumeration value="2"/>
+         *                         <enumeration value="3"/>
+         *                         <enumeration value="4"/>
+         *                         <enumeration value="5"/>
+         *                         <enumeration value="6"/>
+         *                         <enumeration value="7"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/>
+         *                   <element name="serieGuia" minOccurs="0">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *                         <minLength value="1"/>
+         *                         <maxLength value="9"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="nGuia">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <pattern value="[0-9]{1,9}"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </choice>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "defensivo", + "guiaTransito" + }) + public static class Agropecuario { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario.Defensivo defensivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario.GuiaTransito guiaTransito; + + /** + * Obtém o valor da propriedade defensivo. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public TNFe.InfNFe.Agropecuario.Defensivo getDefensivo() { + return defensivo; + } + + /** + * Define o valor da propriedade defensivo. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public void setDefensivo(TNFe.InfNFe.Agropecuario.Defensivo value) { + this.defensivo = value; + } + + /** + * Obtém o valor da propriedade guiaTransito. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public TNFe.InfNFe.Agropecuario.GuiaTransito getGuiaTransito() { + return guiaTransito; + } + + /** + * Define o valor da propriedade guiaTransito. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public void setGuiaTransito(TNFe.InfNFe.Agropecuario.GuiaTransito value) { + this.guiaTransito = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence>
+             *         <element name="nReceituario">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <maxLength value="20"/>
+             *               <minLength value="1"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "nReceituario", + "cpfRespTec" + }) + public static class Defensivo { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nReceituario; + @XmlElement(name = "CPFRespTec", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cpfRespTec; + + /** + * Obtém o valor da propriedade nReceituario. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNReceituario() { + return nReceituario; + } + + /** + * Define o valor da propriedade nReceituario. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNReceituario(String value) { + this.nReceituario = value; + } + + /** + * Obtém o valor da propriedade cpfRespTec. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPFRespTec() { + return cpfRespTec; + } + + /** + * Define o valor da propriedade cpfRespTec. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPFRespTec(String value) { + this.cpfRespTec = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence>
+             *         <element name="tpGuia">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <enumeration value="1"/>
+             *               <enumeration value="2"/>
+             *               <enumeration value="3"/>
+             *               <enumeration value="4"/>
+             *               <enumeration value="5"/>
+             *               <enumeration value="6"/>
+             *               <enumeration value="7"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/>
+             *         <element name="serieGuia" minOccurs="0">
+             *           <simpleType>
+             *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+             *               <minLength value="1"/>
+             *               <maxLength value="9"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="nGuia">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <pattern value="[0-9]{1,9}"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpGuia", + "ufGuia", + "serieGuia", + "nGuia" + }) + public static class GuiaTransito { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpGuia; + @XmlElement(name = "UFGuia", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufGuia; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String serieGuia; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nGuia; + + /** + * Obtém o valor da propriedade tpGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpGuia() { + return tpGuia; + } + + /** + * Define o valor da propriedade tpGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpGuia(String value) { + this.tpGuia = value; + } + + /** + * Obtém o valor da propriedade ufGuia. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFGuia() { + return ufGuia; + } + + /** + * Define o valor da propriedade ufGuia. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFGuia(TUfEmi value) { + this.ufGuia = value; + } + + /** + * Obtém o valor da propriedade serieGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSerieGuia() { + return serieGuia; + } + + /** + * Define o valor da propriedade serieGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSerieGuia(String value) { + this.serieGuia = value; + } + + /** + * Obtém o valor da propriedade nGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNGuia() { + return nGuia; + } + + /** + * Define o valor da propriedade nGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNGuia(String value) { + this.nGuia = value; + } + + } + + } + + /** *

Classe Java de anonymous complex type. * @@ -11501,7 +12064,7 @@ public void setEmail(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -11648,7 +12211,7 @@ public void setEmail(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13259,7 +13822,7 @@ public void setNItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13406,7 +13969,7 @@ public void setNItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13920,16 +14483,16 @@ public void setNItem(String value) { public static class Imposto { @XmlElementRefs({ - @XmlElementRef(name = "vTotTrib", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "II", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "COFINSST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "ICMS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "vTotTrib", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "PIS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) + @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "II", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) }) protected List> content; @@ -13939,8 +14502,8 @@ public static class Imposto { *

* Você está obtendo esta propriedade "catch-all" pelo seguinte motivo: * O nome do campo "IPI" é usado por duas partes diferentes de um esquema. Consulte: - * linha 4281 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd - * linha 4249 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4283 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4251 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd *

* Para eliminar esta propriedade, aplique uma personalização de propriedade a uma * das seguintes declarações, a fim de alterar seus nomes: @@ -13961,16 +14524,16 @@ public static class Imposto { * *

* Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINSST }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMS }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} * {@link JAXBElement }{@code <}{@link TIpi }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} * * */ @@ -15856,7 +16419,7 @@ public void setIndSomaCOFINSST(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -16003,7 +16566,7 @@ public void setIndSomaCOFINSST(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -22813,7 +23376,7 @@ public void setVCredICMSSN(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -22840,7 +23403,7 @@ public void setVCredICMSSN(String value) { }) public static class ICMSSN102 { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String orig; @XmlElement(name = "CSOSN", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String csosn; @@ -24081,7 +24644,7 @@ public void setVICMSEfet(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -24168,7 +24731,7 @@ public void setVICMSEfet(String value) { }) public static class ICMSSN900 { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String orig; @XmlElement(name = "CSOSN", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String csosn; @@ -33103,6 +33666,7 @@ public void setTpRest(String value) { * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/retConsReciNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/retConsReciNFe/ObjectFactory.java index e36e18e3..d872b7f5 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/retConsReciNFe/ObjectFactory.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/retConsReciNFe/ObjectFactory.java @@ -76,6 +76,14 @@ public TNFe.InfNFe createTNFeInfNFe() { return new TNFe.InfNFe(); } + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario } + * + */ + public TNFe.InfNFe.Agropecuario createTNFeInfNFeAgropecuario() { + return new TNFe.InfNFe.Agropecuario(); + } + /** * Create an instance of {@link TNFe.InfNFe.Cana } * @@ -484,6 +492,22 @@ public TNFe.InfNFe.InfSolicNFF createTNFeInfNFeInfSolicNFF() { return new TNFe.InfNFe.InfSolicNFF(); } + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public TNFe.InfNFe.Agropecuario.Defensivo createTNFeInfNFeAgropecuarioDefensivo() { + return new TNFe.InfNFe.Agropecuario.Defensivo(); + } + + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public TNFe.InfNFe.Agropecuario.GuiaTransito createTNFeInfNFeAgropecuarioGuiaTransito() { + return new TNFe.InfNFe.Agropecuario.GuiaTransito(); + } + /** * Create an instance of {@link TNFe.InfNFe.Cana.ForDia } * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/retConsReciNFe/TNFe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/retConsReciNFe/TNFe.java index 39376ba2..e122578d 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/retConsReciNFe/TNFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/retConsReciNFe/TNFe.java @@ -336,6 +336,7 @@ * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> @@ -2150,7 +2151,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -2297,7 +2298,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -3614,6 +3615,75 @@ * </complexContent> * </complexType> * </element> + * <element name="agropecuario" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <element name="defensivo"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nReceituario"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="20"/> + * <minLength value="1"/> + * </restriction> + * </simpleType> + * </element> + * <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="guiaTransito"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="tpGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <whiteSpace value="preserve"/> + * <enumeration value="1"/> + * <enumeration value="2"/> + * <enumeration value="3"/> + * <enumeration value="4"/> + * <enumeration value="5"/> + * <enumeration value="6"/> + * <enumeration value="7"/> + * </restriction> + * </simpleType> + * </element> + * <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/> + * <element name="serieGuia" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.portalfiscal.inf.br/nfe}TString"> + * <minLength value="1"/> + * <maxLength value="9"/> + * </restriction> + * </simpleType> + * </element> + * <element name="nGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <pattern value="[0-9]{1,9}"/> + * </restriction> + * </simpleType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </choice> + * </restriction> + * </complexContent> + * </complexType> + * </element> * </sequence> * <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerNFe" /> * <attribute name="Id" use="required"> @@ -4072,6 +4142,7 @@ public void setSignature(SignatureType value) { * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> @@ -5886,7 +5957,7 @@ public void setSignature(SignatureType value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -6033,7 +6104,7 @@ public void setSignature(SignatureType value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -7350,6 +7421,75 @@ public void setSignature(SignatureType value) { * </complexContent> * </complexType> * </element> + * <element name="agropecuario" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <element name="defensivo"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nReceituario"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="20"/> + * <minLength value="1"/> + * </restriction> + * </simpleType> + * </element> + * <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="guiaTransito"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="tpGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <whiteSpace value="preserve"/> + * <enumeration value="1"/> + * <enumeration value="2"/> + * <enumeration value="3"/> + * <enumeration value="4"/> + * <enumeration value="5"/> + * <enumeration value="6"/> + * <enumeration value="7"/> + * </restriction> + * </simpleType> + * </element> + * <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/> + * <element name="serieGuia" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.portalfiscal.inf.br/nfe}TString"> + * <minLength value="1"/> + * <maxLength value="9"/> + * </restriction> + * </simpleType> + * </element> + * <element name="nGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <pattern value="[0-9]{1,9}"/> + * </restriction> + * </simpleType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </choice> + * </restriction> + * </complexContent> + * </complexType> + * </element> * </sequence> * <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerNFe" /> * <attribute name="Id" use="required"> @@ -7386,7 +7526,8 @@ public void setSignature(SignatureType value) { "compra", "cana", "infRespTec", - "infSolicNFF" + "infSolicNFF", + "agropecuario" }) public static class InfNFe { @@ -7428,6 +7569,8 @@ public static class InfNFe { protected TInfRespTec infRespTec; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TNFe.InfNFe.InfSolicNFF infSolicNFF; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario agropecuario; @XmlAttribute(name = "versao", required = true) protected String versao; @XmlAttribute(name = "Id", required = true) @@ -7901,6 +8044,30 @@ public void setInfSolicNFF(TNFe.InfNFe.InfSolicNFF value) { this.infSolicNFF = value; } + /** + * Obtém o valor da propriedade agropecuario. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario } + * + */ + public TNFe.InfNFe.Agropecuario getAgropecuario() { + return agropecuario; + } + + /** + * Define o valor da propriedade agropecuario. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario } + * + */ + public void setAgropecuario(TNFe.InfNFe.Agropecuario value) { + this.agropecuario = value; + } + /** * Obtém o valor da propriedade versao. * @@ -7950,6 +8117,402 @@ public void setId(String value) { } + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <choice>
+         *         <element name="defensivo">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="nReceituario">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <maxLength value="20"/>
+         *                         <minLength value="1"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *         <element name="guiaTransito">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="tpGuia">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <enumeration value="1"/>
+         *                         <enumeration value="2"/>
+         *                         <enumeration value="3"/>
+         *                         <enumeration value="4"/>
+         *                         <enumeration value="5"/>
+         *                         <enumeration value="6"/>
+         *                         <enumeration value="7"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/>
+         *                   <element name="serieGuia" minOccurs="0">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *                         <minLength value="1"/>
+         *                         <maxLength value="9"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="nGuia">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <pattern value="[0-9]{1,9}"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </choice>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "defensivo", + "guiaTransito" + }) + public static class Agropecuario { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario.Defensivo defensivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario.GuiaTransito guiaTransito; + + /** + * Obtém o valor da propriedade defensivo. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public TNFe.InfNFe.Agropecuario.Defensivo getDefensivo() { + return defensivo; + } + + /** + * Define o valor da propriedade defensivo. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public void setDefensivo(TNFe.InfNFe.Agropecuario.Defensivo value) { + this.defensivo = value; + } + + /** + * Obtém o valor da propriedade guiaTransito. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public TNFe.InfNFe.Agropecuario.GuiaTransito getGuiaTransito() { + return guiaTransito; + } + + /** + * Define o valor da propriedade guiaTransito. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public void setGuiaTransito(TNFe.InfNFe.Agropecuario.GuiaTransito value) { + this.guiaTransito = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence>
+             *         <element name="nReceituario">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <maxLength value="20"/>
+             *               <minLength value="1"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "nReceituario", + "cpfRespTec" + }) + public static class Defensivo { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nReceituario; + @XmlElement(name = "CPFRespTec", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cpfRespTec; + + /** + * Obtém o valor da propriedade nReceituario. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNReceituario() { + return nReceituario; + } + + /** + * Define o valor da propriedade nReceituario. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNReceituario(String value) { + this.nReceituario = value; + } + + /** + * Obtém o valor da propriedade cpfRespTec. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPFRespTec() { + return cpfRespTec; + } + + /** + * Define o valor da propriedade cpfRespTec. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPFRespTec(String value) { + this.cpfRespTec = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence>
+             *         <element name="tpGuia">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <enumeration value="1"/>
+             *               <enumeration value="2"/>
+             *               <enumeration value="3"/>
+             *               <enumeration value="4"/>
+             *               <enumeration value="5"/>
+             *               <enumeration value="6"/>
+             *               <enumeration value="7"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/>
+             *         <element name="serieGuia" minOccurs="0">
+             *           <simpleType>
+             *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+             *               <minLength value="1"/>
+             *               <maxLength value="9"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="nGuia">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <pattern value="[0-9]{1,9}"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpGuia", + "ufGuia", + "serieGuia", + "nGuia" + }) + public static class GuiaTransito { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpGuia; + @XmlElement(name = "UFGuia", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufGuia; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String serieGuia; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nGuia; + + /** + * Obtém o valor da propriedade tpGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpGuia() { + return tpGuia; + } + + /** + * Define o valor da propriedade tpGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpGuia(String value) { + this.tpGuia = value; + } + + /** + * Obtém o valor da propriedade ufGuia. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFGuia() { + return ufGuia; + } + + /** + * Define o valor da propriedade ufGuia. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFGuia(TUfEmi value) { + this.ufGuia = value; + } + + /** + * Obtém o valor da propriedade serieGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSerieGuia() { + return serieGuia; + } + + /** + * Define o valor da propriedade serieGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSerieGuia(String value) { + this.serieGuia = value; + } + + /** + * Obtém o valor da propriedade nGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNGuia() { + return nGuia; + } + + /** + * Define o valor da propriedade nGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNGuia(String value) { + this.nGuia = value; + } + + } + + } + + /** *

Classe Java de anonymous complex type. * @@ -11501,7 +12064,7 @@ public void setEmail(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -11648,7 +12211,7 @@ public void setEmail(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13259,7 +13822,7 @@ public void setNItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13406,7 +13969,7 @@ public void setNItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13920,16 +14483,16 @@ public void setNItem(String value) { public static class Imposto { @XmlElementRefs({ - @XmlElementRef(name = "PIS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "COFINSST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "ICMS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "II", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "vTotTrib", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) + @XmlElementRef(name = "PIS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "II", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) }) protected List> content; @@ -13939,8 +14502,8 @@ public static class Imposto { *

* Você está obtendo esta propriedade "catch-all" pelo seguinte motivo: * O nome do campo "IPI" é usado por duas partes diferentes de um esquema. Consulte: - * linha 4281 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd - * linha 4249 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4283 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4251 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd *

* Para eliminar esta propriedade, aplique uma personalização de propriedade a uma * das seguintes declarações, a fim de alterar seus nomes: @@ -13961,16 +14524,16 @@ public static class Imposto { * *

* Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINSST }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMS }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@code >} * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} * {@link JAXBElement }{@code <}{@link TIpi }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} * * */ @@ -15856,7 +16419,7 @@ public void setIndSomaCOFINSST(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -16003,7 +16566,7 @@ public void setIndSomaCOFINSST(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -22813,7 +23376,7 @@ public void setVCredICMSSN(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -22840,7 +23403,7 @@ public void setVCredICMSSN(String value) { }) public static class ICMSSN102 { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String orig; @XmlElement(name = "CSOSN", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String csosn; @@ -24081,7 +24644,7 @@ public void setVICMSEfet(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -24168,7 +24731,7 @@ public void setVICMSEfet(String value) { }) public static class ICMSSN900 { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String orig; @XmlElement(name = "CSOSN", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String csosn; @@ -33103,6 +33666,7 @@ public void setTpRest(String value) { * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/retEnviNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/retEnviNFe/ObjectFactory.java index 6c61fc55..2ce5ab03 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/retEnviNFe/ObjectFactory.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/retEnviNFe/ObjectFactory.java @@ -76,6 +76,14 @@ public TNFe.InfNFe createTNFeInfNFe() { return new TNFe.InfNFe(); } + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario } + * + */ + public TNFe.InfNFe.Agropecuario createTNFeInfNFeAgropecuario() { + return new TNFe.InfNFe.Agropecuario(); + } + /** * Create an instance of {@link TNFe.InfNFe.Cana } * @@ -484,6 +492,22 @@ public TNFe.InfNFe.InfSolicNFF createTNFeInfNFeInfSolicNFF() { return new TNFe.InfNFe.InfSolicNFF(); } + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public TNFe.InfNFe.Agropecuario.Defensivo createTNFeInfNFeAgropecuarioDefensivo() { + return new TNFe.InfNFe.Agropecuario.Defensivo(); + } + + /** + * Create an instance of {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public TNFe.InfNFe.Agropecuario.GuiaTransito createTNFeInfNFeAgropecuarioGuiaTransito() { + return new TNFe.InfNFe.Agropecuario.GuiaTransito(); + } + /** * Create an instance of {@link TNFe.InfNFe.Cana.ForDia } * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/retEnviNFe/TNFe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/retEnviNFe/TNFe.java index adbec2ac..84d562d9 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/retEnviNFe/TNFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/retEnviNFe/TNFe.java @@ -1,20 +1,12 @@ package br.com.swconsultoria.nfe.schema_4.retEnviNFe; -import java.util.ArrayList; -import java.util.List; import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementRef; -import javax.xml.bind.annotation.XmlElementRefs; -import javax.xml.bind.annotation.XmlID; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.*; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.util.ArrayList; +import java.util.List; /** @@ -344,6 +336,7 @@ * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> @@ -2158,7 +2151,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -2305,7 +2298,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -3622,6 +3615,75 @@ * </complexContent> * </complexType> * </element> + * <element name="agropecuario" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <element name="defensivo"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nReceituario"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="20"/> + * <minLength value="1"/> + * </restriction> + * </simpleType> + * </element> + * <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="guiaTransito"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="tpGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <whiteSpace value="preserve"/> + * <enumeration value="1"/> + * <enumeration value="2"/> + * <enumeration value="3"/> + * <enumeration value="4"/> + * <enumeration value="5"/> + * <enumeration value="6"/> + * <enumeration value="7"/> + * </restriction> + * </simpleType> + * </element> + * <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/> + * <element name="serieGuia" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.portalfiscal.inf.br/nfe}TString"> + * <minLength value="1"/> + * <maxLength value="9"/> + * </restriction> + * </simpleType> + * </element> + * <element name="nGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <pattern value="[0-9]{1,9}"/> + * </restriction> + * </simpleType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </choice> + * </restriction> + * </complexContent> + * </complexType> + * </element> * </sequence> * <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerNFe" /> * <attribute name="Id" use="required"> @@ -4080,6 +4142,7 @@ public void setSignature(SignatureType value) { * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> @@ -5894,7 +5957,7 @@ public void setSignature(SignatureType value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -6041,7 +6104,7 @@ public void setSignature(SignatureType value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -7358,6 +7421,75 @@ public void setSignature(SignatureType value) { * </complexContent> * </complexType> * </element> + * <element name="agropecuario" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <element name="defensivo"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nReceituario"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <maxLength value="20"/> + * <minLength value="1"/> + * </restriction> + * </simpleType> + * </element> + * <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="guiaTransito"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="tpGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <whiteSpace value="preserve"/> + * <enumeration value="1"/> + * <enumeration value="2"/> + * <enumeration value="3"/> + * <enumeration value="4"/> + * <enumeration value="5"/> + * <enumeration value="6"/> + * <enumeration value="7"/> + * </restriction> + * </simpleType> + * </element> + * <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/> + * <element name="serieGuia" minOccurs="0"> + * <simpleType> + * <restriction base="{http://www.portalfiscal.inf.br/nfe}TString"> + * <minLength value="1"/> + * <maxLength value="9"/> + * </restriction> + * </simpleType> + * </element> + * <element name="nGuia"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> + * <pattern value="[0-9]{1,9}"/> + * </restriction> + * </simpleType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </choice> + * </restriction> + * </complexContent> + * </complexType> + * </element> * </sequence> * <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerNFe" /> * <attribute name="Id" use="required"> @@ -7394,7 +7526,8 @@ public void setSignature(SignatureType value) { "compra", "cana", "infRespTec", - "infSolicNFF" + "infSolicNFF", + "agropecuario" }) public static class InfNFe { @@ -7436,6 +7569,8 @@ public static class InfNFe { protected TInfRespTec infRespTec; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TNFe.InfNFe.InfSolicNFF infSolicNFF; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario agropecuario; @XmlAttribute(name = "versao", required = true) protected String versao; @XmlAttribute(name = "Id", required = true) @@ -7909,6 +8044,30 @@ public void setInfSolicNFF(TNFe.InfNFe.InfSolicNFF value) { this.infSolicNFF = value; } + /** + * Obtém o valor da propriedade agropecuario. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario } + * + */ + public TNFe.InfNFe.Agropecuario getAgropecuario() { + return agropecuario; + } + + /** + * Define o valor da propriedade agropecuario. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario } + * + */ + public void setAgropecuario(TNFe.InfNFe.Agropecuario value) { + this.agropecuario = value; + } + /** * Obtém o valor da propriedade versao. * @@ -7958,6 +8117,402 @@ public void setId(String value) { } + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <choice>
+         *         <element name="defensivo">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="nReceituario">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <maxLength value="20"/>
+         *                         <minLength value="1"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *         <element name="guiaTransito">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="tpGuia">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <enumeration value="1"/>
+         *                         <enumeration value="2"/>
+         *                         <enumeration value="3"/>
+         *                         <enumeration value="4"/>
+         *                         <enumeration value="5"/>
+         *                         <enumeration value="6"/>
+         *                         <enumeration value="7"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/>
+         *                   <element name="serieGuia" minOccurs="0">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *                         <minLength value="1"/>
+         *                         <maxLength value="9"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="nGuia">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <pattern value="[0-9]{1,9}"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </choice>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "defensivo", + "guiaTransito" + }) + public static class Agropecuario { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario.Defensivo defensivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TNFe.InfNFe.Agropecuario.GuiaTransito guiaTransito; + + /** + * Obtém o valor da propriedade defensivo. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public TNFe.InfNFe.Agropecuario.Defensivo getDefensivo() { + return defensivo; + } + + /** + * Define o valor da propriedade defensivo. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario.Defensivo } + * + */ + public void setDefensivo(TNFe.InfNFe.Agropecuario.Defensivo value) { + this.defensivo = value; + } + + /** + * Obtém o valor da propriedade guiaTransito. + * + * @return + * possible object is + * {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public TNFe.InfNFe.Agropecuario.GuiaTransito getGuiaTransito() { + return guiaTransito; + } + + /** + * Define o valor da propriedade guiaTransito. + * + * @param value + * allowed object is + * {@link TNFe.InfNFe.Agropecuario.GuiaTransito } + * + */ + public void setGuiaTransito(TNFe.InfNFe.Agropecuario.GuiaTransito value) { + this.guiaTransito = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence>
+             *         <element name="nReceituario">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <maxLength value="20"/>
+             *               <minLength value="1"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="CPFRespTec" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "nReceituario", + "cpfRespTec" + }) + public static class Defensivo { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nReceituario; + @XmlElement(name = "CPFRespTec", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cpfRespTec; + + /** + * Obtém o valor da propriedade nReceituario. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNReceituario() { + return nReceituario; + } + + /** + * Define o valor da propriedade nReceituario. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNReceituario(String value) { + this.nReceituario = value; + } + + /** + * Obtém o valor da propriedade cpfRespTec. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPFRespTec() { + return cpfRespTec; + } + + /** + * Define o valor da propriedade cpfRespTec. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPFRespTec(String value) { + this.cpfRespTec = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence>
+             *         <element name="tpGuia">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <enumeration value="1"/>
+             *               <enumeration value="2"/>
+             *               <enumeration value="3"/>
+             *               <enumeration value="4"/>
+             *               <enumeration value="5"/>
+             *               <enumeration value="6"/>
+             *               <enumeration value="7"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="UFGuia" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi" minOccurs="0"/>
+             *         <element name="serieGuia" minOccurs="0">
+             *           <simpleType>
+             *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+             *               <minLength value="1"/>
+             *               <maxLength value="9"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="nGuia">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <pattern value="[0-9]{1,9}"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpGuia", + "ufGuia", + "serieGuia", + "nGuia" + }) + public static class GuiaTransito { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpGuia; + @XmlElement(name = "UFGuia", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufGuia; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String serieGuia; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nGuia; + + /** + * Obtém o valor da propriedade tpGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpGuia() { + return tpGuia; + } + + /** + * Define o valor da propriedade tpGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpGuia(String value) { + this.tpGuia = value; + } + + /** + * Obtém o valor da propriedade ufGuia. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFGuia() { + return ufGuia; + } + + /** + * Define o valor da propriedade ufGuia. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFGuia(TUfEmi value) { + this.ufGuia = value; + } + + /** + * Obtém o valor da propriedade serieGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSerieGuia() { + return serieGuia; + } + + /** + * Define o valor da propriedade serieGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSerieGuia(String value) { + this.serieGuia = value; + } + + /** + * Obtém o valor da propriedade nGuia. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNGuia() { + return nGuia; + } + + /** + * Define o valor da propriedade nGuia. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNGuia(String value) { + this.nGuia = value; + } + + } + + } + + /** *

Classe Java de anonymous complex type. * @@ -11509,7 +12064,7 @@ public void setEmail(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -11656,7 +12211,7 @@ public void setEmail(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13267,7 +13822,7 @@ public void setNItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13414,7 +13969,7 @@ public void setNItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -13928,16 +14483,16 @@ public void setNItem(String value) { public static class Imposto { @XmlElementRefs({ - @XmlElementRef(name = "PIS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "COFINSST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "ICMS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "II", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "vTotTrib", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) + @XmlElementRef(name = "PIS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "II", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) }) protected List> content; @@ -13947,8 +14502,8 @@ public static class Imposto { *

* Você está obtendo esta propriedade "catch-all" pelo seguinte motivo: * O nome do campo "IPI" é usado por duas partes diferentes de um esquema. Consulte: - * linha 4281 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd - * linha 4249 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4283 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4251 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd *

* Para eliminar esta propriedade, aplique uma personalização de propriedade a uma * das seguintes declarações, a fim de alterar seus nomes: @@ -13969,16 +14524,16 @@ public static class Imposto { * *

* Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINSST }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMS }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@code >} * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} * {@link JAXBElement }{@code <}{@link TIpi }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} * * */ @@ -15864,7 +16419,7 @@ public void setIndSomaCOFINSST(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -16011,7 +16566,7 @@ public void setIndSomaCOFINSST(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -22821,7 +23376,7 @@ public void setVCredICMSSN(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -22848,7 +23403,7 @@ public void setVCredICMSSN(String value) { }) public static class ICMSSN102 { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String orig; @XmlElement(name = "CSOSN", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String csosn; @@ -24089,7 +24644,7 @@ public void setVICMSEfet(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig"/> + * <element name="orig" type="{http://www.portalfiscal.inf.br/nfe}Torig" minOccurs="0"/> * <element name="CSOSN"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -24176,7 +24731,7 @@ public void setVICMSEfet(String value) { }) public static class ICMSSN900 { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String orig; @XmlElement(name = "CSOSN", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String csosn; @@ -33111,6 +33666,7 @@ public void setTpRest(String value) { * <enumeration value="1"/> * <enumeration value="2"/> * <enumeration value="3"/> + * <enumeration value="4"/> * </restriction> * </simpleType> * </element> From 705e96c4474f604b831eaf2fbec16f92c2a3028f Mon Sep 17 00:00:00 2001 From: SamuelOliveira Date: Sun, 1 Dec 2024 00:06:19 -0300 Subject: [PATCH 09/13] Adicionado Eventos Insucesso Entrega --- CHANGELOG.md | 17 +- README.md | 2 + schemas/EventoCancInsucessoNFe_v1.00.xsd | 11 + schemas/EventoInsucessoNFe_v1.00.xsd | 11 + schemas/e110192_v1.00.xsd | 108 ++++ schemas/e110193_v1.00.xsd | 42 ++ schemas/envEventoCancInsucessoNFe_v1.00.xsd | 12 + schemas/envEventoInsucessoNFe_v1.00.xsd | 12 + .../leiauteEventoCancInsucessoNFe_v1.00.xsd | 297 +++++++++ schemas/leiauteEventoInsucessoNFe_v1.00.xsd | 297 +++++++++ schemas/procEventoCancInsucessoNFe_v1.00.xsd | 11 + schemas/procEventoInsucessoNFe_v1.00.xsd | 11 + schemas/retEventoCancInsucessoNFe_v1.00.xsd | 11 + schemas/retEventoInsucessoNFe_v1.00.xsd | 11 + schemas/tiposBasico_v1.03.xsd | 29 +- schemas/tmp0000.xsd | 109 ++++ schemas/xmldsig-core-schema_v1.01.xsd | 2 +- .../nfe/CancInsucessoEntrega.java | 40 ++ .../swconsultoria/nfe/InsucessoEntrega.java | 40 ++ .../java/br/com/swconsultoria/nfe/Nfe.java | 38 +- .../nfe/dom/enuns/ServicosEnum.java | 2 + .../envEventoCancInsucessoNFe/DetEvento.java | 184 ++++++ .../KeyInfoType.java | 91 +++ .../ObjectFactory.java | 207 ++++++ .../ReferenceType.java | 270 ++++++++ .../SignatureType.java | 147 +++++ .../SignatureValueType.java | 86 +++ .../SignedInfoType.java | 275 ++++++++ .../envEventoCancInsucessoNFe/TEnvEvento.java | 130 ++++ .../envEventoCancInsucessoNFe/TEvento.java | 534 ++++++++++++++++ .../TProcEvento.java | 116 ++++ .../TRetEnvEvento.java | 270 ++++++++ .../schema/envEventoCancInsucessoNFe/TUf.java | 91 +++ .../envEventoCancInsucessoNFe/TUfEmi.java | 89 +++ .../TransformType.java | 93 +++ .../TransformsType.java | 69 ++ .../envEventoCancInsucessoNFe/TretEvento.java | 600 ++++++++++++++++++ .../X509DataType.java | 60 ++ .../envEventoInsucessoNFe/DetEvento.java | 407 ++++++++++++ .../envEventoInsucessoNFe/KeyInfoType.java | 91 +++ .../envEventoInsucessoNFe/ObjectFactory.java | 207 ++++++ .../envEventoInsucessoNFe/ReferenceType.java | 270 ++++++++ .../envEventoInsucessoNFe/SignatureType.java | 147 +++++ .../SignatureValueType.java | 86 +++ .../envEventoInsucessoNFe/SignedInfoType.java | 275 ++++++++ .../envEventoInsucessoNFe/TEnvEvento.java | 130 ++++ .../schema/envEventoInsucessoNFe/TEvento.java | 534 ++++++++++++++++ .../envEventoInsucessoNFe/TProcEvento.java | 116 ++++ .../envEventoInsucessoNFe/TRetEnvEvento.java | 270 ++++++++ .../nfe/schema/envEventoInsucessoNFe/TUf.java | 91 +++ .../schema/envEventoInsucessoNFe/TUfEmi.java | 89 +++ .../envEventoInsucessoNFe/TransformType.java | 93 +++ .../envEventoInsucessoNFe/TransformsType.java | 69 ++ .../envEventoInsucessoNFe/TretEvento.java | 600 ++++++++++++++++++ .../envEventoInsucessoNFe/X509DataType.java | 60 ++ .../eventoCancInsucessoNFe/DetEvento.java | 184 ++++++ .../eventoCancInsucessoNFe/KeyInfoType.java | 91 +++ .../eventoCancInsucessoNFe/ObjectFactory.java | 207 ++++++ .../eventoCancInsucessoNFe/ReferenceType.java | 270 ++++++++ .../eventoCancInsucessoNFe/SignatureType.java | 147 +++++ .../SignatureValueType.java | 86 +++ .../SignedInfoType.java | 275 ++++++++ .../eventoCancInsucessoNFe/TEnvEvento.java | 130 ++++ .../eventoCancInsucessoNFe/TEvento.java | 534 ++++++++++++++++ .../eventoCancInsucessoNFe/TProcEvento.java | 116 ++++ .../eventoCancInsucessoNFe/TRetEnvEvento.java | 270 ++++++++ .../schema/eventoCancInsucessoNFe/TUf.java | 91 +++ .../schema/eventoCancInsucessoNFe/TUfEmi.java | 89 +++ .../eventoCancInsucessoNFe/TransformType.java | 93 +++ .../TransformsType.java | 69 ++ .../eventoCancInsucessoNFe/TretEvento.java | 600 ++++++++++++++++++ .../eventoCancInsucessoNFe/X509DataType.java | 60 ++ .../schema/eventoInsucessoNFe/DetEvento.java | 407 ++++++++++++ .../eventoInsucessoNFe/KeyInfoType.java | 91 +++ .../eventoInsucessoNFe/ObjectFactory.java | 207 ++++++ .../eventoInsucessoNFe/ReferenceType.java | 270 ++++++++ .../eventoInsucessoNFe/SignatureType.java | 147 +++++ .../SignatureValueType.java | 86 +++ .../eventoInsucessoNFe/SignedInfoType.java | 275 ++++++++ .../schema/eventoInsucessoNFe/TEnvEvento.java | 130 ++++ .../schema/eventoInsucessoNFe/TEvento.java | 534 ++++++++++++++++ .../eventoInsucessoNFe/TProcEvento.java | 116 ++++ .../eventoInsucessoNFe/TRetEnvEvento.java | 270 ++++++++ .../nfe/schema/eventoInsucessoNFe/TUf.java | 91 +++ .../nfe/schema/eventoInsucessoNFe/TUfEmi.java | 89 +++ .../eventoInsucessoNFe/TransformType.java | 93 +++ .../eventoInsucessoNFe/TransformsType.java | 69 ++ .../schema/eventoInsucessoNFe/TretEvento.java | 600 ++++++++++++++++++ .../eventoInsucessoNFe/X509DataType.java | 60 ++ .../retEventoCancInsucessoNFe/DetEvento.java | 407 ++++++++++++ .../KeyInfoType.java | 91 +++ .../ObjectFactory.java | 207 ++++++ .../ReferenceType.java | 270 ++++++++ .../SignatureType.java | 147 +++++ .../SignatureValueType.java | 86 +++ .../SignedInfoType.java | 275 ++++++++ .../retEventoCancInsucessoNFe/TEnvEvento.java | 130 ++++ .../retEventoCancInsucessoNFe/TEvento.java | 534 ++++++++++++++++ .../TProcEvento.java | 116 ++++ .../TRetEnvEvento.java | 270 ++++++++ .../schema/retEventoCancInsucessoNFe/TUf.java | 91 +++ .../retEventoCancInsucessoNFe/TUfEmi.java | 89 +++ .../TransformType.java | 93 +++ .../TransformsType.java | 69 ++ .../retEventoCancInsucessoNFe/TretEvento.java | 600 ++++++++++++++++++ .../X509DataType.java | 60 ++ .../retEventoInsucessoNFe/DetEvento.java | 407 ++++++++++++ .../retEventoInsucessoNFe/KeyInfoType.java | 91 +++ .../retEventoInsucessoNFe/ObjectFactory.java | 207 ++++++ .../retEventoInsucessoNFe/ReferenceType.java | 270 ++++++++ .../retEventoInsucessoNFe/SignatureType.java | 147 +++++ .../SignatureValueType.java | 86 +++ .../retEventoInsucessoNFe/SignedInfoType.java | 275 ++++++++ .../retEventoInsucessoNFe/TEnvEvento.java | 130 ++++ .../schema/retEventoInsucessoNFe/TEvento.java | 534 ++++++++++++++++ .../retEventoInsucessoNFe/TProcEvento.java | 116 ++++ .../retEventoInsucessoNFe/TRetEnvEvento.java | 270 ++++++++ .../nfe/schema/retEventoInsucessoNFe/TUf.java | 91 +++ .../schema/retEventoInsucessoNFe/TUfEmi.java | 89 +++ .../retEventoInsucessoNFe/TransformType.java | 93 +++ .../retEventoInsucessoNFe/TransformsType.java | 69 ++ .../retEventoInsucessoNFe/TretEvento.java | 600 ++++++++++++++++++ .../retEventoInsucessoNFe/X509DataType.java | 60 ++ .../swconsultoria/nfe/util/XmlNfeUtil.java | 35 +- .../com/swconsultoria/nfe/util/XsdUtil.java | 28 + 125 files changed, 21914 insertions(+), 26 deletions(-) create mode 100644 schemas/EventoCancInsucessoNFe_v1.00.xsd create mode 100644 schemas/EventoInsucessoNFe_v1.00.xsd create mode 100644 schemas/e110192_v1.00.xsd create mode 100644 schemas/e110193_v1.00.xsd create mode 100644 schemas/envEventoCancInsucessoNFe_v1.00.xsd create mode 100644 schemas/envEventoInsucessoNFe_v1.00.xsd create mode 100644 schemas/leiauteEventoCancInsucessoNFe_v1.00.xsd create mode 100644 schemas/leiauteEventoInsucessoNFe_v1.00.xsd create mode 100644 schemas/procEventoCancInsucessoNFe_v1.00.xsd create mode 100644 schemas/procEventoInsucessoNFe_v1.00.xsd create mode 100644 schemas/retEventoCancInsucessoNFe_v1.00.xsd create mode 100644 schemas/retEventoInsucessoNFe_v1.00.xsd create mode 100644 schemas/tmp0000.xsd create mode 100644 src/main/java/br/com/swconsultoria/nfe/CancInsucessoEntrega.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/InsucessoEntrega.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/X509DataType.java diff --git a/CHANGELOG.md b/CHANGELOG.md index ff2bbc1f..c972a995 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,9 @@ # Notas de versão -- Atualizacao de URL Webservice - - Unificacao SVAN e SVC-AN Em Homologacao - - Urls QRCode Rio de Janeiro - - Add Url Inutilizacao SVC - -- Atualizado Cacerts -- Implementado NT2023.004 -- Implementado NT2019.001 - -- Atualizaçao de layout para Schemas PL.009n \ No newline at end of file +- Atualizado CACERT +- Adicionado modo Multithreading +- Atualizado Schemas para PL.009p1 +- Implementado NT2024.001 +- Implementado NT2024.003 +- Adicionado Evento Insucesso Entrega (NT2023.005) +- Adicionado Evento Cancelamento Insucesso Entrega (NT2023.005) \ No newline at end of file diff --git a/README.md b/README.md index dbeaadb8..09b59dd0 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ ________________________________________________________________________________ - Atualizado Schemas para PL.009p1 - Implementado NT2024.001 - Implementado NT2024.003 +- Adicionado Evento Insucesso Entrega (NT2023.005) +- Adicionado Evento Cancelamento Insucesso Entrega (NT2023.005) ## v4.00.34 - 08/06/2024 - Schemas PL.009n - Atualizacao de URL Webservice diff --git a/schemas/EventoCancInsucessoNFe_v1.00.xsd b/schemas/EventoCancInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..36bc7815 --- /dev/null +++ b/schemas/EventoCancInsucessoNFe_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NFe + + + diff --git a/schemas/EventoInsucessoNFe_v1.00.xsd b/schemas/EventoInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..f1ac1456 --- /dev/null +++ b/schemas/EventoInsucessoNFe_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do evento de Insucesso na entrega da NF-e + + + diff --git a/schemas/e110192_v1.00.xsd b/schemas/e110192_v1.00.xsd new file mode 100644 index 00000000..d364063c --- /dev/null +++ b/schemas/e110192_v1.00.xsd @@ -0,0 +1,108 @@ + + + + + + + Schema XML de validação do evento de Comprovante de Entrega da NF-e + + + + + + + + + + + + + + Versão do Aplicativo do Autor do Evento + + + + + Data e hora do final da tentativa entrega. Formato AAAA-MMDDThh:mm:ssTZD + + + + + + + Número da tentativa de entrega que não teve sucesso + + + + + + + + + + Motivo do insucesso - 1 – Recebedor não encontrado + 2 – Recusa do recebedor + 3 – Endereço inexistente + 4 – Outros (exige informar justificativa) + + + + + + + + + + + + + Justificativa do motivo do insucesso. Informar apenas para tpMotivo=4 + + + + + + + + + + + Latitude do ponto de entrega + + + + + Longitude do ponto de entrega + + + + + Hash (SHA1) no formato Base64 resultante da concatenação: Chave de acesso da NFe + Base64 da imagem capturada da entrega (Exemplo: imagem capturada da assinatura eletrônica, digital do recebedor, foto, etc) +Observação: 28 caracteres são representados no schema como 20 bytes do tipo base64Binary + + + + + + + + + + Data e hora da geração do hash da tentativa de entrega. Formato AAAA-MMDDThh:mm:ssTZD. + + + + + + + + + + + + + + + diff --git a/schemas/e110193_v1.00.xsd b/schemas/e110193_v1.00.xsd new file mode 100644 index 00000000..8ae7a466 --- /dev/null +++ b/schemas/e110193_v1.00.xsd @@ -0,0 +1,42 @@ + + + + + + + Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NF-e + + + + + + + + + + + + + + Versão do Aplicativo do Autor do Evento + + + + + Número do Protocolo de Autorização do Evento da NF-e a que se refere este cancelamento. + + + + + + + + + + + + + + diff --git a/schemas/envEventoCancInsucessoNFe_v1.00.xsd b/schemas/envEventoCancInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..faff6f64 --- /dev/null +++ b/schemas/envEventoCancInsucessoNFe_v1.00.xsd @@ -0,0 +1,12 @@ + + + + + + + Schema XML de validação do lote de envio do evento de Cancelamento de Insucesso na Entrega da NF-e + + + diff --git a/schemas/envEventoInsucessoNFe_v1.00.xsd b/schemas/envEventoInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..9e96e445 --- /dev/null +++ b/schemas/envEventoInsucessoNFe_v1.00.xsd @@ -0,0 +1,12 @@ + + + + + + + Schema XML de validação do lote de envio do evento de Insucesso na Entrega da NF-e + + + diff --git a/schemas/leiauteEventoCancInsucessoNFe_v1.00.xsd b/schemas/leiauteEventoCancInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..0bde4345 --- /dev/null +++ b/schemas/leiauteEventoCancInsucessoNFe_v1.00.xsd @@ -0,0 +1,297 @@ + + + + + + + + Tipo Evento + + + + + + + + Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 91 para identificar o Ambiente Nacional + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Identificação do autor do evento + + + + CNPJ + + + + + CPF + + + + + + Chave de Acesso da NF-e vinculada ao evento + + + + + Data de emissão no formato UTC. AAAA-MM-DDThh:mm:ssTZD + + + + + Tipo do Evento + + + + + + + + + + + + Seqüencial do evento para o mesmo tipo de evento. Para maioria dos eventos será 1, nos casos em que possa existir mais de um evento, como é o caso da carta de correção, o autor do evento deve numerar de forma seqüencial. + + + + + + + + + + + Versão do Tipo do Evento + + + + + + + + + + + + + Identificador da TAG a ser assinada, a regra de formação do Id é: +“ID” + tpEvento + chave da NF-e + nSeqEvento + + + + + + + + + + + + + + + + Tipo Versão do Evento + + + + + + + + + Tipo retorno do Evento + + + + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 91 para identificar o Ambiente Nacional + + + + + Código do status da registro do Evento + + + + + Descrição literal do status do registro do Evento + + + + + Chave de Acesso NF-e vinculada + + + + + Tipo do Evento vinculado + + + + + + + + + + + Descrição do Evento + + + + + + + + + + + Seqüencial do evento + + + + + + + + + + + + Data e Hora de do recebimento do evento ou do registro do evento formato UTC AAAA-MM-DDThh:mm:ssTZD. + + + + + + + + + + + Número do protocolo de registro do evento + + + + + + + + + + + + + + + + + + + Tipo Lote de Envio + + + + + + + + + + + + + + + + + Tipo Versão do EnvEvento + + + + + + + + + Tipo Retorno de Lote de Envio + + + + + + + + + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Código do òrgao que registrou o Evento + + + + + Código do status da registro do Evento + + + + + Descrição literal do status do registro do Evento + + + + + + + + + Tipo procEvento + + + + + + + + diff --git a/schemas/leiauteEventoInsucessoNFe_v1.00.xsd b/schemas/leiauteEventoInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..9ab61fe4 --- /dev/null +++ b/schemas/leiauteEventoInsucessoNFe_v1.00.xsd @@ -0,0 +1,297 @@ + + + + + + + + Tipo Evento + + + + + + + + Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 91 para identificar o Ambiente Nacional + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Identificação do autor do evento + + + + CNPJ + + + + + CPF + + + + + + Chave de Acesso da NF-e vinculada ao evento + + + + + Data de emissão no formato UTC. AAAA-MM-DDThh:mm:ssTZD + + + + + Tipo do Evento + + + + + + + + + + + + Seqüencial do evento para o mesmo tipo de evento. Para maioria dos eventos será 1, nos casos em que possa existir mais de um evento, como é o caso da carta de correção, o autor do evento deve numerar de forma seqüencial. + + + + + + + + + + + Versão do Tipo do Evento + + + + + + + + + + + + + Identificador da TAG a ser assinada, a regra de formação do Id é: +“ID” + tpEvento + chave da NF-e + nSeqEvento + + + + + + + + + + + + + + + + Tipo Versão do Evento + + + + + + + + + Tipo retorno do Evento + + + + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 91 para identificar o Ambiente Nacional + + + + + Código do status da registro do Evento + + + + + Descrição literal do status do registro do Evento + + + + + Chave de Acesso NF-e vinculada + + + + + Tipo do Evento vinculado + + + + + + + + + + + Descrição do Evento + + + + + + + + + + + Seqüencial do evento + + + + + + + + + + + + Data e Hora de do recebimento do evento ou do registro do evento formato UTC AAAA-MM-DDThh:mm:ssTZD. + + + + + + + + + + + Número do protocolo de registro do evento + + + + + + + + + + + + + + + + + + + Tipo Lote de Envio + + + + + + + + + + + + + + + + + Tipo Versão do EnvEvento + + + + + + + + + Tipo Retorno de Lote de Envio + + + + + + + + + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Código do òrgao que registrou o Evento + + + + + Código do status da registro do Evento + + + + + Descrição literal do status do registro do Evento + + + + + + + + + Tipo procEvento + + + + + + + + diff --git a/schemas/procEventoCancInsucessoNFe_v1.00.xsd b/schemas/procEventoCancInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..47786fad --- /dev/null +++ b/schemas/procEventoCancInsucessoNFe_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do proc do evento de Cancelamento do Insucesso na Entrega da NFe + + + diff --git a/schemas/procEventoInsucessoNFe_v1.00.xsd b/schemas/procEventoInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..69207090 --- /dev/null +++ b/schemas/procEventoInsucessoNFe_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do proc Insucesso na Entrega da NFe + + + diff --git a/schemas/retEventoCancInsucessoNFe_v1.00.xsd b/schemas/retEventoCancInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..d6668748 --- /dev/null +++ b/schemas/retEventoCancInsucessoNFe_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de Retorno da envio do evento de Insucesso na Entrega da NFe + + + diff --git a/schemas/retEventoInsucessoNFe_v1.00.xsd b/schemas/retEventoInsucessoNFe_v1.00.xsd new file mode 100644 index 00000000..d6668748 --- /dev/null +++ b/schemas/retEventoInsucessoNFe_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de Retorno da envio do evento de Insucesso na Entrega da NFe + + + diff --git a/schemas/tiposBasico_v1.03.xsd b/schemas/tiposBasico_v1.03.xsd index b40445d8..780236b1 100644 --- a/schemas/tiposBasico_v1.03.xsd +++ b/schemas/tiposBasico_v1.03.xsd @@ -1,4 +1,5 @@ + @@ -807,19 +808,10 @@ acrescentado: - - - Tipo Decimal com até 15 dígitos, sendo 11 de corpo e até 4 decimais, aceitando valores negativos - - - - - - - + @@ -858,7 +850,22 @@ acrescentado: - + + + + + Coordenada geográfica Latitude + + + + + + + + Coordenada geográfica Longitude + + + diff --git a/schemas/tmp0000.xsd b/schemas/tmp0000.xsd new file mode 100644 index 00000000..0fed33b3 --- /dev/null +++ b/schemas/tmp0000.xsd @@ -0,0 +1,109 @@ + + + + + + + Schema XML de validação do evento de Comprovante de Entrega da NF-e + + + + + + + + + + + + + + Versão do Aplicativo do Autor do Evento + + + + + Data e hora do final da tentativa entrega. Formato AAAA-MMDDThh:mm:ssTZD + + + + + + + Número da tentativa de entrega que não teve sucesso + + + + + + + + + + Motivo do insucesso - 1 – Recebedor não encontrado + 2 – Recusa do recebedor + 3 – Endereço inexistente + 4 – Outros (exige informar justificativa) + + + + + + + + + + + + + Justificativa do motivo do insucesso. Informar apenas para tpMotivo=4 + + + + + + + + + + + Latitude do ponto de entrega + + + + + Longitude do ponto de entrega + + + + + Hash (SHA1) no formato Base64 resultante da concatenação: Chave de acesso da NFe + Base64 da imagem capturada da entrega (Exemplo: imagem capturada da assinatura eletrônica, digital do recebedor, foto, etc) + O hashCSRT é o resultado das funções SHA-1 e base64 do token CSRT fornecido pelo fisco + chave de acesso do DF-e. (Implementação em futura NT) +Observação: 28 caracteres são representados no schema como 20 bytes do tipo base64Binary + + + + + + + + + + Data e hora da geração do hash da tentativa de entrega. Formato AAAA-MMDDThh:mm:ssTZD. + + + + + + + + + + + + + + + diff --git a/schemas/xmldsig-core-schema_v1.01.xsd b/schemas/xmldsig-core-schema_v1.01.xsd index 65daee9a..76b74b38 100644 --- a/schemas/xmldsig-core-schema_v1.01.xsd +++ b/schemas/xmldsig-core-schema_v1.01.xsd @@ -95,4 +95,4 @@ - \ No newline at end of file + diff --git a/src/main/java/br/com/swconsultoria/nfe/CancInsucessoEntrega.java b/src/main/java/br/com/swconsultoria/nfe/CancInsucessoEntrega.java new file mode 100644 index 00000000..654c997d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/CancInsucessoEntrega.java @@ -0,0 +1,40 @@ +package br.com.swconsultoria.nfe; + +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.schema.envEventoCancInsucessoNFe.TEnvEvento; +import br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe.TRetEnvEvento; +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +import javax.xml.bind.JAXBException; + +/** + * @author Samuel Oliveira - samuel@swconsultoria.com.br + */ +class CancInsucessoEntrega { + + private CancInsucessoEntrega() { + } + + static TRetEnvEvento eventoCancInsuccessoEntrega(ConfiguracoesNfe config, TEnvEvento enviEvento, boolean valida) + throws NfeException { + + try { + + String xml = XmlNfeUtil.objectToXml(enviEvento, config.getEncode()); + xml = xml.replaceAll(" xmlns:ns2=\"http://www.w3.org/2000/09/xmldsig#\"", ""); + xml = xml.replaceAll("Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="Cancelamento Insucesso na Entrega da NF-e"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="nProtEvento" type="{http://www.portalfiscal.inf.br/nfe}TProt"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "cOrgaoAutor", + "verAplic", + "nProtEvento" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nProtEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade nProtEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProtEvento() { + return nProtEvento; + } + + /** + * Define o valor da propriedade nProtEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProtEvento(String value) { + this.nProtEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/KeyInfoType.java new file mode 100644 index 00000000..ca5f0387 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/ObjectFactory.java new file mode 100644 index 00000000..2b75f173 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + private final static QName _EnvEvento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "envEvento"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TEnvEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "envEvento") + public JAXBElement createEnvEvento(TEnvEvento value) { + return new JAXBElement(_EnvEvento_QNAME, TEnvEvento.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/ReferenceType.java new file mode 100644 index 00000000..ae679185 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignatureType.java new file mode 100644 index 00000000..28e5932a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignatureValueType.java new file mode 100644 index 00000000..60db02d9 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignedInfoType.java new file mode 100644 index 00000000..21196baa --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TEnvEvento.java new file mode 100644 index 00000000..5423570e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TEvento.java new file mode 100644 index 00000000..4afa8b2a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110193"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110193"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TProcEvento.java new file mode 100644 index 00000000..17ea98f8 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TRetEnvEvento.java new file mode 100644 index 00000000..a94f2128 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TUf.java new file mode 100644 index 00000000..2a3b3ece --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TUfEmi.java new file mode 100644 index 00000000..c5326ec3 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TransformType.java new file mode 100644 index 00000000..d05e38be --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TransformsType.java new file mode 100644 index 00000000..3a1c7988 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TretEvento.java new file mode 100644 index 00000000..8fe46118 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/TretEvento.java @@ -0,0 +1,600 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "cOrgaoAutor", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/X509DataType.java new file mode 100644 index 00000000..80121ad8 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/DetEvento.java new file mode 100644 index 00000000..9f0284ff --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/DetEvento.java @@ -0,0 +1,407 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="Insucesso na Entrega da NF-e"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="dhTentativaEntrega" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *         <element name="nTentativa" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <pattern value="[0-9]{1,3}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpMotivo">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <enumeration value="1"/>
+ *               <enumeration value="2"/>
+ *               <enumeration value="3"/>
+ *               <enumeration value="4"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xJustMotivo" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *               <maxLength value="250"/>
+ *               <minLength value="25"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="latGPS" type="{http://www.portalfiscal.inf.br/nfe}TLatitude" minOccurs="0"/>
+ *         <element name="longGPS" type="{http://www.portalfiscal.inf.br/nfe}TLongitude" minOccurs="0"/>
+ *         <element name="hashTentativaEntrega">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}base64Binary">
+ *               <length value="20"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="dhHashTentativaEntrega" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "cOrgaoAutor", + "verAplic", + "dhTentativaEntrega", + "nTentativa", + "tpMotivo", + "xJustMotivo", + "latGPS", + "longGPS", + "hashTentativaEntrega", + "dhHashTentativaEntrega" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhTentativaEntrega; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nTentativa; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xJustMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String latGPS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String longGPS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected byte[] hashTentativaEntrega; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String dhHashTentativaEntrega; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade dhTentativaEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhTentativaEntrega() { + return dhTentativaEntrega; + } + + /** + * Define o valor da propriedade dhTentativaEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhTentativaEntrega(String value) { + this.dhTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade nTentativa. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNTentativa() { + return nTentativa; + } + + /** + * Define o valor da propriedade nTentativa. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNTentativa(String value) { + this.nTentativa = value; + } + + /** + * Obtém o valor da propriedade tpMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpMotivo() { + return tpMotivo; + } + + /** + * Define o valor da propriedade tpMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpMotivo(String value) { + this.tpMotivo = value; + } + + /** + * Obtém o valor da propriedade xJustMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXJustMotivo() { + return xJustMotivo; + } + + /** + * Define o valor da propriedade xJustMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXJustMotivo(String value) { + this.xJustMotivo = value; + } + + /** + * Obtém o valor da propriedade latGPS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLatGPS() { + return latGPS; + } + + /** + * Define o valor da propriedade latGPS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLatGPS(String value) { + this.latGPS = value; + } + + /** + * Obtém o valor da propriedade longGPS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLongGPS() { + return longGPS; + } + + /** + * Define o valor da propriedade longGPS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLongGPS(String value) { + this.longGPS = value; + } + + /** + * Obtém o valor da propriedade hashTentativaEntrega. + * + * @return + * possible object is + * byte[] + */ + public byte[] getHashTentativaEntrega() { + return hashTentativaEntrega; + } + + /** + * Define o valor da propriedade hashTentativaEntrega. + * + * @param value + * allowed object is + * byte[] + */ + public void setHashTentativaEntrega(byte[] value) { + this.hashTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade dhHashTentativaEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhHashTentativaEntrega() { + return dhHashTentativaEntrega; + } + + /** + * Define o valor da propriedade dhHashTentativaEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhHashTentativaEntrega(String value) { + this.dhHashTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/KeyInfoType.java new file mode 100644 index 00000000..64eb1cd8 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/ObjectFactory.java new file mode 100644 index 00000000..480cb642 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + private final static QName _EnvEvento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "envEvento"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TEnvEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "envEvento") + public JAXBElement createEnvEvento(TEnvEvento value) { + return new JAXBElement(_EnvEvento_QNAME, TEnvEvento.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/ReferenceType.java new file mode 100644 index 00000000..da47e8b4 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignatureType.java new file mode 100644 index 00000000..57f3623a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignatureValueType.java new file mode 100644 index 00000000..39f0d168 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignedInfoType.java new file mode 100644 index 00000000..e47236a4 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TEnvEvento.java new file mode 100644 index 00000000..5ead57e0 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TEvento.java new file mode 100644 index 00000000..2d7bcffd --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110192"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110192"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TProcEvento.java new file mode 100644 index 00000000..06a4739f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TRetEnvEvento.java new file mode 100644 index 00000000..c8ab1a59 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TUf.java new file mode 100644 index 00000000..b02f8f79 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TUfEmi.java new file mode 100644 index 00000000..ee751240 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TransformType.java new file mode 100644 index 00000000..563a95b8 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TransformsType.java new file mode 100644 index 00000000..db08b965 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TretEvento.java new file mode 100644 index 00000000..c14283cb --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/TretEvento.java @@ -0,0 +1,600 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE" minOccurs="0"/>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE" minOccurs="0"/>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "cOrgaoAutor", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/X509DataType.java new file mode 100644 index 00000000..87994e1f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoInsucessoNFe/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/DetEvento.java new file mode 100644 index 00000000..240cc133 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/DetEvento.java @@ -0,0 +1,184 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="Cancelamento Insucesso na Entrega da NF-e"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="nProtEvento" type="{http://www.portalfiscal.inf.br/nfe}TProt"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "cOrgaoAutor", + "verAplic", + "nProtEvento" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nProtEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade nProtEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProtEvento() { + return nProtEvento; + } + + /** + * Define o valor da propriedade nProtEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProtEvento(String value) { + this.nProtEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/KeyInfoType.java new file mode 100644 index 00000000..1c16b48d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/ObjectFactory.java new file mode 100644 index 00000000..13f9daf0 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Evento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "evento"); + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "evento") + public JAXBElement createEvento(TEvento value) { + return new JAXBElement(_Evento_QNAME, TEvento.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/ReferenceType.java new file mode 100644 index 00000000..8798c857 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignatureType.java new file mode 100644 index 00000000..79762491 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignatureValueType.java new file mode 100644 index 00000000..bbfa483d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignedInfoType.java new file mode 100644 index 00000000..fc83b404 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TEnvEvento.java new file mode 100644 index 00000000..7076903a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TEvento.java new file mode 100644 index 00000000..f2d6fd94 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110193"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110193"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TProcEvento.java new file mode 100644 index 00000000..d4f96e0d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TRetEnvEvento.java new file mode 100644 index 00000000..d15e0c1b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TUf.java new file mode 100644 index 00000000..dbf0d265 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TUfEmi.java new file mode 100644 index 00000000..c66caa1a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TransformType.java new file mode 100644 index 00000000..94bd72d8 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TransformsType.java new file mode 100644 index 00000000..2c095556 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TretEvento.java new file mode 100644 index 00000000..154750e4 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/TretEvento.java @@ -0,0 +1,600 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "cOrgaoAutor", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/X509DataType.java new file mode 100644 index 00000000..7399bfc3 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancInsucessoNFe/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/DetEvento.java new file mode 100644 index 00000000..0ba2dbca --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/DetEvento.java @@ -0,0 +1,407 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="Insucesso na Entrega da NF-e"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="dhTentativaEntrega" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *         <element name="nTentativa" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <pattern value="[0-9]{1,3}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpMotivo">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <enumeration value="1"/>
+ *               <enumeration value="2"/>
+ *               <enumeration value="3"/>
+ *               <enumeration value="4"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xJustMotivo" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *               <maxLength value="250"/>
+ *               <minLength value="25"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="latGPS" type="{http://www.portalfiscal.inf.br/nfe}TLatitude" minOccurs="0"/>
+ *         <element name="longGPS" type="{http://www.portalfiscal.inf.br/nfe}TLongitude" minOccurs="0"/>
+ *         <element name="hashTentativaEntrega">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}base64Binary">
+ *               <length value="20"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="dhHashTentativaEntrega" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "cOrgaoAutor", + "verAplic", + "dhTentativaEntrega", + "nTentativa", + "tpMotivo", + "xJustMotivo", + "latGPS", + "longGPS", + "hashTentativaEntrega", + "dhHashTentativaEntrega" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhTentativaEntrega; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nTentativa; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xJustMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String latGPS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String longGPS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected byte[] hashTentativaEntrega; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String dhHashTentativaEntrega; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade dhTentativaEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhTentativaEntrega() { + return dhTentativaEntrega; + } + + /** + * Define o valor da propriedade dhTentativaEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhTentativaEntrega(String value) { + this.dhTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade nTentativa. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNTentativa() { + return nTentativa; + } + + /** + * Define o valor da propriedade nTentativa. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNTentativa(String value) { + this.nTentativa = value; + } + + /** + * Obtém o valor da propriedade tpMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpMotivo() { + return tpMotivo; + } + + /** + * Define o valor da propriedade tpMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpMotivo(String value) { + this.tpMotivo = value; + } + + /** + * Obtém o valor da propriedade xJustMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXJustMotivo() { + return xJustMotivo; + } + + /** + * Define o valor da propriedade xJustMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXJustMotivo(String value) { + this.xJustMotivo = value; + } + + /** + * Obtém o valor da propriedade latGPS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLatGPS() { + return latGPS; + } + + /** + * Define o valor da propriedade latGPS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLatGPS(String value) { + this.latGPS = value; + } + + /** + * Obtém o valor da propriedade longGPS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLongGPS() { + return longGPS; + } + + /** + * Define o valor da propriedade longGPS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLongGPS(String value) { + this.longGPS = value; + } + + /** + * Obtém o valor da propriedade hashTentativaEntrega. + * + * @return + * possible object is + * byte[] + */ + public byte[] getHashTentativaEntrega() { + return hashTentativaEntrega; + } + + /** + * Define o valor da propriedade hashTentativaEntrega. + * + * @param value + * allowed object is + * byte[] + */ + public void setHashTentativaEntrega(byte[] value) { + this.hashTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade dhHashTentativaEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhHashTentativaEntrega() { + return dhHashTentativaEntrega; + } + + /** + * Define o valor da propriedade dhHashTentativaEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhHashTentativaEntrega(String value) { + this.dhHashTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/KeyInfoType.java new file mode 100644 index 00000000..b8db5456 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/ObjectFactory.java new file mode 100644 index 00000000..2e8ef626 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.eventoInsucessoNFe package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Evento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "evento"); + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.eventoInsucessoNFe + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "evento") + public JAXBElement createEvento(TEvento value) { + return new JAXBElement(_Evento_QNAME, TEvento.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/ReferenceType.java new file mode 100644 index 00000000..ba64e9d4 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignatureType.java new file mode 100644 index 00000000..984f4bb7 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignatureValueType.java new file mode 100644 index 00000000..e76971ca --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignedInfoType.java new file mode 100644 index 00000000..94e9d478 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TEnvEvento.java new file mode 100644 index 00000000..9f052345 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TEvento.java new file mode 100644 index 00000000..0bdd0b08 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110192"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110192"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TProcEvento.java new file mode 100644 index 00000000..0df72df2 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TRetEnvEvento.java new file mode 100644 index 00000000..867eeefb --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TUf.java new file mode 100644 index 00000000..20c57383 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TUfEmi.java new file mode 100644 index 00000000..a40c8a6a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TransformType.java new file mode 100644 index 00000000..6ce3368e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TransformsType.java new file mode 100644 index 00000000..4f94dc84 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TretEvento.java new file mode 100644 index 00000000..6ffd637a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/TretEvento.java @@ -0,0 +1,600 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE" minOccurs="0"/>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE" minOccurs="0"/>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "cOrgaoAutor", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/X509DataType.java new file mode 100644 index 00000000..4024bec2 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoInsucessoNFe/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.eventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/DetEvento.java new file mode 100644 index 00000000..7f85affe --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/DetEvento.java @@ -0,0 +1,407 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="Insucesso na Entrega da NF-e"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="dhTentativaEntrega" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *         <element name="nTentativa" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <pattern value="[0-9]{1,3}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpMotivo">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <enumeration value="1"/>
+ *               <enumeration value="2"/>
+ *               <enumeration value="3"/>
+ *               <enumeration value="4"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xJustMotivo" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *               <maxLength value="250"/>
+ *               <minLength value="25"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="latGPS" type="{http://www.portalfiscal.inf.br/nfe}TLatitude" minOccurs="0"/>
+ *         <element name="longGPS" type="{http://www.portalfiscal.inf.br/nfe}TLongitude" minOccurs="0"/>
+ *         <element name="hashTentativaEntrega">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}base64Binary">
+ *               <length value="20"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="dhHashTentativaEntrega" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "cOrgaoAutor", + "verAplic", + "dhTentativaEntrega", + "nTentativa", + "tpMotivo", + "xJustMotivo", + "latGPS", + "longGPS", + "hashTentativaEntrega", + "dhHashTentativaEntrega" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhTentativaEntrega; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nTentativa; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xJustMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String latGPS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String longGPS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected byte[] hashTentativaEntrega; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String dhHashTentativaEntrega; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade dhTentativaEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhTentativaEntrega() { + return dhTentativaEntrega; + } + + /** + * Define o valor da propriedade dhTentativaEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhTentativaEntrega(String value) { + this.dhTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade nTentativa. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNTentativa() { + return nTentativa; + } + + /** + * Define o valor da propriedade nTentativa. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNTentativa(String value) { + this.nTentativa = value; + } + + /** + * Obtém o valor da propriedade tpMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpMotivo() { + return tpMotivo; + } + + /** + * Define o valor da propriedade tpMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpMotivo(String value) { + this.tpMotivo = value; + } + + /** + * Obtém o valor da propriedade xJustMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXJustMotivo() { + return xJustMotivo; + } + + /** + * Define o valor da propriedade xJustMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXJustMotivo(String value) { + this.xJustMotivo = value; + } + + /** + * Obtém o valor da propriedade latGPS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLatGPS() { + return latGPS; + } + + /** + * Define o valor da propriedade latGPS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLatGPS(String value) { + this.latGPS = value; + } + + /** + * Obtém o valor da propriedade longGPS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLongGPS() { + return longGPS; + } + + /** + * Define o valor da propriedade longGPS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLongGPS(String value) { + this.longGPS = value; + } + + /** + * Obtém o valor da propriedade hashTentativaEntrega. + * + * @return + * possible object is + * byte[] + */ + public byte[] getHashTentativaEntrega() { + return hashTentativaEntrega; + } + + /** + * Define o valor da propriedade hashTentativaEntrega. + * + * @param value + * allowed object is + * byte[] + */ + public void setHashTentativaEntrega(byte[] value) { + this.hashTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade dhHashTentativaEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhHashTentativaEntrega() { + return dhHashTentativaEntrega; + } + + /** + * Define o valor da propriedade dhHashTentativaEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhHashTentativaEntrega(String value) { + this.dhHashTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/KeyInfoType.java new file mode 100644 index 00000000..8e2d2da8 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/ObjectFactory.java new file mode 100644 index 00000000..13de477e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + private final static QName _RetEnvEvento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "retEnvEvento"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TRetEnvEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "retEnvEvento") + public JAXBElement createRetEnvEvento(TRetEnvEvento value) { + return new JAXBElement(_RetEnvEvento_QNAME, TRetEnvEvento.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/ReferenceType.java new file mode 100644 index 00000000..ac595bbd --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignatureType.java new file mode 100644 index 00000000..faa8c49d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignatureValueType.java new file mode 100644 index 00000000..7f3adb5b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignedInfoType.java new file mode 100644 index 00000000..31333376 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TEnvEvento.java new file mode 100644 index 00000000..d80b7b29 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TEvento.java new file mode 100644 index 00000000..43107a73 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110192"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110192"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TProcEvento.java new file mode 100644 index 00000000..64a7814f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TRetEnvEvento.java new file mode 100644 index 00000000..61b3c94a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TUf.java new file mode 100644 index 00000000..124b873b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TUfEmi.java new file mode 100644 index 00000000..6d99526f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TransformType.java new file mode 100644 index 00000000..104087ed --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TransformsType.java new file mode 100644 index 00000000..8444718e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TretEvento.java new file mode 100644 index 00000000..fd6c2c10 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/TretEvento.java @@ -0,0 +1,600 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE" minOccurs="0"/>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE" minOccurs="0"/>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "cOrgaoAutor", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/X509DataType.java new file mode 100644 index 00000000..dbd453fd --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancInsucessoNFe/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/DetEvento.java new file mode 100644 index 00000000..616cae94 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/DetEvento.java @@ -0,0 +1,407 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="Insucesso na Entrega da NF-e"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="dhTentativaEntrega" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *         <element name="nTentativa" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <pattern value="[0-9]{1,3}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpMotivo">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <enumeration value="1"/>
+ *               <enumeration value="2"/>
+ *               <enumeration value="3"/>
+ *               <enumeration value="4"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xJustMotivo" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *               <maxLength value="250"/>
+ *               <minLength value="25"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="latGPS" type="{http://www.portalfiscal.inf.br/nfe}TLatitude" minOccurs="0"/>
+ *         <element name="longGPS" type="{http://www.portalfiscal.inf.br/nfe}TLongitude" minOccurs="0"/>
+ *         <element name="hashTentativaEntrega">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}base64Binary">
+ *               <length value="20"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="dhHashTentativaEntrega" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "cOrgaoAutor", + "verAplic", + "dhTentativaEntrega", + "nTentativa", + "tpMotivo", + "xJustMotivo", + "latGPS", + "longGPS", + "hashTentativaEntrega", + "dhHashTentativaEntrega" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhTentativaEntrega; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nTentativa; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xJustMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String latGPS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String longGPS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected byte[] hashTentativaEntrega; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String dhHashTentativaEntrega; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade dhTentativaEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhTentativaEntrega() { + return dhTentativaEntrega; + } + + /** + * Define o valor da propriedade dhTentativaEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhTentativaEntrega(String value) { + this.dhTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade nTentativa. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNTentativa() { + return nTentativa; + } + + /** + * Define o valor da propriedade nTentativa. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNTentativa(String value) { + this.nTentativa = value; + } + + /** + * Obtém o valor da propriedade tpMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpMotivo() { + return tpMotivo; + } + + /** + * Define o valor da propriedade tpMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpMotivo(String value) { + this.tpMotivo = value; + } + + /** + * Obtém o valor da propriedade xJustMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXJustMotivo() { + return xJustMotivo; + } + + /** + * Define o valor da propriedade xJustMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXJustMotivo(String value) { + this.xJustMotivo = value; + } + + /** + * Obtém o valor da propriedade latGPS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLatGPS() { + return latGPS; + } + + /** + * Define o valor da propriedade latGPS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLatGPS(String value) { + this.latGPS = value; + } + + /** + * Obtém o valor da propriedade longGPS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLongGPS() { + return longGPS; + } + + /** + * Define o valor da propriedade longGPS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLongGPS(String value) { + this.longGPS = value; + } + + /** + * Obtém o valor da propriedade hashTentativaEntrega. + * + * @return + * possible object is + * byte[] + */ + public byte[] getHashTentativaEntrega() { + return hashTentativaEntrega; + } + + /** + * Define o valor da propriedade hashTentativaEntrega. + * + * @param value + * allowed object is + * byte[] + */ + public void setHashTentativaEntrega(byte[] value) { + this.hashTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade dhHashTentativaEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhHashTentativaEntrega() { + return dhHashTentativaEntrega; + } + + /** + * Define o valor da propriedade dhHashTentativaEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhHashTentativaEntrega(String value) { + this.dhHashTentativaEntrega = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/KeyInfoType.java new file mode 100644 index 00000000..d2e78d7a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/ObjectFactory.java new file mode 100644 index 00000000..feec8738 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + private final static QName _RetEnvEvento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "retEnvEvento"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TRetEnvEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "retEnvEvento") + public JAXBElement createRetEnvEvento(TRetEnvEvento value) { + return new JAXBElement(_RetEnvEvento_QNAME, TRetEnvEvento.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/ReferenceType.java new file mode 100644 index 00000000..1c9a6dff --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignatureType.java new file mode 100644 index 00000000..2e671fe2 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignatureValueType.java new file mode 100644 index 00000000..4f799ad9 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignedInfoType.java new file mode 100644 index 00000000..7bdbf138 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TEnvEvento.java new file mode 100644 index 00000000..7cdeda9e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TEvento.java new file mode 100644 index 00000000..41243a34 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110192"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110192"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9]|[1][0-9]{0,1}|20"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TProcEvento.java new file mode 100644 index 00000000..80f88e44 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TRetEnvEvento.java new file mode 100644 index 00000000..e8b3592b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TUf.java new file mode 100644 index 00000000..3be8fc6f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TUfEmi.java new file mode 100644 index 00000000..7626735e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TransformType.java new file mode 100644 index 00000000..a9a8c3b9 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TransformsType.java new file mode 100644 index 00000000..faff0b42 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TretEvento.java new file mode 100644 index 00000000..03651fe0 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/TretEvento.java @@ -0,0 +1,600 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE" minOccurs="0"/>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE" minOccurs="0"/>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "cOrgaoAutor", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cOrgaoAutor; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade cOrgaoAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgaoAutor() { + return cOrgaoAutor; + } + + /** + * Define o valor da propriedade cOrgaoAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgaoAutor(String value) { + this.cOrgaoAutor = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/X509DataType.java new file mode 100644 index 00000000..d6609d4a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoInsucessoNFe/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java index 095d5b70..eacecf96 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java @@ -45,8 +45,6 @@ @Log public class XmlNfeUtil { - private XmlNfeUtil(){} - private static final String STATUS = "TConsStatServ"; private static final String SITUACAO_NFE = "TConsSitNFe"; private static final String ENVIO_NFE = "TEnviNFe"; @@ -73,22 +71,29 @@ private XmlNfeUtil(){} private static final String TPROCCCE = "br.com.swconsultoria.nfe.schema.envcce.TProcEvento"; private static final String TPROCEPEC = "br.com.swconsultoria.nfe.schema.envEpec.TProcEvento"; private static final String TPROCMAN = "br.com.swconsultoria.nfe.schema.envConfRecebto.TProcEvento"; + private static final String TPROCINSUCESSO = "br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TProcEvento"; + private static final String TPROCCANCINSUCESSO = "br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento"; private static final String TProtNFe = "TProtNFe"; private static final String TProtEnvi = "br.com.swconsultoria.nfe.schema_4.enviNFe.TProtNFe"; private static final String TProtCons = "br.com.swconsultoria.nfe.schema_4.retConsSitNFe.TProtNFe"; private static final String TProtReci = "br.com.swconsultoria.nfe.schema_4.retConsReciNFe.TProtNFe"; private static final String CANCELAR = "br.com.swconsultoria.nfe.schema.envEventoCancNFe.TEnvEvento"; private static final String ATOR_INTERESSADO = "br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TEnvEvento"; + private static final String INSUCESSO_ENTREGA = "br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TEnvEvento"; + private static final String CANC_INSUCESSO_ENTREGA = "br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TEnvEvento"; private static final String CANCELAR_SUBSTITUICAO = "br.com.swconsultoria.nfe.schema.envEventoCancSubst.TEnvEvento"; private static final String CCE = "br.com.swconsultoria.nfe.schema.envcce.TEnvEvento"; private static final String EPEC = "br.com.swconsultoria.nfe.schema.envEpec.TEnvEvento"; private static final String MANIFESTAR = "br.com.swconsultoria.nfe.schema.envConfRecebto.TEnvEvento"; private static final String RET_CANCELAR = "br.com.swconsultoria.nfe.schema.envEventoCancNFe.TRetEnvEvento"; private static final String RET_ATOR_INTERESSADO = "br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TRetEnvEvento"; + private static final String RET_INSUCESSO_ENTREGA = "br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe.TRetEnvEvento"; + private static final String RET_CANC_INSUCESSO_ENTREGA = "br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe.TRetEnvEvento"; private static final String RET_CANCELAR_SUBSTITUICAO = "br.com.swconsultoria.nfe.schema.envEventoCancSubst.TRetEnvEvento"; private static final String RET_CCE = "br.com.swconsultoria.nfe.schema.envcce.TRetEnvEvento"; private static final String RET_EPEC = "br.com.swconsultoria.nfe.schema.envEpec.TRetEnvEvento"; private static final String RET_MANIFESTAR = "br.com.swconsultoria.nfe.schema.envConfRecebto.TRetEnvEvento"; + private XmlNfeUtil() {} /** * Transforma o String do XML em Objeto @@ -206,7 +211,7 @@ public static String objectToXml(Object obj, Charset encode) throws JAXBExce break; case TPROCCCE: context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envcce.TProcEvento.class); - element = XsdUtil.envcce.createTProcEvento((br.com.swconsultoria.nfe.schema.envcce.TProcEvento) obj); + element = XsdUtil.envcce.createTProcEvento((br.com.swconsultoria.nfe.schema.envcce.TProcEvento) obj); break; case TPROCEPEC: context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEpec.TProcEvento.class); @@ -216,6 +221,14 @@ public static String objectToXml(Object obj, Charset encode) throws JAXBExce context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envConfRecebto.TProcEvento.class); element = XsdUtil.manifestacao.createTProcEvento((br.com.swconsultoria.nfe.schema.envConfRecebto.TProcEvento) obj); break; + case TPROCINSUCESSO: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TProcEvento.class); + element = XsdUtil.insucesso.createTProcEvento((br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TProcEvento) obj); + break; + case TPROCCANCINSUCESSO: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento.class); + element = XsdUtil.cancInsucesso.createTProcEvento((br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento) obj); + break; default: throw new NfeException("Objeto não mapeado no XmlUtil:" + obj.getClass().getSimpleName()); } @@ -263,6 +276,14 @@ public static String objectToXml(Object obj, Charset encode) throws JAXBExce context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TEnvEvento.class); element = new br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.ObjectFactory().createEnvEvento((br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TEnvEvento) obj); break; + case INSUCESSO_ENTREGA: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TEnvEvento.class); + element = new br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.ObjectFactory().createEnvEvento((br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TEnvEvento) obj); + break; + case CANC_INSUCESSO_ENTREGA: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TEnvEvento.class); + element = new br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.ObjectFactory().createEnvEvento((br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TEnvEvento) obj); + break; default: throw new NfeException("Objeto não mapeado no XmlUtil:" + obj.getClass().getSimpleName()); } @@ -294,6 +315,14 @@ public static String objectToXml(Object obj, Charset encode) throws JAXBExce context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TRetEnvEvento.class); element = XsdUtil.retEnvEvento.createTRetEnvEvento((br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TRetEnvEvento) obj); break; + case RET_INSUCESSO_ENTREGA: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TRetEnvEvento.class); + element = XsdUtil.retEnvEvento.createTRetEnvEvento((br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TRetEnvEvento) obj); + break; + case RET_CANC_INSUCESSO_ENTREGA: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento.class); + element = XsdUtil.retEnvEvento.createTRetEnvEvento((br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento) obj); + break; default: throw new NfeException("Objeto não mapeado no XmlUtil:" + obj.getClass().getSimpleName()); } diff --git a/src/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java index 2e872ebc..677786a7 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java @@ -127,6 +127,22 @@ static JAXBElement c } } + public interface insucesso { + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TProcEvento", scope = br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TProcEvento.class) + static JAXBElement createTProcEvento(br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TProcEvento value) { + return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TProcEvento.class, br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TProcEvento.class, value); + } + } + + public interface cancInsucesso { + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TProcEvento", scope = + br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento.class) + static JAXBElement createTProcEvento(br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento value) { + return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento.class, + br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento.class, value); + } + } + public interface retEnvEvento { @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TRetEnvEvento", scope = br.com.swconsultoria.nfe.schema.envEpec.TRetEnvEvento.class) static JAXBElement createTRetEnvEvento(br.com.swconsultoria.nfe.schema.envEpec.TRetEnvEvento value) { @@ -157,6 +173,18 @@ static JAXBElement createTRetEnvEvento(br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TRetEnvEvento value) { return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TRetEnvEvento.class, br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TRetEnvEvento.class, value); } + + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TRetEnvEvento", scope = + br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TRetEnvEvento.class) + static JAXBElement createTRetEnvEvento(br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TRetEnvEvento value) { + return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TRetEnvEvento.class, br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TRetEnvEvento.class, value); + } + + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TRetEnvEvento", scope = + br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento.class) + static JAXBElement createTRetEnvEvento(br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento value) { + return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento.class, br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento.class, value); + } } } From 8b34c22900bd1c07c72d4013d039918d78ce2f5f Mon Sep 17 00:00:00 2001 From: SamuelOliveira Date: Sun, 1 Dec 2024 12:10:40 -0300 Subject: [PATCH 10/13] Adicionado Evento Conciliacao Financeira --- CHANGELOG.md | 4 +- README.md | 4 +- schemas/EventoCancEConf_v1.00.xsd | 11 + schemas/EventoEConf_v1.00.xsd | 11 + schemas/e110750_v1.00.xsd | 140 ++++ schemas/e110751_v1.00.xsd | 41 ++ schemas/envEventoCancEConf_v1.00.xsd | 12 + schemas/envEventoEConf_v1.00.xsd | 12 + schemas/leiauteEventoCancEConf_v1.00.xsd | 296 +++++++++ schemas/leiauteEventoEConf_v1.00.xsd | 296 +++++++++ schemas/procEventoCancEConf_v1.00.xsd | 11 + schemas/procEventoEConf_v1.00.xsd | 11 + schemas/retEventoCancEConf_v1.00.xsd | 11 + schemas/retEventoEConf_v1.00.xsd | 11 + .../nfe/CancConciliacaoFinanceira.java | 40 ++ .../nfe/ConciliacaoFinanceira.java | 40 ++ .../java/br/com/swconsultoria/nfe/Nfe.java | 37 ++ .../nfe/dom/enuns/ServicosEnum.java | 2 + .../schema/envEventoCancEConf/DetEvento.java | 156 +++++ .../envEventoCancEConf/KeyInfoType.java | 91 +++ .../envEventoCancEConf/ObjectFactory.java | 207 ++++++ .../envEventoCancEConf/ReferenceType.java | 270 ++++++++ .../envEventoCancEConf/SignatureType.java | 147 ++++ .../SignatureValueType.java | 86 +++ .../envEventoCancEConf/SignedInfoType.java | 275 ++++++++ .../schema/envEventoCancEConf/TEnvEvento.java | 130 ++++ .../schema/envEventoCancEConf/TEvento.java | 534 +++++++++++++++ .../envEventoCancEConf/TProcEvento.java | 116 ++++ .../envEventoCancEConf/TRetEnvEvento.java | 270 ++++++++ .../nfe/schema/envEventoCancEConf/TUf.java | 91 +++ .../nfe/schema/envEventoCancEConf/TUfEmi.java | 89 +++ .../envEventoCancEConf/TransformType.java | 93 +++ .../envEventoCancEConf/TransformsType.java | 69 ++ .../schema/envEventoCancEConf/TretEvento.java | 571 ++++++++++++++++ .../envEventoCancEConf/X509DataType.java | 60 ++ .../nfe/schema/envEventoEConf/DetEvento.java | 629 ++++++++++++++++++ .../schema/envEventoEConf/KeyInfoType.java | 91 +++ .../schema/envEventoEConf/ObjectFactory.java | 215 ++++++ .../schema/envEventoEConf/ReferenceType.java | 270 ++++++++ .../schema/envEventoEConf/SignatureType.java | 147 ++++ .../envEventoEConf/SignatureValueType.java | 86 +++ .../schema/envEventoEConf/SignedInfoType.java | 275 ++++++++ .../nfe/schema/envEventoEConf/TEnvEvento.java | 130 ++++ .../nfe/schema/envEventoEConf/TEvento.java | 534 +++++++++++++++ .../schema/envEventoEConf/TProcEvento.java | 116 ++++ .../schema/envEventoEConf/TRetEnvEvento.java | 270 ++++++++ .../nfe/schema/envEventoEConf/TUf.java | 91 +++ .../nfe/schema/envEventoEConf/TUfEmi.java | 89 +++ .../schema/envEventoEConf/TransformType.java | 93 +++ .../schema/envEventoEConf/TransformsType.java | 69 ++ .../nfe/schema/envEventoEConf/TretEvento.java | 571 ++++++++++++++++ .../schema/envEventoEConf/X509DataType.java | 60 ++ .../nfe/schema/eventoCancEConf/DetEvento.java | 156 +++++ .../schema/eventoCancEConf/KeyInfoType.java | 91 +++ .../schema/eventoCancEConf/ObjectFactory.java | 207 ++++++ .../schema/eventoCancEConf/ReferenceType.java | 270 ++++++++ .../schema/eventoCancEConf/SignatureType.java | 153 +++++ .../eventoCancEConf/SignatureValueType.java | 86 +++ .../eventoCancEConf/SignedInfoType.java | 275 ++++++++ .../schema/eventoCancEConf/TEnvEvento.java | 130 ++++ .../nfe/schema/eventoCancEConf/TEvento.java | 534 +++++++++++++++ .../schema/eventoCancEConf/TProcEvento.java | 116 ++++ .../schema/eventoCancEConf/TRetEnvEvento.java | 270 ++++++++ .../nfe/schema/eventoCancEConf/TUf.java | 91 +++ .../nfe/schema/eventoCancEConf/TUfEmi.java | 89 +++ .../schema/eventoCancEConf/TransformType.java | 93 +++ .../eventoCancEConf/TransformsType.java | 69 ++ .../schema/eventoCancEConf/TretEvento.java | 571 ++++++++++++++++ .../schema/eventoCancEConf/X509DataType.java | 60 ++ .../nfe/schema/eventoEConf/DetEvento.java | 629 ++++++++++++++++++ .../nfe/schema/eventoEConf/KeyInfoType.java | 91 +++ .../nfe/schema/eventoEConf/ObjectFactory.java | 215 ++++++ .../nfe/schema/eventoEConf/ReferenceType.java | 270 ++++++++ .../nfe/schema/eventoEConf/SignatureType.java | 153 +++++ .../eventoEConf/SignatureValueType.java | 86 +++ .../schema/eventoEConf/SignedInfoType.java | 275 ++++++++ .../nfe/schema/eventoEConf/TEnvEvento.java | 130 ++++ .../nfe/schema/eventoEConf/TEvento.java | 534 +++++++++++++++ .../nfe/schema/eventoEConf/TProcEvento.java | 116 ++++ .../nfe/schema/eventoEConf/TRetEnvEvento.java | 270 ++++++++ .../nfe/schema/eventoEConf/TUf.java | 91 +++ .../nfe/schema/eventoEConf/TUfEmi.java | 89 +++ .../nfe/schema/eventoEConf/TransformType.java | 93 +++ .../schema/eventoEConf/TransformsType.java | 69 ++ .../nfe/schema/eventoEConf/TretEvento.java | 571 ++++++++++++++++ .../nfe/schema/eventoEConf/X509DataType.java | 60 ++ .../schema/retEventoCancEConf/DetEvento.java | 156 +++++ .../retEventoCancEConf/KeyInfoType.java | 91 +++ .../retEventoCancEConf/ObjectFactory.java | 207 ++++++ .../retEventoCancEConf/ReferenceType.java | 270 ++++++++ .../retEventoCancEConf/SignatureType.java | 153 +++++ .../SignatureValueType.java | 86 +++ .../retEventoCancEConf/SignedInfoType.java | 275 ++++++++ .../schema/retEventoCancEConf/TEnvEvento.java | 130 ++++ .../schema/retEventoCancEConf/TEvento.java | 534 +++++++++++++++ .../retEventoCancEConf/TProcEvento.java | 116 ++++ .../retEventoCancEConf/TRetEnvEvento.java | 270 ++++++++ .../nfe/schema/retEventoCancEConf/TUf.java | 91 +++ .../nfe/schema/retEventoCancEConf/TUfEmi.java | 89 +++ .../retEventoCancEConf/TransformType.java | 93 +++ .../retEventoCancEConf/TransformsType.java | 69 ++ .../schema/retEventoCancEConf/TretEvento.java | 571 ++++++++++++++++ .../retEventoCancEConf/X509DataType.java | 60 ++ .../nfe/schema/retEventoEConf/DetEvento.java | 629 ++++++++++++++++++ .../schema/retEventoEConf/KeyInfoType.java | 91 +++ .../schema/retEventoEConf/ObjectFactory.java | 215 ++++++ .../schema/retEventoEConf/ReferenceType.java | 270 ++++++++ .../schema/retEventoEConf/SignatureType.java | 147 ++++ .../retEventoEConf/SignatureValueType.java | 86 +++ .../schema/retEventoEConf/SignedInfoType.java | 275 ++++++++ .../nfe/schema/retEventoEConf/TEnvEvento.java | 130 ++++ .../nfe/schema/retEventoEConf/TEvento.java | 534 +++++++++++++++ .../schema/retEventoEConf/TProcEvento.java | 116 ++++ .../schema/retEventoEConf/TRetEnvEvento.java | 270 ++++++++ .../nfe/schema/retEventoEConf/TUf.java | 91 +++ .../nfe/schema/retEventoEConf/TUfEmi.java | 89 +++ .../schema/retEventoEConf/TransformType.java | 93 +++ .../schema/retEventoEConf/TransformsType.java | 69 ++ .../nfe/schema/retEventoEConf/TretEvento.java | 571 ++++++++++++++++ .../schema/retEventoEConf/X509DataType.java | 60 ++ .../swconsultoria/nfe/util/XmlNfeUtil.java | 30 + .../com/swconsultoria/nfe/util/XsdUtil.java | 29 + 122 files changed, 22038 insertions(+), 2 deletions(-) create mode 100644 schemas/EventoCancEConf_v1.00.xsd create mode 100644 schemas/EventoEConf_v1.00.xsd create mode 100644 schemas/e110750_v1.00.xsd create mode 100644 schemas/e110751_v1.00.xsd create mode 100644 schemas/envEventoCancEConf_v1.00.xsd create mode 100644 schemas/envEventoEConf_v1.00.xsd create mode 100644 schemas/leiauteEventoCancEConf_v1.00.xsd create mode 100644 schemas/leiauteEventoEConf_v1.00.xsd create mode 100644 schemas/procEventoCancEConf_v1.00.xsd create mode 100644 schemas/procEventoEConf_v1.00.xsd create mode 100644 schemas/retEventoCancEConf_v1.00.xsd create mode 100644 schemas/retEventoEConf_v1.00.xsd create mode 100644 src/main/java/br/com/swconsultoria/nfe/CancConciliacaoFinanceira.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/ConciliacaoFinanceira.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/X509DataType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/DetEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/KeyInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/ObjectFactory.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/ReferenceType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignatureType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignatureValueType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignedInfoType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TProcEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TRetEnvEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TUf.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TUfEmi.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TransformType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TransformsType.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TretEvento.java create mode 100644 src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/X509DataType.java diff --git a/CHANGELOG.md b/CHANGELOG.md index c972a995..65fb9e79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,4 +6,6 @@ - Implementado NT2024.001 - Implementado NT2024.003 - Adicionado Evento Insucesso Entrega (NT2023.005) -- Adicionado Evento Cancelamento Insucesso Entrega (NT2023.005) \ No newline at end of file +- Adicionado Evento Cancelamento Insucesso Entrega (NT2023.005) +- Adicionado Evento Conciliacao Financeira (NT2024.002) +- Adicionado Evento Cancelamento Conciliacao Financeira (NT2024.002) \ No newline at end of file diff --git a/README.md b/README.md index 09b59dd0..a5abce5e 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ ________________________________________________________________________________ # Historico de Versões -## v4.00.35 - 30/11/2024 - Schemas PL.009p1 +## v4.00.35 - 01/12/2024 - Schemas PL.009p1 - Atualizado CACERT - Adicionado modo Multithreading - Atualizado Schemas para PL.009p1 @@ -47,6 +47,8 @@ ________________________________________________________________________________ - Implementado NT2024.003 - Adicionado Evento Insucesso Entrega (NT2023.005) - Adicionado Evento Cancelamento Insucesso Entrega (NT2023.005) +- Adicionado Evento Conciliacao Financeira (NT2024.002) +- Adicionado Evento Cancelamento Conciliacao Financeira (NT2024.002) ## v4.00.34 - 08/06/2024 - Schemas PL.009n - Atualizacao de URL Webservice diff --git a/schemas/EventoCancEConf_v1.00.xsd b/schemas/EventoCancEConf_v1.00.xsd new file mode 100644 index 00000000..c5ed7b91 --- /dev/null +++ b/schemas/EventoCancEConf_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NFe + + + diff --git a/schemas/EventoEConf_v1.00.xsd b/schemas/EventoEConf_v1.00.xsd new file mode 100644 index 00000000..0cab583e --- /dev/null +++ b/schemas/EventoEConf_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do evento de Conciliação Financeira + + + diff --git a/schemas/e110750_v1.00.xsd b/schemas/e110750_v1.00.xsd new file mode 100644 index 00000000..ee831b05 --- /dev/null +++ b/schemas/e110750_v1.00.xsd @@ -0,0 +1,140 @@ + + + + + + + Schema XML de validação do evento de Conciliação Financeira – ECONF + + + + + + + + + + + + + Versão do Aplicativo do Autor do Evento + + + + + Grupo de detalhamento da forma de pagamento. + + + + + + Indicador da Forma de Pagamento:0-Pagamento à Vista;1-Pagamento à Prazo; + + + + + + + + + + + + Forma de Pagamento: + + + + + + + + + + + Descrição do Meio de Pagamento + + + + + + + + + + + Valor do Pagamento. Esta tag poderá ser omitida quando a tag tPag=90 (Sem Pagamento), caso contrário deverá ser preenchida. + + + + + Data do Pagamento + + + + + + CNPJ transacional do pagamento - Preencher informando o CNPJ do estabelecimento onde o pagamento foi processado/transacionado/recebido quando a emissão do documento fiscal ocorrer em estabelecimento distinto + + + + + UF do CNPJ do estabelecimento onde o pagamento foi processado/transacionado/recebido. + + + + + CNPJ da instituição financeira, de pagamento, adquirente ou subadquirente. + + + + + Bandeira da operadora de cartão + + + + + + + + + + + Número de autorização da operação com cartões, PIX, boletos e outros pagamentos eletrônicos + + + + + + + + + + + + + Informar o CNPJ do estabelecimento beneficiário do pagamento + + + + + UF do CNPJ do estabelecimento beneficiário do pagamento.. + + + + + + + + + + + + + + + + + + diff --git a/schemas/e110751_v1.00.xsd b/schemas/e110751_v1.00.xsd new file mode 100644 index 00000000..f89bf6e7 --- /dev/null +++ b/schemas/e110751_v1.00.xsd @@ -0,0 +1,41 @@ + + + + + + + Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NF-e + + + + + + + + + + + + + Versão do Aplicativo do Autor do Evento + + + + + Número do Protocolo de Autorização do Evento da NF-e a que se refere este cancelamento. + + + + + + + + + + + + + + diff --git a/schemas/envEventoCancEConf_v1.00.xsd b/schemas/envEventoCancEConf_v1.00.xsd new file mode 100644 index 00000000..316879f5 --- /dev/null +++ b/schemas/envEventoCancEConf_v1.00.xsd @@ -0,0 +1,12 @@ + + + + + + + Schema XML de validação do lote de envio do evento de Cancelamento de Conciliação Financeira + + + diff --git a/schemas/envEventoEConf_v1.00.xsd b/schemas/envEventoEConf_v1.00.xsd new file mode 100644 index 00000000..57e3c3c7 --- /dev/null +++ b/schemas/envEventoEConf_v1.00.xsd @@ -0,0 +1,12 @@ + + + + + + + Schema XML de validação do lote de envio do evento de Conciliação Financeira + + + diff --git a/schemas/leiauteEventoCancEConf_v1.00.xsd b/schemas/leiauteEventoCancEConf_v1.00.xsd new file mode 100644 index 00000000..710d25de --- /dev/null +++ b/schemas/leiauteEventoCancEConf_v1.00.xsd @@ -0,0 +1,296 @@ + + + + + + + + Tipo Evento + + + + + + + + Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar o Ambiente Nacional + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Identificação do autor do evento + + + + CNPJ + + + + + CPF + + + + + + Chave de Acesso da NF-e vinculada ao evento + + + + + Data de emissão no formato UTC. AAAA-MM-DDThh:mm:ssTZD + + + + + Tipo do Evento + + + + + + + + + + + + Seqüencial do evento para o mesmo tipo de evento. Para maioria dos eventos será 1, nos casos em que possa existir mais de um evento, como é o caso da carta de correção, o autor do evento deve numerar de forma seqüencial. + + + + + + + + + + + Versão do Tipo do Evento + + + + + + + + + + + + + Identificador da TAG a ser assinada, a regra de formação do Id é: +“ID” + tpEvento + chave da NF-e + nSeqEvento + + + + + + + + + + + + + + + + Tipo Versão do Evento + + + + + + + + + Tipo retorno do Evento + + + + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar o Ambiente Nacional + + + + + Código do status da registro do Evento + + + + + Descrição literal do status do registro do Evento + + + + + Chave de Acesso NF-e vinculada + + + + + Tipo do Evento vinculado + + + + + + + + + + + Descrição do Evento + + + + + + + + + + + Seqüencial do evento + + + + + + + + + + + Data e Hora de do recebimento do evento ou do registro do evento formato UTC AAAA-MM-DDThh:mm:ssTZD. + + + + + + + + + + + Número do protocolo de registro do evento + + + + + + + + + + + + + + + + + + + Tipo Lote de Envio + + + + + + + + + + + + + + + + + Tipo Versão do EnvEvento + + + + + + + + + Tipo Retorno de Lote de Envio + + + + + + + + + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Código do òrgao que registrou o Evento + + + + + Código do status da registro do Evento + + + + + Descrição literal do status do registro do Evento + + + + + + + + + Tipo procEvento + + + + + + + + diff --git a/schemas/leiauteEventoEConf_v1.00.xsd b/schemas/leiauteEventoEConf_v1.00.xsd new file mode 100644 index 00000000..fe9d449d --- /dev/null +++ b/schemas/leiauteEventoEConf_v1.00.xsd @@ -0,0 +1,296 @@ + + + + + + + + Tipo Evento + + + + + + + + Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 91 para identificar o Ambiente Nacional + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Identificação do autor do evento + + + + CNPJ + + + + + CPF + + + + + + Chave de Acesso da NF-e vinculada ao evento + + + + + Data de emissão no formato UTC. AAAA-MM-DDThh:mm:ssTZD + + + + + Tipo do Evento + + + + + + + + + + + + Seqüencial do evento para o mesmo tipo de evento. Para maioria dos eventos será 1, nos casos em que possa existir mais de um evento, como é o caso da carta de correção, o autor do evento deve numerar de forma seqüencial. + + + + + + + + + + + Versão do Tipo do Evento + + + + + + + + + + + + + Identificador da TAG a ser assinada, a regra de formação do Id é: +“ID” + tpEvento + chave da NF-e + nSeqEvento + + + + + + + + + + + + + + + + Tipo Versão do Evento + + + + + + + + + Tipo retorno do Evento + + + + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 91 para identificar o Ambiente Nacional + + + + + Código do status da registro do Evento + + + + + Descrição literal do status do registro do Evento + + + + + Chave de Acesso NF-e vinculada + + + + + Tipo do Evento vinculado + + + + + + + + + + + Descrição do Evento + + + + + + + + + + + Seqüencial do evento + + + + + + + + + + + Data e Hora de do recebimento do evento ou do registro do evento formato UTC AAAA-MM-DDThh:mm:ssTZD. + + + + + + + + + + + Número do protocolo de registro do evento + + + + + + + + + + + + + + + + + + + Tipo Lote de Envio + + + + + + + + + + + + + + + + + Tipo Versão do EnvEvento + + + + + + + + + Tipo Retorno de Lote de Envio + + + + + + + + + + + + + Identificação do Ambiente: +1 - Produção +2 - Homologação + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Código do òrgao que registrou o Evento + + + + + Código do status da registro do Evento + + + + + Descrição literal do status do registro do Evento + + + + + + + + + Tipo procEvento + + + + + + + + diff --git a/schemas/procEventoCancEConf_v1.00.xsd b/schemas/procEventoCancEConf_v1.00.xsd new file mode 100644 index 00000000..cb101768 --- /dev/null +++ b/schemas/procEventoCancEConf_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do proc do evento de Cancelamento de Conciliação financeira + + + diff --git a/schemas/procEventoEConf_v1.00.xsd b/schemas/procEventoEConf_v1.00.xsd new file mode 100644 index 00000000..5869b5ba --- /dev/null +++ b/schemas/procEventoEConf_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do proc do Evento de Conciliação Financeira + + + diff --git a/schemas/retEventoCancEConf_v1.00.xsd b/schemas/retEventoCancEConf_v1.00.xsd new file mode 100644 index 00000000..bc2b3ace --- /dev/null +++ b/schemas/retEventoCancEConf_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de Retorno da envio do evento de Cancelamento de Conciliação Financeira + + + diff --git a/schemas/retEventoEConf_v1.00.xsd b/schemas/retEventoEConf_v1.00.xsd new file mode 100644 index 00000000..d008b548 --- /dev/null +++ b/schemas/retEventoEConf_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de Retorno da envio do evento de Conciliação Financeira + + + diff --git a/src/main/java/br/com/swconsultoria/nfe/CancConciliacaoFinanceira.java b/src/main/java/br/com/swconsultoria/nfe/CancConciliacaoFinanceira.java new file mode 100644 index 00000000..4cbb2686 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/CancConciliacaoFinanceira.java @@ -0,0 +1,40 @@ +package br.com.swconsultoria.nfe; + +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.schema.envEventoCancEConf.TEnvEvento; +import br.com.swconsultoria.nfe.schema.retEventoCancEConf.TRetEnvEvento; +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +import javax.xml.bind.JAXBException; + +/** + * @author Samuel Oliveira - samuel@swconsultoria.com.br + */ +class CancConciliacaoFinanceira { + + private CancConciliacaoFinanceira() { + } + + static TRetEnvEvento eventoEConf(ConfiguracoesNfe config, TEnvEvento enviEvento, boolean valida) + throws NfeException { + + try { + + String xml = XmlNfeUtil.objectToXml(enviEvento, config.getEncode()); + xml = xml.replaceAll(" xmlns:ns2=\"http://www.w3.org/2000/09/xmldsig#\"", ""); + xml = xml.replaceAll("Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="Cancelamento Conciliação Financeira"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="nProtEvento" type="{http://www.portalfiscal.inf.br/nfe}TProt"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "verAplic", + "nProtEvento" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nProtEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade nProtEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProtEvento() { + return nProtEvento; + } + + /** + * Define o valor da propriedade nProtEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProtEvento(String value) { + this.nProtEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/KeyInfoType.java new file mode 100644 index 00000000..850a9dba --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/ObjectFactory.java new file mode 100644 index 00000000..2d9eb004 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.envEventoCancEConf package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + private final static QName _EnvEvento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "envEvento"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.envEventoCancEConf + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TEnvEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "envEvento") + public JAXBElement createEnvEvento(TEnvEvento value) { + return new JAXBElement(_EnvEvento_QNAME, TEnvEvento.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/ReferenceType.java new file mode 100644 index 00000000..e5bd6d7a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignatureType.java new file mode 100644 index 00000000..427a0c5b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignatureValueType.java new file mode 100644 index 00000000..8e49d494 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignedInfoType.java new file mode 100644 index 00000000..e1fea220 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TEnvEvento.java new file mode 100644 index 00000000..acbf91ec --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TEvento.java new file mode 100644 index 00000000..088d12f1 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110751"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110751"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TProcEvento.java new file mode 100644 index 00000000..58c9e29e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TRetEnvEvento.java new file mode 100644 index 00000000..a01f27cc --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TUf.java new file mode 100644 index 00000000..1b2b96a7 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TUfEmi.java new file mode 100644 index 00000000..a7d0dd21 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TransformType.java new file mode 100644 index 00000000..8dd0753b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TransformsType.java new file mode 100644 index 00000000..fe39a07a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TretEvento.java new file mode 100644 index 00000000..0d4bfb68 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/TretEvento.java @@ -0,0 +1,571 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/X509DataType.java new file mode 100644 index 00000000..505f76a3 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancEConf/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/DetEvento.java new file mode 100644 index 00000000..a50aeadc --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/DetEvento.java @@ -0,0 +1,629 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="ECONF"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="detPag" maxOccurs="100">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="indPag" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="0"/>
+ *                         <enumeration value="1"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="tPag">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{2}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xPag" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="2"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="vPag" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="dPag" type="{http://www.portalfiscal.inf.br/nfe}TData"/>
+ *                   <sequence minOccurs="0">
+ *                     <element name="CNPJPag" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+ *                     <element name="UFPag" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+ *                     <element name="CNPJIF" type="{http://www.portalfiscal.inf.br/nfe}TCnpj" minOccurs="0"/>
+ *                     <element name="tBand" minOccurs="0">
+ *                       <simpleType>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                           <whiteSpace value="preserve"/>
+ *                           <pattern value="[0-9]{2}"/>
+ *                         </restriction>
+ *                       </simpleType>
+ *                     </element>
+ *                     <element name="cAut" minOccurs="0">
+ *                       <simpleType>
+ *                         <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                           <minLength value="1"/>
+ *                           <maxLength value="128"/>
+ *                         </restriction>
+ *                       </simpleType>
+ *                     </element>
+ *                   </sequence>
+ *                   <sequence minOccurs="0">
+ *                     <element name="CNPJReceb" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+ *                     <element name="UFReceb" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+ *                   </sequence>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "verAplic", + "detPag" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List detPag; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Gets the value of the detPag property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the detPag property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDetPag().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.DetPag } + * + * + */ + public List getDetPag() { + if (detPag == null) { + detPag = new ArrayList(); + } + return this.detPag; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="indPag" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="0"/>
+     *               <enumeration value="1"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="tPag">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{2}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xPag" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="2"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="vPag" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="dPag" type="{http://www.portalfiscal.inf.br/nfe}TData"/>
+     *         <sequence minOccurs="0">
+     *           <element name="CNPJPag" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+     *           <element name="UFPag" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+     *           <element name="CNPJIF" type="{http://www.portalfiscal.inf.br/nfe}TCnpj" minOccurs="0"/>
+     *           <element name="tBand" minOccurs="0">
+     *             <simpleType>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                 <whiteSpace value="preserve"/>
+     *                 <pattern value="[0-9]{2}"/>
+     *               </restriction>
+     *             </simpleType>
+     *           </element>
+     *           <element name="cAut" minOccurs="0">
+     *             <simpleType>
+     *               <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                 <minLength value="1"/>
+     *                 <maxLength value="128"/>
+     *               </restriction>
+     *             </simpleType>
+     *           </element>
+     *         </sequence>
+     *         <sequence minOccurs="0">
+     *           <element name="CNPJReceb" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+     *           <element name="UFReceb" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+     *         </sequence>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "indPag", + "tPag", + "xPag", + "vPag", + "dPag", + "cnpjPag", + "ufPag", + "cnpjif", + "tBand", + "cAut", + "cnpjReceb", + "ufReceb" + }) + public static class DetPag { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dPag; + @XmlElement(name = "CNPJPag", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjPag; + @XmlElement(name = "UFPag", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufPag; + @XmlElement(name = "CNPJIF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjif; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tBand; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cAut; + @XmlElement(name = "CNPJReceb", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjReceb; + @XmlElement(name = "UFReceb", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufReceb; + + /** + * Obtém o valor da propriedade indPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndPag() { + return indPag; + } + + /** + * Define o valor da propriedade indPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndPag(String value) { + this.indPag = value; + } + + /** + * Obtém o valor da propriedade tPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTPag() { + return tPag; + } + + /** + * Define o valor da propriedade tPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTPag(String value) { + this.tPag = value; + } + + /** + * Obtém o valor da propriedade xPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXPag() { + return xPag; + } + + /** + * Define o valor da propriedade xPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXPag(String value) { + this.xPag = value; + } + + /** + * Obtém o valor da propriedade vPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVPag() { + return vPag; + } + + /** + * Define o valor da propriedade vPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVPag(String value) { + this.vPag = value; + } + + /** + * Obtém o valor da propriedade dPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDPag() { + return dPag; + } + + /** + * Define o valor da propriedade dPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDPag(String value) { + this.dPag = value; + } + + /** + * Obtém o valor da propriedade cnpjPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJPag() { + return cnpjPag; + } + + /** + * Define o valor da propriedade cnpjPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJPag(String value) { + this.cnpjPag = value; + } + + /** + * Obtém o valor da propriedade ufPag. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFPag() { + return ufPag; + } + + /** + * Define o valor da propriedade ufPag. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFPag(TUfEmi value) { + this.ufPag = value; + } + + /** + * Obtém o valor da propriedade cnpjif. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJIF() { + return cnpjif; + } + + /** + * Define o valor da propriedade cnpjif. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJIF(String value) { + this.cnpjif = value; + } + + /** + * Obtém o valor da propriedade tBand. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTBand() { + return tBand; + } + + /** + * Define o valor da propriedade tBand. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTBand(String value) { + this.tBand = value; + } + + /** + * Obtém o valor da propriedade cAut. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCAut() { + return cAut; + } + + /** + * Define o valor da propriedade cAut. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCAut(String value) { + this.cAut = value; + } + + /** + * Obtém o valor da propriedade cnpjReceb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJReceb() { + return cnpjReceb; + } + + /** + * Define o valor da propriedade cnpjReceb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJReceb(String value) { + this.cnpjReceb = value; + } + + /** + * Obtém o valor da propriedade ufReceb. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFReceb() { + return ufReceb; + } + + /** + * Define o valor da propriedade ufReceb. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFReceb(TUfEmi value) { + this.ufReceb = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/KeyInfoType.java new file mode 100644 index 00000000..8f39ae6b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/ObjectFactory.java new file mode 100644 index 00000000..4f53a1ab --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/ObjectFactory.java @@ -0,0 +1,215 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.envEventoEConf package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + private final static QName _EnvEvento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "envEvento"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.envEventoEConf + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link DetEvento.DetPag } + * + */ + public DetEvento.DetPag createDetEventoDetPag() { + return new DetEvento.DetPag(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TEnvEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "envEvento") + public JAXBElement createEnvEvento(TEnvEvento value) { + return new JAXBElement(_EnvEvento_QNAME, TEnvEvento.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/ReferenceType.java new file mode 100644 index 00000000..4d8d15f0 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignatureType.java new file mode 100644 index 00000000..fbd4c810 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignatureValueType.java new file mode 100644 index 00000000..1aec3af9 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignedInfoType.java new file mode 100644 index 00000000..4bb87fef --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TEnvEvento.java new file mode 100644 index 00000000..59130d57 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TEvento.java new file mode 100644 index 00000000..c22c2c50 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110750"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110750"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TProcEvento.java new file mode 100644 index 00000000..16c4fde9 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TRetEnvEvento.java new file mode 100644 index 00000000..7844133e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TUf.java new file mode 100644 index 00000000..0f40f118 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TUfEmi.java new file mode 100644 index 00000000..5d2bba83 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TransformType.java new file mode 100644 index 00000000..562fa327 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TransformsType.java new file mode 100644 index 00000000..090cfa1b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TretEvento.java new file mode 100644 index 00000000..a9ef51b7 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/TretEvento.java @@ -0,0 +1,571 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/X509DataType.java new file mode 100644 index 00000000..40da517b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoEConf/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.envEventoEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/DetEvento.java new file mode 100644 index 00000000..8a14efb7 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/DetEvento.java @@ -0,0 +1,156 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="Cancelamento Conciliação Financeira"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="nProtEvento" type="{http://www.portalfiscal.inf.br/nfe}TProt"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "verAplic", + "nProtEvento" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nProtEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade nProtEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProtEvento() { + return nProtEvento; + } + + /** + * Define o valor da propriedade nProtEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProtEvento(String value) { + this.nProtEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/KeyInfoType.java new file mode 100644 index 00000000..b606647e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/ObjectFactory.java new file mode 100644 index 00000000..81f5d347 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.eventoCancEConf package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Evento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "evento"); + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.eventoCancEConf + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "evento") + public JAXBElement createEvento(TEvento value) { + return new JAXBElement(_Evento_QNAME, TEvento.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/ReferenceType.java new file mode 100644 index 00000000..d82754fa --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignatureType.java new file mode 100644 index 00000000..b1553ffc --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignatureType.java @@ -0,0 +1,153 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignatureValueType.java new file mode 100644 index 00000000..5627fa18 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignedInfoType.java new file mode 100644 index 00000000..b6af30db --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TEnvEvento.java new file mode 100644 index 00000000..3c52c96f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TEvento.java new file mode 100644 index 00000000..569bc497 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110751"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110751"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TProcEvento.java new file mode 100644 index 00000000..d135aa7c --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TRetEnvEvento.java new file mode 100644 index 00000000..5784c26f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TUf.java new file mode 100644 index 00000000..33e8fb2a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TUfEmi.java new file mode 100644 index 00000000..14b71e7b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TransformType.java new file mode 100644 index 00000000..03775a09 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TransformsType.java new file mode 100644 index 00000000..9815aaf6 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TretEvento.java new file mode 100644 index 00000000..40251ed1 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/TretEvento.java @@ -0,0 +1,571 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/X509DataType.java new file mode 100644 index 00000000..bb2006c0 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoCancEConf/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.eventoCancEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/DetEvento.java new file mode 100644 index 00000000..4ff5aa13 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/DetEvento.java @@ -0,0 +1,629 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="ECONF"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="detPag" maxOccurs="100">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="indPag" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="0"/>
+ *                         <enumeration value="1"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="tPag">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{2}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xPag" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="2"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="vPag" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="dPag" type="{http://www.portalfiscal.inf.br/nfe}TData"/>
+ *                   <sequence minOccurs="0">
+ *                     <element name="CNPJPag" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+ *                     <element name="UFPag" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+ *                     <element name="CNPJIF" type="{http://www.portalfiscal.inf.br/nfe}TCnpj" minOccurs="0"/>
+ *                     <element name="tBand" minOccurs="0">
+ *                       <simpleType>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                           <whiteSpace value="preserve"/>
+ *                           <pattern value="[0-9]{2}"/>
+ *                         </restriction>
+ *                       </simpleType>
+ *                     </element>
+ *                     <element name="cAut" minOccurs="0">
+ *                       <simpleType>
+ *                         <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                           <minLength value="1"/>
+ *                           <maxLength value="128"/>
+ *                         </restriction>
+ *                       </simpleType>
+ *                     </element>
+ *                   </sequence>
+ *                   <sequence minOccurs="0">
+ *                     <element name="CNPJReceb" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+ *                     <element name="UFReceb" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+ *                   </sequence>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "verAplic", + "detPag" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List detPag; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Gets the value of the detPag property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the detPag property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDetPag().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.DetPag } + * + * + */ + public List getDetPag() { + if (detPag == null) { + detPag = new ArrayList(); + } + return this.detPag; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="indPag" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="0"/>
+     *               <enumeration value="1"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="tPag">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{2}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xPag" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="2"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="vPag" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="dPag" type="{http://www.portalfiscal.inf.br/nfe}TData"/>
+     *         <sequence minOccurs="0">
+     *           <element name="CNPJPag" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+     *           <element name="UFPag" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+     *           <element name="CNPJIF" type="{http://www.portalfiscal.inf.br/nfe}TCnpj" minOccurs="0"/>
+     *           <element name="tBand" minOccurs="0">
+     *             <simpleType>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                 <whiteSpace value="preserve"/>
+     *                 <pattern value="[0-9]{2}"/>
+     *               </restriction>
+     *             </simpleType>
+     *           </element>
+     *           <element name="cAut" minOccurs="0">
+     *             <simpleType>
+     *               <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                 <minLength value="1"/>
+     *                 <maxLength value="128"/>
+     *               </restriction>
+     *             </simpleType>
+     *           </element>
+     *         </sequence>
+     *         <sequence minOccurs="0">
+     *           <element name="CNPJReceb" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+     *           <element name="UFReceb" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+     *         </sequence>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "indPag", + "tPag", + "xPag", + "vPag", + "dPag", + "cnpjPag", + "ufPag", + "cnpjif", + "tBand", + "cAut", + "cnpjReceb", + "ufReceb" + }) + public static class DetPag { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dPag; + @XmlElement(name = "CNPJPag", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjPag; + @XmlElement(name = "UFPag", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufPag; + @XmlElement(name = "CNPJIF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjif; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tBand; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cAut; + @XmlElement(name = "CNPJReceb", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjReceb; + @XmlElement(name = "UFReceb", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufReceb; + + /** + * Obtém o valor da propriedade indPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndPag() { + return indPag; + } + + /** + * Define o valor da propriedade indPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndPag(String value) { + this.indPag = value; + } + + /** + * Obtém o valor da propriedade tPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTPag() { + return tPag; + } + + /** + * Define o valor da propriedade tPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTPag(String value) { + this.tPag = value; + } + + /** + * Obtém o valor da propriedade xPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXPag() { + return xPag; + } + + /** + * Define o valor da propriedade xPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXPag(String value) { + this.xPag = value; + } + + /** + * Obtém o valor da propriedade vPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVPag() { + return vPag; + } + + /** + * Define o valor da propriedade vPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVPag(String value) { + this.vPag = value; + } + + /** + * Obtém o valor da propriedade dPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDPag() { + return dPag; + } + + /** + * Define o valor da propriedade dPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDPag(String value) { + this.dPag = value; + } + + /** + * Obtém o valor da propriedade cnpjPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJPag() { + return cnpjPag; + } + + /** + * Define o valor da propriedade cnpjPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJPag(String value) { + this.cnpjPag = value; + } + + /** + * Obtém o valor da propriedade ufPag. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFPag() { + return ufPag; + } + + /** + * Define o valor da propriedade ufPag. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFPag(TUfEmi value) { + this.ufPag = value; + } + + /** + * Obtém o valor da propriedade cnpjif. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJIF() { + return cnpjif; + } + + /** + * Define o valor da propriedade cnpjif. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJIF(String value) { + this.cnpjif = value; + } + + /** + * Obtém o valor da propriedade tBand. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTBand() { + return tBand; + } + + /** + * Define o valor da propriedade tBand. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTBand(String value) { + this.tBand = value; + } + + /** + * Obtém o valor da propriedade cAut. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCAut() { + return cAut; + } + + /** + * Define o valor da propriedade cAut. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCAut(String value) { + this.cAut = value; + } + + /** + * Obtém o valor da propriedade cnpjReceb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJReceb() { + return cnpjReceb; + } + + /** + * Define o valor da propriedade cnpjReceb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJReceb(String value) { + this.cnpjReceb = value; + } + + /** + * Obtém o valor da propriedade ufReceb. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFReceb() { + return ufReceb; + } + + /** + * Define o valor da propriedade ufReceb. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFReceb(TUfEmi value) { + this.ufReceb = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/KeyInfoType.java new file mode 100644 index 00000000..4815b6c2 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/ObjectFactory.java new file mode 100644 index 00000000..252b2340 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/ObjectFactory.java @@ -0,0 +1,215 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.eventoEConf package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Evento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "evento"); + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.eventoEConf + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link DetEvento.DetPag } + * + */ + public DetEvento.DetPag createDetEventoDetPag() { + return new DetEvento.DetPag(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "evento") + public JAXBElement createEvento(TEvento value) { + return new JAXBElement(_Evento_QNAME, TEvento.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/ReferenceType.java new file mode 100644 index 00000000..7e7a7786 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignatureType.java new file mode 100644 index 00000000..7f1d1e94 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignatureType.java @@ -0,0 +1,153 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignatureValueType.java new file mode 100644 index 00000000..250c63a7 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignedInfoType.java new file mode 100644 index 00000000..d38ec431 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TEnvEvento.java new file mode 100644 index 00000000..345c1275 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TEvento.java new file mode 100644 index 00000000..a9d5c2f3 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110750"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110750"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TProcEvento.java new file mode 100644 index 00000000..ab2fcaad --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TRetEnvEvento.java new file mode 100644 index 00000000..571bd981 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TUf.java new file mode 100644 index 00000000..0e1d2d56 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TUfEmi.java new file mode 100644 index 00000000..b9e91426 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TransformType.java new file mode 100644 index 00000000..2a966be2 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TransformsType.java new file mode 100644 index 00000000..81874d24 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TretEvento.java new file mode 100644 index 00000000..7b074969 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/TretEvento.java @@ -0,0 +1,571 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/X509DataType.java new file mode 100644 index 00000000..9c8a1d85 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoEConf/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.eventoEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/DetEvento.java new file mode 100644 index 00000000..f1e3f610 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/DetEvento.java @@ -0,0 +1,156 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="Cancelamento Conciliação Financeira"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="nProtEvento" type="{http://www.portalfiscal.inf.br/nfe}TProt"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "verAplic", + "nProtEvento" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nProtEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade nProtEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProtEvento() { + return nProtEvento; + } + + /** + * Define o valor da propriedade nProtEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProtEvento(String value) { + this.nProtEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/KeyInfoType.java new file mode 100644 index 00000000..a0a00270 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/ObjectFactory.java new file mode 100644 index 00000000..553eecf0 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.retEventoCancEConf package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + private final static QName _RetEnvEvento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "retEnvEvento"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.retEventoCancEConf + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TRetEnvEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "retEnvEvento") + public JAXBElement createRetEnvEvento(TRetEnvEvento value) { + return new JAXBElement(_RetEnvEvento_QNAME, TRetEnvEvento.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/ReferenceType.java new file mode 100644 index 00000000..cf112e54 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignatureType.java new file mode 100644 index 00000000..72af2281 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignatureType.java @@ -0,0 +1,153 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignatureValueType.java new file mode 100644 index 00000000..2b09dc13 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignedInfoType.java new file mode 100644 index 00000000..75d64887 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TEnvEvento.java new file mode 100644 index 00000000..d958412c --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TEvento.java new file mode 100644 index 00000000..ce81a41b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110751"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110751"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TProcEvento.java new file mode 100644 index 00000000..c414be58 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TRetEnvEvento.java new file mode 100644 index 00000000..eb174540 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TUf.java new file mode 100644 index 00000000..8c9f9370 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TUfEmi.java new file mode 100644 index 00000000..0c4a9de9 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TransformType.java new file mode 100644 index 00000000..ac57fdaf --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TransformsType.java new file mode 100644 index 00000000..a4220b12 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TretEvento.java new file mode 100644 index 00000000..0e10167a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/TretEvento.java @@ -0,0 +1,571 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/X509DataType.java new file mode 100644 index 00000000..f90c1cd0 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoCancEConf/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.retEventoCancEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/DetEvento.java new file mode 100644 index 00000000..5e51f81a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/DetEvento.java @@ -0,0 +1,629 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="ECONF"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="detPag" maxOccurs="100">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="indPag" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="0"/>
+ *                         <enumeration value="1"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="tPag">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{2}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xPag" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="2"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="vPag" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="dPag" type="{http://www.portalfiscal.inf.br/nfe}TData"/>
+ *                   <sequence minOccurs="0">
+ *                     <element name="CNPJPag" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+ *                     <element name="UFPag" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+ *                     <element name="CNPJIF" type="{http://www.portalfiscal.inf.br/nfe}TCnpj" minOccurs="0"/>
+ *                     <element name="tBand" minOccurs="0">
+ *                       <simpleType>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                           <whiteSpace value="preserve"/>
+ *                           <pattern value="[0-9]{2}"/>
+ *                         </restriction>
+ *                       </simpleType>
+ *                     </element>
+ *                     <element name="cAut" minOccurs="0">
+ *                       <simpleType>
+ *                         <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                           <minLength value="1"/>
+ *                           <maxLength value="128"/>
+ *                         </restriction>
+ *                       </simpleType>
+ *                     </element>
+ *                   </sequence>
+ *                   <sequence minOccurs="0">
+ *                     <element name="CNPJReceb" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+ *                     <element name="UFReceb" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+ *                   </sequence>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <enumeration value="1.00"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "verAplic", + "detPag" +}) +@XmlRootElement(name = "detEvento", namespace = "http://www.portalfiscal.inf.br/nfe") +public class DetEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String descEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List detPag; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Gets the value of the detPag property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the detPag property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDetPag().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.DetPag } + * + * + */ + public List getDetPag() { + if (detPag == null) { + detPag = new ArrayList(); + } + return this.detPag; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="indPag" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="0"/>
+     *               <enumeration value="1"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="tPag">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{2}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xPag" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="2"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="vPag" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="dPag" type="{http://www.portalfiscal.inf.br/nfe}TData"/>
+     *         <sequence minOccurs="0">
+     *           <element name="CNPJPag" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+     *           <element name="UFPag" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+     *           <element name="CNPJIF" type="{http://www.portalfiscal.inf.br/nfe}TCnpj" minOccurs="0"/>
+     *           <element name="tBand" minOccurs="0">
+     *             <simpleType>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                 <whiteSpace value="preserve"/>
+     *                 <pattern value="[0-9]{2}"/>
+     *               </restriction>
+     *             </simpleType>
+     *           </element>
+     *           <element name="cAut" minOccurs="0">
+     *             <simpleType>
+     *               <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                 <minLength value="1"/>
+     *                 <maxLength value="128"/>
+     *               </restriction>
+     *             </simpleType>
+     *           </element>
+     *         </sequence>
+     *         <sequence minOccurs="0">
+     *           <element name="CNPJReceb" type="{http://www.portalfiscal.inf.br/nfe}TCnpj"/>
+     *           <element name="UFReceb" type="{http://www.portalfiscal.inf.br/nfe}TUfEmi"/>
+     *         </sequence>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "indPag", + "tPag", + "xPag", + "vPag", + "dPag", + "cnpjPag", + "ufPag", + "cnpjif", + "tBand", + "cAut", + "cnpjReceb", + "ufReceb" + }) + public static class DetPag { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vPag; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dPag; + @XmlElement(name = "CNPJPag", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjPag; + @XmlElement(name = "UFPag", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufPag; + @XmlElement(name = "CNPJIF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjif; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tBand; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cAut; + @XmlElement(name = "CNPJReceb", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjReceb; + @XmlElement(name = "UFReceb", namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlSchemaType(name = "string") + protected TUfEmi ufReceb; + + /** + * Obtém o valor da propriedade indPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndPag() { + return indPag; + } + + /** + * Define o valor da propriedade indPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndPag(String value) { + this.indPag = value; + } + + /** + * Obtém o valor da propriedade tPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTPag() { + return tPag; + } + + /** + * Define o valor da propriedade tPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTPag(String value) { + this.tPag = value; + } + + /** + * Obtém o valor da propriedade xPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXPag() { + return xPag; + } + + /** + * Define o valor da propriedade xPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXPag(String value) { + this.xPag = value; + } + + /** + * Obtém o valor da propriedade vPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVPag() { + return vPag; + } + + /** + * Define o valor da propriedade vPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVPag(String value) { + this.vPag = value; + } + + /** + * Obtém o valor da propriedade dPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDPag() { + return dPag; + } + + /** + * Define o valor da propriedade dPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDPag(String value) { + this.dPag = value; + } + + /** + * Obtém o valor da propriedade cnpjPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJPag() { + return cnpjPag; + } + + /** + * Define o valor da propriedade cnpjPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJPag(String value) { + this.cnpjPag = value; + } + + /** + * Obtém o valor da propriedade ufPag. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFPag() { + return ufPag; + } + + /** + * Define o valor da propriedade ufPag. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFPag(TUfEmi value) { + this.ufPag = value; + } + + /** + * Obtém o valor da propriedade cnpjif. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJIF() { + return cnpjif; + } + + /** + * Define o valor da propriedade cnpjif. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJIF(String value) { + this.cnpjif = value; + } + + /** + * Obtém o valor da propriedade tBand. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTBand() { + return tBand; + } + + /** + * Define o valor da propriedade tBand. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTBand(String value) { + this.tBand = value; + } + + /** + * Obtém o valor da propriedade cAut. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCAut() { + return cAut; + } + + /** + * Define o valor da propriedade cAut. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCAut(String value) { + this.cAut = value; + } + + /** + * Obtém o valor da propriedade cnpjReceb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJReceb() { + return cnpjReceb; + } + + /** + * Define o valor da propriedade cnpjReceb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJReceb(String value) { + this.cnpjReceb = value; + } + + /** + * Obtém o valor da propriedade ufReceb. + * + * @return + * possible object is + * {@link TUfEmi } + * + */ + public TUfEmi getUFReceb() { + return ufReceb; + } + + /** + * Define o valor da propriedade ufReceb. + * + * @param value + * allowed object is + * {@link TUfEmi } + * + */ + public void setUFReceb(TUfEmi value) { + this.ufReceb = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/KeyInfoType.java new file mode 100644 index 00000000..d6be3e26 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/ObjectFactory.java new file mode 100644 index 00000000..7c008c60 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/ObjectFactory.java @@ -0,0 +1,215 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.retEventoEConf package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); + private final static QName _RetEnvEvento_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "retEnvEvento"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.retEventoEConf + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link ReferenceType } + * + */ + public ReferenceType createReferenceType() { + return new ReferenceType(); + } + + /** + * Create an instance of {@link SignedInfoType } + * + */ + public SignedInfoType createSignedInfoType() { + return new SignedInfoType(); + } + + /** + * Create an instance of {@link TEvento } + * + */ + public TEvento createTEvento() { + return new TEvento(); + } + + /** + * Create an instance of {@link TretEvento } + * + */ + public TretEvento createTretEvento() { + return new TretEvento(); + } + + /** + * Create an instance of {@link DetEvento.DetPag } + * + */ + public DetEvento.DetPag createDetEventoDetPag() { + return new DetEvento.DetPag(); + } + + /** + * Create an instance of {@link TRetEnvEvento } + * + */ + public TRetEnvEvento createTRetEnvEvento() { + return new TRetEnvEvento(); + } + + /** + * Create an instance of {@link TEnvEvento } + * + */ + public TEnvEvento createTEnvEvento() { + return new TEnvEvento(); + } + + /** + * Create an instance of {@link TProcEvento } + * + */ + public TProcEvento createTProcEvento() { + return new TProcEvento(); + } + + /** + * Create an instance of {@link SignatureType } + * + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link X509DataType } + * + */ + public X509DataType createX509DataType() { + return new X509DataType(); + } + + /** + * Create an instance of {@link SignatureValueType } + * + */ + public SignatureValueType createSignatureValueType() { + return new SignatureValueType(); + } + + /** + * Create an instance of {@link TransformsType } + * + */ + public TransformsType createTransformsType() { + return new TransformsType(); + } + + /** + * Create an instance of {@link TransformType } + * + */ + public TransformType createTransformType() { + return new TransformType(); + } + + /** + * Create an instance of {@link KeyInfoType } + * + */ + public KeyInfoType createKeyInfoType() { + return new KeyInfoType(); + } + + /** + * Create an instance of {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { + return new ReferenceType.DigestMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { + return new SignedInfoType.CanonicalizationMethod(); + } + + /** + * Create an instance of {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { + return new SignedInfoType.SignatureMethod(); + } + + /** + * Create an instance of {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento createTretEventoInfEvento() { + return new TretEvento.InfEvento(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TRetEnvEvento }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "retEnvEvento") + public JAXBElement createRetEnvEvento(TRetEnvEvento value) { + return new JAXBElement(_RetEnvEvento_QNAME, TRetEnvEvento.class, null, value); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/ReferenceType.java new file mode 100644 index 00000000..ee42e2d8 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignatureType.java new file mode 100644 index 00000000..c11c78be --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignatureValueType.java new file mode 100644 index 00000000..1bcd0a40 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignedInfoType.java new file mode 100644 index 00000000..360c622c --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TEnvEvento.java new file mode 100644 index 00000000..11166f3e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Lote de Envio + * + *

Classe Java de TEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento" maxOccurs="20"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "evento" +}) +public class TEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected List evento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Gets the value of the evento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the evento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TEvento } + * + * + */ + public List getEvento() { + if (evento == null) { + evento = new ArrayList(); + } + return this.evento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TEvento.java new file mode 100644 index 00000000..98284c2c --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TEvento.java @@ -0,0 +1,534 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <choice>
+ *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                         <enumeration value="110750"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="verEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1.00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <choice>
+     *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *               <enumeration value="110750"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="verEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1.00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element ref="{http://www.portalfiscal.inf.br/nfe}detEvento"/>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "cpf", + "chNFe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "verEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpj; + @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpf; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade verEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerEvento() { + return verEvento; + } + + /** + * Define o valor da propriedade verEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerEvento(String value) { + this.verEvento = value; + } + + /** + * Obtém o valor da propriedade detEvento. + * + * @return + * possible object is + * {@link DetEvento } + * + */ + public DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link DetEvento } + * + */ + public void setDetEvento(DetEvento value) { + this.detEvento = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TProcEvento.java new file mode 100644 index 00000000..a33de269 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="evento" type="{http://www.portalfiscal.inf.br/nfe}TEvento"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "evento", + "retEvento" +}) +public class TProcEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TEvento evento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade evento. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEvento() { + return evento; + } + + /** + * Define o valor da propriedade evento. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEvento(TEvento value) { + this.evento = value; + } + + /** + * Obtém o valor da propriedade retEvento. + * + * @return + * possible object is + * {@link TretEvento } + * + */ + public TretEvento getRetEvento() { + return retEvento; + } + + /** + * Define o valor da propriedade retEvento. + * + * @param value + * allowed object is + * {@link TretEvento } + * + */ + public void setRetEvento(TretEvento value) { + this.retEvento = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TRetEnvEvento.java new file mode 100644 index 00000000..0d8e81ba --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + * Tipo Retorno de Lote de Envio + * + *

Classe Java de TRetEnvEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetEnvEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,15}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *         <element name="retEvento" type="{http://www.portalfiscal.inf.br/nfe}TretEvento" maxOccurs="20" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEnvEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEnvEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "idLote", + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "retEvento" +}) +public class TRetEnvEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String idLote; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected List retEvento; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Gets the value of the retEvento property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the retEvento property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRetEvento().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TretEvento } + * + * + */ + public List getRetEvento() { + if (retEvento == null) { + retEvento = new ArrayList(); + } + return this.retEvento; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TUf.java new file mode 100644 index 00000000..183e1626 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TUfEmi.java new file mode 100644 index 00000000..a15e4472 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUfEmi. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUfEmi">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUfEmi", namespace = "http://www.portalfiscal.inf.br/nfe") +@XmlEnum +public enum TUfEmi { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfEmi fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TransformType.java new file mode 100644 index 00000000..1abf5da9 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TransformsType.java new file mode 100644 index 00000000..87c49a00 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TretEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TretEvento.java new file mode 100644 index 00000000..4fe13b6c --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/TretEvento.java @@ -0,0 +1,571 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo retorno do Evento + * + *

Classe Java de TretEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TretEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infEvento">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+ *                   <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+ *                   <element name="tpEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="5"/>
+ *                         <maxLength value="60"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]{0,1}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="dhRegEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="Id">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{15}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "infEvento", + "signature" +}) +public class TretEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected TretEvento.InfEvento infEvento; + @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#") + protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TretEvento.InfEvento } + * + */ + public TretEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TretEvento.InfEvento } + * + */ + public void setInfEvento(TretEvento.InfEvento value) { + this.infEvento = value; + } + + /** + * Obtém o valor da propriedade signature. + * + * @return + * possible object is + * {@link SignatureType } + * + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Define o valor da propriedade signature. + * + * @param value + * allowed object is + * {@link SignatureType } + * + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Obtém o valor da propriedade versao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersao() { + return versao; + } + + /** + * Define o valor da propriedade versao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersao(String value) { + this.versao = value; + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
+     *         <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
+     *         <element name="tpEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="5"/>
+     *               <maxLength value="60"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]{0,1}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="dhRegEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="Id">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{15}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chNFe", + "tpEvento", + "xEvento", + "nSeqEvento", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String tpAmb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String verAplic; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cOrgao; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cStat; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String chNFe; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String xEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nSeqEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String dhRegEvento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String nProt; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade tpAmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAmb() { + return tpAmb; + } + + /** + * Define o valor da propriedade tpAmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAmb(String value) { + this.tpAmb = value; + } + + /** + * Obtém o valor da propriedade verAplic. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerAplic() { + return verAplic; + } + + /** + * Define o valor da propriedade verAplic. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerAplic(String value) { + this.verAplic = value; + } + + /** + * Obtém o valor da propriedade cOrgao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCOrgao() { + return cOrgao; + } + + /** + * Define o valor da propriedade cOrgao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCOrgao(String value) { + this.cOrgao = value; + } + + /** + * Obtém o valor da propriedade cStat. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCStat() { + return cStat; + } + + /** + * Define o valor da propriedade cStat. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCStat(String value) { + this.cStat = value; + } + + /** + * Obtém o valor da propriedade xMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMotivo() { + return xMotivo; + } + + /** + * Define o valor da propriedade xMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMotivo(String value) { + this.xMotivo = value; + } + + /** + * Obtém o valor da propriedade chNFe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChNFe() { + return chNFe; + } + + /** + * Define o valor da propriedade chNFe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChNFe(String value) { + this.chNFe = value; + } + + /** + * Obtém o valor da propriedade tpEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEvento() { + return tpEvento; + } + + /** + * Define o valor da propriedade tpEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEvento(String value) { + this.tpEvento = value; + } + + /** + * Obtém o valor da propriedade xEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXEvento() { + return xEvento; + } + + /** + * Define o valor da propriedade xEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXEvento(String value) { + this.xEvento = value; + } + + /** + * Obtém o valor da propriedade nSeqEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNSeqEvento() { + return nSeqEvento; + } + + /** + * Define o valor da propriedade nSeqEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNSeqEvento(String value) { + this.nSeqEvento = value; + } + + /** + * Obtém o valor da propriedade dhRegEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRegEvento() { + return dhRegEvento; + } + + /** + * Define o valor da propriedade dhRegEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRegEvento(String value) { + this.dhRegEvento = value; + } + + /** + * Obtém o valor da propriedade nProt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProt() { + return nProt; + } + + /** + * Define o valor da propriedade nProt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProt(String value) { + this.nProt = value; + } + + /** + * Obtém o valor da propriedade id. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Define o valor da propriedade id. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/X509DataType.java new file mode 100644 index 00000000..1afbce4c --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/retEventoEConf/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.retEventoEConf; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java index eacecf96..04ae12f3 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java @@ -73,6 +73,8 @@ public class XmlNfeUtil { private static final String TPROCMAN = "br.com.swconsultoria.nfe.schema.envConfRecebto.TProcEvento"; private static final String TPROCINSUCESSO = "br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TProcEvento"; private static final String TPROCCANCINSUCESSO = "br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento"; + private static final String TPROCECONF = "br.com.swconsultoria.nfe.schema.envEventoEConf.TProcEvento"; + private static final String TPROCCANCECONF = "br.com.swconsultoria.nfe.schema.envEventoCancEConf.TProcEvento"; private static final String TProtNFe = "TProtNFe"; private static final String TProtEnvi = "br.com.swconsultoria.nfe.schema_4.enviNFe.TProtNFe"; private static final String TProtCons = "br.com.swconsultoria.nfe.schema_4.retConsSitNFe.TProtNFe"; @@ -81,6 +83,8 @@ public class XmlNfeUtil { private static final String ATOR_INTERESSADO = "br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TEnvEvento"; private static final String INSUCESSO_ENTREGA = "br.com.swconsultoria.nfe.schema.envEventoInsucessoNFe.TEnvEvento"; private static final String CANC_INSUCESSO_ENTREGA = "br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TEnvEvento"; + private static final String ECONF = "br.com.swconsultoria.nfe.schema.envEventoEConf.TEnvEvento"; + private static final String CANC_ECONF = "br.com.swconsultoria.nfe.schema.envEventoCancEConf.TEnvEvento"; private static final String CANCELAR_SUBSTITUICAO = "br.com.swconsultoria.nfe.schema.envEventoCancSubst.TEnvEvento"; private static final String CCE = "br.com.swconsultoria.nfe.schema.envcce.TEnvEvento"; private static final String EPEC = "br.com.swconsultoria.nfe.schema.envEpec.TEnvEvento"; @@ -89,6 +93,8 @@ public class XmlNfeUtil { private static final String RET_ATOR_INTERESSADO = "br.com.swconsultoria.nfe.schema.envEventoAtorInteressado.TRetEnvEvento"; private static final String RET_INSUCESSO_ENTREGA = "br.com.swconsultoria.nfe.schema.retEventoInsucessoNFe.TRetEnvEvento"; private static final String RET_CANC_INSUCESSO_ENTREGA = "br.com.swconsultoria.nfe.schema.retEventoCancInsucessoNFe.TRetEnvEvento"; + private static final String RET_ECONF = "br.com.swconsultoria.nfe.schema.retEventoEConf.TRetEnvEvento"; + private static final String RET_CANC_ECONF = "br.com.swconsultoria.nfe.schema.retEventoCancEConf.TRetEnvEvento"; private static final String RET_CANCELAR_SUBSTITUICAO = "br.com.swconsultoria.nfe.schema.envEventoCancSubst.TRetEnvEvento"; private static final String RET_CCE = "br.com.swconsultoria.nfe.schema.envcce.TRetEnvEvento"; private static final String RET_EPEC = "br.com.swconsultoria.nfe.schema.envEpec.TRetEnvEvento"; @@ -229,6 +235,14 @@ public static String objectToXml(Object obj, Charset encode) throws JAXBExce context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento.class); element = XsdUtil.cancInsucesso.createTProcEvento((br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TProcEvento) obj); break; + case TPROCECONF: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoEConf.TProcEvento.class); + element = XsdUtil.econf.createTProcEvento((br.com.swconsultoria.nfe.schema.envEventoEConf.TProcEvento) obj); + break; + case TPROCCANCECONF: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoCancEConf.TProcEvento.class); + element = XsdUtil.cancEConf.createTProcEvento((br.com.swconsultoria.nfe.schema.envEventoCancEConf.TProcEvento) obj); + break; default: throw new NfeException("Objeto não mapeado no XmlUtil:" + obj.getClass().getSimpleName()); } @@ -284,6 +298,14 @@ public static String objectToXml(Object obj, Charset encode) throws JAXBExce context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TEnvEvento.class); element = new br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.ObjectFactory().createEnvEvento((br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TEnvEvento) obj); break; + case ECONF: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoEConf.TEnvEvento.class); + element = new br.com.swconsultoria.nfe.schema.envEventoEConf.ObjectFactory().createEnvEvento((br.com.swconsultoria.nfe.schema.envEventoEConf.TEnvEvento) obj); + break; + case CANC_ECONF: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoCancEConf.TEnvEvento.class); + element = new br.com.swconsultoria.nfe.schema.envEventoCancEConf.ObjectFactory().createEnvEvento((br.com.swconsultoria.nfe.schema.envEventoCancEConf.TEnvEvento) obj); + break; default: throw new NfeException("Objeto não mapeado no XmlUtil:" + obj.getClass().getSimpleName()); } @@ -323,6 +345,14 @@ public static String objectToXml(Object obj, Charset encode) throws JAXBExce context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento.class); element = XsdUtil.retEnvEvento.createTRetEnvEvento((br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento) obj); break; + case RET_ECONF: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoEConf.TRetEnvEvento.class); + element = XsdUtil.retEnvEvento.createTRetEnvEvento((br.com.swconsultoria.nfe.schema.envEventoEConf.TRetEnvEvento) obj); + break; + case RET_CANC_ECONF: + context = JAXBContext.newInstance(br.com.swconsultoria.nfe.schema.envEventoCancEConf.TRetEnvEvento.class); + element = XsdUtil.retEnvEvento.createTRetEnvEvento((br.com.swconsultoria.nfe.schema.envEventoCancEConf.TRetEnvEvento) obj); + break; default: throw new NfeException("Objeto não mapeado no XmlUtil:" + obj.getClass().getSimpleName()); } diff --git a/src/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java index 677786a7..36901074 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java @@ -143,6 +143,23 @@ static JAXBElement createTProcEvento(br.com.swconsultoria.nfe.schema.envEventoEConf.TProcEvento value) { + return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoEConf.TProcEvento.class, br.com.swconsultoria.nfe.schema.envEventoEConf.TProcEvento.class, value); + } + } + + public interface cancEConf { + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TProcEvento", scope = + br.com.swconsultoria.nfe.schema.envEventoCancEConf.TProcEvento.class) + static JAXBElement createTProcEvento(br.com.swconsultoria.nfe.schema.envEventoCancEConf.TProcEvento value) { + return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoCancEConf.TProcEvento.class, + br.com.swconsultoria.nfe.schema.envEventoCancEConf.TProcEvento.class, value); + } + } + public interface retEnvEvento { @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TRetEnvEvento", scope = br.com.swconsultoria.nfe.schema.envEpec.TRetEnvEvento.class) static JAXBElement createTRetEnvEvento(br.com.swconsultoria.nfe.schema.envEpec.TRetEnvEvento value) { @@ -185,6 +202,18 @@ static JAXBElement createTRetEnvEvento(br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento value) { return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento.class, br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe.TRetEnvEvento.class, value); } + + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TRetEnvEvento", scope = + br.com.swconsultoria.nfe.schema.envEventoEConf.TRetEnvEvento.class) + static JAXBElement createTRetEnvEvento(br.com.swconsultoria.nfe.schema.envEventoEConf.TRetEnvEvento value) { + return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoEConf.TRetEnvEvento.class, br.com.swconsultoria.nfe.schema.envEventoEConf.TRetEnvEvento.class, value); + } + + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TRetEnvEvento", scope = + br.com.swconsultoria.nfe.schema.envEventoCancEConf.TRetEnvEvento.class) + static JAXBElement createTRetEnvEvento(br.com.swconsultoria.nfe.schema.envEventoCancEConf.TRetEnvEvento value) { + return new JAXBElement(_TProcEvento_QNAME, br.com.swconsultoria.nfe.schema.envEventoCancEConf.TRetEnvEvento.class, br.com.swconsultoria.nfe.schema.envEventoCancEConf.TRetEnvEvento.class, value); + } } } From b420550f74028dc3bcbb7d63c87bc0216830cd60 Mon Sep 17 00:00:00 2001 From: SamuelOliveira Date: Sun, 1 Dec 2024 12:13:27 -0300 Subject: [PATCH 11/13] =?UTF-8?q?Finalizado=20Vers=C3=A3o=2035?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- schemas.zip | Bin 140858 -> 162785 bytes .../nfe/dom/ConfiguracoesNfe.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a5abce5e..039538f7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 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.34/jar) +# 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.35/jar) Biblioteca Java para consumo do WebService de NFe/NFCe ## Dúvidas, Sugestões ou Consultoria @@ -17,7 +17,7 @@ Para Iniciar : br.com.swconsultoria java-nfe - 4.00.34 + 4.00.35 ``` @@ -29,7 +29,7 @@ repositories { } } dependencies { - implementation "br.com.swconsultoria:java-nfe:4.00.34" + implementation "br.com.swconsultoria:java-nfe:4.00.35" } ``` diff --git a/schemas.zip b/schemas.zip index 28bdbf65df9b8b2c416151a5f38e9a9ea3bdcca8..6595ee95a7192c26de25321e986f13f7669cc73b 100644 GIT binary patch delta 67753 zcmc$`WmH|=wyud2+}+*X9fG^NySwWGf_rec;7)MY;O-D0xVr`~__ELW_CDv_+gerK zs=a>AHrH6QHO4!7fBM_Un6!?4+PsG%P>==%Lj?i?`UFIb8lZUyszE3K3#1==*n#PW z94=;~L54q>;mM*`)g~1W5sjvW=90aam}`^{<4Sw*)6e-@aIxHEc{$jWqQW1n^E)^n zmpa4u3frIc3j+bP!KQ@Dc_TLl%&NqAC6RU`cIQgAfS6_5?8&}(g`k!%gsHBkO_Y(18wY53oClTr7Q$R z&m^7^*3)4jXn=6B2oLI%(5Qlvc5cpO_?7M;tM@hX0t!Qsm-I`R7>fNq$!2$A{! zab<;G4f5w68CC=6pQ}Aw1n@ssz{K?bxW_{l0tRTp4A88d?b=-f0|HWgf6&LXOqrM% znYfts-I(YZ8R7D&K}}9(w@LAQE3me4WrAECSC*VEx+Rlg z6~&e+P5I>(Ccl3)ZN@v?EIUC?-&+ z=<*2}*Q|)w!zvn+DblvnBFEnE+*s$h0Au0;vuR2d{K(a~*ddLC*r^s5qzS+DVW3-O z^lwtBp$(`&Vwfb02tiQ@4*fF{?pX*_k-dsxukC(C4X~l516+HFIkhM|Fc8i|9hA37 z%qO9}#w$f4q2UVmY0!L^cAp=XUCl?_(}Ok6U>pLcTz%#`pnRdr7nm6*f*V_D0mCys zn}uT3B<4h{Sm56Uhz5P!9#3z|f%Jj2T=xi`h>LDyF&8cPy>+BvF@M8m^IL3G?#1gJ z2M{qd8}Q~{Nf2kk$szMPOK*lIMlcjt1QoYacYda49hq?1HKFE&?leE?jiZX^XcyTM zqRQ6Z+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!+@ZB81^6LNvMs}{#-IF%Z& zo(m%>po=4*|386ER`g6dbexJ7TyunmY3jfAKFOpDI>Pj4paG?w09`oe-}Ep@6Ez8B z`hTab=ubn-u+yK=qUr&|g(E}zNw(9H=V_bRvu9 zG+5ui0r>^8yPO~orOzOtgIXG=!8+3g3ZLg)E)d$#|C8tMil0Q4-<|+v%gpib39hr& zz?Dam!Aw_x5#x@3^}SPDz`6fDxpbC$O99C}Dfl$ldyIM9|Ie1JXceRKwLZ`+`UM(v z+~5!Qq)XMX-viUD!~nGPf#Isrs^QYSog>VVAu^x*pU*veV@XeW{mZI^>LZJ_Bb@5hUe z{-bmJdjjJuUB4SiKRJ)Vf+79UJo`T>K{`*UTbv)J-uIj#K<5l7PG+aLprt1uz;s^7 z>;WY5bR++CE<_1}Uckju&-w-x06*`oyhG<{&=CcS(=Ng51qd*o@1!Ne=fVF?iJn+O z^@2*_r$$EClkUdz9tj7b0}b{J=l#EJ6q$Zn<TJn`>@rJUI-=a2A9J^(J=`S2@0agKM|f%v}F&*PpH9_0LG=iBmmx1?VvT+yg@QOdS7iFaM#RXtOniq=V3AGb5UI zu-H4$#tvW*{P#Zh5A$SsCWd;{8tJoDLOQeL8nrn-;dDA L88rZ!B%%Btfhe(X diff --git a/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java b/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java index 6a69025f..c201a5a4 100644 --- a/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java +++ b/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java @@ -109,8 +109,8 @@ public static ConfiguracoesNfe criarConfiguracoes(EstadosEnum estado, AmbienteEn log.info(String.format("JAVA-NFE | Samuel Oliveira | samuel@swconsultoria.com.br " + "| VERSAO=%s | DATA_VERSAO=%s | PASTA_SCHEMAS=%s | AMBIENTE=%s | ESTADO=%s", - "4.00.34", - "08/06/2024", + "4.00.35", + "01/12/2024", pastaSchemas, ambiente, estado.getNome().toUpperCase())); From a47837023612cca801e7622553f475d951e79d16 Mon Sep 17 00:00:00 2001 From: SamuelOliveira Date: Sun, 1 Dec 2024 12:16:03 -0300 Subject: [PATCH 12/13] [maven-release-plugin] prepare release java-nfe-4.00.35 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 820f06f0..69311d02 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 br.com.swconsultoria java-nfe - 4.00.35-SNAPSHOT + 4.00.35 Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -19,7 +19,7 @@ git@github.com:Samuel-Oliveira/Java_NFe.git scm:git:git@github.com:Samuel-Oliveira/Java_NFe.git scm:git:git@github.com:Samuel-Oliveira/Java_NFe.git - java-nfe + java-nfe-4.00.35 From 2a1e578a2ce9cfa299b0d591c027f7e660789180 Mon Sep 17 00:00:00 2001 From: SamuelOliveira Date: Sun, 1 Dec 2024 12:16:04 -0300 Subject: [PATCH 13/13] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 69311d02..46cc9270 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 br.com.swconsultoria java-nfe - 4.00.35 + 4.00.36-SNAPSHOT Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -19,7 +19,7 @@ git@github.com:Samuel-Oliveira/Java_NFe.git scm:git:git@github.com:Samuel-Oliveira/Java_NFe.git scm:git:git@github.com:Samuel-Oliveira/Java_NFe.git - java-nfe-4.00.35 + java-nfe