diff --git a/CHANGELOG.md b/CHANGELOG.md index cdcf99fc..f582da23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,5 @@ # Notas de versão -- Correcao Manifestacao \ No newline at end of file +- Adicionado calculos IBSCBS para Diferimento +- Atualizado Cacerts +- Corrigido monofasia retida Anteriormente. +- Corrigido Informacoes Fisco Impressao Danfe \ No newline at end of file diff --git a/README.md b/README.md index 41381170..83425b03 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.45/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.49/jar) Biblioteca Java para consumo do WebService de NFe/NFCe ### Powered by @@ -22,7 +22,7 @@ Para Iniciar : br.com.swconsultoria java-nfe - 4.00.45 + 4.00.49 ``` @@ -34,38 +34,36 @@ repositories { } } dependencies { - implementation "br.com.swconsultoria:java-nfe:4.00.45" + implementation "br.com.swconsultoria:java-nfe:4.00.49" } ``` Veja a Wiki https://github.com/Samuel-Oliveira/Java_NFe/wiki, para ter um Tutorial Completo. ________________________________________________________________________________________________ -# 🚨 Atenção — Reforma Tributária na NF-e / NFC-e -Foram adicionadas as classes com o **layout da Reforma Tributária** a partir da versao 4.00.42. - ---- - -## 💼 Consultoria Especializada - -Estamos com uma equipe dedicada exclusivamente à **Reforma Tributária**. -A partir de **Setembro de 2025**, estaremos oferecendo serviços de **consultoria personalizada** para apoiar empresas na migração de seus sistemas para o novo layout. - ---- +# Historico de Versões -## 📞 Contato +## v4.00.49 - 18/01/2026 - Schemas PL.010b (v1.30) +- Corrigido monofasia retida Anteriormente. +- Adicionado calculos IBSCBS para Diferimento +- Atualizado Cacerts +- Corrigido Informacoes Fisco Impressao Danfe -- Discord: `.samueloliveira` -- E-mail: [samuel@swconsultoria.com.br](mailto:samuel@swconsultoria.com.br) -- WhatsApp/Telefone: **(62) 99306-6546** +## v4.00.48 - 20/12/2025 - Schemas PL.010b (v1.30) +- Adicionado Monofasico aos calculos IBSCBS +- Corrigido busca de IBSCBS para multi-thread -________________________________________________________________________________________________ +## v4.00.47 - 10/12/2025 - Schemas PL.010b (v1.30) +- Correcoes calculos IBSCBS -# Historico de Versões +## v4.00.46 - 06/12/2025 - Schemas PL.010b (v1.30) +- Atualizado Schemas PL.010b (v1.30) **CASO USE VALIDACAO ATUALIZE A PASTA SCHEMAS** +- Adicionado novos eventos da reforma Tributaria (Ver exemplo em: https://github.com/Samuel-Oliveira/Java_NFe/blob/master/src/test/java/br/com/swconsultoria/nfe/exemplos/EventoGenericoTeste.java) +- Adicionado ao projeto o calculo e preenchimento automatico do IBSCBS dos Itens e do Total (Ver exemplo em: https://github.com/Samuel-Oliveira/Java_NFe/blob/master/src/test/java/br/com/swconsultoria/nfe/exemplos/CalculosIbsCbsTeste.java) ## v4.00.45 - 09/11/2025 - Schemas PL.010b (v1.1) -- Adicionado Conculta ao JSON dos CST/Cclasstrib do IBSCBS +- Adicionado Conculta ao JSON dos CST/Cclasstrib do IBSCBS (Ver exemplo em: https://github.com/Samuel-Oliveira/Java_NFe/blob/master/src/test/java/br/com/swconsultoria/nfe/exemplos/ConsultaTributacaoTeste.java) ## v4.00.44 - 28/10/2025 - Schemas PL.010b (v1.1) - Correcao sequencia Manifestacao Util diff --git a/pom-base.xml b/pom-base.xml index 4bb9c7ea..19f41efb 100644 --- a/pom-base.xml +++ b/pom-base.xml @@ -3,7 +3,7 @@ br.com.swconsultoria java-nfe - 4.00.45-${versao}-SNAPSHOT + 4.00.49-${versao}-SNAPSHOT Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -31,7 +31,7 @@ 1.8 - 3.12 + 3.13 4.4.6 2.3.1 2.3.1 diff --git a/pom.xml b/pom.xml index ac027aa1..e19b31f5 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ br.com.swconsultoria java-nfe - 4.00.45 + 4.00.49 Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -31,7 +31,7 @@ 1.8 - 3.12 + 3.13 4.4.6 2.3.1 2.3.1 diff --git a/schemas.zip b/schemas.zip index 3858db0d..7c43a493 100644 Binary files a/schemas.zip and b/schemas.zip differ diff --git a/schemas/DFeTiposBasicos_v1.00.xsd b/schemas/DFeTiposBasicos_v1.00.xsd index 44e4ec49..a5051dd0 100644 --- a/schemas/DFeTiposBasicos_v1.00.xsd +++ b/schemas/DFeTiposBasicos_v1.00.xsd @@ -1,5 +1,5 @@ - + @@ -37,7 +37,7 @@ - + Tipo Decimal com 15 dígitos, sendo 11 de corpo e 4 decimais @@ -46,7 +46,7 @@ - + Tipo Decimal com 11 inteiros, podendo ter 4 decimais (utilizado em tags opcionais) @@ -55,7 +55,7 @@ - + Tipo Decimal com 15 dígitos, sendo 13 de corpo e 2 decimais @@ -64,7 +64,7 @@ - + Tipo Decimal com até 3 dígitos inteiros, podendo ter de 2 até 4 decimais @@ -107,6 +107,14 @@ + + + Tipo Indicador de Doação + + + + + Grupo de informações da Tributação da NFCom @@ -118,7 +126,17 @@ + + + Indica se a operação é de doação + + + + + Informado conforme indicador no cClassTrib + + @@ -132,7 +150,37 @@ + + + Indica se a operação é de doação + + + + + + Informado conforme indicador no cClassTrib + + + + + + + Grupo de informações da Tributação da NFAg + + + + + Código Situação Tributária do IBS/CBS + + + + + + + Informado conforme indicador no cClassTrib + + @@ -146,7 +194,13 @@ + + + + Informado conforme indicador no cClassTrib + + @@ -160,7 +214,13 @@ + + + + Informado conforme indicador no cClassTrib + + @@ -174,6 +234,11 @@ + + + Indica se a operação é de doação + + @@ -191,11 +256,16 @@ + + + Indica se a operação é de doação + + - Informar essa opção da Choice para Monofasia + Informar essa opção da Choice para Monofasia (CST 620) @@ -203,10 +273,54 @@ Informar essa opção da Choice para o CST 800 + + + Informar essa opção da Choice para o CST 811 + + - + - Classificação de acordo com o art. 450, § 1º, da LC 214/25 para o cálculo do crédito presumido na ZFM + Informado conforme indicador no cClassTrib + + + + + + Crédito Presumido da Operação. Informado conforme indicador no cClassTrib. + + + + + Classificação de acordo com o art. 450, § 1º, da LC 214/25 para o cálculo do crédito presumido na ZFM. Informado conforme indicador no cClassTrib. + + + + + + + + Grupo de informações da Tributação da NFGas + + + + + Código Situação Tributária do IBS/CBS + + + + + + + + + Informar essa opção da Choice para Monofasia + + + + + + Informado conforme indicador no cClassTrib @@ -223,17 +337,17 @@ - + Valor do BC - + Alíquota do Imposto Seletivo (percentual) - + Alíquota do Imposto Seletivo (por valor) @@ -250,13 +364,13 @@ - + Quantidade com abse no campo uTrib informado - + Valor do Imposto Seletivo calculado @@ -269,7 +383,7 @@ Grupo de informações de totais do Imposto Seletivo - + Valor Total do Imposto Seletivo @@ -281,7 +395,7 @@ Grupo de informações de totais da CBS/IBS - + Total Base de Calculo @@ -298,17 +412,17 @@ - + Total do Diferimento - + Total de devoluções de tributos - + Valor total do IBS Estadual @@ -322,17 +436,17 @@ - + Total do Diferimento - + Total de devoluções de tributos - + Valor total do IBS Municipal @@ -340,21 +454,11 @@ - + Valor total do IBS - - - Total do Crédito Presumido - - - - - Total do Crédito Presumido Condição Suspensiva - - @@ -364,29 +468,38 @@ - + Total do Diferimento - + Total de devoluções de tributos - + Valor total da CBS - + + + + + + Totalização do estorno de crédito + + + + - Total do Crédito Presumido + Valor total do IBS estornado - + - Total do Crédito Presumido Condição Suspensiva + Valor total da CBS estornada @@ -399,7 +512,7 @@ Grupo de informações de totais da CBS/IBS com monofasia - + Total Base de Calculo @@ -416,17 +529,17 @@ - + Total do Diferimento - + Total de devoluções de tributos - + Valor total do IBS Estadual @@ -440,17 +553,17 @@ - + Total do Diferimento - + Total de devoluções de tributos - + Valor total do IBS Municipal @@ -458,17 +571,17 @@ - + Valor total do IBS - + Total do Crédito Presumido - + Total do Crédito Presumido Condição Suspensiva @@ -482,27 +595,27 @@ - + Total do Diferimento - + Total de devoluções de tributos - + Valor total da CBS - + Total do Crédito Presumido - + Total do Crédito Presumido Condição Suspensiva @@ -517,32 +630,32 @@ - + Valor total do IBS monofásico - + Valor total da CBS monofásica - + Valor total do IBS monofásico sujeito a retenção - + Valor total da CBS monofásica sujeita a retenção - + Valor do IBS monofásico retido anteriormente - + Valor da CBS monofásica retida anteriormente @@ -550,6 +663,25 @@ + + + Totalização do estorno de crédito + + + + + + Valor total do IBS estornado + + + + + Valor total da CBS estornada + + + + + @@ -566,27 +698,27 @@ - + Quantidade tributada na monofasia - + Alíquota ad rem do IBS - + Alíquota ad rem da CBS - + Valor do IBS monofásico - + Valor da CBS monofásica @@ -600,27 +732,27 @@ - + Quantidade tributada sujeita a retenção. - + Alíquota ad rem do IBS sujeito a retenção - + Valor do IBS monofásico sujeito a retenção - + Alíquota ad rem da CBS sujeita a retenção - + Valor da CBS monofásica sujeita a retenção @@ -634,27 +766,27 @@ - + Quantidade tributada retida anteriormente - + Alíquota ad rem do IBS retido anteriormente - + Valor do IBS retido anteriormente - + Alíquota ad rem da CBS retida anteriormente - + Valor da CBS retida anteriormente @@ -668,22 +800,22 @@ - + Percentual do diferimento do imposto monofásico - + Valor do IBS monofásico diferido - + Percentual do diferimento do imposto monofásico - + Valor da CBS monofásica diferida @@ -691,12 +823,12 @@ - + Total de IBS monofásico do item - + Total da CBS monofásica do item @@ -711,7 +843,7 @@ IBS / CBS - + Valor do BC @@ -723,9 +855,9 @@ - + - Aliquota do IBS de competência das UF + Aliquota do IBS de competência das UF (em percentual) @@ -743,7 +875,7 @@ Grupo de campos da redução de aliquota - + Valor do IBS de competência das UF @@ -757,9 +889,9 @@ - + - Aliquota do IBS Municipal + Aliquota do IBS Municipal (em percentual) @@ -777,7 +909,7 @@ Grupo de campos da redução de aliquota - + Valor do IBS Municipal @@ -785,7 +917,7 @@ - + Valor do IBS @@ -797,9 +929,9 @@ - + - Aliquota da CBS + Aliquota da CBS (em percentual) @@ -817,7 +949,7 @@ Grupo de campos da redução de aliquota - + Valor da CBS @@ -830,16 +962,6 @@ Grupo de informações da Tributação Regular. Informar como seria a tributação caso não cumprida a condição resolutória/suspensiva. Exemplo 1: Art. 442, §4. Operações com ZFM e ALC. Exemplo 2: Operações com suspensão do tributo. - - - Grupo de Informações do Crédito Presumido referente ao IBS, quando aproveitado pelo emitente do documento. - - - - - Grupo de Informações do Crédito Presumido referente a CBS, quando aproveitado pelo emitente do documento. - - Grupo de informações da composição do valor do IBS e da CBS em compras governamental @@ -852,14 +974,14 @@ Tipo Redução Base de Cálculo - + Percentual de redução de aliquota do cClassTrib - + - Aliquota Efetiva que será aplicada a Base de Calculo + Aliquota Efetiva que será aplicada a Base de Calculo (em percentual) @@ -869,23 +991,18 @@ Tipo Crédito Presumido - - - Código de Classificação do Crédito Presumido do IBS e da CBS - - - + Percentual do Crédito Presumido - + Valor do Crédito Presumido - + Valor do Crédito Presumido Condição Suspensiva, preencher apenas para cCredPres que possui indicação de Condição Suspensiva @@ -898,12 +1015,12 @@ Tipo Diferimento - + Percentual do diferimento - + Valor do diferimento @@ -915,7 +1032,7 @@ Tipo Devolução Tributo - + Valor do tributo devolvido. No fornecimento de energia elétrica, água, esgoto e gás natural e em outras hipóteses definidas no regulamento @@ -939,37 +1056,37 @@ gás natural e em outras hipóteses definidas no regulamento Informar qual seria o cClassTrib caso não cumprida a condição resolutória/suspensiva - + Alíquota do IBS da UF Informar como seria a Alíquota caso não cumprida a condição resolutória/suspensiva - + Valor do IBS da UF Informar como seria o valor do Tributo caso não cumprida a condição resolutória/suspensiva - + Alíquota do IBS do Município Informar como seria a Alíquota caso não cumprida a condição resolutória/suspensiva - + Valor do IBS do Município Informar como seria o valor do Tributo caso não cumprida a condição resolutória/suspensiva - + Alíquota da CBS Informar como seria a Alíquota caso não cumprida a condição resolutória/suspensiva - + Valor da CBS Informar como seria o valor do Tributo caso não cumprida a condição resolutória/suspensiva @@ -982,20 +1099,20 @@ gás natural e em outras hipóteses definidas no regulamento Tipo Tributação Compra Governamental - - + + Valor que seria devido a UF, sem aplicação do Art. 473. da LC 214/2025 - - + + Valor que seria devido ao município, sem aplicação do Art. 473. da LC 214/2025 - - + + Valor que seria devido a CBS, sem aplicação do Art. 473. da LC 214/2025 @@ -1017,9 +1134,9 @@ gás natural e em outras hipóteses definidas no regulamento 4=Municípios - + - Percentual de redução de aliquota em compra goverrnamental + Percentual de redução de aliquota em compra governamental @@ -1039,9 +1156,9 @@ gás natural e em outras hipóteses definidas no regulamento 4=Municípios - + - Percentual de redução de aliquota em compra goverrnamental + Percentual de redução de aliquota em compra governamental @@ -1058,23 +1175,102 @@ gás natural e em outras hipóteses definidas no regulamento Tipo Transferência de Crédito - + Valor do IBS a ser transferido - + Valor da CBS a ser transferida + + + Tipo Estorno de Crédito + + + + + Valor do IBS a ser estornado + + + + + Valor da CBS a ser estornada + + + + + + + Ano e mês referência do período de apuração (AAAA-MM) + + + + + + + + Tipo Ajuste de Competência + + + + + Ano e mês referência do período de apuração (AAAA-MM) + + + + + Valor do IBS + + + + + Valor da CBS + + + + + + + Tipo Crédito Presumido da Operação + + + + + Valor da Base de Cálculo do Crédito Presumido da Operação + + + + + Código de Classificação do Crédito Presumido do IBS e da CBS + + + + + Grupo de Informações do Crédito Presumido referente ao IBS, quando aproveitado pelo emitente do documento. + + + + + Grupo de Informações do Crédito Presumido referente a CBS, quando aproveitado pelo emitente do documento. + + + + Tipo Informações do crédito presumido de IBS para fornecimentos a partir da ZFM + + + Ano e mês referência do período de apuração (AAAA-MM) + + Classificação de acordo com o art. 450, § 1º, da LC 214/25 para o cálculo do crédito presumido na ZFM @@ -1087,11 +1283,11 @@ OBS: Percentuais definidos no art. 450, § 1º, da LC 214/25 para o cálculo do - + Valor do crédito presumido calculado sobre o saldo devedor apurado - + \ No newline at end of file diff --git a/schemas/e110001_v1.00.xsd b/schemas/e110001_v1.00.xsd new file mode 100644 index 00000000..51138fcb --- /dev/null +++ b/schemas/e110001_v1.00.xsd @@ -0,0 +1,77 @@ + + + + + + + Informações do Cancelamento de evento + + + + + + Informar “Cancelamento de Evento" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Código do evento autorizado a ser cancelado + + + + + + + + + + + + + + + + + + + + + + + + + Informar o número do Protocolo de Autorização do Evento a ser cancelado + + + + + + Versão do leiaute do evento + + + + + + + + + + + diff --git a/schemas/e112110_v1.00.xsd b/schemas/e112110_v1.00.xsd new file mode 100644 index 00000000..bd86aced --- /dev/null +++ b/schemas/e112110_v1.00.xsd @@ -0,0 +1,71 @@ + + + + + + + Informações do Evento de Informação de efetivo pagamento integral para liberar crédito presumido do adquirente + + + + + + Descrição do Evento de Informação de efetivo pagamento integral para liberar crédito presumido do adquirente + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 1=Empresa emitente + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Indicador de efetiva quitação do pagamento integral referente a NFe referenciada. + Valor deve ser igual a "1" + + + + + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + diff --git a/schemas/e112120_v1.00 .xsd b/schemas/e112120_v1.00 .xsd new file mode 100644 index 00000000..ae357533 --- /dev/null +++ b/schemas/e112120_v1.00 .xsd @@ -0,0 +1,109 @@ + + + + + + + Informações do Evento de Importação em ALC/ZFM não convertida em isenção + + + + + + Descrição do evento: "Importação em ALC/ZFM não convertida em isenção" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 1=Empresa emitente + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Informações de itens integrados ao ativo imobilizado + + + + + + Valor do IBS correspondente à quantidade que não atendeu aos requisitos para a conversão em isenção + + + + + Valor do CBS correspondente à quantidade que não atendeu aos requisitos para a conversão em isenção + + + + + + + + Informar a quantidade que não atendeu os requisitos para a conversão em isenção + + + + + Informar a unidade relativa ao campo gConsumo + + + + + + + + + + + + + + + Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + + + + + diff --git a/schemas/e112130_v1.00.xsd b/schemas/e112130_v1.00.xsd new file mode 100644 index 00000000..55ff7a32 --- /dev/null +++ b/schemas/e112130_v1.00.xsd @@ -0,0 +1,121 @@ + + + + + + + Informações do Evento de Perecimento, perda, roubo ou furto durante o transporte contratado pelo fornecedor + + + + + + Descrição do evento: "Perecimento, perda, roubo ou furto durante o transporte contratado pelo fornecedor"" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 1=Empresa emitente + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Informações por item da Nota de Fornecimento + + + + + + Valor do IBS na Nota de Fornecimento correspondente à quantidade que foi objeto de roubo, perda, furto ou perecimento. + + + + + Valor da CBS na Nota de Fornecimento correspondente à quantidade que foi objeto de roubo, perda, furto ou perecimento. + + + + + + + + Informar a quantidade que foi objeto de roubo, perda, furto ou perecimento + + + + + Informar a unidade relativa ao campo qPerecimento + + + + + + + + + + + + Valor do crédito IBS referente às aquisições a ser estornado correspondente à quantidade que foi objeto de roubo, perda, furto ou perecimento + + + + + Valor do crédito CBS referente às aquisições a ser estornado correspondente à quantidade que foi objeto de roubo, perda, furto ou perecimento + + + + + + + + + + Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + + + + + diff --git a/schemas/e112140_v1.00.xsd b/schemas/e112140_v1.00.xsd new file mode 100644 index 00000000..f19134cd --- /dev/null +++ b/schemas/e112140_v1.00.xsd @@ -0,0 +1,109 @@ + + + + + + + Informações do Evento de Fornecimento não realizado com pagamento antecipado + + + + + + "Descrição do evento: "Fornecimento não realizado com pagamento antecipado" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 1=Empresa emitente + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Informações por item da Nota de Fornecimento + + + + + + Valor do IBS na nota de débito de pagamento antecipado correspondente à quantidade que não foi fornecida + + + + + Valor da CBS na nota de débito de pagamento antecipado correspondente à quantidade que não foi fornecida. + + + + + + + + Informar a quantidade que não foi fornecida e teve o imposto antecipado + + + + + Informar a unidade relativa ao campo qNaoFornecida + + + + + + + + + + + + + + + Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + + + + + diff --git a/schemas/e112150_v1.00.xsd b/schemas/e112150_v1.00.xsd new file mode 100644 index 00000000..a37d19d5 --- /dev/null +++ b/schemas/e112150_v1.00.xsd @@ -0,0 +1,65 @@ + + + + + + + Informações do Evento de Atualização da Data de Previsão de Entrega + + + + + + Descrição do evento: "Atualização da Data de Previsão de Entrega" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 1=Empresa emitente + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Data da previsão de entrega ou disponibilização do bem. + + + + + + + Versão do leiaute do evento + + + + + + + + + + + diff --git a/schemas/e211110_v1.00.xsd b/schemas/e211110_v1.00.xsd new file mode 100644 index 00000000..7912b021 --- /dev/null +++ b/schemas/e211110_v1.00.xsd @@ -0,0 +1,136 @@ + + + + + + + Informações do Evento de Solicitação de Apropriação de crédito presumido + + + + + + Descrição do Evento de Solicitação de Apropriação de crédito presumido + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 2=Empresa destinatario + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Informações de crédito presumido por item + + + + + + Valor do base de cálculo do item + + + + + + + + Usar tabela Cred Presumido, para o emitente da nota. + + + + + + + + + + + Percentual do Crédito Presumido + + + + + Valor do Crédito Presumido + + + + + + + + + + + Usar tabela Cred Presumido, para o emitente da nota. + + + + + + + + + + + Percentual do Crédito Presumido + + + + + Valor do Crédito Presumido + + + + + + + + + Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação + + + + + + + + Versão do evento de Irregularidade Fiscal + + + + + + + + + + + + + + + diff --git a/schemas/e211120_v1.00.xsd b/schemas/e211120_v1.00.xsd new file mode 100644 index 00000000..3413513f --- /dev/null +++ b/schemas/e211120_v1.00.xsd @@ -0,0 +1,126 @@ + + + + + + + Informações do Evento de Destinação de item para consumo pessoal + + + + + + Descrição do Evento de Destinação de item para consumo pessoal + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Caso NF-e de Importação, informar 1=Empresa Emitente. + Demais casos, informar 2=Empresa destinatária + + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Informações por item da NF-e de Aquisição + + + + + + Valor do IBS na nota de aquisição correspondente à quantidade destinada a uso e consumo pessoal + + + + + Valor da CBS na nota de aquisição correspondente à quantidade destinada a uso e consumo pessoal + + + + + + + + Informar a quantidade para consumo de pessoa física + + + + + Informar a unidade relativa ao campo gConsumo + + + + + + + + + + + + + + + + + Informar a chave da nota (NFe ou NFCe) emitida para o fornecimento nos casos em que a legislação obriga a emissão de documento fiscal. + + + + + Corresponde ao atributo “nItem” do elemento “det” do documento referenciado + + + + + + + + + Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + + + + + diff --git a/schemas/e211124_v1.00.xsd b/schemas/e211124_v1.00.xsd new file mode 100644 index 00000000..c254edb1 --- /dev/null +++ b/schemas/e211124_v1.00.xsd @@ -0,0 +1,109 @@ + + + + + + + Informações do Evento de Perecimento, perda, roubo ou furto durante o transporte contratado pelo adquirente + + + + + + Descrição do evento: “Perecimento, perda, roubo ou furto durante o transporte contratado pelo adquirente" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 2=Empresa destinataria + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Informações por item da Nota de Aquisição + + + + + + Valor do IBS na nota de aquisição correspondente à quantidade destinada a uso e consumo pessoal + + + + + Valor da CBS na nota de aquisição correspondente à quantidade destinada a uso e consumo pessoal + + + + + + + + Informar a quantidade que foi objeto de roubo, perda, furto ou perecimento + + + + + Informar a unidade relativa ao campo qPerecimento + + + + + + + + + + + + + + + Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + + + + + diff --git a/schemas/e211128_v1.00.xsd b/schemas/e211128_v1.00.xsd new file mode 100644 index 00000000..e06b2067 --- /dev/null +++ b/schemas/e211128_v1.00.xsd @@ -0,0 +1,71 @@ + + + + + + + Informações do Evento de Aceite de débito na apuração por emissão de nota de crédito + + + + + + Descrição do evento: "Aceite de débito na apuração por emissão de nota de crédito" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 2=Empresa destinataria + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Indicador de concordância com o valor da nota de crédito que lançaram IBS e CBS na apuração assistida. Valores: 0 = não aceite; 1 = aceite. + + + + + + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + diff --git a/schemas/e211130_v1.00.xsd b/schemas/e211130_v1.00.xsd new file mode 100644 index 00000000..2fbf0a71 --- /dev/null +++ b/schemas/e211130_v1.00.xsd @@ -0,0 +1,109 @@ + + + + + + + Informações do Evento de Imobilização de Item + + + + + + Descrição do Evento de Imobilização de Item + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 2=Empresa Destinataria + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Informações de itens integrados ao ativo imobilizado + + + + + + Valor do IBS relativo à imobilização + + + + + Valor da CBS relativo à imobilização + + + + + + + + Informar a quantidade do item a ser imobilizado + + + + + Informar a unidade relativa ao campo qImobilizado + + + + + + + + + + + + + + + Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + + + + + diff --git a/schemas/e211140_v1.00.xsd b/schemas/e211140_v1.00.xsd new file mode 100644 index 00000000..a993f531 --- /dev/null +++ b/schemas/e211140_v1.00.xsd @@ -0,0 +1,109 @@ + + + + + + + Informações do Evento de Solicitação de Apropriação de Crédito de Combustível + + + + + + Descrição do Evento de Solicitação de Apropriação de Crédito de Combustível + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 2=Empresa Destinataria + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Informações de consumo de combustíveis + + + + + + Valor do IBS relativo ao consumo de combustível na nota de aquisição + + + + + Valor da CBS relativo ao consumo de combustível na nota de aquisição + + + + + + + + Informar a quantidade de consumo do item + + + + + Informar a unidade relativa ao campo qComb + + + + + + + + + + + + + + + Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação + + + + + + + + Versão do evento de Irregularidade Fiscal + + + + + + + + + + + + + + + diff --git a/schemas/e211150_v1.00.xsd b/schemas/e211150_v1.00.xsd new file mode 100644 index 00000000..77e201b3 --- /dev/null +++ b/schemas/e211150_v1.00.xsd @@ -0,0 +1,87 @@ + + + + + + + Informações do Evento de Solicitação de Apropriação de Crédito para bens e serviços que dependem de atividade do adquirente + + + + + + Descrição do evento: "Solicitação de Apropriação de Crédito para bens e serviços que dependem de atividade do adquirente" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 2=Empresa Destinataria + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Informações de crédito + + + + + + Valor da solicitação de crédito a ser apropriado de IBS + + + + + Valor da solicitação de crédito a ser apropriado de CBS + + + + + + Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação + + + + + + + + Versão do evento de Irregularidade Fiscal + + + + + + + + + + + + + + + diff --git a/schemas/e212110_v1.00.xsd b/schemas/e212110_v1.00.xsd new file mode 100644 index 00000000..3c1ef3d5 --- /dev/null +++ b/schemas/e212110_v1.00.xsd @@ -0,0 +1,72 @@ + + + + + + + Informações do Evento de Manifestação sobre Pedido de Transferência de Crédito de IBS em Operação de Sucessão + + + + + + Descrição do evento: "Manifestação sobre Pedido de Transferência de Crédito de IBS em Operação de Sucessão" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 8=Empresa sucessora. + Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco; 6=RFB; 8= Empresa sucessora; 9=Outros Órgãos. + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Indicador de aceitação do valor de transferência para a empresa que emitiu a nota referenciada. + Valores: 0=Não Aceite; 1=Aceite. + + + + + + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + diff --git a/schemas/e212120_v1.00.xsd b/schemas/e212120_v1.00.xsd new file mode 100644 index 00000000..deaa00b1 --- /dev/null +++ b/schemas/e212120_v1.00.xsd @@ -0,0 +1,71 @@ + + + + + + + Informações do Evento de Manifestação sobre Pedido de Transferência de Créditode CBS em Operação de Sucessão + + + + + + Descrição do evento: "Manifestação sobre Pedido de Transferência de Créditode CBS em Operação de Sucessão" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 8=Empresa sucessora. + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Indicador de aceitação do valor de transferência para a empresa que emitiu a nota referenciada. + Valores: 0=Não Aceite; 1=Aceite. + + + + + + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + diff --git a/schemas/e412120_v1.00.xsd b/schemas/e412120_v1.00.xsd new file mode 100644 index 00000000..6aa89fdb --- /dev/null +++ b/schemas/e412120_v1.00.xsd @@ -0,0 +1,90 @@ + + + + + + + Informações do Evento de Manifestação do Fisco sobre Pedido de Transferência de Crédito de IBS em Operações de Sucessão + + + + + + "Descrição do evento: Manifestação do Fisco sobre Pedido de Transferência de Crédito de IBS em Operação de Sucessão" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 5=Fisco + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Indicador de aceitação do valor de transferência para a empresa que emitiu a nota referenciada.Valores: 0=Não Aceite; 1=Aceite. + + + + + + + + + + + + 1–Falta de manifestação de todas as sucessoras; 2 – Outros. + + + + + + + + + + + + + + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + diff --git a/schemas/e412130_v1.00.xsd b/schemas/e412130_v1.00.xsd new file mode 100644 index 00000000..b70cf524 --- /dev/null +++ b/schemas/e412130_v1.00.xsd @@ -0,0 +1,90 @@ + + + + + + + Informações do Evento de Manifestação do Fisco sobre Pedido de Transferência de Crédito de CBS em Operação de Sucessão + + + + + + Descrição do evento: "Manifestação do Fisco sobre Pedido de Transferência de Crédito de CBS em Operação de Sucessão" + + + + + + + + + + Código do Órgão Autor do Evento. Informar o Código da UF para este Evento. + + + + + Informar 5=Fisco + + + + + + + + + + + Versão do Aplicativo que recebeu o Evento + + + + + Indicador de aceitação do valor de transferência para a empresa que emitiu a nota referenciada.Valores: 0=Não Aceite; 1=Aceite. + + + + + + + + + + + + 1–Falta de manifestação de todas as sucessoras; 2 – Outros. + + + + + + + + + + + + + + + + + + + + + Versão do leiaute do evento + + + + + + + + + + + diff --git a/schemas/envEvento_v1.00.xsd b/schemas/envEvento_v1.00.xsd new file mode 100644 index 00000000..2839cb1f --- /dev/null +++ b/schemas/envEvento_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do lote de envio do Evento + + + diff --git a/schemas/leiauteEvento_v1.00.xsd b/schemas/leiauteEvento_v1.00.xsd new file mode 100644 index 00000000..d6f2df7c --- /dev/null +++ b/schemas/leiauteEvento_v1.00.xsd @@ -0,0 +1,379 @@ + + + + + + + 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 e Hora do Evento, formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm) + + + + + 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 + + + + + + + + + + + + + informações específicas do evento + + + + + + + + + + Identificador da TAG a ser assinada, a regra de formação do Id é: + “ID” + tpEvento + chave da NF-e + nSeqEvento + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + Código do órgão de autor do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar o Ambiente Nacional + + + + + Identificação do destinatpario da NF-e + + + + CNPJ Destinatário + + + + + CPF Destiantário + + + + + + email do destinatário + + + + + + + + + + + Data e Hora de registro do evento formato UTC AAAA-MM-DDTHH:MM:SSTZD + + + + + + + + + + + Número do protocolo de registro do evento + + + + + + + + + + + + + + + + + + + Tipo Lote de Envio + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + Tipo Versão do EnvEvento + + + + + + + + + Tipo Versão do Evento + + + + + + + + + + \ No newline at end of file diff --git a/schemas/leiauteNFe_v4.00.xsd b/schemas/leiauteNFe_v4.00.xsd index e5e74553..7393b031 100644 --- a/schemas/leiauteNFe_v4.00.xsd +++ b/schemas/leiauteNFe_v4.00.xsd @@ -19,8 +19,8 @@ + xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" + elementFormDefault="qualified" attributeFormDefault="unqualified"> @@ -96,6 +96,11 @@ SCAN 900-999 Data e Hora da saída ou de entrada da mercadoria / produto (AAAA-MM-DDTHH:mm:ssTZD) + + + Data da previsão de entrega ou disponibilização do bem (AAAA-MM-DD) + + Tipo do Documento Fiscal (0 - entrada; 1 - saída) @@ -206,13 +211,7 @@ Campo preenchido somente quando “indPres = 5 (Operação presencial, fora do e - Tipo de Nota de Débito: -01=Transferência de créditos para Cooperativas; -02=Anulação de Crédito por Saídas Imunes/Isentas; -03=Débitos de notas fiscais não processadas na apuração; -04=Multa e juros; -05=Transferência de crédito de sucessão. - + Tipo de Nota de Débito @@ -995,6 +994,11 @@ Formato ”CFOP9999”. + + + Classificação para subapuração do IBS na ZFM + + Código EX TIPI (3 posições) @@ -7347,7 +7351,15 @@ alterado para tamanho variavel 1-4. (NT2011/004) - Tipo de Nota de Débito: 01=Transferência de créditos para Cooperativas; 02=Anulação de Crédito por Saídas Imunes/Isentas; 03=Débitos de notas fiscais não processadas na apuração; 04=Multa e juros; 05=Transferência de crédito de sucessão); 06=Pagamento antecipado; 07=Perda em estoque + Tipo de Nota de Débito: + 01=Transferência de créditos para Cooperativas; + 02=Anulação de Crédito por Saídas Imunes/Isentas; + 03=Débitos de notas fiscais não processadas na apuração; + 04=Multa e juros; + 05=Transferência de crédito na sucessão; + 06=Pagamento antecipado; + 07=Perda em estoque; + 08=Desenquadramento do SN; @@ -7358,17 +7370,26 @@ alterado para tamanho variavel 1-4. (NT2011/004) + - Tipo de Nota de Crédito: 01=Multa e juros; 02=Apropriação de crédito presumido de IBS sobre o saldo devedor na ZFM (art. 450, § 1º, LC 214/25); 03=Retorno + Tipo de Nota de Crédito: + 01=Multa e juros; + 02=Apropriação de crédito presumido de IBS sobre o saldo devedor na ZFM (art. 450, § 1º, LC 214/25); + 03=Retorno por recusa na entrega ou por não localização do destinatário na tentativa de entrega; + 04=Redução de valores; + 05=Transferência de crédito na sucessão; + + + diff --git a/schemas/nfe_v4.00.xsd b/schemas/nfe_v4.00.xsd index 29e7d742..c934ca2b 100644 --- a/schemas/nfe_v4.00.xsd +++ b/schemas/nfe_v4.00.xsd @@ -1,8 +1,8 @@ + targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" + attributeFormDefault="unqualified"> diff --git a/schemas/procEventoNFe_v1.00.xsd b/schemas/procEventoNFe_v1.00.xsd new file mode 100644 index 00000000..c94bc4ee --- /dev/null +++ b/schemas/procEventoNFe_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de validação do proc Evento NFe + + + diff --git a/schemas/retEnvEvento_v1.00.xsd b/schemas/retEnvEvento_v1.00.xsd new file mode 100644 index 00000000..58c8d46c --- /dev/null +++ b/schemas/retEnvEvento_v1.00.xsd @@ -0,0 +1,11 @@ + + + + + + Schema XML de Retorno da envio do Evento + + + diff --git a/schemas/tiposBasico_v1.03.xsd b/schemas/tiposBasico_v1.03.xsd index 780236b1..1f9c9904 100644 --- a/schemas/tiposBasico_v1.03.xsd +++ b/schemas/tiposBasico_v1.03.xsd @@ -1,5 +1,4 @@ - @@ -45,6 +44,15 @@ + + + Tipo correspondente ao atributo “nItem” + + + + + + Tipo Código do Município da tabela do IBGE @@ -69,7 +77,7 @@ - + @@ -808,10 +816,37 @@ acrescentado: + + + Tipo Decimal com até 3 dígitos inteiros, podendo ter de 2 até 4 decimais + + + + + + + + + Tipo Decimal com até 15 dígitos, sendo 11 de corpo e até 4 decimais, aceitando valores negativos + + + + + + + + + Tipo Decimal com 15 dígitos, sendo 13 de corpo e 2 decimais + + + + + + - + diff --git a/schemas/tmp0000.xsd b/schemas/tmp0000.xsd deleted file mode 100644 index 0fed33b3..00000000 --- a/schemas/tmp0000.xsd +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - 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/src/main/java/br/com/swconsultoria/nfe/ConsultaTributacao.java b/src/main/java/br/com/swconsultoria/nfe/ConsultaTributacao.java index 5dc60183..fe59c9d3 100644 --- a/src/main/java/br/com/swconsultoria/nfe/ConsultaTributacao.java +++ b/src/main/java/br/com/swconsultoria/nfe/ConsultaTributacao.java @@ -6,117 +6,548 @@ import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; import br.com.swconsultoria.nfe.exception.NfeException; import br.com.swconsultoria.nfe.util.ConfiguracoesUtil; +import br.com.swconsultoria.nfe.util.ObjetoUtil; import br.com.swconsultoria.nfe.util.WebServiceUtil; -import br.com.swconsultoria.nfe.dto.CstDTO; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; +import lombok.Getter; +import lombok.Setter; +import lombok.extern.java.Log; import org.apache.commons.httpclient.HttpClient; +import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.GetMethod; -import javax.net.ssl.SSLSocketFactory; -import javax.net.ssl.SSLContext; import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSocketFactory; import java.io.BufferedInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; +import java.lang.reflect.Field; import java.net.URL; import java.nio.charset.StandardCharsets; -import java.util.List; +import java.util.*; /** - * Serviço para consulta de classTrib (CFF). + * Classe responsável por consultar classificações tributárias para a Reforma Tributária, utiliza o serviço web disponibilizado pelo governo federal. + * Foi criada para funcionar da forma mais genérica possível, permitindo a consulta e manipulação dos dados retornados em JSON se necessário. + *

+ * Oferece quatro modos de uso: + *

1. Retorno direto do JSON string (método getJson)

+ *

2. Conversão genérica para qualquer tipo de objeto (método get com Class)

+ *

3. Conversão genérica com TypeReference para tipos complexos (método get com TypeReference)

+ *

4. Validação de estrutura JSON vs DTO (método validate)

+ *

+ * Exemplos de uso: + *

+ * // Obter JSON bruto
+ * String json = ConsultaTributacao.getJson(config);
+ *
+ * // Converter para List de DTOs
+ * List<CstDTO> lista = ConsultaTributacao.get(config, new TypeReference<List<CstDTO>>() {});
+ *
+ * // Com filtros
+ * Map<String, String> params = new HashMap<>();
+ * params.put("Cst", "00");
+ * List<CstDTO> filtrado = ConsultaTributacao.get(config, params, new TypeReference<List<CstDTO>>() {});
  *
- * Nesta versão: o método getClassTrib(ConfiguracoesNfe) aceita somente a ConfiguracoesNfe.
- * Internamente tenta, na ordem:
- *  1) obter um HttpClient via CertificadoService.getHttpsClient(...) e usá-lo (reaproveita StubUtil/CertificadoService);
- *  2) tentar obter SSLSocketFactory/SSLContext via reflexão em CertificadoService (se disponível);
- *  3) tentar obter SSLSocketFactory/SSLContext do próprio objeto Certificado (se disponível);
- *  4) se nada for possível, lançar IllegalStateException explicando o que chamar.
+ * // Validar estrutura
+ * ValidationReport report = ConsultaTributacao.validate(config, CstDTO.class);
+ * 
* - * Objetivo: o usuário só precisa passar a ConfiguracoesNfe (como em outras APIs da lib). + * @author Rodrigo Cananea - rodrigo@rcconsultoria.inf.br */ +@Log +@SuppressWarnings("all") public class ConsultaTributacao { - private static final ObjectMapper MAPPER = new ObjectMapper(); + private ConsultaTributacao() { + } + + private static final String SECTION = "CFF"; + private static final String KEY = "classTrib"; + + private static final ObjectMapper MAPPER = createObjectMapper(); + private static final ObjectMapper STRICT_MAPPER = createStrictObjectMapper(); + + /** + * Cria ObjectMapper configurado para ser tolerante a mudanças no JSON. + */ + private static ObjectMapper createObjectMapper() { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(DeserializationFeature.FAIL_ON_IGNORED_PROPERTIES, false); + mapper.configure(DeserializationFeature.FAIL_ON_MISSING_CREATOR_PROPERTIES, false); + mapper.configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true); + mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true); + return mapper; + } + + /** + * Cria ObjectMapper rigoroso para detecção de inconsistências. + */ + private static ObjectMapper createStrictObjectMapper() { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); + mapper.configure(DeserializationFeature.FAIL_ON_IGNORED_PROPERTIES, true); + mapper.configure(DeserializationFeature.FAIL_ON_MISSING_CREATOR_PROPERTIES, true); + return mapper; + } + + /** + * Executa requisição HTTP GET e retorna o JSON string bruto. + * + * @param config Configurações da NFe contendo certificado digital + * @return String contendo o JSON de resposta + * @throws NfeException Se houver erro de configuração ou certificado + * @throws IOException Se houver erro de comunicação HTTP + */ + public static String getJson(ConfiguracoesNfe config) throws NfeException, IOException { + return getJson(config, null); + } /** - * Conveniência: o usuário passa apenas ConfiguracoesNfe. - * Tenta primeiro criar e usar o HttpClient via CertificadoService (mais robusto e consistente com StubUtil), - * fazendo fallback para SSLSocketFactory quando necessário. + * Executa requisição HTTP GET com parâmetros de query e retorna o JSON string bruto. + * + * @param config Configurações da NFe contendo certificado digital + * @param queryParams Mapa com parâmetros de query (ex: {"Cst": "00"}) + * @return String contendo o JSON de resposta + * @throws NfeException Se houver erro de configuração ou certificado + * @throws IOException Se houver erro de comunicação HTTP */ - public static List getClassTrib(ConfiguracoesNfe config) throws NfeException, IOException { - // inicializa configurações e certificado (lança NfeException se algo inválido) + public static String getJson(ConfiguracoesNfe config, Map queryParams) + throws NfeException, IOException { ConfiguracoesUtil.iniciaConfiguracoes(config); - String url = WebServiceUtil.getCustomUrl(config, "CFF", "classTrib"); + String urlBase = WebServiceUtil.getCustomUrl(config, SECTION, KEY); + String url = buildUrlWithParams(urlBase, queryParams); + Certificado certificado = config.getCertificado(); + if (certificado == null) { + throw new NfeException("Certificado digital não configurado"); + } - // 1) Tentar criar HttpClient via CertificadoService (recomendado — igual ao StubUtil) - if (certificado != null) { - try { - HttpClient httpClient; - InputStream cacertStream = config.getCacert(); - if (cacertStream != null) { - // usa overload que aceita InputStream (se disponível na Java_Certificado) - httpClient = CertificadoService.getHttpsClient(certificado, url, cacertStream); - } else { - httpClient = CertificadoService.getHttpsClient(certificado, url); - } - if (httpClient != null) { - return getClassTrib(config, httpClient); - } - } catch (CertificadoException ce) { - // falha ao montar HttpClient — tentaremos fallback abaixo - } catch (Throwable t) { - // caso CertificadoService não tenha a assinatura esperada ou outra falha, tentar fallback + try { + HttpClient httpClient = createHttpClient(config, certificado, url); + if (httpClient != null) { + return executeRequestWithHttpClient(httpClient, url, certificado); } + } catch (CertificadoException e) { + log.warning("[ConsultaTributacao] Falha ao criar HttpClient, tentando fallback: " + e.getMessage()); } - // 2) Tentar obter SSLSocketFactory via CertificadoService (reflexão) ou via Certificado SSLSocketFactory sslFactory = tryResolveSslSocketFactory(config); if (sslFactory != null) { - return getClassTrib(config, sslFactory); + return executeRequestWithSslFactory(sslFactory, url); } - // 3) Não foi possível resolver automaticamente: instruir usuário a passar HttpClient ou habilitar multithreading - throw new IllegalStateException("Não foi possível resolver mecanismo SSL automaticamente. " + - "Passe um HttpClient criado por CertificadoService.getHttpsClient(certificado,url) e chame getClassTrib(config, httpClient), " + - "ou habilite modo multithreading no certificado se preferir que a biblioteca gere o HttpClient automaticamente."); + throw new NfeException( + "Não foi possível configurar SSL/TLS para a requisição." + ); + } + + /** + * Executa requisição HTTP GET e converte o JSON para o tipo especificado. + * Método genérico que aceita qualquer classe DTO. + * + * @param Tipo do objeto de retorno + * @param config Configurações da NFe contendo certificado digital + * @param clazz Classe do objeto de destino + * @return Objeto do tipo T com os dados deserializados do JSON + * @throws NfeException Se houver erro de configuração, certificado ou conversão + * @throws IOException Se houver erro de comunicação HTTP + */ + public static T get(ConfiguracoesNfe config, Class clazz) + throws NfeException, IOException { + String json = getJson(config); + return convertJsonToObject(json, clazz); + } + + /** + * Executa requisição HTTP GET com parâmetros e converte o JSON para o tipo especificado. + * + * @param Tipo do objeto de retorno + * @param config Configurações da NFe + * @param queryParams Parâmetros de query + * @param clazz Classe do objeto de destino + * @return Objeto do tipo T deserializado + * @throws NfeException Se houver erro + * @throws IOException Se houver erro de I/O + */ + public static T get(ConfiguracoesNfe config, Map queryParams, Class clazz) + throws NfeException, IOException { + String json = getJson(config, queryParams); + return convertJsonToObject(json, clazz); } /** - * Implementação usando Apache HttpClient (reaproveita CertificadoService/StubUtil). + * Executa requisição HTTP GET e converte o JSON para tipos complexos (ex: List, Map). + * Usa TypeReference do Jackson para preservar informações de tipo genérico. + * + * @param Tipo do objeto de retorno + * @param config Configurações da NFe + * @param typeRef TypeReference com o tipo genérico desejado + * @return Objeto do tipo T deserializado + * @throws NfeException Se houver erro + * @throws IOException Se houver erro de I/O */ - public static List getClassTrib(ConfiguracoesNfe config, HttpClient httpClient) throws IOException, NfeException { - String url = WebServiceUtil.getCustomUrl(config, "CFF", "classTrib"); + public static T get(ConfiguracoesNfe config, TypeReference typeRef) + throws NfeException, IOException { + String json = getJson(config); + return convertJsonToObject(json, typeRef); + } - GetMethod get = new GetMethod(url); - get.addRequestHeader("Accept", "application/json"); + /** + * Executa requisição HTTP GET com parâmetros e converte para tipos complexos. + * + * @param Tipo do objeto de retorno + * @param config Configurações da NFe + * @param queryParams Parâmetros de query + * @param typeRef TypeReference com o tipo genérico + * @return Objeto do tipo T deserializado + * @throws NfeException Se houver erro + * @throws IOException Se houver erro de I/O + */ + public static T get(ConfiguracoesNfe config, Map queryParams, TypeReference typeRef) + throws NfeException, IOException { + String json = getJson(config, queryParams); + return convertJsonToObject(json, typeRef); + } + + /** + * Valida a estrutura do JSON retornado pela API contra um DTO. + * Retorna um relatório detalhado de inconsistências. + *

+ * Exemplo de uso: + *

+     * ValidationReport report = ConsultaTributacao.validate(config, CstDTO.class);
+     *
+     * if (report.hasIssues()) {
+     *     System.out.println("Campos extras no JSON: " + report.getExtraFields());
+     *     System.out.println("Campos faltando no JSON: " + report.getMissingFields());
+     *     System.out.println("Erros de tipo: " + report.getTypeErrors());
+     * }
+     * 
+ * + * @param config Configurações da NFe + * @param clazz Classe do DTO a ser validada + * @return ValidationReport com detalhes das inconsistências + * @throws NfeException Se houver erro na consulta + * @throws IOException Se houver erro de I/O + */ + public static ValidationReport validate(ConfiguracoesNfe config, Class clazz) + throws NfeException, IOException { + String json = getJson(config); + return validateJsonStructure(json, clazz); + } + + /** + * Valida JSON contra DTO com parâmetros de query. + * + * @param config Configurações + * @param queryParams Parâmetros + * @param clazz Classe do DTO + * @return ValidationReport + * @throws NfeException Se houver erro + * @throws IOException Se houver erro de I/O + */ + public static ValidationReport validate(ConfiguracoesNfe config, Map queryParams, Class clazz) + throws NfeException, IOException { + String json = getJson(config, queryParams); + return validateJsonStructure(json, clazz); + } + + /** + * Valida JSON contra TypeReference (para List, Map, etc). + *

+ * Exemplo: + *

+     * ValidationReport report = ConsultaTributacao.validate(
+     *     config,
+     *     new TypeReference<List<CstDTO>>() {},
+     *     CstDTO.class  // classe interna para validar
+     * );
+     * 
+ * + * @param config Configurações + * @param typeRef TypeReference do tipo externo (ex: List) + * @param innerClass Classe interna para validar (ex: CstDTO dentro de List<CstDTO>) + * @return ValidationReport + * @throws NfeException Se houver erro + * @throws IOException Se houver erro de I/O + */ + public static ValidationReport validate(ConfiguracoesNfe config, TypeReference typeRef, Class innerClass) + throws NfeException, IOException { + String json = getJson(config); + return validateJsonStructure(json, innerClass); + } + + /** + * Testa se o JSON pode ser convertido sem erros (modo rigoroso). + * Retorna true se a conversão for bem-sucedida, false caso contrário. + * + * @param config Configurações + * @param clazz Classe do DTO + * @return true se compatível, false se houver problemas + */ + public static boolean isCompatible(ConfiguracoesNfe config, Class clazz) { try { - int status = httpClient.executeMethod(get); - if (status != 200) { - InputStream err = get.getResponseBodyAsStream(); - String body = toString(err); - throw new IOException("HTTP " + status + " -> " + body); + String json = getJson(config); + STRICT_MAPPER.readValue(json, clazz); + return true; + } catch (Exception e) { + log.warning("[ConsultaTributacao] Incompatibilidade detectada: " + e.getMessage()); + return false; + } + } + + /** + * Valida estrutura do JSON contra uma classe DTO. + * Identifica campos extras, faltantes e problemas de tipo. + */ + private static ValidationReport validateJsonStructure(String json, Class clazz) throws NfeException { + ValidationReport report = new ValidationReport(); + + try { + JsonNode rootNode = MAPPER.readTree(json); + + // Se o JSON é um array, valida o primeiro elemento + JsonNode nodeToValidate = rootNode; + if (rootNode.isArray() && rootNode.size() > 0) { + nodeToValidate = rootNode.get(0); + report.setArrayDetected(true); + report.setArraySize(rootNode.size()); } - try (InputStream responseStream = new BufferedInputStream(get.getResponseBodyAsStream())) { - return MAPPER.readValue(responseStream, new TypeReference>() { - }); + + // Obtém campos esperados do DTO + Map> expectedFields = extractDtoFields(clazz); + + // Obtém campos presentes no JSON + Set jsonFields = new HashSet<>(); + Iterator fieldNames = nodeToValidate.fieldNames(); + while (fieldNames.hasNext()) { + jsonFields.add(fieldNames.next()); } - } finally { - get.releaseConnection(); + + // Identifica campos extras no JSON + Set extraFields = new HashSet<>(jsonFields); + extraFields.removeAll(expectedFields.keySet()); + report.setExtraFields(extraFields); + + // Identifica campos faltando no JSON + Set missingFields = new HashSet<>(expectedFields.keySet()); + missingFields.removeAll(jsonFields); + report.setMissingFields(missingFields); + + // Valida tipos dos campos presentes + Map typeErrors = new HashMap<>(); + for (Map.Entry> entry : expectedFields.entrySet()) { + String fieldName = entry.getKey(); + Class expectedType = entry.getValue(); + + if (jsonFields.contains(fieldName)) { + JsonNode fieldNode = nodeToValidate.get(fieldName); + if (!isTypeCompatible(fieldNode, expectedType)) { + typeErrors.put(fieldName, + "Esperado: " + expectedType.getSimpleName() + + ", Encontrado: " + getJsonNodeType(fieldNode)); + } + } + } + report.setTypeErrors(typeErrors); + + // Tenta conversão estrita para detectar outros problemas + try { + STRICT_MAPPER.readValue(json, clazz); + report.setStrictConversionSuccess(true); + } catch (Exception e) { + report.setStrictConversionSuccess(false); + report.setStrictConversionError(e.getMessage()); + } + + } catch (IOException e) { + throw new NfeException("Erro ao validar JSON: " + e.getMessage(), e); + } + + return report; + } + + /** + * Extrai campos do DTO com suas anotações @JsonProperty. + */ + private static Map> extractDtoFields(Class clazz) { + Map> fields = new HashMap<>(); + + for (Field field : clazz.getDeclaredFields()) { + // Ignora campos static e serialVersionUID + if (java.lang.reflect.Modifier.isStatic(field.getModifiers())) { + continue; + } + + JsonProperty annotation = field.getAnnotation(JsonProperty.class); + String jsonFieldName; + + if (annotation != null && !annotation.value().isEmpty()) { + jsonFieldName = annotation.value(); + } else { + jsonFieldName = field.getName(); + } + + fields.put(jsonFieldName, field.getType()); + } + + return fields; + } + + /** + * Verifica se o tipo do JsonNode é compatível com o tipo esperado. + */ + private static boolean isTypeCompatible(JsonNode node, Class expectedType) { + if (node.isNull()) { + return true; } + + if (expectedType == String.class) { + return node.isTextual(); + } + + if (expectedType == Integer.class || expectedType == int.class || + expectedType == Long.class || expectedType == long.class || + expectedType == Short.class || expectedType == short.class || + expectedType == Byte.class || expectedType == byte.class) { + return node.isIntegralNumber(); + } + + if (expectedType == Double.class || expectedType == double.class || + expectedType == Float.class || expectedType == float.class || + expectedType == java.math.BigDecimal.class) { + return node.isNumber(); + } + + if (expectedType == Boolean.class || expectedType == boolean.class) { + return node.isBoolean(); + } + + if (List.class.isAssignableFrom(expectedType) || + Collection.class.isAssignableFrom(expectedType)) { + return node.isArray(); + } + + if (Map.class.isAssignableFrom(expectedType)) { + return node.isObject(); + } + + return node.isObject(); } /** - * Implementação usando SSLSocketFactory (fallback). + * Retorna o tipo do JsonNode como string descritiva. */ - public static List getClassTrib(ConfiguracoesNfe config, SSLSocketFactory sslFactory) throws IOException, NfeException { - String url = WebServiceUtil.getCustomUrl(config, "CFF", "classTrib"); + private static String getJsonNodeType(JsonNode node) { + if (node.isNull()) return "null"; + if (node.isTextual()) return "String"; + if (node.isIntegralNumber()) return "Integer"; + if (node.isFloatingPointNumber()) return "Decimal"; + if (node.isBoolean()) return "Boolean"; + if (node.isArray()) return "Array"; + if (node.isObject()) return "Object"; + return "Unknown"; + } + + public static T convertJsonToObject(String json, Class clazz) throws NfeException { + try { + log.info("[ConsultaTributacao] Convertendo JSON para " + clazz.getSimpleName()); + return MAPPER.readValue(json, clazz); + } catch (IOException e) { + log.severe("[ConsultaTributacao] Erro ao converter JSON: " + e.getMessage()); + throw new NfeException("Erro ao processar resposta JSON: " + e.getMessage(), e); + } + } + + public static T convertJsonToObject(String json, TypeReference typeRef) throws NfeException { + try { + log.info("[ConsultaTributacao] Convertendo JSON para tipo complexo"); + return MAPPER.readValue(json, typeRef); + } catch (IOException e) { + log.severe("[ConsultaTributacao] Erro ao converter JSON: " + e.getMessage()); + throw new NfeException("Erro ao processar resposta JSON: " + e.getMessage(), e); + } + } + + private static String buildUrlWithParams(String baseUrl, Map queryParams) { + if (queryParams == null || queryParams.isEmpty()) { + return baseUrl; + } + StringBuilder url = new StringBuilder(baseUrl); + boolean first = !baseUrl.contains("?"); + + for (Map.Entry entry : queryParams.entrySet()) { + if (entry.getValue() != null && !entry.getValue().trim().isEmpty()) { + url.append(first ? "?" : "&"); + url.append(entry.getKey()).append("=").append(entry.getValue()); + first = false; + } + } + + return url.toString(); + } + + private static HttpClient createHttpClient(ConfiguracoesNfe config, Certificado certificado, String url) + throws CertificadoException { + if (ObjetoUtil.verifica(config.getCacert()).isPresent()) { + return CertificadoService.getHttpsClient(certificado, url, config.getCacert()); + } else { + return CertificadoService.getHttpsClient(certificado, url); + } + } + + private static String executeRequestWithHttpClient(HttpClient httpClient, String url, Certificado certificado) throws IOException { + String uri = url; + if (certificado.isModoMultithreading()) { + if (httpClient.getHostConfiguration().getProtocol() != null) { + try { + URL u = new URL(url); + httpClient.getHostConfiguration().setHost(u.getHost(), u.getPort(), httpClient.getHostConfiguration().getProtocol()); + uri = u.getFile(); + } catch (Exception e) { + log.warning("[ConsultaTributacao] Erro ao processar URL para modo multithreading: " + e.getMessage()); + } + } + } + + GetMethod getMethod = new GetMethod(uri); + + try { + getMethod.setRequestHeader("Accept", "application/json"); + getMethod.setRequestHeader("Content-Type", "application/json; charset=UTF-8"); + + int statusCode = httpClient.executeMethod(getMethod); + log.info("[ConsultaTributacao] Status HTTP: " + statusCode); + + if (statusCode != HttpStatus.SC_OK) { + String errorBody = inputStreamToString(getMethod.getResponseBodyAsStream()); + log.severe("[ConsultaTributacao] Erro HTTP " + statusCode + ": " + errorBody); + throw new IOException("Erro HTTP " + statusCode + ": " + errorBody); + } + + try (InputStream responseStream = new BufferedInputStream(getMethod.getResponseBodyAsStream())) { + return inputStreamToString(responseStream); + } + + } finally { + getMethod.releaseConnection(); + } + } + + private static String executeRequestWithSslFactory(SSLSocketFactory sslFactory, String url) throws IOException { HttpsURLConnection conn = null; InputStream is = null; + try { URL u = new URL(url); conn = (HttpsURLConnection) u.openConnection(); @@ -127,18 +558,24 @@ public static List getClassTrib(ConfiguracoesNfe config, SSLSocketFactor conn.setReadTimeout(30000); conn.setDoInput(true); - int code = conn.getResponseCode(); - if (code != 200) { - InputStream err = conn.getErrorStream(); - String body = toString(err); - throw new IOException("HTTP " + code + " -> " + body); + int statusCode = conn.getResponseCode(); + log.info("[ConsultaTributacao] Status HTTP: " + statusCode); + + if (statusCode != HttpStatus.SC_OK) { + String errorBody = inputStreamToString(conn.getErrorStream()); + log.severe("[ConsultaTributacao] Erro HTTP " + statusCode + ": " + errorBody); + throw new IOException("Erro HTTP " + statusCode + ": " + errorBody); } is = new BufferedInputStream(conn.getInputStream()); - return MAPPER.readValue(is, new TypeReference>() {}); + return inputStreamToString(is); + } finally { if (is != null) { - try { is.close(); } catch (IOException ignored) {} + try { + is.close(); + } catch (IOException ignored) { + } } if (conn != null) { conn.disconnect(); @@ -146,32 +583,33 @@ public static List getClassTrib(ConfiguracoesNfe config, SSLSocketFactor } } - /** - * Tenta resolver SSLSocketFactory via reflexão a partir da infra de certificado existente. - * Primeira tentativa: métodos estáticos em CertificadoService (getSSLSocketFactory/getSslContext). - * Segunda tentativa: métodos públicos no próprio objeto Certificado. - */ private static SSLSocketFactory tryResolveSslSocketFactory(ConfiguracoesNfe config) { - // 1) tenta métodos estáticos em CertificadoService try { Class svc = Class.forName("br.com.swconsultoria.certificado.CertificadoService"); + try { - java.lang.reflect.Method m = svc.getMethod("getSSLSocketFactory", Class.forName("br.com.swconsultoria.certificado.Certificado")); + java.lang.reflect.Method m = svc.getMethod("getSSLSocketFactory", + Class.forName("br.com.swconsultoria.certificado.Certificado")); Object res = m.invoke(null, config.getCertificado()); if (res instanceof SSLSocketFactory) { return (SSLSocketFactory) res; } - } catch (NoSuchMethodException ignored) {} + } catch (NoSuchMethodException ignored) { + } + try { - java.lang.reflect.Method m2 = svc.getMethod("getSslContext", Class.forName("br.com.swconsultoria.certificado.Certificado")); + java.lang.reflect.Method m2 = svc.getMethod("getSslContext", + Class.forName("br.com.swconsultoria.certificado.Certificado")); Object res2 = m2.invoke(null, config.getCertificado()); if (res2 instanceof SSLContext) { return ((SSLContext) res2).getSocketFactory(); } - } catch (NoSuchMethodException ignored) {} - } catch (Throwable ignored) {} + } catch (NoSuchMethodException ignored) { + } + + } catch (Throwable ignored) { + } - // 2) tenta métodos no próprio objeto Certificado (getSSLSocketFactory / getSslContext / getSocketFactory) Object cert = config.getCertificado(); if (cert != null) { try { @@ -180,37 +618,123 @@ private static SSLSocketFactory tryResolveSslSocketFactory(ConfiguracoesNfe conf if (res instanceof SSLSocketFactory) { return (SSLSocketFactory) res; } - } catch (Throwable ignored) {} + } catch (Throwable ignored) { + } + try { java.lang.reflect.Method m2 = cert.getClass().getMethod("getSslContext"); Object res2 = m2.invoke(cert); if (res2 instanceof SSLContext) { return ((SSLContext) res2).getSocketFactory(); } - } catch (Throwable ignored) {} - try { - java.lang.reflect.Method m3 = cert.getClass().getMethod("getSocketFactory"); - Object res3 = m3.invoke(cert); - if (res3 instanceof SSLSocketFactory) { - return (SSLSocketFactory) res3; - } - } catch (Throwable ignored) {} + } catch (Throwable ignored) { + } } return null; } - private static String toString(InputStream is) throws IOException { + private static String inputStreamToString(InputStream is) throws IOException { if (is == null) { return ""; } - // leitura compatível com Java 8 + ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[4096]; - int read; - while ((read = is.read(buffer)) != -1) { - baos.write(buffer, 0, read); + int bytesRead; + + while ((bytesRead = is.read(buffer)) != -1) { + baos.write(buffer, 0, bytesRead); } + return new String(baos.toByteArray(), StandardCharsets.UTF_8); } + + /** + * Classe que representa o relatório de validação da estrutura JSON. + */ + @Setter + @Getter + public static class ValidationReport { + private Set extraFields = new HashSet<>(); + private Set missingFields = new HashSet<>(); + private Map typeErrors = new HashMap<>(); + private boolean strictConversionSuccess; + private String strictConversionError; + private boolean arrayDetected; + private int arraySize; + + /** + * Retorna true se houver qualquer inconsistência detectada. + */ + public boolean hasIssues() { + return !extraFields.isEmpty() || + !missingFields.isEmpty() || + !typeErrors.isEmpty() || + !strictConversionSuccess; + } + + /** + * Retorna true se não houver nenhum problema. + */ + public boolean isValid() { + return !hasIssues(); + } + + /** + * Gera relatório formatado em texto. + */ + public String generateReport() { + StringBuilder sb = new StringBuilder(); + sb.append("=== RELATORIO DE VALIDACAO ===\n\n"); + + if (arrayDetected) { + sb.append("Array detectado com ").append(arraySize).append(" elemento(s)\n"); + sb.append("Validacao realizada no primeiro elemento\n\n"); + } + + if (extraFields.isEmpty() && missingFields.isEmpty() && typeErrors.isEmpty()) { + sb.append("ESTRUTURA 100% COMPATIVEL\n"); + sb.append(" - Nenhum campo extra no JSON\n"); + sb.append(" - Nenhum campo faltando\n"); + sb.append(" - Todos os tipos estao corretos\n"); + } else { + if (!extraFields.isEmpty()) { + sb.append("ATENCAO: Campos EXTRAS no JSON (nao mapeados no DTO):\n"); + for (String field : extraFields) { + sb.append(" - ").append(field).append("\n"); + } + sb.append("\n"); + } + + if (!missingFields.isEmpty()) { + sb.append("ATENCAO: Campos FALTANDO no JSON (esperados no DTO):\n"); + for (String field : missingFields) { + sb.append(" - ").append(field).append("\n"); + } + sb.append("\n"); + } + + if (!typeErrors.isEmpty()) { + sb.append("ERRO: Incompatibilidade de tipos:\n"); + for (Map.Entry entry : typeErrors.entrySet()) { + sb.append(" - ").append(entry.getKey()).append(": ").append(entry.getValue()).append("\n"); + } + sb.append("\n"); + } + } + + sb.append("Conversao estrita: ").append(strictConversionSuccess ? "SUCESSO" : "FALHOU").append("\n"); + if (!strictConversionSuccess && strictConversionError != null) { + sb.append(" Erro: ").append(strictConversionError).append("\n"); + } + + return sb.toString(); + } + + @Override + public String toString() { + return generateReport(); + } + } } diff --git a/src/main/java/br/com/swconsultoria/nfe/EventoGenerico.java b/src/main/java/br/com/swconsultoria/nfe/EventoGenerico.java new file mode 100644 index 00000000..7d392fb8 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/EventoGenerico.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.eventoGenerico.TEnvEvento; +import br.com.swconsultoria.nfe.schema.eventoGenerico.TRetEnvEvento; +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +import javax.xml.bind.JAXBException; + +/** + * @author Samuel Oliveira - samuel@swconsultoria.com.br Data: 28/09/2017 - 11:11 + */ +class EventoGenerico { + + private EventoGenerico(){} + + static TRetEnvEvento evento(ConfiguracoesNfe config, TEnvEvento enviEvento, boolean valida) + throws NfeException { + + try { + + String xml = XmlNfeUtil.objectToXml(enviEvento, config. getEncode()); + xml = xml.replace(" xmlns:ns2=\"http://www.w3.org/2000/09/xmldsig#\"", "") + .replace(" classificacoesTributarias; } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/DetEvento.java new file mode 100644 index 00000000..57b195a5 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/DetEvento.java @@ -0,0 +1,233 @@ + +package br.com.swconsultoria.nfe.schema.evento110001; + +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 de Evento"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="tpEventoAut">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="112110"/>
+ *               <enumeration value="112120"/>
+ *               <enumeration value="112130"/>
+ *               <enumeration value="112140"/>
+ *               <enumeration value="112150"/>
+ *               <enumeration value="211110"/>
+ *               <enumeration value="211120"/>
+ *               <enumeration value="211124"/>
+ *               <enumeration value="211128"/>
+ *               <enumeration value="211130"/>
+ *               <enumeration value="211140"/>
+ *               <enumeration value="211150"/>
+ *               <enumeration value="212110"/>
+ *               <enumeration value="212120"/>
+ *               <enumeration value="412120"/>
+ *               <enumeration value="412130"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="nProtEvento" type="{http://www.portalfiscal.inf.br/nfe}TProt"/>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpEventoAut", + "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 tpEventoAut; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nProtEvento; + @XmlAttribute(name = "versao") + 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 tpEventoAut. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEventoAut() { + return tpEventoAut; + } + + /** + * Define o valor da propriedade tpEventoAut. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEventoAut(String value) { + this.tpEventoAut = 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/evento110001/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/ObjectFactory.java new file mode 100644 index 00000000..4f8c26e3 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/ObjectFactory.java @@ -0,0 +1,40 @@ + +package br.com.swconsultoria.nfe.schema.evento110001; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evtCancEvento 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evtCancEvento + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/TUf.java new file mode 100644 index 00000000..4b5a2144 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento110001; + +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/evento110001/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/TUfEmi.java new file mode 100644 index 00000000..a1929478 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento110001/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento110001; + +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/evento112110/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112110/DetEvento.java new file mode 100644 index 00000000..747ba4e6 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112110/DetEvento.java @@ -0,0 +1,224 @@ + +package br.com.swconsultoria.nfe.schema.evento112110; + +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="Informação de efetivo pagamento integral para liberar crédito presumido do adquirente"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="indQuitacao">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "indQuitacao" +}) +@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 tpAutor; + @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 indQuitacao; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 indQuitacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndQuitacao() { + return indQuitacao; + } + + /** + * Define o valor da propriedade indQuitacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndQuitacao(String value) { + this.indQuitacao = 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/evento112110/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112110/ObjectFactory.java new file mode 100644 index 00000000..179c8c67 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112110/ObjectFactory.java @@ -0,0 +1,40 @@ + +package br.com.swconsultoria.nfe.schema.evento112110; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento112110 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento112110 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento112110/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112110/TUf.java new file mode 100644 index 00000000..f1f67924 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112110/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento112110; + +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/evento112110/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112110/TUfEmi.java new file mode 100644 index 00000000..35dc2daa --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112110/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento112110; + +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/evento112120/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/DetEvento.java new file mode 100644 index 00000000..9fea8975 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/DetEvento.java @@ -0,0 +1,502 @@ + +package br.com.swconsultoria.nfe.schema.evento112120; + +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="Importação em ALC/ZFM não convertida em isenção"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="gConsumo" maxOccurs="990">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="gControleEstoque">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="qtde" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+ *                             <element name="unidade">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                                   <maxLength value="6"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "gConsumo" +}) +@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 tpAutor; + @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 gConsumo; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 gConsumo 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 gConsumo property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.GConsumo } + * + * + */ + public List getGConsumo() { + if (gConsumo == null) { + gConsumo = new ArrayList(); + } + return this.gConsumo; + } + + /** + * 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="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="gControleEstoque">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="qtde" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+     *                   <element name="unidade">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                         <maxLength value="6"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibs", + "vcbs", + "gControleEstoque" + }) + public static class GConsumo { + + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento.GConsumo.GControleEstoque gControleEstoque; + @XmlAttribute(name = "nItem", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + + /** + * Obtém o valor da propriedade gControleEstoque. + * + * @return + * possible object is + * {@link DetEvento.GConsumo.GControleEstoque } + * + */ + public DetEvento.GConsumo.GControleEstoque getGControleEstoque() { + return gControleEstoque; + } + + /** + * Define o valor da propriedade gControleEstoque. + * + * @param value + * allowed object is + * {@link DetEvento.GConsumo.GControleEstoque } + * + */ + public void setGControleEstoque(DetEvento.GConsumo.GControleEstoque value) { + this.gControleEstoque = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = 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="qtde" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+         *         <element name="unidade">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *               <maxLength value="6"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qtde", + "unidade" + }) + public static class GControleEstoque { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qtde; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String unidade; + + /** + * Obtém o valor da propriedade qtde. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQtde() { + return qtde; + } + + /** + * Define o valor da propriedade qtde. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQtde(String value) { + this.qtde = value; + } + + /** + * Obtém o valor da propriedade unidade. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUnidade() { + return unidade; + } + + /** + * Define o valor da propriedade unidade. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUnidade(String value) { + this.unidade = value; + } + + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/ObjectFactory.java new file mode 100644 index 00000000..80a43958 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/ObjectFactory.java @@ -0,0 +1,56 @@ + +package br.com.swconsultoria.nfe.schema.evento112120; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento112120 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento112120 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link DetEvento.GConsumo } + * + */ + public DetEvento.GConsumo createDetEventoGConsumo() { + return new DetEvento.GConsumo(); + } + + /** + * Create an instance of {@link DetEvento.GConsumo.GControleEstoque } + * + */ + public DetEvento.GConsumo.GControleEstoque createDetEventoGConsumoGControleEstoque() { + return new DetEvento.GConsumo.GControleEstoque(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/TUf.java new file mode 100644 index 00000000..3104a599 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento112120; + +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/evento112120/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/TUfEmi.java new file mode 100644 index 00000000..a9a1626d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112120/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento112120; + +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/evento112130/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/DetEvento.java new file mode 100644 index 00000000..5e49b736 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/DetEvento.java @@ -0,0 +1,568 @@ + +package br.com.swconsultoria.nfe.schema.evento112130; + +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="Perecimento, perda, roubo ou furto durante o transporte contratado pelo fornecedor"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="gPerecimento" maxOccurs="990">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="gControleEstoque">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="qPerecimento" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+ *                             <element name="uPerecimento">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                                   <maxLength value="6"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <sequence>
+ *                               <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                               <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                             </sequence>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "gPerecimento" +}) +@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 tpAutor; + @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 gPerecimento; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 gPerecimento 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 gPerecimento property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.GPerecimento } + * + * + */ + public List getGPerecimento() { + if (gPerecimento == null) { + gPerecimento = new ArrayList(); + } + return this.gPerecimento; + } + + /** + * 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="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="gControleEstoque">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="qPerecimento" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+     *                   <element name="uPerecimento">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                         <maxLength value="6"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <sequence>
+     *                     <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *                     <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *                   </sequence>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibs", + "vcbs", + "gControleEstoque" + }) + public static class GPerecimento { + + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento.GPerecimento.GControleEstoque gControleEstoque; + @XmlAttribute(name = "nItem", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + + /** + * Obtém o valor da propriedade gControleEstoque. + * + * @return + * possible object is + * {@link DetEvento.GPerecimento.GControleEstoque } + * + */ + public DetEvento.GPerecimento.GControleEstoque getGControleEstoque() { + return gControleEstoque; + } + + /** + * Define o valor da propriedade gControleEstoque. + * + * @param value + * allowed object is + * {@link DetEvento.GPerecimento.GControleEstoque } + * + */ + public void setGControleEstoque(DetEvento.GPerecimento.GControleEstoque value) { + this.gControleEstoque = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = 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="qPerecimento" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+         *         <element name="uPerecimento">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *               <maxLength value="6"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <sequence>
+         *           <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+         *           <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+         *         </sequence>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qPerecimento", + "uPerecimento", + "vibs", + "vcbs" + }) + public static class GControleEstoque { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qPerecimento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String uPerecimento; + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + + /** + * Obtém o valor da propriedade qPerecimento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQPerecimento() { + return qPerecimento; + } + + /** + * Define o valor da propriedade qPerecimento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQPerecimento(String value) { + this.qPerecimento = value; + } + + /** + * Obtém o valor da propriedade uPerecimento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUPerecimento() { + return uPerecimento; + } + + /** + * Define o valor da propriedade uPerecimento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUPerecimento(String value) { + this.uPerecimento = value; + } + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/ObjectFactory.java new file mode 100644 index 00000000..6ecb5601 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/ObjectFactory.java @@ -0,0 +1,56 @@ + +package br.com.swconsultoria.nfe.schema.evento112130; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento112130 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento112130 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link DetEvento.GPerecimento } + * + */ + public DetEvento.GPerecimento createDetEventoGPerecimento() { + return new DetEvento.GPerecimento(); + } + + /** + * Create an instance of {@link DetEvento.GPerecimento.GControleEstoque } + * + */ + public DetEvento.GPerecimento.GControleEstoque createDetEventoGPerecimentoGControleEstoque() { + return new DetEvento.GPerecimento.GControleEstoque(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/TUf.java new file mode 100644 index 00000000..a1e7671f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento112130; + +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/evento112130/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/TUfEmi.java new file mode 100644 index 00000000..d425ba49 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112130/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento112130; + +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/evento112140/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/DetEvento.java new file mode 100644 index 00000000..b1267568 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/DetEvento.java @@ -0,0 +1,502 @@ + +package br.com.swconsultoria.nfe.schema.evento112140; + +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="Fornecimento não realizado com pagamento antecipado"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="gItemNaoFornecido" maxOccurs="990">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="gControleEstoque">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="qNaoFornecida" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+ *                             <element name="uNaoFornecida">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                                   <maxLength value="6"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "gItemNaoFornecido" +}) +@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 tpAutor; + @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 gItemNaoFornecido; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 gItemNaoFornecido 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 gItemNaoFornecido property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.GItemNaoFornecido } + * + * + */ + public List getGItemNaoFornecido() { + if (gItemNaoFornecido == null) { + gItemNaoFornecido = new ArrayList(); + } + return this.gItemNaoFornecido; + } + + /** + * 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="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="gControleEstoque">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="qNaoFornecida" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+     *                   <element name="uNaoFornecida">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                         <maxLength value="6"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibs", + "vcbs", + "gControleEstoque" + }) + public static class GItemNaoFornecido { + + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento.GItemNaoFornecido.GControleEstoque gControleEstoque; + @XmlAttribute(name = "nItem", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + + /** + * Obtém o valor da propriedade gControleEstoque. + * + * @return + * possible object is + * {@link DetEvento.GItemNaoFornecido.GControleEstoque } + * + */ + public DetEvento.GItemNaoFornecido.GControleEstoque getGControleEstoque() { + return gControleEstoque; + } + + /** + * Define o valor da propriedade gControleEstoque. + * + * @param value + * allowed object is + * {@link DetEvento.GItemNaoFornecido.GControleEstoque } + * + */ + public void setGControleEstoque(DetEvento.GItemNaoFornecido.GControleEstoque value) { + this.gControleEstoque = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = 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="qNaoFornecida" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+         *         <element name="uNaoFornecida">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *               <maxLength value="6"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qNaoFornecida", + "uNaoFornecida" + }) + public static class GControleEstoque { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qNaoFornecida; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String uNaoFornecida; + + /** + * Obtém o valor da propriedade qNaoFornecida. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQNaoFornecida() { + return qNaoFornecida; + } + + /** + * Define o valor da propriedade qNaoFornecida. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQNaoFornecida(String value) { + this.qNaoFornecida = value; + } + + /** + * Obtém o valor da propriedade uNaoFornecida. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUNaoFornecida() { + return uNaoFornecida; + } + + /** + * Define o valor da propriedade uNaoFornecida. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUNaoFornecida(String value) { + this.uNaoFornecida = value; + } + + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/ObjectFactory.java new file mode 100644 index 00000000..52f0ed51 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/ObjectFactory.java @@ -0,0 +1,56 @@ + +package br.com.swconsultoria.nfe.schema.evento112140; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento112140 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento112140 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link DetEvento.GItemNaoFornecido } + * + */ + public DetEvento.GItemNaoFornecido createDetEventoGItemNaoFornecido() { + return new DetEvento.GItemNaoFornecido(); + } + + /** + * Create an instance of {@link DetEvento.GItemNaoFornecido.GControleEstoque } + * + */ + public DetEvento.GItemNaoFornecido.GControleEstoque createDetEventoGItemNaoFornecidoGControleEstoque() { + return new DetEvento.GItemNaoFornecido.GControleEstoque(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/TUf.java new file mode 100644 index 00000000..8a208077 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento112140; + +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/evento112140/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/TUfEmi.java new file mode 100644 index 00000000..1a801368 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112140/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento112140; + +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/evento112150/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112150/DetEvento.java new file mode 100644 index 00000000..1a3e9b81 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112150/DetEvento.java @@ -0,0 +1,218 @@ + +package br.com.swconsultoria.nfe.schema.evento112150; + +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="Atualização da Data de Previsão de Entrega"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="dPrevEntrega" type="{http://www.portalfiscal.inf.br/nfe}TData"/>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "dPrevEntrega" +}) +@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 tpAutor; + @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 dPrevEntrega; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 dPrevEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDPrevEntrega() { + return dPrevEntrega; + } + + /** + * Define o valor da propriedade dPrevEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDPrevEntrega(String value) { + this.dPrevEntrega = 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/evento112150/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112150/ObjectFactory.java new file mode 100644 index 00000000..e4beef8b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112150/ObjectFactory.java @@ -0,0 +1,40 @@ + +package br.com.swconsultoria.nfe.schema.evento112150; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento112150 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento112150 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento112150/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112150/TUf.java new file mode 100644 index 00000000..768a488f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112150/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento112150; + +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/evento112150/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento112150/TUfEmi.java new file mode 100644 index 00000000..3ead8364 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento112150/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento112150; + +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/evento211110/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/DetEvento.java new file mode 100644 index 00000000..103d0e87 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/DetEvento.java @@ -0,0 +1,688 @@ + +package br.com.swconsultoria.nfe.schema.evento211110; + +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="Solicitação de Apropriação de crédito presumido"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="gCredPres" maxOccurs="990">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="vBC" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="gIBS" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="cCredPres">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <pattern value="[0-9]{2}"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+ *                             <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="gCBS" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="cCredPres">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <pattern value="[0-9]{2}"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+ *                             <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "gCredPres" +}) +@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 tpAutor; + @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 gCredPres; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 gCredPres 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 gCredPres property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.GCredPres } + * + * + */ + public List getGCredPres() { + if (gCredPres == null) { + gCredPres = new ArrayList(); + } + return this.gCredPres; + } + + /** + * 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="vBC" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="gIBS" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="cCredPres">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <pattern value="[0-9]{2}"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+     *                   <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="gCBS" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="cCredPres">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <pattern value="[0-9]{2}"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+     *                   <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vbc", + "gibs", + "gcbs" + }) + public static class GCredPres { + + @XmlElement(name = "vBC", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vbc; + @XmlElement(name = "gIBS", namespace = "http://www.portalfiscal.inf.br/nfe") + protected DetEvento.GCredPres.GIBS gibs; + @XmlElement(name = "gCBS", namespace = "http://www.portalfiscal.inf.br/nfe") + protected DetEvento.GCredPres.GCBS gcbs; + @XmlAttribute(name = "nItem", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade vbc. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVBC() { + return vbc; + } + + /** + * Define o valor da propriedade vbc. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVBC(String value) { + this.vbc = value; + } + + /** + * Obtém o valor da propriedade gibs. + * + * @return + * possible object is + * {@link DetEvento.GCredPres.GIBS } + * + */ + public DetEvento.GCredPres.GIBS getGIBS() { + return gibs; + } + + /** + * Define o valor da propriedade gibs. + * + * @param value + * allowed object is + * {@link DetEvento.GCredPres.GIBS } + * + */ + public void setGIBS(DetEvento.GCredPres.GIBS value) { + this.gibs = value; + } + + /** + * Obtém o valor da propriedade gcbs. + * + * @return + * possible object is + * {@link DetEvento.GCredPres.GCBS } + * + */ + public DetEvento.GCredPres.GCBS getGCBS() { + return gcbs; + } + + /** + * Define o valor da propriedade gcbs. + * + * @param value + * allowed object is + * {@link DetEvento.GCredPres.GCBS } + * + */ + public void setGCBS(DetEvento.GCredPres.GCBS value) { + this.gcbs = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = 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="cCredPres">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <pattern value="[0-9]{2}"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+         *         <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cCredPres", + "pCredPres", + "vCredPres" + }) + public static class GCBS { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cCredPres; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String pCredPres; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vCredPres; + + /** + * Obtém o valor da propriedade cCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCCredPres() { + return cCredPres; + } + + /** + * Define o valor da propriedade cCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCCredPres(String value) { + this.cCredPres = value; + } + + /** + * Obtém o valor da propriedade pCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPCredPres() { + return pCredPres; + } + + /** + * Define o valor da propriedade pCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPCredPres(String value) { + this.pCredPres = value; + } + + /** + * Obtém o valor da propriedade vCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCredPres() { + return vCredPres; + } + + /** + * Define o valor da propriedade vCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCredPres(String value) { + this.vCredPres = 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="cCredPres">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <pattern value="[0-9]{2}"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+         *         <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cCredPres", + "pCredPres", + "vCredPres" + }) + public static class GIBS { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cCredPres; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String pCredPres; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vCredPres; + + /** + * Obtém o valor da propriedade cCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCCredPres() { + return cCredPres; + } + + /** + * Define o valor da propriedade cCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCCredPres(String value) { + this.cCredPres = value; + } + + /** + * Obtém o valor da propriedade pCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPCredPres() { + return pCredPres; + } + + /** + * Define o valor da propriedade pCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPCredPres(String value) { + this.pCredPres = value; + } + + /** + * Obtém o valor da propriedade vCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCredPres() { + return vCredPres; + } + + /** + * Define o valor da propriedade vCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCredPres(String value) { + this.vCredPres = value; + } + + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/ObjectFactory.java new file mode 100644 index 00000000..b4f7c987 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/ObjectFactory.java @@ -0,0 +1,64 @@ + +package br.com.swconsultoria.nfe.schema.evento211110; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento211110 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento211110 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link DetEvento.GCredPres } + * + */ + public DetEvento.GCredPres createDetEventoGCredPres() { + return new DetEvento.GCredPres(); + } + + /** + * Create an instance of {@link DetEvento.GCredPres.GIBS } + * + */ + public DetEvento.GCredPres.GIBS createDetEventoGCredPresGIBS() { + return new DetEvento.GCredPres.GIBS(); + } + + /** + * Create an instance of {@link DetEvento.GCredPres.GCBS } + * + */ + public DetEvento.GCredPres.GCBS createDetEventoGCredPresGCBS() { + return new DetEvento.GCredPres.GCBS(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/TUf.java new file mode 100644 index 00000000..fd0bfefa --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento211110; + +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/evento211110/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/TUfEmi.java new file mode 100644 index 00000000..1596e8a0 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211110/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento211110; + +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/evento211120/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/DetEvento.java new file mode 100644 index 00000000..d5c362f7 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/DetEvento.java @@ -0,0 +1,637 @@ + +package br.com.swconsultoria.nfe.schema.evento211120; + +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="Destinação de item para consumo pessoal"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="1"/>
+ *               <enumeration value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="gConsumo" maxOccurs="990">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="gControleEstoque">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="qConsumo" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+ *                             <element name="uConsumo">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                                   <maxLength value="6"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="DFeReferenciado">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="chaveAcesso" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+ *                             <element name="nItem" type="{http://www.portalfiscal.inf.br/nfe}TnItem"/>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "gConsumo" +}) +@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 tpAutor; + @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 gConsumo; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 gConsumo 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 gConsumo property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.GConsumo } + * + * + */ + public List getGConsumo() { + if (gConsumo == null) { + gConsumo = new ArrayList(); + } + return this.gConsumo; + } + + /** + * 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="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="gControleEstoque">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="qConsumo" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+     *                   <element name="uConsumo">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                         <maxLength value="6"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="DFeReferenciado">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="chaveAcesso" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+     *                   <element name="nItem" type="{http://www.portalfiscal.inf.br/nfe}TnItem"/>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibs", + "vcbs", + "gControleEstoque", + "dFeReferenciado" + }) + public static class GConsumo { + + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento.GConsumo.GControleEstoque gControleEstoque; + @XmlElement(name = "DFeReferenciado", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento.GConsumo.DFeReferenciado dFeReferenciado; + @XmlAttribute(name = "nItem", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + + /** + * Obtém o valor da propriedade gControleEstoque. + * + * @return + * possible object is + * {@link DetEvento.GConsumo.GControleEstoque } + * + */ + public DetEvento.GConsumo.GControleEstoque getGControleEstoque() { + return gControleEstoque; + } + + /** + * Define o valor da propriedade gControleEstoque. + * + * @param value + * allowed object is + * {@link DetEvento.GConsumo.GControleEstoque } + * + */ + public void setGControleEstoque(DetEvento.GConsumo.GControleEstoque value) { + this.gControleEstoque = value; + } + + /** + * Obtém o valor da propriedade dFeReferenciado. + * + * @return + * possible object is + * {@link DetEvento.GConsumo.DFeReferenciado } + * + */ + public DetEvento.GConsumo.DFeReferenciado getDFeReferenciado() { + return dFeReferenciado; + } + + /** + * Define o valor da propriedade dFeReferenciado. + * + * @param value + * allowed object is + * {@link DetEvento.GConsumo.DFeReferenciado } + * + */ + public void setDFeReferenciado(DetEvento.GConsumo.DFeReferenciado value) { + this.dFeReferenciado = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = 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="chaveAcesso" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/>
+         *         <element name="nItem" type="{http://www.portalfiscal.inf.br/nfe}TnItem"/>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "chaveAcesso", + "nItem" + }) + public static class DFeReferenciado { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String chaveAcesso; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade chaveAcesso. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChaveAcesso() { + return chaveAcesso; + } + + /** + * Define o valor da propriedade chaveAcesso. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChaveAcesso(String value) { + this.chaveAcesso = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = 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="qConsumo" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+         *         <element name="uConsumo">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *               <maxLength value="6"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qConsumo", + "uConsumo" + }) + public static class GControleEstoque { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qConsumo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String uConsumo; + + /** + * Obtém o valor da propriedade qConsumo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQConsumo() { + return qConsumo; + } + + /** + * Define o valor da propriedade qConsumo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQConsumo(String value) { + this.qConsumo = value; + } + + /** + * Obtém o valor da propriedade uConsumo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUConsumo() { + return uConsumo; + } + + /** + * Define o valor da propriedade uConsumo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUConsumo(String value) { + this.uConsumo = value; + } + + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/ObjectFactory.java new file mode 100644 index 00000000..c0262684 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/ObjectFactory.java @@ -0,0 +1,64 @@ + +package br.com.swconsultoria.nfe.schema.evento211120; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento211120 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento211120 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link DetEvento.GConsumo } + * + */ + public DetEvento.GConsumo createDetEventoGConsumo() { + return new DetEvento.GConsumo(); + } + + /** + * Create an instance of {@link DetEvento.GConsumo.GControleEstoque } + * + */ + public DetEvento.GConsumo.GControleEstoque createDetEventoGConsumoGControleEstoque() { + return new DetEvento.GConsumo.GControleEstoque(); + } + + /** + * Create an instance of {@link DetEvento.GConsumo.DFeReferenciado } + * + */ + public DetEvento.GConsumo.DFeReferenciado createDetEventoGConsumoDFeReferenciado() { + return new DetEvento.GConsumo.DFeReferenciado(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/TUf.java new file mode 100644 index 00000000..9b6a6746 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento211120; + +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/evento211120/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/TUfEmi.java new file mode 100644 index 00000000..d48b5a30 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211120/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento211120; + +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/evento211124/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/DetEvento.java new file mode 100644 index 00000000..e69a8cb4 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/DetEvento.java @@ -0,0 +1,502 @@ + +package br.com.swconsultoria.nfe.schema.evento211124; + +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="Perecimento, perda, roubo ou furto durante o transporte contratado pelo adquirente"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="gPerecimento" maxOccurs="990">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="gControleEstoque">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="qPerecimento" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+ *                             <element name="uPerecimento">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                                   <maxLength value="6"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "gPerecimento" +}) +@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 tpAutor; + @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 gPerecimento; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 gPerecimento 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 gPerecimento property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.GPerecimento } + * + * + */ + public List getGPerecimento() { + if (gPerecimento == null) { + gPerecimento = new ArrayList(); + } + return this.gPerecimento; + } + + /** + * 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="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="gControleEstoque">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="qPerecimento" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+     *                   <element name="uPerecimento">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                         <maxLength value="6"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibs", + "vcbs", + "gControleEstoque" + }) + public static class GPerecimento { + + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento.GPerecimento.GControleEstoque gControleEstoque; + @XmlAttribute(name = "nItem", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + + /** + * Obtém o valor da propriedade gControleEstoque. + * + * @return + * possible object is + * {@link DetEvento.GPerecimento.GControleEstoque } + * + */ + public DetEvento.GPerecimento.GControleEstoque getGControleEstoque() { + return gControleEstoque; + } + + /** + * Define o valor da propriedade gControleEstoque. + * + * @param value + * allowed object is + * {@link DetEvento.GPerecimento.GControleEstoque } + * + */ + public void setGControleEstoque(DetEvento.GPerecimento.GControleEstoque value) { + this.gControleEstoque = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = 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="qPerecimento" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+         *         <element name="uPerecimento">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *               <maxLength value="6"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qPerecimento", + "uPerecimento" + }) + public static class GControleEstoque { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qPerecimento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String uPerecimento; + + /** + * Obtém o valor da propriedade qPerecimento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQPerecimento() { + return qPerecimento; + } + + /** + * Define o valor da propriedade qPerecimento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQPerecimento(String value) { + this.qPerecimento = value; + } + + /** + * Obtém o valor da propriedade uPerecimento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUPerecimento() { + return uPerecimento; + } + + /** + * Define o valor da propriedade uPerecimento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUPerecimento(String value) { + this.uPerecimento = value; + } + + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/ObjectFactory.java new file mode 100644 index 00000000..e8a4ba03 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/ObjectFactory.java @@ -0,0 +1,56 @@ + +package br.com.swconsultoria.nfe.schema.evento211124; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento211124 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento211124 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link DetEvento.GPerecimento } + * + */ + public DetEvento.GPerecimento createDetEventoGPerecimento() { + return new DetEvento.GPerecimento(); + } + + /** + * Create an instance of {@link DetEvento.GPerecimento.GControleEstoque } + * + */ + public DetEvento.GPerecimento.GControleEstoque createDetEventoGPerecimentoGControleEstoque() { + return new DetEvento.GPerecimento.GControleEstoque(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/TUf.java new file mode 100644 index 00000000..16c3338e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento211124; + +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/evento211124/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/TUfEmi.java new file mode 100644 index 00000000..57f07e01 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211124/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento211124; + +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/evento211128/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211128/DetEvento.java new file mode 100644 index 00000000..0d26b9f8 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211128/DetEvento.java @@ -0,0 +1,225 @@ + +package br.com.swconsultoria.nfe.schema.evento211128; + +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="Aceite de débito na apuração por emissão de nota de crédito"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="indAceitacao">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="0"/>
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "indAceitacao" +}) +@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 tpAutor; + @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 indAceitacao; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 indAceitacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndAceitacao() { + return indAceitacao; + } + + /** + * Define o valor da propriedade indAceitacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndAceitacao(String value) { + this.indAceitacao = 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/evento211128/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211128/ObjectFactory.java new file mode 100644 index 00000000..da5b9b97 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211128/ObjectFactory.java @@ -0,0 +1,40 @@ + +package br.com.swconsultoria.nfe.schema.evento211128; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento211128 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento211128 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211128/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211128/TUf.java new file mode 100644 index 00000000..a3ad5b99 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211128/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento211128; + +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/evento211128/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211128/TUfEmi.java new file mode 100644 index 00000000..c85b9efb --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211128/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento211128; + +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/evento211130/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/DetEvento.java new file mode 100644 index 00000000..e088db80 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/DetEvento.java @@ -0,0 +1,502 @@ + +package br.com.swconsultoria.nfe.schema.evento211130; + +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="Imobilização de Item"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="gImobilizacao" maxOccurs="990">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="gControleEstoque">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="qImobilizado" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+ *                             <element name="uImobilizado">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                                   <maxLength value="6"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "gImobilizacao" +}) +@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 tpAutor; + @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 gImobilizacao; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 gImobilizacao 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 gImobilizacao property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.GImobilizacao } + * + * + */ + public List getGImobilizacao() { + if (gImobilizacao == null) { + gImobilizacao = new ArrayList(); + } + return this.gImobilizacao; + } + + /** + * 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="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="gControleEstoque">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="qImobilizado" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+     *                   <element name="uImobilizado">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                         <maxLength value="6"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibs", + "vcbs", + "gControleEstoque" + }) + public static class GImobilizacao { + + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento.GImobilizacao.GControleEstoque gControleEstoque; + @XmlAttribute(name = "nItem", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + + /** + * Obtém o valor da propriedade gControleEstoque. + * + * @return + * possible object is + * {@link DetEvento.GImobilizacao.GControleEstoque } + * + */ + public DetEvento.GImobilizacao.GControleEstoque getGControleEstoque() { + return gControleEstoque; + } + + /** + * Define o valor da propriedade gControleEstoque. + * + * @param value + * allowed object is + * {@link DetEvento.GImobilizacao.GControleEstoque } + * + */ + public void setGControleEstoque(DetEvento.GImobilizacao.GControleEstoque value) { + this.gControleEstoque = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = 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="qImobilizado" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+         *         <element name="uImobilizado">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *               <maxLength value="6"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qImobilizado", + "uImobilizado" + }) + public static class GControleEstoque { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qImobilizado; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String uImobilizado; + + /** + * Obtém o valor da propriedade qImobilizado. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQImobilizado() { + return qImobilizado; + } + + /** + * Define o valor da propriedade qImobilizado. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQImobilizado(String value) { + this.qImobilizado = value; + } + + /** + * Obtém o valor da propriedade uImobilizado. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUImobilizado() { + return uImobilizado; + } + + /** + * Define o valor da propriedade uImobilizado. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUImobilizado(String value) { + this.uImobilizado = value; + } + + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/ObjectFactory.java new file mode 100644 index 00000000..015de108 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/ObjectFactory.java @@ -0,0 +1,56 @@ + +package br.com.swconsultoria.nfe.schema.evento211130; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento211130 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento211130 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link DetEvento.GImobilizacao } + * + */ + public DetEvento.GImobilizacao createDetEventoGImobilizacao() { + return new DetEvento.GImobilizacao(); + } + + /** + * Create an instance of {@link DetEvento.GImobilizacao.GControleEstoque } + * + */ + public DetEvento.GImobilizacao.GControleEstoque createDetEventoGImobilizacaoGControleEstoque() { + return new DetEvento.GImobilizacao.GControleEstoque(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/TUf.java new file mode 100644 index 00000000..056dad94 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento211130; + +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/evento211130/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/TUfEmi.java new file mode 100644 index 00000000..e7e264bb --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211130/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento211130; + +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/evento211140/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/DetEvento.java new file mode 100644 index 00000000..775beacd --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/DetEvento.java @@ -0,0 +1,502 @@ + +package br.com.swconsultoria.nfe.schema.evento211140; + +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="Solicitação de Apropriação de Crédito de Combustível"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="gConsumoComb" maxOccurs="990">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="gControleEstoque">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="qComb" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+ *                             <element name="uComb">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                                   <maxLength value="6"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "gConsumoComb" +}) +@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 tpAutor; + @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 gConsumoComb; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 gConsumoComb 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 gConsumoComb property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.GConsumoComb } + * + * + */ + public List getGConsumoComb() { + if (gConsumoComb == null) { + gConsumoComb = new ArrayList(); + } + return this.gConsumoComb; + } + + /** + * 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="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="gControleEstoque">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="qComb" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+     *                   <element name="uComb">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *                         <maxLength value="6"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibs", + "vcbs", + "gControleEstoque" + }) + public static class GConsumoComb { + + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected DetEvento.GConsumoComb.GControleEstoque gControleEstoque; + @XmlAttribute(name = "nItem", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + + /** + * Obtém o valor da propriedade gControleEstoque. + * + * @return + * possible object is + * {@link DetEvento.GConsumoComb.GControleEstoque } + * + */ + public DetEvento.GConsumoComb.GControleEstoque getGControleEstoque() { + return gControleEstoque; + } + + /** + * Define o valor da propriedade gControleEstoque. + * + * @param value + * allowed object is + * {@link DetEvento.GConsumoComb.GControleEstoque } + * + */ + public void setGControleEstoque(DetEvento.GConsumoComb.GControleEstoque value) { + this.gControleEstoque = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = 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="qComb" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104"/>
+         *         <element name="uComb">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+         *               <maxLength value="6"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qComb", + "uComb" + }) + public static class GControleEstoque { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qComb; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String uComb; + + /** + * Obtém o valor da propriedade qComb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQComb() { + return qComb; + } + + /** + * Define o valor da propriedade qComb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQComb(String value) { + this.qComb = value; + } + + /** + * Obtém o valor da propriedade uComb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUComb() { + return uComb; + } + + /** + * Define o valor da propriedade uComb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUComb(String value) { + this.uComb = value; + } + + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/ObjectFactory.java new file mode 100644 index 00000000..93fd2a15 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/ObjectFactory.java @@ -0,0 +1,56 @@ + +package br.com.swconsultoria.nfe.schema.evento211140; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento211140 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento211140 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link DetEvento.GConsumoComb } + * + */ + public DetEvento.GConsumoComb createDetEventoGConsumoComb() { + return new DetEvento.GConsumoComb(); + } + + /** + * Create an instance of {@link DetEvento.GConsumoComb.GControleEstoque } + * + */ + public DetEvento.GConsumoComb.GControleEstoque createDetEventoGConsumoCombGControleEstoque() { + return new DetEvento.GConsumoComb.GControleEstoque(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/TUf.java new file mode 100644 index 00000000..e36d60d1 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento211140; + +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/evento211140/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/TUfEmi.java new file mode 100644 index 00000000..be28e8a0 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211140/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento211140; + +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/evento211150/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/DetEvento.java new file mode 100644 index 00000000..a378eb85 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/DetEvento.java @@ -0,0 +1,347 @@ + +package br.com.swconsultoria.nfe.schema.evento211150; + +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="Solicitação de Apropriação de Crédito para bens e serviços que dependem de atividade do adquirente"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="gCredito" maxOccurs="990">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="vCredIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                   <element name="vCredCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+ *                 </sequence>
+ *                 <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "gCredito" +}) +@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 tpAutor; + @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 gCredito; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 gCredito 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 gCredito property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DetEvento.GCredito } + * + * + */ + public List getGCredito() { + if (gCredito == null) { + gCredito = new ArrayList(); + } + return this.gCredito; + } + + /** + * 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="vCredIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *         <element name="vCredCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302"/>
+     *       </sequence>
+     *       <attribute name="nItem" use="required" type="{http://www.portalfiscal.inf.br/nfe}TnItem" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vCredIBS", + "vCredCBS" + }) + public static class GCredito { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vCredIBS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vCredCBS; + @XmlAttribute(name = "nItem", required = true) + protected String nItem; + + /** + * Obtém o valor da propriedade vCredIBS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCredIBS() { + return vCredIBS; + } + + /** + * Define o valor da propriedade vCredIBS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCredIBS(String value) { + this.vCredIBS = value; + } + + /** + * Obtém o valor da propriedade vCredCBS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCredCBS() { + return vCredCBS; + } + + /** + * Define o valor da propriedade vCredCBS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCredCBS(String value) { + this.vCredCBS = value; + } + + /** + * Obtém o valor da propriedade nItem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNItem() { + return nItem; + } + + /** + * Define o valor da propriedade nItem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNItem(String value) { + this.nItem = value; + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/ObjectFactory.java new file mode 100644 index 00000000..4f98227b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/ObjectFactory.java @@ -0,0 +1,48 @@ + +package br.com.swconsultoria.nfe.schema.evento211150; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento211150 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento211150 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + + /** + * Create an instance of {@link DetEvento.GCredito } + * + */ + public DetEvento.GCredito createDetEventoGCredito() { + return new DetEvento.GCredito(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/TUf.java new file mode 100644 index 00000000..cf934bc6 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento211150; + +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/evento211150/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/TUfEmi.java new file mode 100644 index 00000000..2d585699 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento211150/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento211150; + +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/evento212110/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento212110/DetEvento.java new file mode 100644 index 00000000..ac28e2be --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento212110/DetEvento.java @@ -0,0 +1,225 @@ + +package br.com.swconsultoria.nfe.schema.evento212110; + +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="Manifestação sobre Pedido de Transferência de Crédito de IBS em Operação de Sucessão"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="8"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="indAceitacao">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="0"/>
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "indAceitacao" +}) +@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 tpAutor; + @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 indAceitacao; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 indAceitacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndAceitacao() { + return indAceitacao; + } + + /** + * Define o valor da propriedade indAceitacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndAceitacao(String value) { + this.indAceitacao = 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/evento212110/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento212110/ObjectFactory.java new file mode 100644 index 00000000..05aaf21b --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento212110/ObjectFactory.java @@ -0,0 +1,40 @@ + +package br.com.swconsultoria.nfe.schema.evento212110; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento212110 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento212110 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento212110/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento212110/TUf.java new file mode 100644 index 00000000..0d48a16f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento212110/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento212110; + +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/evento212110/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento212110/TUfEmi.java new file mode 100644 index 00000000..f1316af4 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento212110/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento212110; + +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/evento212120/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento212120/DetEvento.java new file mode 100644 index 00000000..d704e7a7 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento212120/DetEvento.java @@ -0,0 +1,225 @@ + +package br.com.swconsultoria.nfe.schema.evento212120; + +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="Manifestação sobre Pedido de Transferência de Crédito de CBS em Operação de Sucessão"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="8"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="indAceitacao">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="0"/>
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "indAceitacao" +}) +@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 tpAutor; + @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 indAceitacao; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 indAceitacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndAceitacao() { + return indAceitacao; + } + + /** + * Define o valor da propriedade indAceitacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndAceitacao(String value) { + this.indAceitacao = 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/evento212120/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento212120/ObjectFactory.java new file mode 100644 index 00000000..40fb68f5 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento212120/ObjectFactory.java @@ -0,0 +1,40 @@ + +package br.com.swconsultoria.nfe.schema.evento212120; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento212120 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento212120 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento212120/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento212120/TUf.java new file mode 100644 index 00000000..f8cf1d18 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento212120/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento212120; + +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/evento212120/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento212120/TUfEmi.java new file mode 100644 index 00000000..546ccf46 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento212120/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento212120; + +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/evento412120/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento412120/DetEvento.java new file mode 100644 index 00000000..62d884ba --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento412120/DetEvento.java @@ -0,0 +1,295 @@ + +package br.com.swconsultoria.nfe.schema.evento412120; + +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="Manifestação do Fisco sobre Pedido de Transferência de Crédito de IBS em Operação de Sucessão"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="5"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="indDeferimento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="0"/>
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cMotivo">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="1"/>
+ *               <enumeration value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xMotivo">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *               <minLength value="1"/>
+ *               <maxLength value="500"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "indDeferimento", + "cMotivo", + "xMotivo" +}) +@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 tpAutor; + @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 indDeferimento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 indDeferimento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDeferimento() { + return indDeferimento; + } + + /** + * Define o valor da propriedade indDeferimento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDeferimento(String value) { + this.indDeferimento = value; + } + + /** + * Obtém o valor da propriedade cMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCMotivo() { + return cMotivo; + } + + /** + * Define o valor da propriedade cMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCMotivo(String value) { + this.cMotivo = 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 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/evento412120/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento412120/ObjectFactory.java new file mode 100644 index 00000000..f1b78044 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento412120/ObjectFactory.java @@ -0,0 +1,40 @@ + +package br.com.swconsultoria.nfe.schema.evento412120; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento412120 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento412120 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento412120/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento412120/TUf.java new file mode 100644 index 00000000..9cff1c45 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento412120/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento412120; + +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/evento412120/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento412120/TUfEmi.java new file mode 100644 index 00000000..e7670b7d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento412120/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento412120; + +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/evento412130/DetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento412130/DetEvento.java new file mode 100644 index 00000000..e6ddc7b5 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento412130/DetEvento.java @@ -0,0 +1,295 @@ + +package br.com.swconsultoria.nfe.schema.evento412130; + +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="Manifestação do Fisco sobre Pedido de Transferência de Crédito de CBS em Operação de Sucessão"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cOrgaoAutor" type="{http://www.portalfiscal.inf.br/nfe}TCodUfIBGE"/>
+ *         <element name="tpAutor">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="5"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
+ *         <element name="indDeferimento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="0"/>
+ *               <enumeration value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cMotivo">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <enumeration value="1"/>
+ *               <enumeration value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xMotivo">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *               <minLength value="1"/>
+ *               <maxLength value="500"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao">
+ *         <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", + "tpAutor", + "verAplic", + "indDeferimento", + "cMotivo", + "xMotivo" +}) +@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 tpAutor; + @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 indDeferimento; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cMotivo; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String xMotivo; + @XmlAttribute(name = "versao") + 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 tpAutor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAutor() { + return tpAutor; + } + + /** + * Define o valor da propriedade tpAutor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAutor(String value) { + this.tpAutor = 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 indDeferimento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDeferimento() { + return indDeferimento; + } + + /** + * Define o valor da propriedade indDeferimento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDeferimento(String value) { + this.indDeferimento = value; + } + + /** + * Obtém o valor da propriedade cMotivo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCMotivo() { + return cMotivo; + } + + /** + * Define o valor da propriedade cMotivo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCMotivo(String value) { + this.cMotivo = 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 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/evento412130/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento412130/ObjectFactory.java new file mode 100644 index 00000000..47649b16 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento412130/ObjectFactory.java @@ -0,0 +1,40 @@ + +package br.com.swconsultoria.nfe.schema.evento412130; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.com.swconsultoria.nfe.schema.evento412130 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 { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema.evento412130 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DetEvento } + * + */ + public DetEvento createDetEvento() { + return new DetEvento(); + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/evento412130/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento412130/TUf.java new file mode 100644 index 00000000..650bdbb4 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento412130/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.evento412130; + +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/evento412130/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/evento412130/TUfEmi.java new file mode 100644 index 00000000..87a37b0f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/evento412130/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.evento412130; + +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/eventoGenerico/KeyInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/KeyInfoType.java new file mode 100644 index 00000000..6706757a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/KeyInfoType.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/ObjectFactory.java new file mode 100644 index 00000000..8fac2f5d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/ObjectFactory.java @@ -0,0 +1,207 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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.eventoGenerico 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.eventoGenerico + * + */ + 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 TEvento.InfEvento } + * + */ + public TEvento.InfEvento createTEventoInfEvento() { + return new TEvento.InfEvento(); + } + + /** + * Create an instance of {@link TRetEvento } + * + */ + public TRetEvento createTRetEvento() { + return new TRetEvento(); + } + + /** + * 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.DetEvento } + * + */ + public TEvento.InfEvento.DetEvento createTEventoInfEventoDetEvento() { + return new TEvento.InfEvento.DetEvento(); + } + + /** + * 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/eventoGenerico/ReferenceType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/ReferenceType.java new file mode 100644 index 00000000..70c3dc6d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/ReferenceType.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/SignatureType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/SignatureType.java new file mode 100644 index 00000000..0f2e5932 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/SignatureType.java @@ -0,0 +1,147 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/SignatureValueType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/SignatureValueType.java new file mode 100644 index 00000000..835bfe2c --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/SignatureValueType.java @@ -0,0 +1,86 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/SignedInfoType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/SignedInfoType.java new file mode 100644 index 00000000..8fe7c9ef --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/SignedInfoType.java @@ -0,0 +1,275 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/TEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TEnvEvento.java new file mode 100644 index 00000000..b9d9dfdc --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TEnvEvento.java @@ -0,0 +1,130 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/TEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TEvento.java new file mode 100644 index 00000000..90828408 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TEvento.java @@ -0,0 +1,640 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +import org.w3c.dom.Element; + +import javax.xml.bind.annotation.*; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.namespace.QName; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + + +/** + * 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}"/>
+ *                       </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"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="detEvento">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <any processContents='skip' maxOccurs="unbounded"/>
+ *                           </sequence>
+ *                           <anyAttribute processContents='skip'/>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </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}"/>
+     *             </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"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="detEvento">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <any processContents='skip' maxOccurs="unbounded"/>
+     *                 </sequence>
+     *                 <anyAttribute processContents='skip'/>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </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 TEvento.InfEvento.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 TEvento.InfEvento.DetEvento } + * + */ + public TEvento.InfEvento.DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento.DetEvento } + * + */ + public void setDetEvento(TEvento.InfEvento.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; + } + + + /** + *

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>
+         *         <any processContents='skip' maxOccurs="unbounded"/>
+         *       </sequence>
+         *       <anyAttribute processContents='skip'/>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class DetEvento { + + @XmlAnyElement + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the any 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 any property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + + } + + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TProcEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TProcEvento.java new file mode 100644 index 00000000..71404d62 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TProcEvento.java @@ -0,0 +1,116 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/TRetEnvEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TRetEnvEvento.java new file mode 100644 index 00000000..fbcb1b0e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TRetEnvEvento.java @@ -0,0 +1,270 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/TRetEvento.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TRetEvento.java new file mode 100644 index 00000000..848e9a91 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TRetEvento.java @@ -0,0 +1,705 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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"/>
+ *                   <choice minOccurs="0">
+ *                     <element name="CNPJDest" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+ *                     <element name="CPFDest" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+ *                   </choice>
+ *                   <element name="emailDest" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+ *                         <minLength value="1"/>
+ *                         <maxLength value="60"/>
+ *                       </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[0-9]|10|11|12):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"/>
+     *         <choice minOccurs="0">
+     *           <element name="CNPJDest" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
+     *           <element name="CPFDest" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
+     *         </choice>
+     *         <element name="emailDest" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
+     *               <minLength value="1"/>
+     *               <maxLength value="60"/>
+     *             </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[0-9]|10|11|12):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", + "cnpjDest", + "cpfDest", + "emailDest", + "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(name = "CNPJDest", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cnpjDest; + @XmlElement(name = "CPFDest", namespace = "http://www.portalfiscal.inf.br/nfe") + protected String cpfDest; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String emailDest; + @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 cnpjDest. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJDest() { + return cnpjDest; + } + + /** + * Define o valor da propriedade cnpjDest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJDest(String value) { + this.cnpjDest = value; + } + + /** + * Obtém o valor da propriedade cpfDest. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPFDest() { + return cpfDest; + } + + /** + * Define o valor da propriedade cpfDest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPFDest(String value) { + this.cpfDest = value; + } + + /** + * Obtém o valor da propriedade emailDest. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEmailDest() { + return emailDest; + } + + /** + * Define o valor da propriedade emailDest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEmailDest(String value) { + this.emailDest = 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/eventoGenerico/TUf.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TUf.java new file mode 100644 index 00000000..e8315277 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TUf.java @@ -0,0 +1,91 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/TUfEmi.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TUfEmi.java new file mode 100644 index 00000000..254b3c6d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TUfEmi.java @@ -0,0 +1,89 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/TransformType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TransformType.java new file mode 100644 index 00000000..91cd4e07 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TransformType.java @@ -0,0 +1,93 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/TransformsType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TransformsType.java new file mode 100644 index 00000000..2043eba4 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/TransformsType.java @@ -0,0 +1,69 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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/eventoGenerico/X509DataType.java b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/X509DataType.java new file mode 100644 index 00000000..4b8ce541 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema/eventoGenerico/X509DataType.java @@ -0,0 +1,60 @@ + +package br.com.swconsultoria.nfe.schema.eventoGenerico; + +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 b3923df4..a3ff97c0 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 @@ -366,6 +366,14 @@ public TEnderEmi createTEnderEmi() { return new TEnderEmi(); } + /** + * Create an instance of {@link TCredPresOper } + * + */ + public TCredPresOper createTCredPresOper() { + return new TCredPresOper(); + } + /** * Create an instance of {@link TEndereco } * @@ -398,6 +406,14 @@ public TEnviNFe createTEnviNFe() { return new TEnviNFe(); } + /** + * Create an instance of {@link TAjusteCompet } + * + */ + public TAjusteCompet createTAjusteCompet() { + return new TAjusteCompet(); + } + /** * Create an instance of {@link TNfeProc } * @@ -446,6 +462,14 @@ public TVeiculo createTVeiculo() { return new TVeiculo(); } + /** + * Create an instance of {@link TTribNFAg } + * + */ + public TTribNFAg createTTribNFAg() { + return new TTribNFAg(); + } + /** * Create an instance of {@link TCompraGovReduzido } * @@ -478,6 +502,14 @@ public TRed createTRed() { return new TRed(); } + /** + * Create an instance of {@link TTribNFGas } + * + */ + public TTribNFGas createTTribNFGas() { + return new TTribNFGas(); + } + /** * Create an instance of {@link TTribNF3E } * @@ -526,6 +558,14 @@ public TTribRegular createTTribRegular() { return new TTribRegular(); } + /** + * Create an instance of {@link TEstornoCred } + * + */ + public TEstornoCred createTEstornoCred() { + return new TEstornoCred(); + } + /** * Create an instance of {@link TRetConsReciNFe } * @@ -1262,6 +1302,14 @@ public TIBSCBSMonoTot.GMono createTIBSCBSMonoTotGMono() { return new TIBSCBSMonoTot.GMono(); } + /** + * Create an instance of {@link TIBSCBSMonoTot.GEstornoCred } + * + */ + public TIBSCBSMonoTot.GEstornoCred createTIBSCBSMonoTotGEstornoCred() { + return new TIBSCBSMonoTot.GEstornoCred(); + } + /** * Create an instance of {@link TIBSCBSMonoTot.GIBS.GIBSUF } * @@ -1294,6 +1342,14 @@ public TIBSCBSTot.GCBS createTIBSCBSTotGCBS() { return new TIBSCBSTot.GCBS(); } + /** + * Create an instance of {@link TIBSCBSTot.GEstornoCred } + * + */ + public TIBSCBSTot.GEstornoCred createTIBSCBSTotGEstornoCred() { + return new TIBSCBSTot.GEstornoCred(); + } + /** * Create an instance of {@link TIBSCBSTot.GIBS.GIBSUF } * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TAjusteCompet.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TAjusteCompet.java new file mode 100644 index 00000000..46c774ac --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TAjusteCompet.java @@ -0,0 +1,119 @@ + +package br.com.swconsultoria.nfe.schema_4.consReciNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + * Tipo Ajuste de Competência + * + *

Classe Java de TAjusteCompet complex type. + * + *

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

+ * <complexType name="TAjusteCompet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="competApur" type="{http://www.portalfiscal.inf.br/nfe}TCompetApur"/>
+ *         <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *         <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TAjusteCompet", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "competApur", + "vibs", + "vcbs" +}) +public class TAjusteCompet { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlSchemaType(name = "gYearMonth") + protected XMLGregorianCalendar competApur; + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + + /** + * Obtém o valor da propriedade competApur. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getCompetApur() { + return competApur; + } + + /** + * Define o valor da propriedade competApur. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setCompetApur(XMLGregorianCalendar value) { + this.competApur = value; + } + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCIBS.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCIBS.java index ecb95276..02681419 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCIBS.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCIBS.java @@ -19,18 +19,18 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vBC" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vBC" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * <sequence> * <element name="gIBSUF"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -41,36 +41,34 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * <element name="gCBS"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="gTribRegular" type="{http://www.portalfiscal.inf.br/nfe}TTribRegular" minOccurs="0"/> - * <element name="gIBSCredPres" type="{http://www.portalfiscal.inf.br/nfe}TCredPres" minOccurs="0"/> - * <element name="gCBSCredPres" type="{http://www.portalfiscal.inf.br/nfe}TCredPres" minOccurs="0"/> * <element name="gTribCompraGov" type="{http://www.portalfiscal.inf.br/nfe}TTribCompraGov" minOccurs="0"/> * </sequence> * </restriction> @@ -88,8 +86,6 @@ "vibs", "gcbs", "gTribRegular", - "gibsCredPres", - "gcbsCredPres", "gTribCompraGov" }) public class TCIBS { @@ -106,10 +102,6 @@ public class TCIBS { protected TCIBS.GCBS gcbs; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TTribRegular gTribRegular; - @XmlElement(name = "gIBSCredPres", namespace = "http://www.portalfiscal.inf.br/nfe") - protected TCredPres gibsCredPres; - @XmlElement(name = "gCBSCredPres", namespace = "http://www.portalfiscal.inf.br/nfe") - protected TCredPres gcbsCredPres; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TTribCompraGov gTribCompraGov; @@ -257,54 +249,6 @@ public void setGTribRegular(TTribRegular value) { this.gTribRegular = value; } - /** - * Obtém o valor da propriedade gibsCredPres. - * - * @return - * possible object is - * {@link TCredPres } - * - */ - public TCredPres getGIBSCredPres() { - return gibsCredPres; - } - - /** - * Define o valor da propriedade gibsCredPres. - * - * @param value - * allowed object is - * {@link TCredPres } - * - */ - public void setGIBSCredPres(TCredPres value) { - this.gibsCredPres = value; - } - - /** - * Obtém o valor da propriedade gcbsCredPres. - * - * @return - * possible object is - * {@link TCredPres } - * - */ - public TCredPres getGCBSCredPres() { - return gcbsCredPres; - } - - /** - * Define o valor da propriedade gcbsCredPres. - * - * @param value - * allowed object is - * {@link TCredPres } - * - */ - public void setGCBSCredPres(TCredPres value) { - this.gcbsCredPres = value; - } - /** * Obtém o valor da propriedade gTribCompraGov. * @@ -340,11 +284,11 @@ public void setGTribCompraGov(TTribCompraGov value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -507,11 +451,11 @@ public void setVCBS(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -674,11 +618,11 @@ public void setVIBSMun(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCompraGov.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCompraGov.java index cbf8fd60..d07e1e79 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCompraGov.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCompraGov.java @@ -20,7 +20,7 @@ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="tpEnteGov" type="{http://www.portalfiscal.inf.br/nfe}TEnteGov"/> - * <element name="pRedutor" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pRedutor" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="tpOperGov" type="{http://www.portalfiscal.inf.br/nfe}TOperCompraGov"/> * </sequence> * </restriction> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCompraGovReduzido.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCompraGovReduzido.java index 712eac3a..c8d61c15 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCompraGovReduzido.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCompraGovReduzido.java @@ -20,7 +20,7 @@ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="tpEnteGov" type="{http://www.portalfiscal.inf.br/nfe}TEnteGov"/> - * <element name="pRedutor" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pRedutor" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPres.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPres.java index eb40e006..857dff43 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPres.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPres.java @@ -19,11 +19,10 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="cCredPres" type="{http://www.portalfiscal.inf.br/nfe}TcCredPres"/> - * <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <choice> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </choice> * </sequence> * </restriction> @@ -35,15 +34,12 @@ */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TCredPres", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { - "cCredPres", "pCredPres", "vCredPres", "vCredPresCondSus" }) public class TCredPres { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String cCredPres; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String pCredPres; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") @@ -51,30 +47,6 @@ public class TCredPres { @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String vCredPresCondSus; - /** - * Obtém o valor da propriedade cCredPres. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCCredPres() { - return cCredPres; - } - - /** - * Define o valor da propriedade cCredPres. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCCredPres(String value) { - this.cCredPres = value; - } - /** * Obtém o valor da propriedade pCredPres. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPresIBSZFM.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPresIBSZFM.java index b56d4fad..ce2d3ed0 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPresIBSZFM.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPresIBSZFM.java @@ -1,10 +1,8 @@ package br.com.swconsultoria.nfe.schema_4.consReciNFe; -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 javax.xml.bind.annotation.*; +import javax.xml.datatype.XMLGregorianCalendar; /** @@ -19,8 +17,9 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> + * <element name="competApur" type="{http://www.portalfiscal.inf.br/nfe}TCompetApur"/> * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM"/> - * <element name="vCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TDec1302" minOccurs="0"/> + * <element name="vCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -31,16 +30,44 @@ */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TCredPresIBSZFM", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "competApur", "tpCredPresIBSZFM", "vCredPresIBSZFM" }) public class TCredPresIBSZFM { + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlSchemaType(name = "gYearMonth") + protected XMLGregorianCalendar competApur; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String tpCredPresIBSZFM; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String vCredPresIBSZFM; + /** + * Obtém o valor da propriedade competApur. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getCompetApur() { + return competApur; + } + + /** + * Define o valor da propriedade competApur. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setCompetApur(XMLGregorianCalendar value) { + this.competApur = value; + } + /** * Obtém o valor da propriedade tpCredPresIBSZFM. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPresOper.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPresOper.java new file mode 100644 index 00000000..ee39f64f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TCredPresOper.java @@ -0,0 +1,148 @@ + +package br.com.swconsultoria.nfe.schema_4.consReciNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Crédito Presumido da Operação + * + *

Classe Java de TCredPresOper complex type. + * + *

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

+ * <complexType name="TCredPresOper">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="vBCCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *         <element name="cCredPres" type="{http://www.portalfiscal.inf.br/nfe}TcCredPres"/>
+ *         <element name="gIBSCredPres" type="{http://www.portalfiscal.inf.br/nfe}TCredPres" minOccurs="0"/>
+ *         <element name="gCBSCredPres" type="{http://www.portalfiscal.inf.br/nfe}TCredPres" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TCredPresOper", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "vbcCredPres", + "cCredPres", + "gibsCredPres", + "gcbsCredPres" +}) +public class TCredPresOper { + + @XmlElement(name = "vBCCredPres", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vbcCredPres; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cCredPres; + @XmlElement(name = "gIBSCredPres", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCredPres gibsCredPres; + @XmlElement(name = "gCBSCredPres", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCredPres gcbsCredPres; + + /** + * Obtém o valor da propriedade vbcCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVBCCredPres() { + return vbcCredPres; + } + + /** + * Define o valor da propriedade vbcCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVBCCredPres(String value) { + this.vbcCredPres = value; + } + + /** + * Obtém o valor da propriedade cCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCCredPres() { + return cCredPres; + } + + /** + * Define o valor da propriedade cCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCCredPres(String value) { + this.cCredPres = value; + } + + /** + * Obtém o valor da propriedade gibsCredPres. + * + * @return + * possible object is + * {@link TCredPres } + * + */ + public TCredPres getGIBSCredPres() { + return gibsCredPres; + } + + /** + * Define o valor da propriedade gibsCredPres. + * + * @param value + * allowed object is + * {@link TCredPres } + * + */ + public void setGIBSCredPres(TCredPres value) { + this.gibsCredPres = value; + } + + /** + * Obtém o valor da propriedade gcbsCredPres. + * + * @return + * possible object is + * {@link TCredPres } + * + */ + public TCredPres getGCBSCredPres() { + return gcbsCredPres; + } + + /** + * Define o valor da propriedade gcbsCredPres. + * + * @param value + * allowed object is + * {@link TCredPres } + * + */ + public void setGCBSCredPres(TCredPres value) { + this.gcbsCredPres = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TDevTrib.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TDevTrib.java index 7737ef63..5fa18493 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TDevTrib.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TDevTrib.java @@ -19,7 +19,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TDif.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TDif.java index 2bc4d212..e614408e 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TDif.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TDif.java @@ -19,8 +19,8 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pDif" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pDif" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TEstornoCred.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TEstornoCred.java new file mode 100644 index 00000000..cd003d1a --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TEstornoCred.java @@ -0,0 +1,92 @@ + +package br.com.swconsultoria.nfe.schema_4.consReciNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Estorno de Crédito + * + *

Classe Java de TEstornoCred complex type. + * + *

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

+ * <complexType name="TEstornoCred">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *         <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEstornoCred", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "vibsEstCred", + "vcbsEstCred" +}) +public class TEstornoCred { + + @XmlElement(name = "vIBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsEstCred; + @XmlElement(name = "vCBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsEstCred; + + /** + * Obtém o valor da propriedade vibsEstCred. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBSEstCred() { + return vibsEstCred; + } + + /** + * Define o valor da propriedade vibsEstCred. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBSEstCred(String value) { + this.vibsEstCred = value; + } + + /** + * Obtém o valor da propriedade vcbsEstCred. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBSEstCred() { + return vcbsEstCred; + } + + /** + * Define o valor da propriedade vcbsEstCred. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBSEstCred(String value) { + this.vcbsEstCred = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIBSCBSMonoTot.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIBSCBSMonoTot.java index e8bb533c..57d539d2 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIBSCBSMonoTot.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIBSCBSMonoTot.java @@ -19,7 +19,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vBCIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vBCIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * <element name="gIBS" minOccurs="0"> * <complexType> * <complexContent> @@ -30,9 +30,9 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -43,17 +43,17 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -64,11 +64,11 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -79,12 +79,24 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="gEstornoCred" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -103,7 +115,8 @@ "vbcibscbs", "gibs", "gcbs", - "gMono" + "gMono", + "gEstornoCred" }) public class TIBSCBSMonoTot { @@ -115,6 +128,8 @@ public class TIBSCBSMonoTot { protected TIBSCBSMonoTot.GCBS gcbs; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TIBSCBSMonoTot.GMono gMono; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TIBSCBSMonoTot.GEstornoCred gEstornoCred; /** * Obtém o valor da propriedade vbcibscbs. @@ -212,6 +227,30 @@ public void setGMono(TIBSCBSMonoTot.GMono value) { this.gMono = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TIBSCBSMonoTot.GEstornoCred } + * + */ + public TIBSCBSMonoTot.GEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TIBSCBSMonoTot.GEstornoCred } + * + */ + public void setGEstornoCred(TIBSCBSMonoTot.GEstornoCred value) { + this.gEstornoCred = value; + } + /** *

Classe Java de anonymous complex type. @@ -223,11 +262,11 @@ public void setGMono(TIBSCBSMonoTot.GMono value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -380,6 +419,89 @@ public void setVCredPresCondSus(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">
+     *       <sequence>
+     *         <element name="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+     *         <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibsEstCred", + "vcbsEstCred" + }) + public static class GEstornoCred { + + @XmlElement(name = "vIBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsEstCred; + @XmlElement(name = "vCBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsEstCred; + + /** + * Obtém o valor da propriedade vibsEstCred. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBSEstCred() { + return vibsEstCred; + } + + /** + * Define o valor da propriedade vibsEstCred. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBSEstCred(String value) { + this.vibsEstCred = value; + } + + /** + * Obtém o valor da propriedade vcbsEstCred. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBSEstCred() { + return vcbsEstCred; + } + + /** + * Define o valor da propriedade vcbsEstCred. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBSEstCred(String value) { + this.vcbsEstCred = value; + } + + } + + /** *

Classe Java de anonymous complex type. * @@ -395,9 +517,9 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -408,17 +530,17 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -579,9 +701,9 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -690,9 +812,9 @@ public void setVIBSMun(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -803,12 +925,12 @@ public void setVIBSUF(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIBSCBSTot.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIBSCBSTot.java index cb50dffc..454f466b 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIBSCBSTot.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIBSCBSTot.java @@ -19,7 +19,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vBCIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vBCIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * <element name="gIBS"> * <complexType> * <complexContent> @@ -30,9 +30,9 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -43,17 +43,15 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -64,11 +62,21 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="gEstornoCred" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -86,7 +94,8 @@ @XmlType(name = "TIBSCBSTot", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "vbcibscbs", "gibs", - "gcbs" + "gcbs", + "gEstornoCred" }) public class TIBSCBSTot { @@ -96,6 +105,8 @@ public class TIBSCBSTot { protected TIBSCBSTot.GIBS gibs; @XmlElement(name = "gCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected TIBSCBSTot.GCBS gcbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TIBSCBSTot.GEstornoCred gEstornoCred; /** * Obtém o valor da propriedade vbcibscbs. @@ -169,6 +180,30 @@ public void setGCBS(TIBSCBSTot.GCBS value) { this.gcbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TIBSCBSTot.GEstornoCred } + * + */ + public TIBSCBSTot.GEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TIBSCBSTot.GEstornoCred } + * + */ + public void setGEstornoCred(TIBSCBSTot.GEstornoCred value) { + this.gEstornoCred = value; + } + /** *

Classe Java de anonymous complex type. @@ -180,11 +215,9 @@ public void setGCBS(TIBSCBSTot.GCBS value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -197,9 +230,7 @@ public void setGCBS(TIBSCBSTot.GCBS value) { @XmlType(name = "", propOrder = { "vDif", "vDevTrib", - "vcbs", - "vCredPres", - "vCredPresCondSus" + "vcbs" }) public static class GCBS { @@ -209,10 +240,6 @@ public static class GCBS { protected String vDevTrib; @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String vcbs; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String vCredPres; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String vCredPresCondSus; /** * Obtém o valor da propriedade vDif. @@ -286,52 +313,87 @@ public void setVCBS(String value) { this.vcbs = 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="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+     *         <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibsEstCred", + "vcbsEstCred" + }) + public static class GEstornoCred { + + @XmlElement(name = "vIBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsEstCred; + @XmlElement(name = "vCBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsEstCred; + /** - * Obtém o valor da propriedade vCredPres. + * Obtém o valor da propriedade vibsEstCred. * * @return * possible object is * {@link String } * */ - public String getVCredPres() { - return vCredPres; + public String getVIBSEstCred() { + return vibsEstCred; } /** - * Define o valor da propriedade vCredPres. + * Define o valor da propriedade vibsEstCred. * * @param value * allowed object is * {@link String } * */ - public void setVCredPres(String value) { - this.vCredPres = value; + public void setVIBSEstCred(String value) { + this.vibsEstCred = value; } /** - * Obtém o valor da propriedade vCredPresCondSus. + * Obtém o valor da propriedade vcbsEstCred. * * @return * possible object is * {@link String } * */ - public String getVCredPresCondSus() { - return vCredPresCondSus; + public String getVCBSEstCred() { + return vcbsEstCred; } /** - * Define o valor da propriedade vCredPresCondSus. + * Define o valor da propriedade vcbsEstCred. * * @param value * allowed object is * {@link String } * */ - public void setVCredPresCondSus(String value) { - this.vCredPresCondSus = value; + public void setVCBSEstCred(String value) { + this.vcbsEstCred = value; } } @@ -352,9 +414,9 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -365,17 +427,15 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -388,9 +448,7 @@ public void setVCredPresCondSus(String value) { @XmlType(name = "", propOrder = { "gibsuf", "gibsMun", - "vibs", - "vCredPres", - "vCredPresCondSus" + "vibs" }) public static class GIBS { @@ -400,10 +458,6 @@ public static class GIBS { protected TIBSCBSTot.GIBS.GIBSMun gibsMun; @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String vibs; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String vCredPres; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String vCredPresCondSus; /** * Obtém o valor da propriedade gibsuf. @@ -477,54 +531,6 @@ public void setVIBS(String value) { this.vibs = value; } - /** - * Obtém o valor da propriedade vCredPres. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVCredPres() { - return vCredPres; - } - - /** - * Define o valor da propriedade vCredPres. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVCredPres(String value) { - this.vCredPres = value; - } - - /** - * Obtém o valor da propriedade vCredPresCondSus. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVCredPresCondSus() { - return vCredPresCondSus; - } - - /** - * Define o valor da propriedade vCredPresCondSus. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVCredPresCondSus(String value) { - this.vCredPresCondSus = value; - } - /** *

Classe Java de anonymous complex type. @@ -536,9 +542,9 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -647,9 +653,9 @@ public void setVIBSMun(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIS.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIS.java index 83f92724..bf7b689d 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIS.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TIS.java @@ -22,9 +22,9 @@ * <element name="CSTIS" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTribIS" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> * <sequence minOccurs="0"> - * <element name="vBCIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pIS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="pISEspec" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04" minOccurs="0"/> + * <element name="vBCIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pIS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="pISEspec" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC" minOccurs="0"/> * <sequence minOccurs="0"> * <element name="uTrib"> * <simpleType> @@ -34,9 +34,9 @@ * </restriction> * </simpleType> * </element> - * <element name="qTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> + * <element name="qTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104OpRTC"/> * </sequence> - * <element name="vIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </sequence> * </restriction> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TISTot.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TISTot.java index b148a6a0..cc47435c 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TISTot.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TISTot.java @@ -19,7 +19,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TMonofasia.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TMonofasia.java index 2fbf7796..b0987627 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TMonofasia.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TMonofasia.java @@ -24,11 +24,11 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -39,11 +39,11 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -54,11 +54,11 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -69,17 +69,17 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vTotIBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vTotCBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vTotIBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vTotCBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -267,10 +267,10 @@ public void setVTotCBSMonoItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -406,11 +406,11 @@ public void setVCBSMonoDif(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -573,11 +573,11 @@ public void setVCBSMono(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -740,11 +740,11 @@ public void setVCBSMonoRet(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> 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 1e385c19..6d001b6b 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 @@ -53,6 +53,7 @@ * <element name="nNF" type="{http://www.portalfiscal.inf.br/nfe}TNF"/> * <element name="dhEmi" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/> * <element name="dhSaiEnt" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/> + * <element name="dPrevEntrega" type="{http://www.portalfiscal.inf.br/nfe}TData" minOccurs="0"/> * <element name="tpNF"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -609,6 +610,7 @@ * </complexContent> * </complexType> * </element> + * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM" minOccurs="0"/> * <element name="EXTIPI" minOccurs="0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -3911,6 +3913,7 @@ public void setSignature(SignatureType value) { * <element name="nNF" type="{http://www.portalfiscal.inf.br/nfe}TNF"/> * <element name="dhEmi" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/> * <element name="dhSaiEnt" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/> + * <element name="dPrevEntrega" type="{http://www.portalfiscal.inf.br/nfe}TData" minOccurs="0"/> * <element name="tpNF"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -4467,6 +4470,7 @@ public void setSignature(SignatureType value) { * </complexContent> * </complexType> * </element> + * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM" minOccurs="0"/> * <element name="EXTIPI" minOccurs="0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -10612,6 +10616,7 @@ public void setEmail(String value) { * </complexContent> * </complexType> * </element> + * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM" minOccurs="0"/> * <element name="EXTIPI" minOccurs="0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -14764,18 +14769,18 @@ public void setNItem(String value) { public static class Imposto { @XmlElementRefs({ - @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 = "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 = "IS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "IBSCBS", 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 = "IPI", 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 = "PISST", 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 = "IBSCBS", 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 = "ICMSUFDest", 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 = "COFINSST", 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) }) protected List> content; @@ -14785,8 +14790,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 4337 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd - * linha 4305 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4341 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4309 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: @@ -14807,18 +14812,18 @@ public static class Imposto { * *

* Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@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 TIS }{@code >} - * {@link JAXBElement }{@code <}{@link TTribNFe }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMS }{@code >} - * {@link JAXBElement }{@code <}{@link TIpi }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@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 TTribNFe }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINSST }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} + * {@link JAXBElement }{@code <}{@link TIpi }{@code >} * * */ @@ -28528,6 +28533,7 @@ public void setXCampo(String value) { * </complexContent> * </complexType> * </element> + * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM" minOccurs="0"/> * <element name="EXTIPI" minOccurs="0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -29283,6 +29289,7 @@ public void setXCampo(String value) { "cnpjFab", "cBenef", "gCred", + "tpCredPresIBSZFM", "extipi", "cfop", "uCom", @@ -29338,6 +29345,8 @@ public static class Prod { protected String cBenef; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected List gCred; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpCredPresIBSZFM; @XmlElement(name = "EXTIPI", namespace = "http://www.portalfiscal.inf.br/nfe") protected String extipi; @XmlElement(name = "CFOP", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) @@ -29673,6 +29682,30 @@ public List getGCred() { return this.gCred; } + /** + * Obtém o valor da propriedade tpCredPresIBSZFM. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpCredPresIBSZFM() { + return tpCredPresIBSZFM; + } + + /** + * Define o valor da propriedade tpCredPresIBSZFM. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpCredPresIBSZFM(String value) { + this.tpCredPresIBSZFM = value; + } + /** * Obtém o valor da propriedade extipi. * @@ -34435,6 +34468,7 @@ public void setXLocDespacho(String value) { * <element name="nNF" type="{http://www.portalfiscal.inf.br/nfe}TNF"/> * <element name="dhEmi" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/> * <element name="dhSaiEnt" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/> + * <element name="dPrevEntrega" type="{http://www.portalfiscal.inf.br/nfe}TData" minOccurs="0"/> * <element name="tpNF"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -34693,6 +34727,7 @@ public void setXLocDespacho(String value) { "nnf", "dhEmi", "dhSaiEnt", + "dPrevEntrega", "tpNF", "idDest", "cMunFG", @@ -34733,6 +34768,8 @@ public static class Ide { protected String dhEmi; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String dhSaiEnt; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String dPrevEntrega; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String tpNF; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) @@ -34968,6 +35005,30 @@ public void setDhSaiEnt(String value) { this.dhSaiEnt = value; } + /** + * Obtém o valor da propriedade dPrevEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDPrevEntrega() { + return dPrevEntrega; + } + + /** + * Define o valor da propriedade dPrevEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDPrevEntrega(String value) { + this.dPrevEntrega = value; + } + /** * Obtém o valor da propriedade tpNF. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TRed.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TRed.java index 807e0749..80cdbcca 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TRed.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TRed.java @@ -19,8 +19,8 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pRedAliq" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="pAliqEfet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pRedAliq" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="pAliqEfet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTransfCred.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTransfCred.java index 07c0e600..8b50cb49 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTransfCred.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTransfCred.java @@ -19,8 +19,8 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribBPe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribBPe.java index e147a8a9..79f7c993 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribBPe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribBPe.java @@ -21,7 +21,9 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +36,9 @@ @XmlType(name = "TTribBPe", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", - "gibscbs" + "indDoacao", + "gibscbs", + "gEstornoCred" }) public class TTribBPe { @@ -42,8 +46,12 @@ public class TTribBPe { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; /** * Obtém o valor da propriedade cst. @@ -93,6 +101,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -117,4 +149,28 @@ public void setGIBSCBS(TCIBS value) { this.gibscbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribCTe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribCTe.java index 519f1fd7..ab52e300 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribCTe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribCTe.java @@ -21,7 +21,9 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +36,9 @@ @XmlType(name = "TTribCTe", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", - "gibscbs" + "indDoacao", + "gibscbs", + "gEstornoCred" }) public class TTribCTe { @@ -42,8 +46,12 @@ public class TTribCTe { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; /** * Obtém o valor da propriedade cst. @@ -93,6 +101,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -117,4 +149,28 @@ public void setGIBSCBS(TCIBS value) { this.gibscbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribCompraGov.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribCompraGov.java index cd9e0999..3cf52e59 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribCompraGov.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribCompraGov.java @@ -19,12 +19,12 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pAliqIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pAliqIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pAliqCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pAliqIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pAliqIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pAliqCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNF3E.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNF3E.java index 52f1bc0b..18f8ea10 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNF3E.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNF3E.java @@ -21,7 +21,9 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +36,9 @@ @XmlType(name = "TTribNF3e", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", - "gibscbs" + "indDoacao", + "gibscbs", + "gEstornoCred" }) public class TTribNF3E { @@ -42,8 +46,12 @@ public class TTribNF3E { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; /** * Obtém o valor da propriedade cst. @@ -93,6 +101,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -117,4 +149,28 @@ public void setGIBSCBS(TCIBS value) { this.gibscbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFAg.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFAg.java new file mode 100644 index 00000000..adb50a79 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFAg.java @@ -0,0 +1,176 @@ + +package br.com.swconsultoria.nfe.schema_4.consReciNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Grupo de informações da Tributação da NFAg + * + *

Classe Java de TTribNFAg complex type. + * + *

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

+ * <complexType name="TTribNFAg">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/>
+ *         <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/>
+ *         <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/>
+ *         <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/>
+ *         <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TTribNFAg", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "cst", + "cClassTrib", + "indDoacao", + "gibscbs", + "gEstornoCred" +}) +public class TTribNFAg { + + @XmlElement(name = "CST", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cst; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; + @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = value; + } + + /** + * Obtém o valor da propriedade cClassTrib. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCClassTrib() { + return cClassTrib; + } + + /** + * Define o valor da propriedade cClassTrib. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCClassTrib(String value) { + this.cClassTrib = value; + } + + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + + /** + * Obtém o valor da propriedade gibscbs. + * + * @return + * possible object is + * {@link TCIBS } + * + */ + public TCIBS getGIBSCBS() { + return gibscbs; + } + + /** + * Define o valor da propriedade gibscbs. + * + * @param value + * allowed object is + * {@link TCIBS } + * + */ + public void setGIBSCBS(TCIBS value) { + this.gibscbs = value; + } + + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFCe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFCe.java index 3b99d5ac..388c3287 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFCe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFCe.java @@ -21,6 +21,7 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <choice minOccurs="0"> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS"/> * <element name="gIBSCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TMonofasia"/> @@ -37,6 +38,7 @@ @XmlType(name = "TTribNFCe", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", + "indDoacao", "gibscbs", "gibscbsMono" }) @@ -46,6 +48,8 @@ public class TTribNFCe { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; @XmlElement(name = "gIBSCBSMono", namespace = "http://www.portalfiscal.inf.br/nfe") @@ -99,6 +103,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFCom.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFCom.java index 6f423005..6ff3728a 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFCom.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFCom.java @@ -21,7 +21,9 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +36,9 @@ @XmlType(name = "TTribNFCom", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", - "gibscbs" + "indDoacao", + "gibscbs", + "gEstornoCred" }) public class TTribNFCom { @@ -42,8 +46,12 @@ public class TTribNFCom { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; /** * Obtém o valor da propriedade cst. @@ -93,6 +101,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -117,4 +149,28 @@ public void setGIBSCBS(TCIBS value) { this.gibscbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFGas.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFGas.java new file mode 100644 index 00000000..672381f5 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFGas.java @@ -0,0 +1,206 @@ + +package br.com.swconsultoria.nfe.schema_4.consReciNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Grupo de informações da Tributação da NFGas + * + *

Classe Java de TTribNFGas complex type. + * + *

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

+ * <complexType name="TTribNFGas">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/>
+ *         <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/>
+ *         <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/>
+ *         <choice minOccurs="0">
+ *           <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS"/>
+ *           <element name="gIBSCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TMonofasia"/>
+ *         </choice>
+ *         <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TTribNFGas", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "cst", + "cClassTrib", + "indDoacao", + "gibscbs", + "gibscbsMono", + "gEstornoCred" +}) +public class TTribNFGas { + + @XmlElement(name = "CST", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cst; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; + @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCIBS gibscbs; + @XmlElement(name = "gIBSCBSMono", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TMonofasia gibscbsMono; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = value; + } + + /** + * Obtém o valor da propriedade cClassTrib. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCClassTrib() { + return cClassTrib; + } + + /** + * Define o valor da propriedade cClassTrib. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCClassTrib(String value) { + this.cClassTrib = value; + } + + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + + /** + * Obtém o valor da propriedade gibscbs. + * + * @return + * possible object is + * {@link TCIBS } + * + */ + public TCIBS getGIBSCBS() { + return gibscbs; + } + + /** + * Define o valor da propriedade gibscbs. + * + * @param value + * allowed object is + * {@link TCIBS } + * + */ + public void setGIBSCBS(TCIBS value) { + this.gibscbs = value; + } + + /** + * Obtém o valor da propriedade gibscbsMono. + * + * @return + * possible object is + * {@link TMonofasia } + * + */ + public TMonofasia getGIBSCBSMono() { + return gibscbsMono; + } + + /** + * Define o valor da propriedade gibscbsMono. + * + * @param value + * allowed object is + * {@link TMonofasia } + * + */ + public void setGIBSCBSMono(TMonofasia value) { + this.gibscbsMono = value; + } + + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFe.java index 575f3b36..4c52d640 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribNFe.java @@ -21,12 +21,18 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <choice minOccurs="0"> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS"/> * <element name="gIBSCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TMonofasia"/> * <element name="gTransfCred" type="{http://www.portalfiscal.inf.br/nfe}TTransfCred"/> + * <element name="gAjusteCompet" type="{http://www.portalfiscal.inf.br/nfe}TAjusteCompet"/> + * </choice> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> + * <choice minOccurs="0"> + * <element name="gCredPresOper" type="{http://www.portalfiscal.inf.br/nfe}TCredPresOper"/> + * <element name="gCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TCredPresIBSZFM"/> * </choice> - * <element name="gCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TCredPresIBSZFM" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -39,9 +45,13 @@ @XmlType(name = "TTribNFe", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", + "indDoacao", "gibscbs", "gibscbsMono", "gTransfCred", + "gAjusteCompet", + "gEstornoCred", + "gCredPresOper", "gCredPresIBSZFM" }) public class TTribNFe { @@ -50,6 +60,8 @@ public class TTribNFe { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; @XmlElement(name = "gIBSCBSMono", namespace = "http://www.portalfiscal.inf.br/nfe") @@ -57,6 +69,12 @@ public class TTribNFe { @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TTransfCred gTransfCred; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TAjusteCompet gAjusteCompet; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCredPresOper gCredPresOper; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TCredPresIBSZFM gCredPresIBSZFM; /** @@ -107,6 +125,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -179,6 +221,78 @@ public void setGTransfCred(TTransfCred value) { this.gTransfCred = value; } + /** + * Obtém o valor da propriedade gAjusteCompet. + * + * @return + * possible object is + * {@link TAjusteCompet } + * + */ + public TAjusteCompet getGAjusteCompet() { + return gAjusteCompet; + } + + /** + * Define o valor da propriedade gAjusteCompet. + * + * @param value + * allowed object is + * {@link TAjusteCompet } + * + */ + public void setGAjusteCompet(TAjusteCompet value) { + this.gAjusteCompet = value; + } + + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + + /** + * Obtém o valor da propriedade gCredPresOper. + * + * @return + * possible object is + * {@link TCredPresOper } + * + */ + public TCredPresOper getGCredPresOper() { + return gCredPresOper; + } + + /** + * Define o valor da propriedade gCredPresOper. + * + * @param value + * allowed object is + * {@link TCredPresOper } + * + */ + public void setGCredPresOper(TCredPresOper value) { + this.gCredPresOper = value; + } + /** * Obtém o valor da propriedade gCredPresIBSZFM. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribRegular.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribRegular.java index e8119d77..99901090 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribRegular.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/TTribRegular.java @@ -21,12 +21,12 @@ * <sequence> * <element name="CSTReg" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTribReg" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> - * <element name="pAliqEfetRegIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribRegIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pAliqEfetRegIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribRegIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pAliqEfetRegCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribRegCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pAliqEfetRegIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribRegIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pAliqEfetRegIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribRegIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pAliqEfetRegCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribRegCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> 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 3e968127..17e5c0d8 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 @@ -366,6 +366,14 @@ public TEnderEmi createTEnderEmi() { return new TEnderEmi(); } + /** + * Create an instance of {@link TCredPresOper } + * + */ + public TCredPresOper createTCredPresOper() { + return new TCredPresOper(); + } + /** * Create an instance of {@link TEndereco } * @@ -390,6 +398,14 @@ public TCredPresIBSZFM createTCredPresIBSZFM() { return new TCredPresIBSZFM(); } + /** + * Create an instance of {@link TAjusteCompet } + * + */ + public TAjusteCompet createTAjusteCompet() { + return new TAjusteCompet(); + } + /** * Create an instance of {@link TNfeProc } * @@ -446,6 +462,14 @@ public TVeiculo createTVeiculo() { return new TVeiculo(); } + /** + * Create an instance of {@link TTribNFAg } + * + */ + public TTribNFAg createTTribNFAg() { + return new TTribNFAg(); + } + /** * Create an instance of {@link TCompraGovReduzido } * @@ -478,6 +502,14 @@ public TRed createTRed() { return new TRed(); } + /** + * Create an instance of {@link TTribNFGas } + * + */ + public TTribNFGas createTTribNFGas() { + return new TTribNFGas(); + } + /** * Create an instance of {@link TTribNF3E } * @@ -526,6 +558,14 @@ public TTribRegular createTTribRegular() { return new TTribRegular(); } + /** + * Create an instance of {@link TEstornoCred } + * + */ + public TEstornoCred createTEstornoCred() { + return new TEstornoCred(); + } + /** * Create an instance of {@link TRetConsReciNFe } * @@ -1262,6 +1302,14 @@ public TIBSCBSMonoTot.GMono createTIBSCBSMonoTotGMono() { return new TIBSCBSMonoTot.GMono(); } + /** + * Create an instance of {@link TIBSCBSMonoTot.GEstornoCred } + * + */ + public TIBSCBSMonoTot.GEstornoCred createTIBSCBSMonoTotGEstornoCred() { + return new TIBSCBSMonoTot.GEstornoCred(); + } + /** * Create an instance of {@link TIBSCBSMonoTot.GIBS.GIBSUF } * @@ -1294,6 +1342,14 @@ public TIBSCBSTot.GCBS createTIBSCBSTotGCBS() { return new TIBSCBSTot.GCBS(); } + /** + * Create an instance of {@link TIBSCBSTot.GEstornoCred } + * + */ + public TIBSCBSTot.GEstornoCred createTIBSCBSTotGEstornoCred() { + return new TIBSCBSTot.GEstornoCred(); + } + /** * Create an instance of {@link TIBSCBSTot.GIBS.GIBSUF } * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TAjusteCompet.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TAjusteCompet.java new file mode 100644 index 00000000..29a67974 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TAjusteCompet.java @@ -0,0 +1,119 @@ + +package br.com.swconsultoria.nfe.schema_4.enviNFe; + +import javax.xml.bind.annotation.*; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + * Tipo Ajuste de Competência + * + *

Classe Java de TAjusteCompet complex type. + * + *

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

+ * <complexType name="TAjusteCompet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="competApur" type="{http://www.portalfiscal.inf.br/nfe}TCompetApur"/>
+ *         <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *         <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TAjusteCompet", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "competApur", + "vibs", + "vcbs" +}) +public class TAjusteCompet { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlSchemaType(name = "gYearMonth") + protected XMLGregorianCalendar competApur; + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; + @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbs; + + /** + * Obtém o valor da propriedade competApur. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getCompetApur() { + return competApur; + } + + /** + * Define o valor da propriedade competApur. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setCompetApur(XMLGregorianCalendar value) { + this.competApur = value; + } + + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + + /** + * Obtém o valor da propriedade vcbs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBS() { + return vcbs; + } + + /** + * Define o valor da propriedade vcbs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBS(String value) { + this.vcbs = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCIBS.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCIBS.java index ca18d8c9..db0b2c85 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCIBS.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCIBS.java @@ -19,18 +19,18 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vBC" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vBC" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * <sequence> * <element name="gIBSUF"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -41,36 +41,34 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * <element name="gCBS"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="gTribRegular" type="{http://www.portalfiscal.inf.br/nfe}TTribRegular" minOccurs="0"/> - * <element name="gIBSCredPres" type="{http://www.portalfiscal.inf.br/nfe}TCredPres" minOccurs="0"/> - * <element name="gCBSCredPres" type="{http://www.portalfiscal.inf.br/nfe}TCredPres" minOccurs="0"/> * <element name="gTribCompraGov" type="{http://www.portalfiscal.inf.br/nfe}TTribCompraGov" minOccurs="0"/> * </sequence> * </restriction> @@ -88,8 +86,6 @@ "vibs", "gcbs", "gTribRegular", - "gibsCredPres", - "gcbsCredPres", "gTribCompraGov" }) public class TCIBS { @@ -106,10 +102,6 @@ public class TCIBS { protected TCIBS.GCBS gcbs; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TTribRegular gTribRegular; - @XmlElement(name = "gIBSCredPres", namespace = "http://www.portalfiscal.inf.br/nfe") - protected TCredPres gibsCredPres; - @XmlElement(name = "gCBSCredPres", namespace = "http://www.portalfiscal.inf.br/nfe") - protected TCredPres gcbsCredPres; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TTribCompraGov gTribCompraGov; @@ -257,54 +249,6 @@ public void setGTribRegular(TTribRegular value) { this.gTribRegular = value; } - /** - * Obtém o valor da propriedade gibsCredPres. - * - * @return - * possible object is - * {@link TCredPres } - * - */ - public TCredPres getGIBSCredPres() { - return gibsCredPres; - } - - /** - * Define o valor da propriedade gibsCredPres. - * - * @param value - * allowed object is - * {@link TCredPres } - * - */ - public void setGIBSCredPres(TCredPres value) { - this.gibsCredPres = value; - } - - /** - * Obtém o valor da propriedade gcbsCredPres. - * - * @return - * possible object is - * {@link TCredPres } - * - */ - public TCredPres getGCBSCredPres() { - return gcbsCredPres; - } - - /** - * Define o valor da propriedade gcbsCredPres. - * - * @param value - * allowed object is - * {@link TCredPres } - * - */ - public void setGCBSCredPres(TCredPres value) { - this.gcbsCredPres = value; - } - /** * Obtém o valor da propriedade gTribCompraGov. * @@ -340,11 +284,11 @@ public void setGTribCompraGov(TTribCompraGov value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -507,11 +451,11 @@ public void setVCBS(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -674,11 +618,11 @@ public void setVIBSMun(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCompraGov.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCompraGov.java index 82e58fa4..163be1cf 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCompraGov.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCompraGov.java @@ -20,7 +20,7 @@ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="tpEnteGov" type="{http://www.portalfiscal.inf.br/nfe}TEnteGov"/> - * <element name="pRedutor" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pRedutor" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="tpOperGov" type="{http://www.portalfiscal.inf.br/nfe}TOperCompraGov"/> * </sequence> * </restriction> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCompraGovReduzido.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCompraGovReduzido.java index 4f82be56..d9b3726a 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCompraGovReduzido.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCompraGovReduzido.java @@ -20,7 +20,7 @@ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="tpEnteGov" type="{http://www.portalfiscal.inf.br/nfe}TEnteGov"/> - * <element name="pRedutor" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pRedutor" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPres.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPres.java index a528beda..d1095a07 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPres.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPres.java @@ -19,11 +19,10 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="cCredPres" type="{http://www.portalfiscal.inf.br/nfe}TcCredPres"/> - * <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <choice> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </choice> * </sequence> * </restriction> @@ -35,15 +34,12 @@ */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TCredPres", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { - "cCredPres", "pCredPres", "vCredPres", "vCredPresCondSus" }) public class TCredPres { - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String cCredPres; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String pCredPres; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") @@ -51,30 +47,6 @@ public class TCredPres { @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String vCredPresCondSus; - /** - * Obtém o valor da propriedade cCredPres. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCCredPres() { - return cCredPres; - } - - /** - * Define o valor da propriedade cCredPres. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCCredPres(String value) { - this.cCredPres = value; - } - /** * Obtém o valor da propriedade pCredPres. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPresIBSZFM.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPresIBSZFM.java index 7264e967..9d6c8829 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPresIBSZFM.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPresIBSZFM.java @@ -1,10 +1,8 @@ package br.com.swconsultoria.nfe.schema_4.enviNFe; -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 javax.xml.bind.annotation.*; +import javax.xml.datatype.XMLGregorianCalendar; /** @@ -19,8 +17,9 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> + * <element name="competApur" type="{http://www.portalfiscal.inf.br/nfe}TCompetApur"/> * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM"/> - * <element name="vCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TDec1302" minOccurs="0"/> + * <element name="vCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -31,16 +30,44 @@ */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TCredPresIBSZFM", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "competApur", "tpCredPresIBSZFM", "vCredPresIBSZFM" }) public class TCredPresIBSZFM { + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + @XmlSchemaType(name = "gYearMonth") + protected XMLGregorianCalendar competApur; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String tpCredPresIBSZFM; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String vCredPresIBSZFM; + /** + * Obtém o valor da propriedade competApur. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getCompetApur() { + return competApur; + } + + /** + * Define o valor da propriedade competApur. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setCompetApur(XMLGregorianCalendar value) { + this.competApur = value; + } + /** * Obtém o valor da propriedade tpCredPresIBSZFM. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPresOper.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPresOper.java new file mode 100644 index 00000000..5f9217da --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TCredPresOper.java @@ -0,0 +1,148 @@ + +package br.com.swconsultoria.nfe.schema_4.enviNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Crédito Presumido da Operação + * + *

Classe Java de TCredPresOper complex type. + * + *

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

+ * <complexType name="TCredPresOper">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="vBCCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *         <element name="cCredPres" type="{http://www.portalfiscal.inf.br/nfe}TcCredPres"/>
+ *         <element name="gIBSCredPres" type="{http://www.portalfiscal.inf.br/nfe}TCredPres" minOccurs="0"/>
+ *         <element name="gCBSCredPres" type="{http://www.portalfiscal.inf.br/nfe}TCredPres" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TCredPresOper", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "vbcCredPres", + "cCredPres", + "gibsCredPres", + "gcbsCredPres" +}) +public class TCredPresOper { + + @XmlElement(name = "vBCCredPres", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vbcCredPres; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cCredPres; + @XmlElement(name = "gIBSCredPres", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCredPres gibsCredPres; + @XmlElement(name = "gCBSCredPres", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCredPres gcbsCredPres; + + /** + * Obtém o valor da propriedade vbcCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVBCCredPres() { + return vbcCredPres; + } + + /** + * Define o valor da propriedade vbcCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVBCCredPres(String value) { + this.vbcCredPres = value; + } + + /** + * Obtém o valor da propriedade cCredPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCCredPres() { + return cCredPres; + } + + /** + * Define o valor da propriedade cCredPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCCredPres(String value) { + this.cCredPres = value; + } + + /** + * Obtém o valor da propriedade gibsCredPres. + * + * @return + * possible object is + * {@link TCredPres } + * + */ + public TCredPres getGIBSCredPres() { + return gibsCredPres; + } + + /** + * Define o valor da propriedade gibsCredPres. + * + * @param value + * allowed object is + * {@link TCredPres } + * + */ + public void setGIBSCredPres(TCredPres value) { + this.gibsCredPres = value; + } + + /** + * Obtém o valor da propriedade gcbsCredPres. + * + * @return + * possible object is + * {@link TCredPres } + * + */ + public TCredPres getGCBSCredPres() { + return gcbsCredPres; + } + + /** + * Define o valor da propriedade gcbsCredPres. + * + * @param value + * allowed object is + * {@link TCredPres } + * + */ + public void setGCBSCredPres(TCredPres value) { + this.gcbsCredPres = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TDevTrib.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TDevTrib.java index 919e614f..f89574a4 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TDevTrib.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TDevTrib.java @@ -19,7 +19,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TDif.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TDif.java index 98dd87b6..49820204 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TDif.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TDif.java @@ -19,8 +19,8 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pDif" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pDif" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TEstornoCred.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TEstornoCred.java new file mode 100644 index 00000000..70f6780f --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TEstornoCred.java @@ -0,0 +1,92 @@ + +package br.com.swconsultoria.nfe.schema_4.enviNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Estorno de Crédito + * + *

Classe Java de TEstornoCred complex type. + * + *

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

+ * <complexType name="TEstornoCred">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *         <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEstornoCred", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "vibsEstCred", + "vcbsEstCred" +}) +public class TEstornoCred { + + @XmlElement(name = "vIBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsEstCred; + @XmlElement(name = "vCBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsEstCred; + + /** + * Obtém o valor da propriedade vibsEstCred. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBSEstCred() { + return vibsEstCred; + } + + /** + * Define o valor da propriedade vibsEstCred. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBSEstCred(String value) { + this.vibsEstCred = value; + } + + /** + * Obtém o valor da propriedade vcbsEstCred. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBSEstCred() { + return vcbsEstCred; + } + + /** + * Define o valor da propriedade vcbsEstCred. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBSEstCred(String value) { + this.vcbsEstCred = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIBSCBSMonoTot.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIBSCBSMonoTot.java index dc24eb7d..e07faa44 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIBSCBSMonoTot.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIBSCBSMonoTot.java @@ -19,7 +19,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vBCIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vBCIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * <element name="gIBS" minOccurs="0"> * <complexType> * <complexContent> @@ -30,9 +30,9 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -43,17 +43,17 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -64,11 +64,11 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -79,12 +79,24 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="gEstornoCred" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -103,7 +115,8 @@ "vbcibscbs", "gibs", "gcbs", - "gMono" + "gMono", + "gEstornoCred" }) public class TIBSCBSMonoTot { @@ -115,6 +128,8 @@ public class TIBSCBSMonoTot { protected TIBSCBSMonoTot.GCBS gcbs; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TIBSCBSMonoTot.GMono gMono; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TIBSCBSMonoTot.GEstornoCred gEstornoCred; /** * Obtém o valor da propriedade vbcibscbs. @@ -212,6 +227,30 @@ public void setGMono(TIBSCBSMonoTot.GMono value) { this.gMono = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TIBSCBSMonoTot.GEstornoCred } + * + */ + public TIBSCBSMonoTot.GEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TIBSCBSMonoTot.GEstornoCred } + * + */ + public void setGEstornoCred(TIBSCBSMonoTot.GEstornoCred value) { + this.gEstornoCred = value; + } + /** *

Classe Java de anonymous complex type. @@ -223,11 +262,11 @@ public void setGMono(TIBSCBSMonoTot.GMono value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -380,6 +419,89 @@ public void setVCredPresCondSus(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">
+     *       <sequence>
+     *         <element name="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+     *         <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibsEstCred", + "vcbsEstCred" + }) + public static class GEstornoCred { + + @XmlElement(name = "vIBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsEstCred; + @XmlElement(name = "vCBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsEstCred; + + /** + * Obtém o valor da propriedade vibsEstCred. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBSEstCred() { + return vibsEstCred; + } + + /** + * Define o valor da propriedade vibsEstCred. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBSEstCred(String value) { + this.vibsEstCred = value; + } + + /** + * Obtém o valor da propriedade vcbsEstCred. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBSEstCred() { + return vcbsEstCred; + } + + /** + * Define o valor da propriedade vcbsEstCred. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBSEstCred(String value) { + this.vcbsEstCred = value; + } + + } + + /** *

Classe Java de anonymous complex type. * @@ -395,9 +517,9 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -408,17 +530,17 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -579,9 +701,9 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -690,9 +812,9 @@ public void setVIBSMun(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -803,12 +925,12 @@ public void setVIBSUF(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIBSCBSTot.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIBSCBSTot.java index c8b2f883..9b79c32f 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIBSCBSTot.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIBSCBSTot.java @@ -19,7 +19,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vBCIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vBCIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * <element name="gIBS"> * <complexType> * <complexContent> @@ -30,9 +30,9 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -43,17 +43,15 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -64,11 +62,21 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="gEstornoCred" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -86,7 +94,8 @@ @XmlType(name = "TIBSCBSTot", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "vbcibscbs", "gibs", - "gcbs" + "gcbs", + "gEstornoCred" }) public class TIBSCBSTot { @@ -96,6 +105,8 @@ public class TIBSCBSTot { protected TIBSCBSTot.GIBS gibs; @XmlElement(name = "gCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected TIBSCBSTot.GCBS gcbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TIBSCBSTot.GEstornoCred gEstornoCred; /** * Obtém o valor da propriedade vbcibscbs. @@ -169,6 +180,30 @@ public void setGCBS(TIBSCBSTot.GCBS value) { this.gcbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TIBSCBSTot.GEstornoCred } + * + */ + public TIBSCBSTot.GEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TIBSCBSTot.GEstornoCred } + * + */ + public void setGEstornoCred(TIBSCBSTot.GEstornoCred value) { + this.gEstornoCred = value; + } + /** *

Classe Java de anonymous complex type. @@ -180,11 +215,9 @@ public void setGCBS(TIBSCBSTot.GCBS value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -197,9 +230,7 @@ public void setGCBS(TIBSCBSTot.GCBS value) { @XmlType(name = "", propOrder = { "vDif", "vDevTrib", - "vcbs", - "vCredPres", - "vCredPresCondSus" + "vcbs" }) public static class GCBS { @@ -209,10 +240,6 @@ public static class GCBS { protected String vDevTrib; @XmlElement(name = "vCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String vcbs; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String vCredPres; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String vCredPresCondSus; /** * Obtém o valor da propriedade vDif. @@ -286,52 +313,87 @@ public void setVCBS(String value) { this.vcbs = 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="vIBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+     *         <element name="vCBSEstCred" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vibsEstCred", + "vcbsEstCred" + }) + public static class GEstornoCred { + + @XmlElement(name = "vIBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsEstCred; + @XmlElement(name = "vCBSEstCred", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsEstCred; + /** - * Obtém o valor da propriedade vCredPres. + * Obtém o valor da propriedade vibsEstCred. * * @return * possible object is * {@link String } * */ - public String getVCredPres() { - return vCredPres; + public String getVIBSEstCred() { + return vibsEstCred; } /** - * Define o valor da propriedade vCredPres. + * Define o valor da propriedade vibsEstCred. * * @param value * allowed object is * {@link String } * */ - public void setVCredPres(String value) { - this.vCredPres = value; + public void setVIBSEstCred(String value) { + this.vibsEstCred = value; } /** - * Obtém o valor da propriedade vCredPresCondSus. + * Obtém o valor da propriedade vcbsEstCred. * * @return * possible object is * {@link String } * */ - public String getVCredPresCondSus() { - return vCredPresCondSus; + public String getVCBSEstCred() { + return vcbsEstCred; } /** - * Define o valor da propriedade vCredPresCondSus. + * Define o valor da propriedade vcbsEstCred. * * @param value * allowed object is * {@link String } * */ - public void setVCredPresCondSus(String value) { - this.vCredPresCondSus = value; + public void setVCBSEstCred(String value) { + this.vcbsEstCred = value; } } @@ -352,9 +414,9 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -365,17 +427,15 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPres" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCredPresCondSus" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -388,9 +448,7 @@ public void setVCredPresCondSus(String value) { @XmlType(name = "", propOrder = { "gibsuf", "gibsMun", - "vibs", - "vCredPres", - "vCredPresCondSus" + "vibs" }) public static class GIBS { @@ -400,10 +458,6 @@ public static class GIBS { protected TIBSCBSTot.GIBS.GIBSMun gibsMun; @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String vibs; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String vCredPres; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) - protected String vCredPresCondSus; /** * Obtém o valor da propriedade gibsuf. @@ -477,54 +531,6 @@ public void setVIBS(String value) { this.vibs = value; } - /** - * Obtém o valor da propriedade vCredPres. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVCredPres() { - return vCredPres; - } - - /** - * Define o valor da propriedade vCredPres. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVCredPres(String value) { - this.vCredPres = value; - } - - /** - * Obtém o valor da propriedade vCredPresCondSus. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVCredPresCondSus() { - return vCredPresCondSus; - } - - /** - * Define o valor da propriedade vCredPresCondSus. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVCredPresCondSus(String value) { - this.vCredPresCondSus = value; - } - /** *

Classe Java de anonymous complex type. @@ -536,9 +542,9 @@ public void setVCredPresCondSus(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -647,9 +653,9 @@ public void setVIBSMun(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIS.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIS.java index 33950060..ff455ce7 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIS.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TIS.java @@ -22,9 +22,9 @@ * <element name="CSTIS" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTribIS" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> * <sequence minOccurs="0"> - * <element name="vBCIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pIS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="pISEspec" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04" minOccurs="0"/> + * <element name="vBCIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pIS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="pISEspec" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC" minOccurs="0"/> * <sequence minOccurs="0"> * <element name="uTrib"> * <simpleType> @@ -34,9 +34,9 @@ * </restriction> * </simpleType> * </element> - * <element name="qTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> + * <element name="qTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104OpRTC"/> * </sequence> - * <element name="vIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </sequence> * </restriction> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TISTot.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TISTot.java index d60d757d..e8fa2061 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TISTot.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TISTot.java @@ -19,7 +19,7 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TMonofasia.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TMonofasia.java index 3ed4cc39..685a417e 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TMonofasia.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TMonofasia.java @@ -24,11 +24,11 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -39,11 +39,11 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -54,11 +54,11 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -69,17 +69,17 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> - * <element name="vTotIBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vTotCBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vTotIBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vTotCBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -267,10 +267,10 @@ public void setVTotCBSMonoItem(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -406,11 +406,11 @@ public void setVCBSMonoDif(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -573,11 +573,11 @@ public void setVCBSMono(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> @@ -740,11 +740,11 @@ public void setVCBSMonoRet(String value) { * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1104RTC"/> + * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> 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 e72b39cb..77e185c3 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 @@ -53,6 +53,7 @@ * <element name="nNF" type="{http://www.portalfiscal.inf.br/nfe}TNF"/> * <element name="dhEmi" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/> * <element name="dhSaiEnt" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/> + * <element name="dPrevEntrega" type="{http://www.portalfiscal.inf.br/nfe}TData" minOccurs="0"/> * <element name="tpNF"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -609,6 +610,7 @@ * </complexContent> * </complexType> * </element> + * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM" minOccurs="0"/> * <element name="EXTIPI" minOccurs="0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -3911,6 +3913,7 @@ public void setSignature(SignatureType value) { * <element name="nNF" type="{http://www.portalfiscal.inf.br/nfe}TNF"/> * <element name="dhEmi" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/> * <element name="dhSaiEnt" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/> + * <element name="dPrevEntrega" type="{http://www.portalfiscal.inf.br/nfe}TData" minOccurs="0"/> * <element name="tpNF"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -4467,6 +4470,7 @@ public void setSignature(SignatureType value) { * </complexContent> * </complexType> * </element> + * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM" minOccurs="0"/> * <element name="EXTIPI" minOccurs="0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -10612,6 +10616,7 @@ public void setEmail(String value) { * </complexContent> * </complexType> * </element> + * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM" minOccurs="0"/> * <element name="EXTIPI" minOccurs="0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -14764,18 +14769,18 @@ public void setNItem(String value) { public static class Imposto { @XmlElementRefs({ - @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 = "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 = "IS", 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 = "ISSQN", 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 = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "IBSCBS", 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 = "ICMS", 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 = "COFINSST", 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 = "COFINS", 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; @@ -14785,8 +14790,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 4337 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd - * linha 4305 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4341 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4309 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: @@ -14807,18 +14812,18 @@ public static class Imposto { * *

* Objects of the following type(s) are allowed in the list - * {@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 String }{@code >} * {@link JAXBElement }{@code <}{@link TIS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINSST }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMS }{@code >} + * {@link JAXBElement }{@code <}{@link TIpi }{@code >} * {@link JAXBElement }{@code <}{@link TTribNFe }{@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.ICMS }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINSST }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} * * */ @@ -28528,6 +28533,7 @@ public void setXCampo(String value) { * </complexContent> * </complexType> * </element> + * <element name="tpCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TTpCredPresIBSZFM" minOccurs="0"/> * <element name="EXTIPI" minOccurs="0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -29283,6 +29289,7 @@ public void setXCampo(String value) { "cnpjFab", "cBenef", "gCred", + "tpCredPresIBSZFM", "extipi", "cfop", "uCom", @@ -29338,6 +29345,8 @@ public static class Prod { protected String cBenef; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected List gCred; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String tpCredPresIBSZFM; @XmlElement(name = "EXTIPI", namespace = "http://www.portalfiscal.inf.br/nfe") protected String extipi; @XmlElement(name = "CFOP", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) @@ -29673,6 +29682,30 @@ public List getGCred() { return this.gCred; } + /** + * Obtém o valor da propriedade tpCredPresIBSZFM. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpCredPresIBSZFM() { + return tpCredPresIBSZFM; + } + + /** + * Define o valor da propriedade tpCredPresIBSZFM. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpCredPresIBSZFM(String value) { + this.tpCredPresIBSZFM = value; + } + /** * Obtém o valor da propriedade extipi. * @@ -34435,6 +34468,7 @@ public void setXLocDespacho(String value) { * <element name="nNF" type="{http://www.portalfiscal.inf.br/nfe}TNF"/> * <element name="dhEmi" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/> * <element name="dhSaiEnt" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC" minOccurs="0"/> + * <element name="dPrevEntrega" type="{http://www.portalfiscal.inf.br/nfe}TData" minOccurs="0"/> * <element name="tpNF"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> @@ -34693,6 +34727,7 @@ public void setXLocDespacho(String value) { "nnf", "dhEmi", "dhSaiEnt", + "dPrevEntrega", "tpNF", "idDest", "cMunFG", @@ -34733,6 +34768,8 @@ public static class Ide { protected String dhEmi; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected String dhSaiEnt; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String dPrevEntrega; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String tpNF; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) @@ -34968,6 +35005,30 @@ public void setDhSaiEnt(String value) { this.dhSaiEnt = value; } + /** + * Obtém o valor da propriedade dPrevEntrega. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDPrevEntrega() { + return dPrevEntrega; + } + + /** + * Define o valor da propriedade dPrevEntrega. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDPrevEntrega(String value) { + this.dPrevEntrega = value; + } + /** * Obtém o valor da propriedade tpNF. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TRed.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TRed.java index d6add073..5dff3657 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TRed.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TRed.java @@ -19,8 +19,8 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pRedAliq" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="pAliqEfet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="pRedAliq" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="pAliqEfet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTransfCred.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTransfCred.java index 27c0117f..49a20b9e 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTransfCred.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTransfCred.java @@ -19,8 +19,8 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribBPe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribBPe.java index 2b96edae..6342722a 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribBPe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribBPe.java @@ -21,7 +21,9 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +36,9 @@ @XmlType(name = "TTribBPe", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", - "gibscbs" + "indDoacao", + "gibscbs", + "gEstornoCred" }) public class TTribBPe { @@ -42,8 +46,12 @@ public class TTribBPe { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; /** * Obtém o valor da propriedade cst. @@ -93,6 +101,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -117,4 +149,28 @@ public void setGIBSCBS(TCIBS value) { this.gibscbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribCTe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribCTe.java index 699cca75..bba8efa1 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribCTe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribCTe.java @@ -21,7 +21,9 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +36,9 @@ @XmlType(name = "TTribCTe", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", - "gibscbs" + "indDoacao", + "gibscbs", + "gEstornoCred" }) public class TTribCTe { @@ -42,8 +46,12 @@ public class TTribCTe { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; /** * Obtém o valor da propriedade cst. @@ -93,6 +101,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -117,4 +149,28 @@ public void setGIBSCBS(TCIBS value) { this.gibscbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribCompraGov.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribCompraGov.java index 019d2f00..a6156671 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribCompraGov.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribCompraGov.java @@ -19,12 +19,12 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <element name="pAliqIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pAliqIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pAliqCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pAliqIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pAliqIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pAliqCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNF3E.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNF3E.java index 4afba9fa..01a1f897 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNF3E.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNF3E.java @@ -21,7 +21,9 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +36,9 @@ @XmlType(name = "TTribNF3e", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", - "gibscbs" + "indDoacao", + "gibscbs", + "gEstornoCred" }) public class TTribNF3E { @@ -42,8 +46,12 @@ public class TTribNF3E { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; /** * Obtém o valor da propriedade cst. @@ -93,6 +101,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -117,4 +149,28 @@ public void setGIBSCBS(TCIBS value) { this.gibscbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFAg.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFAg.java new file mode 100644 index 00000000..678ef8b7 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFAg.java @@ -0,0 +1,176 @@ + +package br.com.swconsultoria.nfe.schema_4.enviNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Grupo de informações da Tributação da NFAg + * + *

Classe Java de TTribNFAg complex type. + * + *

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

+ * <complexType name="TTribNFAg">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/>
+ *         <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/>
+ *         <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/>
+ *         <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/>
+ *         <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TTribNFAg", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "cst", + "cClassTrib", + "indDoacao", + "gibscbs", + "gEstornoCred" +}) +public class TTribNFAg { + + @XmlElement(name = "CST", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cst; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; + @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = value; + } + + /** + * Obtém o valor da propriedade cClassTrib. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCClassTrib() { + return cClassTrib; + } + + /** + * Define o valor da propriedade cClassTrib. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCClassTrib(String value) { + this.cClassTrib = value; + } + + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + + /** + * Obtém o valor da propriedade gibscbs. + * + * @return + * possible object is + * {@link TCIBS } + * + */ + public TCIBS getGIBSCBS() { + return gibscbs; + } + + /** + * Define o valor da propriedade gibscbs. + * + * @param value + * allowed object is + * {@link TCIBS } + * + */ + public void setGIBSCBS(TCIBS value) { + this.gibscbs = value; + } + + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFCe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFCe.java index b25e3ea6..652ef828 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFCe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFCe.java @@ -21,6 +21,7 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <choice minOccurs="0"> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS"/> * <element name="gIBSCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TMonofasia"/> @@ -37,6 +38,7 @@ @XmlType(name = "TTribNFCe", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", + "indDoacao", "gibscbs", "gibscbsMono" }) @@ -46,6 +48,8 @@ public class TTribNFCe { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; @XmlElement(name = "gIBSCBSMono", namespace = "http://www.portalfiscal.inf.br/nfe") @@ -99,6 +103,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFCom.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFCom.java index f686154a..b771cb9f 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFCom.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFCom.java @@ -21,7 +21,9 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS" minOccurs="0"/> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -34,7 +36,9 @@ @XmlType(name = "TTribNFCom", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", - "gibscbs" + "indDoacao", + "gibscbs", + "gEstornoCred" }) public class TTribNFCom { @@ -42,8 +46,12 @@ public class TTribNFCom { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; /** * Obtém o valor da propriedade cst. @@ -93,6 +101,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -117,4 +149,28 @@ public void setGIBSCBS(TCIBS value) { this.gibscbs = value; } + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFGas.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFGas.java new file mode 100644 index 00000000..225f7494 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFGas.java @@ -0,0 +1,206 @@ + +package br.com.swconsultoria.nfe.schema_4.enviNFe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Grupo de informações da Tributação da NFGas + * + *

Classe Java de TTribNFGas complex type. + * + *

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

+ * <complexType name="TTribNFGas">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/>
+ *         <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/>
+ *         <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/>
+ *         <choice minOccurs="0">
+ *           <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS"/>
+ *           <element name="gIBSCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TMonofasia"/>
+ *         </choice>
+ *         <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TTribNFGas", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { + "cst", + "cClassTrib", + "indDoacao", + "gibscbs", + "gibscbsMono", + "gEstornoCred" +}) +public class TTribNFGas { + + @XmlElement(name = "CST", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cst; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; + @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCIBS gibscbs; + @XmlElement(name = "gIBSCBSMono", namespace = "http://www.portalfiscal.inf.br/nfe") + protected TMonofasia gibscbsMono; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = value; + } + + /** + * Obtém o valor da propriedade cClassTrib. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCClassTrib() { + return cClassTrib; + } + + /** + * Define o valor da propriedade cClassTrib. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCClassTrib(String value) { + this.cClassTrib = value; + } + + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + + /** + * Obtém o valor da propriedade gibscbs. + * + * @return + * possible object is + * {@link TCIBS } + * + */ + public TCIBS getGIBSCBS() { + return gibscbs; + } + + /** + * Define o valor da propriedade gibscbs. + * + * @param value + * allowed object is + * {@link TCIBS } + * + */ + public void setGIBSCBS(TCIBS value) { + this.gibscbs = value; + } + + /** + * Obtém o valor da propriedade gibscbsMono. + * + * @return + * possible object is + * {@link TMonofasia } + * + */ + public TMonofasia getGIBSCBSMono() { + return gibscbsMono; + } + + /** + * Define o valor da propriedade gibscbsMono. + * + * @param value + * allowed object is + * {@link TMonofasia } + * + */ + public void setGIBSCBSMono(TMonofasia value) { + this.gibscbsMono = value; + } + + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFe.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFe.java index c986257e..240b558e 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribNFe.java @@ -21,12 +21,18 @@ * <sequence> * <element name="CST" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTrib" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> + * <element name="indDoacao" type="{http://www.portalfiscal.inf.br/nfe}TIndDoacao" minOccurs="0"/> * <choice minOccurs="0"> * <element name="gIBSCBS" type="{http://www.portalfiscal.inf.br/nfe}TCIBS"/> * <element name="gIBSCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TMonofasia"/> * <element name="gTransfCred" type="{http://www.portalfiscal.inf.br/nfe}TTransfCred"/> + * <element name="gAjusteCompet" type="{http://www.portalfiscal.inf.br/nfe}TAjusteCompet"/> + * </choice> + * <element name="gEstornoCred" type="{http://www.portalfiscal.inf.br/nfe}TEstornoCred" minOccurs="0"/> + * <choice minOccurs="0"> + * <element name="gCredPresOper" type="{http://www.portalfiscal.inf.br/nfe}TCredPresOper"/> + * <element name="gCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TCredPresIBSZFM"/> * </choice> - * <element name="gCredPresIBSZFM" type="{http://www.portalfiscal.inf.br/nfe}TCredPresIBSZFM" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -39,9 +45,13 @@ @XmlType(name = "TTribNFe", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { "cst", "cClassTrib", + "indDoacao", "gibscbs", "gibscbsMono", "gTransfCred", + "gAjusteCompet", + "gEstornoCred", + "gCredPresOper", "gCredPresIBSZFM" }) public class TTribNFe { @@ -50,6 +60,8 @@ public class TTribNFe { protected String cst; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String cClassTrib; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected String indDoacao; @XmlElement(name = "gIBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe") protected TCIBS gibscbs; @XmlElement(name = "gIBSCBSMono", namespace = "http://www.portalfiscal.inf.br/nfe") @@ -57,6 +69,12 @@ public class TTribNFe { @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TTransfCred gTransfCred; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TAjusteCompet gAjusteCompet; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TEstornoCred gEstornoCred; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") + protected TCredPresOper gCredPresOper; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") protected TCredPresIBSZFM gCredPresIBSZFM; /** @@ -107,6 +125,30 @@ public void setCClassTrib(String value) { this.cClassTrib = value; } + /** + * Obtém o valor da propriedade indDoacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndDoacao() { + return indDoacao; + } + + /** + * Define o valor da propriedade indDoacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndDoacao(String value) { + this.indDoacao = value; + } + /** * Obtém o valor da propriedade gibscbs. * @@ -179,6 +221,78 @@ public void setGTransfCred(TTransfCred value) { this.gTransfCred = value; } + /** + * Obtém o valor da propriedade gAjusteCompet. + * + * @return + * possible object is + * {@link TAjusteCompet } + * + */ + public TAjusteCompet getGAjusteCompet() { + return gAjusteCompet; + } + + /** + * Define o valor da propriedade gAjusteCompet. + * + * @param value + * allowed object is + * {@link TAjusteCompet } + * + */ + public void setGAjusteCompet(TAjusteCompet value) { + this.gAjusteCompet = value; + } + + /** + * Obtém o valor da propriedade gEstornoCred. + * + * @return + * possible object is + * {@link TEstornoCred } + * + */ + public TEstornoCred getGEstornoCred() { + return gEstornoCred; + } + + /** + * Define o valor da propriedade gEstornoCred. + * + * @param value + * allowed object is + * {@link TEstornoCred } + * + */ + public void setGEstornoCred(TEstornoCred value) { + this.gEstornoCred = value; + } + + /** + * Obtém o valor da propriedade gCredPresOper. + * + * @return + * possible object is + * {@link TCredPresOper } + * + */ + public TCredPresOper getGCredPresOper() { + return gCredPresOper; + } + + /** + * Define o valor da propriedade gCredPresOper. + * + * @param value + * allowed object is + * {@link TCredPresOper } + * + */ + public void setGCredPresOper(TCredPresOper value) { + this.gCredPresOper = value; + } + /** * Obtém o valor da propriedade gCredPresIBSZFM. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribRegular.java b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribRegular.java index d22938d6..74c8254c 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribRegular.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_4/enviNFe/TTribRegular.java @@ -21,12 +21,12 @@ * <sequence> * <element name="CSTReg" type="{http://www.portalfiscal.inf.br/nfe}TCST"/> * <element name="cClassTribReg" type="{http://www.portalfiscal.inf.br/nfe}TcClassTrib"/> - * <element name="pAliqEfetRegIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribRegIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pAliqEfetRegIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribRegIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pAliqEfetRegCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vTribRegCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pAliqEfetRegIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribRegIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pAliqEfetRegIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribRegIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> + * <element name="pAliqEfetRegCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> + * <element name="vTribRegCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/java/br/com/swconsultoria/nfe/util/ConstantesUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/ConstantesUtil.java index 77f06bfc..86c5befe 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/ConstantesUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/ConstantesUtil.java @@ -19,5 +19,6 @@ interface VERSAO { String EVENTO_CCE = "1.00"; String EVENTO_MANIFESTAR = "1.00"; String EVENTO_EPEC = "1.00"; + String EVENTO_GENERICO = "1.00"; } } diff --git a/src/main/java/br/com/swconsultoria/nfe/util/EventoGenericoUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/EventoGenericoUtil.java new file mode 100644 index 00000000..7814500e --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/util/EventoGenericoUtil.java @@ -0,0 +1,104 @@ +package br.com.swconsultoria.nfe.util; + +import br.com.swconsultoria.nfe.Assinar; +import br.com.swconsultoria.nfe.dom.ConfiguracoesNfe; +import br.com.swconsultoria.nfe.dom.Evento; +import br.com.swconsultoria.nfe.dom.enuns.AssinaturaEnum; +import br.com.swconsultoria.nfe.dom.enuns.EventosEnum; +import br.com.swconsultoria.nfe.exception.NfeException; +import br.com.swconsultoria.nfe.schema.eventoGenerico.TEnvEvento; +import br.com.swconsultoria.nfe.schema.eventoGenerico.TEvento; +import br.com.swconsultoria.nfe.schema.eventoGenerico.TProcEvento; +import br.com.swconsultoria.nfe.schema.eventoGenerico.TRetEvento; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; + +import javax.xml.bind.JAXBException; +import javax.xml.namespace.QName; + +public class EventoGenericoUtil { + + private EventoGenericoUtil() {} + + /** + * MOnta o Evento Generico + * + * @param evento + * @param configuracao + * @return + * @throws NfeException + */ + public static TEnvEvento montaEvento(Evento evento, Class clazz, EventosEnum eventosEnum, ConfiguracoesNfe configuracao) throws NfeException { + + TEnvEvento enviEvento = new TEnvEvento(); + enviEvento.setVersao(ConstantesUtil.VERSAO.EVENTO_GENERICO); + enviEvento.setIdLote("1"); + + String id = "ID" + eventosEnum.getCodigo() + evento.getChave()+ ChaveUtil.completarComZerosAEsquerda(String.valueOf(evento.getSequencia()), 2); + + TEvento eventoGenerico = new TEvento(); + eventoGenerico.setVersao(ConstantesUtil.VERSAO.EVENTO_GENERICO); + + TEvento.InfEvento infoEvento = new TEvento.InfEvento(); + infoEvento.setId(id); + infoEvento.setChNFe(evento.getChave()); + infoEvento.setCOrgao(String.valueOf(configuracao.getEstado().getCodigoUF())); + infoEvento.setTpAmb(configuracao.getAmbiente().getCodigo()); + + infoEvento.setCPF(evento.getCpf()); + infoEvento.setCNPJ(evento.getCnpj()); + + infoEvento.setDhEvento(XmlNfeUtil.dataNfe(evento.getDataEvento(), configuracao.getZoneId())); + infoEvento.setTpEvento(eventosEnum.getCodigo()); + infoEvento.setNSeqEvento(String.valueOf(evento.getSequencia())); + infoEvento.setVerEvento(ConstantesUtil.VERSAO.EVENTO_GENERICO); + + TEvento. InfEvento.DetEvento detEvento = new TEvento.InfEvento.DetEvento(); + Element element = XmlNfeUtil.objectToElement(evento. getDetEvento(), clazz); + detEvento.getOtherAttributes().put(new QName("versao"), element.getAttribute("versao")); + + NodeList children = element.getChildNodes(); + for (int i = 0; i < children.getLength(); i++) { + Node child = children.item(i); + if (child.getNodeType() == Node.ELEMENT_NODE) { + detEvento.getAny().add((Element) child); + } + } + + infoEvento.setDetEvento(detEvento); + + eventoGenerico.setInfEvento(infoEvento); + enviEvento.getEvento().add(eventoGenerico); + + return enviEvento; + } + + /** + * Cria o ProcEvento de Generico + * + * @param config + * @param enviEvento + * @param retorno + * @return + * @throws JAXBException + * @throws NfeException + */ + public static String criaProcEventoGenerico(ConfiguracoesNfe config, TEnvEvento enviEvento, TRetEvento retorno) throws JAXBException, NfeException { + + String xml = XmlNfeUtil.objectToXml(enviEvento, config.getEncode()); + xml = xml.replace(" xmlns:ns2=\"http://www.w3.org/2000/09/xmldsig#\"", "") + .replace(" listaCstIbsCbs; + private final DocumentoEnum documento; + private final Map mapTotais = new HashMap<>(); + + private ClassificacaoTributariaDTO classTribIbsCbs; + private CstDTO cstIbsCbs; + private ClassificacaoTributariaDTO classTribIbsCbsTribRegular; + private CstDTO cstIbsCbsTribRegular; + + private BigDecimal pAliqIbsUf = new BigDecimal("0.1"); + private BigDecimal pAliqIbsMun = BigDecimal.ZERO; + private BigDecimal pAliqCbs = new BigDecimal("0.9"); + private BigDecimal pAliqDiferimento = BigDecimal.ZERO; + private BigDecimal baseCalculo = BigDecimal.ZERO; + + public void setpAliqIbsUf(BigDecimal pAliqIbsUf) { + this.pAliqIbsUf = pAliqIbsUf; + } + + public void setpAliqIbsMun(BigDecimal pAliqIbsMun) { + this.pAliqIbsMun = pAliqIbsMun; + } + + public void setpAliqCbs(BigDecimal pAliqCbs) { + this.pAliqCbs = pAliqCbs; + } + + public void setpAliqDiferimento(BigDecimal pAliqDiferimento) { + this.pAliqDiferimento = pAliqDiferimento; + } + + public IbsCbsUtil(@NonNull List listaCstIbsCbs, @NonNull DocumentoEnum documento) { + this.listaCstIbsCbs = listaCstIbsCbs; + this.documento = documento; + inicializarTotais(); + } + + public IbsCbsUtil(@NonNull String json, @NonNull DocumentoEnum documento) throws NfeException { + this.listaCstIbsCbs = ConsultaTributacao.convertJsonToObject(json, new TypeReference>() {}); + this.documento = documento; + inicializarTotais(); + } + + private void inicializarTotais() { + mapTotais.put(TOTAL_BC_IBS_CBS, BigDecimal.ZERO); + mapTotais.put(TOTAL_IBS_UF, BigDecimal.ZERO); + mapTotais.put(TOTAL_IBS_MUN, BigDecimal.ZERO); + mapTotais.put(TOTAL_CBS, BigDecimal.ZERO); + mapTotais.put(TOTAL_DIFERIMENTO_IBS_UF, BigDecimal.ZERO); + mapTotais.put(TOTAL_DIFERIMENTO_IBS_MUN, BigDecimal.ZERO); + mapTotais.put(TOTAL_DIFERIMENTO_CBS, BigDecimal.ZERO); + } + + public TTribNFe montaImpostosDet(String cclassTrib, TNFe.InfNFe.Det det) throws NfeException { + return montaImpostosDet(cclassTrib, det, null); + } + + public TTribNFe montaImpostosDet(String cclassTrib, TNFe.InfNFe.Det det, String cclassTribRegular) throws NfeException { + filtraCClasstrib(cclassTrib, cclassTribRegular); + validaClassTrib(cclassTrib); + calcularBaseCalculoIBSCBS(det); + + TTribNFe ibsCbs = new TTribNFe(); + ibsCbs.setCST(cstIbsCbs.getCst()); + ibsCbs.setCClassTrib(classTribIbsCbs.getCClassTrib()); + + if (deveMontarGrupoIBSCBS()) { + ibsCbs.setGIBSCBS(montarGrupoIBSCBS()); + } + + if (Boolean.TRUE.equals(cstIbsCbs.getIndIBSCBSMono())) { + ibsCbs.setGIBSCBSMono(montaGrupoMono(det)); + } + + return ibsCbs; + } + + private TMonofasia montaGrupoMono(TNFe.InfNFe.Det det) { + TMonofasia gMono = new TMonofasia(); + if (Boolean.TRUE.equals(classTribIbsCbs.getMonofasiaPadrao())) { + TMonofasia.GMonoPadrao monoPadrao = new TMonofasia.GMonoPadrao(); + monoPadrao.setQBCMono(ObjetoUtil.getValor4Casas(new BigDecimal(det.getProd().getQCom()))); + monoPadrao.setAdRemIBS("0.00"); + monoPadrao.setAdRemCBS("0.00"); + monoPadrao.setVIBSMono("0.00"); + monoPadrao.setVCBSMono("0.00"); + gMono.setGMonoPadrao(monoPadrao); + } + + if (Boolean.TRUE.equals(classTribIbsCbs.getMonofasiaRetidaAnt())) { + TMonofasia.GMonoRet monoRet = new TMonofasia.GMonoRet(); + monoRet.setQBCMonoRet(ObjetoUtil.getValor4Casas(new BigDecimal(det.getProd().getQCom()))); + monoRet.setAdRemCBSRet("0.00"); + monoRet.setAdRemIBSRet("0.00"); + monoRet.setVCBSMonoRet("0.00"); + monoRet.setVIBSMonoRet("0.00"); + gMono.setGMonoRet(monoRet); + } + + if (Boolean.TRUE.equals(classTribIbsCbs.getMonofasiaSujeitaRetencao())) { + TMonofasia.GMonoReten monoReten = new TMonofasia.GMonoReten(); + monoReten.setQBCMonoReten(ObjetoUtil.getValor4Casas(new BigDecimal(det.getProd().getQCom()))); + monoReten.setAdRemCBSReten("0.00"); + monoReten.setAdRemIBSReten("0.00"); + monoReten.setVCBSMonoReten("0.00"); + monoReten.setVIBSMonoReten("0.00"); + gMono.setGMonoReten(monoReten); + } + + if (Boolean.TRUE.equals(classTribIbsCbs.getMonofasiaDiferimento())) { + TMonofasia.GMonoDif gMonoDif = new TMonofasia.GMonoDif(); + gMonoDif.setPDifCBS("0.00"); + gMonoDif.setPDifIBS("0.00"); + gMonoDif.setVCBSMonoDif("0.00"); + gMonoDif.setVIBSMonoDif("0.00"); + gMono.setGMonoDif(gMonoDif); + + } + gMono.setVTotCBSMonoItem("0.00"); + gMono.setVTotIBSMonoItem("0.00"); + + return gMono; + } + + private boolean deveMontarGrupoIBSCBS() { + return Boolean.TRUE.equals(cstIbsCbs.getIndIBSCBS()) + || Boolean.TRUE.equals(cstIbsCbs.getIndRedAliq()) + || Boolean.TRUE.equals(cstIbsCbs.getIndDif()) + || Boolean.TRUE.equals(cstIbsCbs.getIndTransfCred()); + } + + private TCIBS montarGrupoIBSCBS() { + TCIBS gIBSCBS = new TCIBS(); + gIBSCBS.setVBC(ObjetoUtil.getValor2Casas(baseCalculo)); + + TCIBS.GIBSUF gIBSUF = criarGIBSUF(); + TCIBS.GIBSMun gIBSMun = criarGIBSMun(); + TCIBS.GCBS gCBS = criarGCBS(); + + gIBSCBS.setGIBSUF(gIBSUF); + gIBSCBS.setGIBSMun(gIBSMun); + gIBSCBS.setGCBS(gCBS); + gIBSCBS.setVIBS(ObjetoUtil.getValor2Casas( + new BigDecimal(gIBSUF.getVIBSUF()).add(new BigDecimal(gIBSMun.getVIBSMun())))); + + if (Boolean.TRUE.equals(classTribIbsCbs.getIndTribRegular())) { + gIBSCBS.setGTribRegular(criarGTribRegular()); + } + + atualizarTotais(gIBSUF, gIBSMun, gCBS); + return gIBSCBS; + } + + private void atualizarTotais(TCIBS.GIBSUF gIBSUF, TCIBS.GIBSMun gIBSMun, TCIBS.GCBS gCBS) { + mapTotais.merge(TOTAL_BC_IBS_CBS, baseCalculo, BigDecimal::add); + mapTotais.merge(TOTAL_IBS_UF, new BigDecimal(gIBSUF.getVIBSUF()), BigDecimal::add); + mapTotais.merge(TOTAL_IBS_MUN, new BigDecimal(gIBSMun.getVIBSMun()), BigDecimal::add); + mapTotais.merge(TOTAL_CBS, new BigDecimal(gCBS.getVCBS()), BigDecimal::add); + if(gIBSUF.getGDif() != null){ + mapTotais.merge(TOTAL_DIFERIMENTO_IBS_UF, new BigDecimal(gIBSUF.getGDif().getVDif()), BigDecimal::add); + } + if(gIBSMun.getGDif() != null){ + mapTotais.merge(TOTAL_DIFERIMENTO_IBS_MUN, new BigDecimal(gIBSMun.getGDif().getVDif()), BigDecimal::add); + } + if(gCBS.getGDif() != null){ + mapTotais.merge(TOTAL_DIFERIMENTO_CBS, new BigDecimal(gCBS.getGDif().getVDif()), BigDecimal::add); + } + } + + private void filtraCClasstrib(String cclassTrib, String cclassTribRegular) { + buscarCstEClassificacao(cclassTrib).ifPresent(entry -> { + cstIbsCbs = entry.getKey(); + classTribIbsCbs = entry.getValue(); + }); + + if (cclassTribRegular != null && !cclassTribRegular.isEmpty()) { + buscarCstEClassificacao(cclassTribRegular).ifPresent(entry -> { + cstIbsCbsTribRegular = entry.getKey(); + classTribIbsCbsTribRegular = entry.getValue(); + }); + } + } + + private Optional> buscarCstEClassificacao(String cclassTrib) { + return listaCstIbsCbs.stream() + .flatMap(cst -> cst.getClassificacoesTributarias().stream() + .map(classTrib -> new AbstractMap.SimpleEntry<>(cst, classTrib))) + .filter(entry -> entry.getValue().getCClassTrib().equals(cclassTrib)) + .findFirst(); + } + + private void validaClassTrib(String cclassTrib) throws NfeException { + if (classTribIbsCbs == null) { + throw new NfeException("CClassTrib inválido ou não encontrado: " + cclassTrib); + } + + if (documento.equals(DocumentoEnum.NFE) && Boolean.FALSE.equals(classTribIbsCbs.getIndNFe())) { + throw new NfeException("CClassTrib não pode ser utilizado para NFe: " + cclassTrib); + } + + if (documento.equals(DocumentoEnum.NFCE) && Boolean.FALSE.equals(classTribIbsCbs.getIndNFCe())) { + throw new NfeException("CClassTrib não pode ser utilizado para NFCe: " + cclassTrib); + } + + if (Boolean.TRUE.equals(classTribIbsCbs.getIndTribRegular()) && classTribIbsCbsTribRegular == null) { + throw new NfeException("Obrigatório informar Tributação Regular para CClassTrib: " + cclassTrib); + } + } + + private TCIBS.GIBSUF criarGIBSUF() { + return criarGrupoImposto( + pAliqIbsUf, + pAliqDiferimento, + classTribIbsCbs.getPRedIBS(), + TCIBS.GIBSUF::new, + TCIBS.GIBSUF::setPIBSUF, + TCIBS.GIBSUF::setGDif, + TCIBS.GIBSUF::setGRed, + TCIBS.GIBSUF::setVIBSUF + ); + } + + private TCIBS.GIBSMun criarGIBSMun() { + return criarGrupoImposto( + pAliqIbsMun, + pAliqDiferimento, + classTribIbsCbs.getPRedIBS(), + TCIBS.GIBSMun::new, + TCIBS.GIBSMun::setPIBSMun, + TCIBS.GIBSMun::setGDif, + TCIBS.GIBSMun::setGRed, + TCIBS.GIBSMun::setVIBSMun + ); + } + + private TCIBS.GCBS criarGCBS() { + return criarGrupoImposto( + pAliqCbs, + pAliqDiferimento, + classTribIbsCbs.getPRedCBS(), + TCIBS.GCBS::new, + TCIBS.GCBS::setPCBS, + TCIBS.GCBS::setGDif, + TCIBS.GCBS::setGRed, + TCIBS.GCBS::setVCBS + ); + } + + @FunctionalInterface + private interface GrupoImpostoFactory { + T create(); + } + + @FunctionalInterface + private interface AliquotaSetter { + void set(T grupo, String valor); + } + + @FunctionalInterface + private interface RedutorSetter { + void set(T grupo, TRed redutor); + } + + @FunctionalInterface + private interface DifererimentoSetter { + void set(T grupo, TDif diferimento); + } + + @FunctionalInterface + private interface ValorSetter { + void set(T grupo, String valor); + } + + private T criarGrupoImposto( + BigDecimal aliqPadrao, + BigDecimal percentualDiferimento, + BigDecimal percentualReducao, + GrupoImpostoFactory factory, + AliquotaSetter aliqSetter, + DifererimentoSetter difSetter, + RedutorSetter redSetter, + ValorSetter valorSetter) { + + T grupo = factory.create(); + BigDecimal aliq = Boolean.TRUE.equals(classTribIbsCbs.getIndTribRegular()) + ? BigDecimal.ZERO + : ObjetoUtil.getOrZero(aliqPadrao); + + aliqSetter.set(grupo, ObjetoUtil.getValor4Casas(aliq)); + + BigDecimal aliqEfet = aliq; + + if (Boolean.TRUE.equals(cstIbsCbs.getIndRedAliq())) { + BigDecimal percentRed = ObjetoUtil.getOrZero(percentualReducao); + TRed gRed = criarRedutor(percentRed, aliq); + redSetter.set(grupo, gRed); + aliqEfet = new BigDecimal(gRed.getPAliqEfet()); + } + + BigDecimal valor = calcularValorImposto(aliqEfet); + + if (Boolean.TRUE.equals(cstIbsCbs.getIndDif())) { + BigDecimal percentDif = ObjetoUtil.getOrZero(percentualDiferimento); + TDif gDif = criarDiferimento(percentDif, aliqEfet); + difSetter.set(grupo, gDif); + valor = valor.subtract(new BigDecimal(gDif.getVDif())); + } + + + valorSetter.set(grupo, ObjetoUtil.getValor2Casas(valor)); + + return grupo; + } + + private BigDecimal calcularValorImposto(BigDecimal aliquota) { + return baseCalculo.multiply(aliquota.divide(CEM, SCALE_5, RoundingMode.HALF_UP)); + } + + private TTribRegular criarGTribRegular() { + TTribRegular gTribRegular = new TTribRegular(); + gTribRegular.setCSTReg(cstIbsCbsTribRegular.getCst()); + gTribRegular.setCClassTribReg(classTribIbsCbsTribRegular.getCClassTrib()); + + configurarTributoRegular(gTribRegular, pAliqIbsUf, + TTribRegular::setPAliqEfetRegIBSUF, TTribRegular::setVTribRegIBSUF); + configurarTributoRegular(gTribRegular, pAliqIbsMun, + TTribRegular::setPAliqEfetRegIBSMun, TTribRegular::setVTribRegIBSMun); + configurarTributoRegular(gTribRegular, pAliqCbs, + TTribRegular::setPAliqEfetRegCBS, TTribRegular::setVTribRegCBS); + + return gTribRegular; + } + + private void configurarTributoRegular( + TTribRegular gTribRegular, + BigDecimal aliquota, + java.util.function.BiConsumer aliqSetter, + java.util.function.BiConsumer valorSetter) { + + BigDecimal pAliqEfet = ObjetoUtil.getOrZero(aliquota); + aliqSetter.accept(gTribRegular, ObjetoUtil.getValor4Casas(pAliqEfet)); + + BigDecimal valor = calcularValorImposto(pAliqEfet); + valorSetter.accept(gTribRegular, ObjetoUtil.getValor2Casas(valor)); + } + + private static TRed criarRedutor(BigDecimal percentualReducao, BigDecimal aliqOriginal) { + TRed gRed = new TRed(); + gRed.setPRedAliq(ObjetoUtil.getValor4Casas(percentualReducao)); + + BigDecimal aliqEfet = aliqOriginal.multiply( + BigDecimal.ONE.subtract(percentualReducao.divide(BigDecimal.valueOf(100), 5, RoundingMode.HALF_UP))); + gRed.setPAliqEfet(ObjetoUtil.getValor4Casas(aliqEfet)); + + return gRed; + } + + private TDif criarDiferimento(BigDecimal percentualDiferimento, BigDecimal aliqEfet) { + TDif gDif = new TDif(); + gDif.setPDif(ObjetoUtil.getValor4Casas(percentualDiferimento)); + BigDecimal valorDif = calcularValorImposto(percentualDiferimento).multiply(aliqEfet.divide(CEM, SCALE_5, RoundingMode.HALF_UP)); + gDif.setVDif(ObjetoUtil.getValor2Casas(valorDif)); + return gDif; + } + + @SuppressWarnings("unchecked") + private void calcularBaseCalculoIBSCBS(TNFe.InfNFe.Det det) { + BigDecimal vProd = ObjetoUtil.getBigDecimalOrZero(det.getProd().getVProd()); + BigDecimal vFrete = ObjetoUtil.getBigDecimalOrZero(det.getProd().getVFrete()); + BigDecimal vSeg = ObjetoUtil.getBigDecimalOrZero(det.getProd().getVSeg()); + BigDecimal vOutro = ObjetoUtil.getBigDecimalOrZero(det.getProd().getVOutro()); + BigDecimal vDesc = ObjetoUtil.getBigDecimalOrZero(det.getProd().getVDesc()); + + List> impostos = det.getImposto().getContent(); + + baseCalculo = vProd + .add(vFrete) + .add(vSeg) + .add(vOutro) + .subtract(vDesc) + .subtract(XmlImpostoUtil.getVPIS(impostos)) + .subtract(XmlImpostoUtil.getVCOFINS(impostos)) + .subtract(XmlImpostoUtil.getVICMS(impostos)) + .subtract(XmlImpostoUtil.getVICMSUFDest(impostos)) + .subtract(XmlImpostoUtil.getVFCP(impostos)) + .subtract(XmlImpostoUtil.getVFCPUFDest(impostos)) + .subtract(XmlImpostoUtil.getVICMSMono(impostos)) + .subtract(XmlImpostoUtil.getVISSQN(impostos)); + } + + public BigDecimal calculaVnfTot(String vnf) { + return new BigDecimal(vnf) + .add(mapTotais.getOrDefault(TOTAL_IBS_UF, BigDecimal.ZERO)) + .add(mapTotais.getOrDefault(TOTAL_IBS_MUN, BigDecimal.ZERO)) + .add(mapTotais.getOrDefault(TOTAL_CBS, BigDecimal.ZERO)); + } + + public TIBSCBSMonoTot preencheTotaisIbsCsb() { + TIBSCBSMonoTot totalIbsCbs = new TIBSCBSMonoTot(); + totalIbsCbs.setVBCIBSCBS(ObjetoUtil.getValor2Casas(mapTotais.getOrDefault(TOTAL_BC_IBS_CBS, BigDecimal.ZERO))); + totalIbsCbs.setGIBS(criarTotaisIBS()); + totalIbsCbs.setGCBS(criarTotaisCBS()); + return totalIbsCbs; + } + + private TIBSCBSMonoTot.GIBS criarTotaisIBS() { + TIBSCBSMonoTot.GIBS gIbs = new TIBSCBSMonoTot.GIBS(); + gIbs.setGIBSUF(criarGIBSUFTotal()); + gIbs.setGIBSMun(criarGIBSMunTotal()); + + BigDecimal totalIBS = mapTotais.getOrDefault(TOTAL_IBS_UF, BigDecimal.ZERO) + .add(mapTotais.getOrDefault(TOTAL_IBS_MUN, BigDecimal.ZERO)); + gIbs.setVIBS(ObjetoUtil.getValor2Casas(totalIBS)); + gIbs.setVCredPres("0.00"); + gIbs.setVCredPresCondSus("0.00"); + + return gIbs; + } + + private TIBSCBSMonoTot.GIBS.GIBSUF criarGIBSUFTotal() { + TIBSCBSMonoTot.GIBS.GIBSUF gIbsUF = new TIBSCBSMonoTot.GIBS.GIBSUF(); + gIbsUF.setVDif(ObjetoUtil.getValor2Casas(mapTotais.getOrDefault(TOTAL_DIFERIMENTO_IBS_UF, BigDecimal.ZERO))); + gIbsUF.setVDevTrib("0.00"); + gIbsUF.setVIBSUF(ObjetoUtil.getValor2Casas(mapTotais.getOrDefault(TOTAL_IBS_UF, BigDecimal.ZERO))); + return gIbsUF; + } + + private TIBSCBSMonoTot.GIBS.GIBSMun criarGIBSMunTotal() { + TIBSCBSMonoTot.GIBS.GIBSMun gIbsMun = new TIBSCBSMonoTot.GIBS.GIBSMun(); + gIbsMun.setVDif(ObjetoUtil.getValor2Casas(mapTotais.getOrDefault(TOTAL_DIFERIMENTO_IBS_MUN, BigDecimal.ZERO))); + gIbsMun.setVDevTrib("0.00"); + gIbsMun.setVIBSMun(ObjetoUtil.getValor2Casas(mapTotais.getOrDefault(TOTAL_IBS_MUN, BigDecimal.ZERO))); + return gIbsMun; + } + + private TIBSCBSMonoTot.GCBS criarTotaisCBS() { + TIBSCBSMonoTot.GCBS gCbs = new TIBSCBSMonoTot.GCBS(); + gCbs.setVDif(ObjetoUtil.getValor2Casas(mapTotais.getOrDefault(TOTAL_DIFERIMENTO_CBS, BigDecimal.ZERO))); + gCbs.setVDevTrib("0.00"); + gCbs.setVCBS(ObjetoUtil.getValor2Casas(mapTotais.getOrDefault(TOTAL_CBS, BigDecimal.ZERO))); + gCbs.setVCredPres("0.00"); + gCbs.setVCredPresCondSus("0.00"); + return gCbs; + } +} diff --git a/src/main/java/br/com/swconsultoria/nfe/util/ObjetoUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/ObjetoUtil.java index 8c73a372..28a6b4a2 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/ObjetoUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/ObjetoUtil.java @@ -1,10 +1,14 @@ package br.com.swconsultoria.nfe.util; +import java.math.BigDecimal; +import java.math.RoundingMode; import java.util.Collection; import java.util.Optional; public final class ObjetoUtil { + private ObjetoUtil() {} + /** * Verifica se um objeto é vazio. * @@ -16,11 +20,37 @@ public static Optional verifica(T obj) { if (obj == null) return Optional.empty(); if (obj instanceof Collection) - return ((Collection) obj).size() == 0 ? Optional.empty() : Optional.of(obj); + return ((Collection) obj).isEmpty() ? Optional.empty() : Optional.of(obj); final String s = String.valueOf(obj).trim(); - return s.length() == 0 || s.equalsIgnoreCase("null") ? Optional.empty() : Optional.of(obj); + return s.isEmpty() || s.equalsIgnoreCase("null") ? Optional.empty() : Optional.of(obj); + } + + public static BigDecimal getBigDecimalOrZero(String value) { + try { + return value != null ? new BigDecimal(value) : BigDecimal.ZERO; + } catch (Exception e) { + return BigDecimal.ZERO; + } + } + + public static BigDecimal getOrZero(BigDecimal v) { + return v == null ? BigDecimal.ZERO : v; + } + + public static String getValor2Casas(BigDecimal valor) { + if (valor == null || valor.compareTo(BigDecimal.ZERO) < 0) { + return "0.00"; + } + return valor.setScale(2, RoundingMode.HALF_UP).toString(); + } + + public static String getValor4Casas(BigDecimal valor) { + if (valor == null || valor.compareTo(BigDecimal.ZERO) < 0) { + return "0.0000"; + } + return valor.setScale(4, RoundingMode.HALF_UP).toString(); } } diff --git a/src/main/java/br/com/swconsultoria/nfe/util/RetornoUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/RetornoUtil.java index b45f9d85..33f67de0 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/RetornoUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/RetornoUtil.java @@ -41,14 +41,14 @@ public static void validaCancelamento(TRetEnvEvento retorno) throws NfeException } final String[] erro = {""}; - retorno.getRetEvento().forEach( retEvento -> { + retorno.getRetEvento().forEach(retEvento -> { if (!StatusEnum.EVENTO_VINCULADO.getCodigo().equals(retEvento.getInfEvento().getCStat()) && - !StatusEnum.CANCELAMENTO_FORA_PRAZO.getCodigo().equals(retEvento.getInfEvento().getCStat())) { - erro[0] += retEvento.getInfEvento().getChNFe() + " - " +retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); + !StatusEnum.CANCELAMENTO_FORA_PRAZO.getCodigo().equals(retEvento.getInfEvento().getCStat())) { + erro[0] += retEvento.getInfEvento().getChNFe() + " - " + retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); } }); - if(ObjetoUtil.verifica(erro[0]).isPresent()){ + if (ObjetoUtil.verifica(erro[0]).isPresent()) { throw new NfeException(erro[0]); } } @@ -65,13 +65,36 @@ public static void validaCancelamentoSubstituicao(br.com.swconsultoria.nfe.schem } final String[] erro = {""}; - retorno.getRetEvento().forEach( retEvento -> { + retorno.getRetEvento().forEach(retEvento -> { if (!StatusEnum.EVENTO_VINCULADO.getCodigo().equals(retEvento.getInfEvento().getCStat())) { - erro[0] += retEvento.getInfEvento().getChNFe() + " - " +retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); + erro[0] += retEvento.getInfEvento().getChNFe() + " - " + retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); } }); - if(ObjetoUtil.verifica(erro[0]).isPresent()){ + if (ObjetoUtil.verifica(erro[0]).isPresent()) { + throw new NfeException(erro[0]); + } + } + + /** + * Valida o Retorno Do Evento Generico + * + * @param retorno + * @throws NfeException + */ + public static void validaEventoGenerico(br.com.swconsultoria.nfe.schema.eventoGenerico.TRetEnvEvento retorno) throws NfeException { + if (!StatusEnum.LOTE_EVENTO_PROCESSADO.getCodigo().equals(retorno.getCStat())) { + throw new NfeException(retorno.getCStat() + " - " + retorno.getXMotivo()); + } + + final String[] erro = {""}; + retorno.getRetEvento().forEach(retEvento -> { + if (!StatusEnum.EVENTO_VINCULADO.getCodigo().equals(retEvento.getInfEvento().getCStat())) { + erro[0] += retEvento.getInfEvento().getChNFe() + " - " + retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); + } + }); + + if (ObjetoUtil.verifica(erro[0]).isPresent()) { throw new NfeException(erro[0]); } } @@ -88,13 +111,13 @@ public static void validaManifestacao(br.com.swconsultoria.nfe.schema.envConfRec } final String[] erro = {""}; - retorno.getRetEvento().forEach( retEvento -> { + retorno.getRetEvento().forEach(retEvento -> { if (!StatusEnum.EVENTO_VINCULADO.getCodigo().equals(retEvento.getInfEvento().getCStat()) && !StatusEnum.EVENTO_REGISTRADO_NAO_VINCULADO.getCodigo().equals(retEvento.getInfEvento().getCStat())) { - erro[0] += retEvento.getInfEvento().getChNFe() + " - " +retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); + erro[0] += retEvento.getInfEvento().getChNFe() + " - " + retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); } }); - if(ObjetoUtil.verifica(erro[0]).isPresent()){ + if (ObjetoUtil.verifica(erro[0]).isPresent()) { throw new NfeException(erro[0]); } @@ -111,13 +134,13 @@ public static void validaCartaCorrecao(br.com.swconsultoria.nfe.schema.envcce.TR throw new NfeException(retorno.getCStat() + " - " + retorno.getXMotivo()); } final String[] erro = {""}; - retorno.getRetEvento().forEach( retEvento -> { + retorno.getRetEvento().forEach(retEvento -> { if (!StatusEnum.EVENTO_VINCULADO.getCodigo().equals(retEvento.getInfEvento().getCStat())) { - erro[0] += retEvento.getInfEvento().getChNFe() + " - " +retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); + erro[0] += retEvento.getInfEvento().getChNFe() + " - " + retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); } }); - if(ObjetoUtil.verifica(erro[0]).isPresent()){ + if (ObjetoUtil.verifica(erro[0]).isPresent()) { throw new NfeException(erro[0]); } } @@ -135,13 +158,13 @@ public static void validaEpec(br.com.swconsultoria.nfe.schema.envEpec.TRetEnvEve } final String[] erro = {""}; - retorno.getRetEvento().forEach( retEvento -> { + retorno.getRetEvento().forEach(retEvento -> { if (!StatusEnum.EVENTO_VINCULADO.getCodigo().equals(retEvento.getInfEvento().getCStat())) { - erro[0] += retEvento.getInfEvento().getChNFe() + " - " +retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); + erro[0] += retEvento.getInfEvento().getChNFe() + " - " + retEvento.getInfEvento().getCStat() + " - " + retEvento.getInfEvento().getXMotivo() + System.lineSeparator(); } }); - if(ObjetoUtil.verifica(erro[0]).isPresent()){ + if (ObjetoUtil.verifica(erro[0]).isPresent()) { throw new NfeException(erro[0]); } } @@ -197,13 +220,13 @@ public static void validaAssincrono(TRetConsReciNFe retorno) throws NfeException } final String[] erro = {""}; - retorno.getProtNFe().forEach( protNFe -> { + retorno.getProtNFe().forEach(protNFe -> { if (!StatusEnum.AUTORIZADO.getCodigo().equals(protNFe.getInfProt().getCStat()) && !StatusEnum.AUTORIZADO_FORA_PRAZO.getCodigo().equals(protNFe.getInfProt().getCStat())) { - erro[0] += protNFe.getInfProt().getChNFe() + " - " +protNFe.getInfProt().getCStat() + " - " + protNFe.getInfProt().getXMotivo() + System.lineSeparator(); + erro[0] += protNFe.getInfProt().getChNFe() + " - " + protNFe.getInfProt().getCStat() + " - " + protNFe.getInfProt().getXMotivo() + System.lineSeparator(); } }); - if(ObjetoUtil.verifica(erro[0]).isPresent()){ + if (ObjetoUtil.verifica(erro[0]).isPresent()) { throw new NfeException(erro[0]); } @@ -222,7 +245,7 @@ public static void validaSincrono(TRetEnviNFe retorno) throws NfeException { } if (!retorno.getProtNFe().getInfProt().getCStat().equals(StatusEnum.AUTORIZADO.getCodigo()) && - !retorno.getProtNFe().getInfProt().getCStat().equals(StatusEnum.AUTORIZADO_FORA_PRAZO.getCodigo())) { + !retorno.getProtNFe().getInfProt().getCStat().equals(StatusEnum.AUTORIZADO_FORA_PRAZO.getCodigo())) { throw new NfeException(retorno.getProtNFe().getInfProt().getCStat() + " - " + retorno.getProtNFe().getInfProt().getXMotivo()); } } diff --git a/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java index 3e6af7ca..db54f825 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/WebServiceUtil.java @@ -289,6 +289,7 @@ private static boolean verificaServicosAmbienteNacional(ServicosEnum tipoServico private static boolean verificaServicosAmbienteSVRS(ServicosEnum tipoServico,DocumentoEnum tipoDocumento ) { return tipoDocumento.equals(DocumentoEnum.NFE) && (tipoServico.equals(ServicosEnum.ECONF) || + tipoServico.equals(ServicosEnum.EVENTO_GENERICO) || tipoServico.equals(ServicosEnum.CANC_ECONF)); } diff --git a/src/main/java/br/com/swconsultoria/nfe/util/XmlImpostoUtil.java b/src/main/java/br/com/swconsultoria/nfe/util/XmlImpostoUtil.java new file mode 100644 index 00000000..b6230647 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/util/XmlImpostoUtil.java @@ -0,0 +1,219 @@ +package br.com.swconsultoria.nfe.util; + +import javax.xml.bind.JAXBElement; +import java.math.BigDecimal; +import java.util.List; + +/** + * Classe utilitária para extração dos valores de impostos de uma lista de elementos JAXB + * proveniente do bloco do XML da NFe. + *

+ * Cada método percorre a lista de impostos e busca o valor correspondente de acordo com cada + * tipo de imposto, retornando seu valor como BigDecimal ou BigDecimal.ZERO caso não encontrado. + */ +public class XmlImpostoUtil { + + private XmlImpostoUtil(){} + + /** + * Recupera o valor do PIS (vPIS) do produto. + *

+ * Percorre a lista de elementos de imposto e verifica os diferentes tipos de apuração do PIS. + * Retorna o primeiro valor encontrado, ou BigDecimal.ZERO caso nenhum seja localizado. + * + * @param impostos Lista de elementos JAXB do bloco de impostos do produto. + * @return Valor do PIS (vPIS) ou BigDecimal.ZERO se não houver. + */ + public static BigDecimal getVPIS(List> impostos) { + for (JAXBElement elem : impostos) { + // Verifica se o elemento é do tipo PIS + if (elem.getValue() instanceof br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.PIS) { + br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.PIS pis = + (br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.PIS) elem.getValue(); + // Busca vPIS em cada modalidade possível no XML + if (pis.getPISAliq() != null && pis.getPISAliq().getVPIS() != null) + return new BigDecimal(pis.getPISAliq().getVPIS()); + if (pis.getPISQtde() != null && pis.getPISQtde().getVPIS() != null) + return new BigDecimal(pis.getPISQtde().getVPIS()); + if (pis.getPISOutr() != null && pis.getPISOutr().getVPIS() != null) + return new BigDecimal(pis.getPISOutr().getVPIS()); + } + } + return BigDecimal.ZERO; + } + + /** + * Recupera o valor do COFINS (vCOFINS) do produto. + *

+ * Percorre a lista de elementos de imposto e verifica os diferentes tipos de apuração do COFINS. + * Retorna o primeiro valor encontrado, ou BigDecimal.ZERO caso nenhum seja localizado. + * + * @param impostos Lista de elementos JAXB do bloco de impostos do produto. + * @return Valor do COFINS (vCOFINS) ou BigDecimal.ZERO se não houver. + */ + public static BigDecimal getVCOFINS(List> impostos) { + for (JAXBElement elem : impostos) { + // Verifica se o elemento é do tipo COFINS + if (elem.getValue() instanceof br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.COFINS) { + br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.COFINS cof = + (br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.COFINS) elem.getValue(); + // Busca vCOFINS em cada modalidade possível no XML + if (cof.getCOFINSAliq() != null && cof.getCOFINSAliq().getVCOFINS() != null) + return new BigDecimal(cof.getCOFINSAliq().getVCOFINS()); + if (cof.getCOFINSQtde() != null && cof.getCOFINSQtde().getVCOFINS() != null) + return new BigDecimal(cof.getCOFINSQtde().getVCOFINS()); + if (cof.getCOFINSOutr() != null && cof.getCOFINSOutr().getVCOFINS() != null) + return new BigDecimal(cof.getCOFINSOutr().getVCOFINS()); + } + } + return BigDecimal.ZERO; + } + + /** + * Recupera o valor do ICMS (vICMS) do produto. + *

+ * Percorre todas as possíveis modalidades de ICMS, incluindo regime normal e Simples Nacional, + * e retorna o primeiro valor encontrado. Caso não localize, retorna BigDecimal.ZERO. + * + * @param impostos Lista de elementos JAXB do bloco de impostos do produto. + * @return Valor do ICMS (vICMS) ou BigDecimal.ZERO se não houver. + */ + public static BigDecimal getVICMS(List> impostos) { + for (JAXBElement elem : impostos) { + // Verifica se o elemento é do tipo ICMS + if (elem.getValue() instanceof br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMS) { + br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMS icms = + (br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMS) elem.getValue(); + // Busca vICMS em cada modalidade possível no XML + if (icms.getICMS00() != null && icms.getICMS00().getVICMS() != null) + return new BigDecimal(icms.getICMS00().getVICMS()); + if (icms.getICMS10() != null && icms.getICMS10().getVICMS() != null) + return new BigDecimal(icms.getICMS10().getVICMS()); + if (icms.getICMS20() != null && icms.getICMS20().getVICMS() != null) + return new BigDecimal(icms.getICMS20().getVICMS()); + if (icms.getICMS51() != null && icms.getICMS51().getVICMS() != null) + return new BigDecimal(icms.getICMS51().getVICMS()); + if (icms.getICMS90() != null && icms.getICMS90().getVICMS() != null) + return new BigDecimal(icms.getICMS90().getVICMS()); + if (icms.getICMSSN900() != null && icms.getICMSSN900().getVICMS() != null) + return new BigDecimal(icms.getICMSSN900().getVICMS()); + } + } + return BigDecimal.ZERO; + } + + /** + * Recupera o valor do ICMS de destino (vICMSUFDest), referente à partilha entre estados. + * + * @param impostos Lista de elementos JAXB do bloco de impostos do produto. + * @return Valor do ICMS de destino (vICMSUFDest) ou BigDecimal.ZERO se não houver. + */ + public static BigDecimal getVICMSUFDest(List> impostos) { + for (JAXBElement elem : impostos) { + // Verifica se o elemento é do tipo ICMSUFDest + if (elem.getValue() instanceof br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMSUFDest) { + br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMSUFDest icmsUfDest = + (br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMSUFDest) elem.getValue(); + if (icmsUfDest.getVICMSUFDest() != null) + return new BigDecimal(icmsUfDest.getVICMSUFDest()); + } + } + return BigDecimal.ZERO; + } + + /** + * Recupera o valor do FCP (Fundo de Combate à Pobreza) do ICMS (vFCP). + *

+ * Procura o valor do FCP nas modalidades disponíveis do ICMS. + * + * @param impostos Lista de elementos JAXB do bloco de impostos do produto. + * @return Valor do FCP (vFCP) ou BigDecimal.ZERO se não houver. + */ + public static BigDecimal getVFCP(List> impostos) { + for (JAXBElement elem : impostos) { + // Verifica se o elemento é do tipo ICMS + if (elem.getValue() instanceof br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMS) { + br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMS icms = + (br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMS) elem.getValue(); + // Busca vFCP em modalidades possíveis + if (icms.getICMS00() != null && icms.getICMS00().getVFCP() != null) + return new BigDecimal(icms.getICMS00().getVFCP()); + if (icms.getICMS10() != null && icms.getICMS10().getVFCP() != null) + return new BigDecimal(icms.getICMS10().getVFCP()); + if (icms.getICMS20() != null && icms.getICMS20().getVFCP() != null) + return new BigDecimal(icms.getICMS20().getVFCP()); + if (icms.getICMS51() != null && icms.getICMS51().getVFCP() != null) + return new BigDecimal(icms.getICMS51().getVFCP()); + if (icms.getICMS90() != null && icms.getICMS90().getVFCP() != null) + return new BigDecimal(icms.getICMS90().getVFCP()); + } + } + return BigDecimal.ZERO; + } + + /** + * Recupera o valor do FCP de destino (vFCPUFDest), referente ao Fundo de Combate à Pobreza + * na partilha entre estados. + * + * @param impostos Lista de elementos JAXB do bloco de impostos do produto. + * @return Valor do FCP de destino (vFCPUFDest) ou BigDecimal.ZERO se não houver. + */ + public static BigDecimal getVFCPUFDest(List> impostos) { + for (JAXBElement elem : impostos) { + // Verifica se o elemento é do tipo ICMSUFDest + if (elem.getValue() instanceof br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMSUFDest) { + br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMSUFDest icmsUfDest = + (br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMSUFDest) elem.getValue(); + if (icmsUfDest.getVFCPUFDest() != null) + return new BigDecimal(icmsUfDest.getVFCPUFDest()); + } + } + return BigDecimal.ZERO; + } + + /** + * Recupera o valor do ICMS monofásico. + * + * @param impostos Lista de elementos JAXB do bloco de impostos do produto. + * @return Valor do ICMS Monofásico ou BigDecimal.ZERO se não houver. + * + * OBS: Este método está como placeholder, ajuste conforme o schema e uso na sua empresa. + */ + public static BigDecimal getVICMSMono(List> impostos) { + for (JAXBElement elem : impostos) { + // Verifica se o elemento é do tipo ICMS + if (elem.getValue() instanceof br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMS) { + br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMS icms = + (br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ICMS) elem.getValue(); + // Busca vICMS em cada modalidade possível no XML + if (icms.getICMS02() != null && icms.getICMS02().getVICMSMono() != null) + return new BigDecimal(icms.getICMS02().getVICMSMono()); + if (icms.getICMS15() != null && icms.getICMS15().getVICMSMono() != null) + return new BigDecimal(icms.getICMS15().getVICMSMono()); + if (icms.getICMS53() != null && icms.getICMS53().getVICMSMono() != null) + return new BigDecimal(icms.getICMS53().getVICMSMono()); + } + } + return BigDecimal.ZERO; + } + + /** + * Recupera o valor do ISSQN (vISSQN) do produto, relacionado ao serviço. + * + * @param impostos Lista de elementos JAXB do bloco de impostos do produto. + * @return Valor do ISSQN ou BigDecimal.ZERO se não houver. + */ + public static BigDecimal getVISSQN(List> impostos) { + for (JAXBElement elem : impostos) { + // Verifica se o elemento é do tipo ISSQN + if (elem.getValue() instanceof br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ISSQN) { + br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ISSQN issqn = + (br.com.swconsultoria.nfe.schema_4.enviNFe.TNFe.InfNFe.Det.Imposto.ISSQN) elem.getValue(); + if (issqn.getVISSQN() != null) + return new BigDecimal(issqn.getVISSQN()); + } + } + return BigDecimal.ZERO; + } + +} 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 779f48bf..e297cd10 100644 --- a/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java +++ b/src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java @@ -10,6 +10,7 @@ import br.com.swconsultoria.nfe.schema_4.enviNFe.TProtNFe; import lombok.extern.java.Log; import org.w3c.dom.Document; +import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.ls.DOMImplementationLS; import org.w3c.dom.ls.LSSerializer; @@ -226,4 +227,18 @@ private static String nodeToString(Node node) { serializer.getDomConfig().setParameter("xml-declaration", false); return serializer.writeToString(node); } + + public static Element objectToElement(Object objeto, Class classe) throws NfeException { + try { + Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); + JAXBContext context = JAXBContext.newInstance(classe); + Marshaller marshaller = context.createMarshaller(); + marshaller.marshal(objeto, document); + + return document.getDocumentElement(); + + } catch (Exception e) { + throw new NfeException("Erro Ao Converter Objeto em Elemento: ", e); + } + } } diff --git a/src/main/resources/jasper/nfe/danfe.jasper b/src/main/resources/jasper/nfe/danfe.jasper index ea18c075..31337840 100644 Binary files a/src/main/resources/jasper/nfe/danfe.jasper and b/src/main/resources/jasper/nfe/danfe.jasper differ diff --git a/src/main/resources/jasper/nfe/danfe.jrxml b/src/main/resources/jasper/nfe/danfe.jrxml index fc68f310..c50fe6e9 100644 --- a/src/main/resources/jasper/nfe/danfe.jrxml +++ b/src/main/resources/jasper/nfe/danfe.jrxml @@ -4,7 +4,7 @@ - +