diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5eab3324..5352b992 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: with: java-version: 8 - name: Cache SonarCloud packages - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar diff --git a/CHANGELOG.md b/CHANGELOG.md index ff2bbc1f..07bef1ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,2 @@ # 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 MS \ No newline at end of file diff --git a/README.md b/README.md index 643f384e..2b731c38 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.37/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.37 ``` @@ -29,7 +29,7 @@ repositories { } } dependencies { - implementation "br.com.swconsultoria:java-nfe:4.00.34" + implementation "br.com.swconsultoria:java-nfe:4.00.37" } ``` @@ -39,6 +39,23 @@ ________________________________________________________________________________ # Historico de Versões +## v4.00.37 - 05/04/2025 - Schemas PL.009p1 +- Atualizado CACERT + +## v4.00.36 - 10/03/2025 - Schemas PL.009p1 +- Atualizado Endereços SVC + +## v4.00.35 - 01/12/2024 - Schemas PL.009p1 +- 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) +- 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 - Unificacao SVAN e SVC-AN Em Homologacao diff --git a/pom-base.xml b/pom-base.xml index 6b575320..06b26bdf 100644 --- a/pom-base.xml +++ b/pom-base.xml @@ -1,9 +1,8 @@ - + 4.0.0 br.com.swconsultoria java-nfe - 4.00.35-${versao}-SNAPSHOT + 4.00.38-${versao}-SNAPSHOT Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -83,7 +82,7 @@ br.com.swconsultoria java_certificado - 3.6 + 3.9 diff --git a/pom.xml b/pom.xml index 9c97d628..3a9dc746 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.38-SNAPSHOT Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -84,7 +84,7 @@ br.com.swconsultoria java_certificado - 3.6 + 3.9 diff --git a/schemas.zip b/schemas.zip index 4304e927..6595ee95 100644 Binary files a/schemas.zip and b/schemas.zip differ 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/leiauteNFe_v4.00.xsd b/schemas/leiauteNFe_v4.00.xsd index feea5ab9..95bed30c 100644 --- a/schemas/leiauteNFe_v4.00.xsd +++ b/schemas/leiauteNFe_v4.00.xsd @@ -1,5 +1,5 @@ - + @@ -17,6 +17,7 @@ + @@ -558,7 +559,8 @@ Preencher com "2B", quando se tratar de Cupom Fiscal emitido por máqu Este campo será obrigatoriamente preenchido com: 1 – Simples Nacional; 2 – Simples Nacional – excesso de sublimite de receita bruta; -3 – Regime Normal. +3 – Regime Normal. +4 - Simples Nacional - Microempreendedor individual - MEI @@ -566,6 +568,7 @@ Este campo será obrigatoriamente preenchido com: + @@ -1082,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) @@ -2758,14 +2761,13 @@ Informar o motivo da desoneração: origem da mercadoria: 0 - Nacional -1 - Estrangeira - Importação direta -2 - Estrangeira - Adquirida no mercado interno + 1 - Estrangeira - Importação direta + 2 - Estrangeira - Adquirida no mercado interno - Tributção pelo ICMS -20 - Com redução de base de cálculo + Tributação pelo ICMS 51 - Tributação com Diferimento @@ -2777,10 +2779,10 @@ Informar o motivo da desoneração: Modalidade de determinação da BC do ICMS: -0 - Margem Valor Agregado (%); -1 - Pauta (valor); -2 - Preço Tabelado Máximo (valor); -3 - Valor da Operação. + 0 - Margem Valor Agregado (%); + 1 - Pauta (valor); + 2 - Preço Tabelado Máximo (valor); + 3 - Valor da Operação. @@ -3781,7 +3783,7 @@ Operação interestadual para consumidor final com partilha do ICMS devido na o - + origem da mercadoria: 0 - Nacional 1 - Estrangeira - Importação direta @@ -4100,11 +4102,11 @@ Operação interestadual para consumidor final com partilha do ICMS devido na o - Tributação do ICMS pelo SIMPLES NACIONAL, CRT=1 – Simples Nacional e CSOSN=900 (v2.0) + Tributação do ICMS pelo SIMPLES NACIONAL, CRT=1 – Simples Nacional, CRT=4 - MEI e CSOSN=900 (v2.0) - + origem da mercadoria: 0 - Nacional 1 - Estrangeira - Importação direta @@ -6286,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/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/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/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/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/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/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/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/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/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/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/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/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/envEventoCancInsucessoNFe/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/DetEvento.java new file mode 100644 index 00000000..b261e1d9 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/envEventoCancInsucessoNFe/DetEvento.java @@ -0,0 +1,184 @@ + +package br.com.swconsultoria.nfe.schema.envEventoCancInsucessoNFe; + +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/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/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/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/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/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/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/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/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/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/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/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/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> 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/StubUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java new file mode 100644 index 00000000..a35b89ce --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/util/StubUtil.java @@ -0,0 +1,39 @@ +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 { + + private StubUtil() { + } + + /** + * + * 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} + * 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(); + if (certificado.isModoMultithreading()) { + 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()); + } + } +} 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..04ae12f3 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; @@ -49,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"; @@ -77,22 +71,35 @@ 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 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"; 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 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"; 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_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"; private static final String RET_MANIFESTAR = "br.com.swconsultoria.nfe.schema.envConfRecebto.TRetEnvEvento"; + private XmlNfeUtil() {} /** * Transforma o String do XML em Objeto @@ -210,7 +217,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); @@ -220,6 +227,22 @@ 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; + 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()); } @@ -267,6 +290,22 @@ 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; + 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()); } @@ -298,6 +337,22 @@ 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; + 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()); } @@ -426,16 +481,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/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/XsdUtil.java index 2e872ebc..36901074 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,39 @@ 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 econf { + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "TProcEvento", scope = + br.com.swconsultoria.nfe.schema.envEventoEConf.TProcEvento.class) + 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) { @@ -157,6 +190,30 @@ 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); + } + + @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); + } } } diff --git a/src/main/resources/WebServicesNfe.ini b/src/main/resources/WebServicesNfe.ini index b25f7a9a..e7027fa3 100644 --- a/src/main/resources/WebServicesNfe.ini +++ b/src/main/resources/WebServicesNfe.ini @@ -94,7 +94,7 @@ NFeAutorizacao_4.00=https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4 NFeRetAutorizacao_4.00=https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl [NFe_MA_P] -Usar=NFe_SVAN_P +Usar=NFe_SVC-AN_P NfeConsultaCadastro_4.00=https://sistemas.sefaz.ma.gov.br/wscadastro/CadConsultaCadastro2?wsdl [NFe_MA_H] @@ -323,12 +323,12 @@ NFeRetAutorizacao_4.00=https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizac NfeConsultaCadastro_4.00=https://cad-homologacao.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx [NFe_SVC-AN_P] -NfeConsultaProtocolo_4.00=https://www.svc.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx -NfeStatusServico_4.00=https://www.svc.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx -RecepcaoEvento_4.00=https://www.svc.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx -NFeAutorizacao_4.00=https://www.svc.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx -NFeRetAutorizacao_4.00=https://www.svc.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx - +NfeInutilizacao_4.00=https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx +NfeConsultaProtocolo_4.00=https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx +NfeStatusServico_4.00=https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx +RecepcaoEvento_4.00=https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx +NFeAutorizacao_4.00=https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx +NFeRetAutorizacao_4.00=https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx [NFe_SVC-AN_H] NfeInutilizacao_4.00=https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx 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"); - } }