From e61e2c1b91d5674c59c6aec4211509004cfdc56b Mon Sep 17 00:00:00 2001 From: Edivaldo Date: Mon, 27 Jul 2026 23:15:59 -0300 Subject: [PATCH 1/3] Campos da NT 2025.002-RTC v1.40 no leiaute da NF-e MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adiciona ao pacote schemas os cinco campos que a v1.40 criou e que a 4.1.1 ainda nao tinha: - Ide.cIndOp (B25d) - codigo indicador do local da operacao de fornecimento - Emit.ISUFEmit (C22) - inscricao do emitente na Suframa - TCompraGov.refDFeAnt (BB05) - chaves do documento fiscal anterior, 0-99 - TDevTrib.pDevTrib (UB24a/43a/62a) - percentual de devolucao de tributo - TCIBS.GCBS.gALCZFMCBS (UB66a) - operacoes em area incentivada com aliquota zero da CBS (tpALCZFMCBS, nProcSuframa, pAliqEfetRegCBS, vTribRegCBS) A ordem no propOrder segue a sequencia do leiaute da NT, conferida por marshal de uma NF-e de exemplo. Versao publicada como 4.1.1-evoli1 no GitHub Packages; gpg.skip por padrao, já que o fork nao vai para o Maven Central. Co-Authored-By: Claude Opus 5 --- pom.xml | 12 +- .../com/swconsultoria/nfe/schemas/TCIBS.java | 171 +++++++++++++++++- .../swconsultoria/nfe/schemas/TCompraGov.java | 32 +++- .../swconsultoria/nfe/schemas/TDevTrib.java | 31 +++- .../com/swconsultoria/nfe/schemas/TNFe.java | 57 +++++- 5 files changed, 294 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 995f905d..a161e479 100644 --- a/pom.xml +++ b/pom.xml @@ -4,11 +4,19 @@ br.com.swconsultoria java-nfe - 4.1.1 + 4.1.1-evoli1 Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe + + + github + GitHub Apache Maven Packages + https://maven.pkg.github.com/edivaldoms/Java_NFe + + + MIT License @@ -27,6 +35,8 @@ UTF-8 false + + true 1.8 1.8 1.8 diff --git a/src/main/java/br/com/swconsultoria/nfe/schemas/TCIBS.java b/src/main/java/br/com/swconsultoria/nfe/schemas/TCIBS.java index 6bf36d8b..4f0bd799 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schemas/TCIBS.java +++ b/src/main/java/br/com/swconsultoria/nfe/schemas/TCIBS.java @@ -286,14 +286,15 @@ public void setGTribCompraGov(TTribCompraGov value) { * <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="gALCZFMCBS" minOccurs="0"/> * <element name="vCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * - * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { @@ -301,6 +302,7 @@ public void setGTribCompraGov(TTribCompraGov value) { "gDif", "gDevTrib", "gRed", + "galczfmcbs", "vcbs" }) public static class GCBS { @@ -310,6 +312,8 @@ public static class GCBS { protected TDif gDif; protected TDevTrib gDevTrib; protected TRed gRed; + @XmlElement(name = "gALCZFMCBS") + protected TCIBS.GCBS.GALCZFMCBS galczfmcbs; @XmlElement(name = "vCBS", required = true) protected String vcbs; @@ -433,6 +437,169 @@ public void setVCBS(String value) { this.vcbs = value; } + /** + * Obtém o valor da propriedade galczfmcbs. + * + * @return + * possible object is + * {@link TCIBS.GCBS.GALCZFMCBS } + * + */ + public TCIBS.GCBS.GALCZFMCBS getGALCZFMCBS() { + return galczfmcbs; + } + + /** + * Define o valor da propriedade galczfmcbs. + * + * @param value + * allowed object is + * {@link TCIBS.GCBS.GALCZFMCBS } + * + */ + public void setGALCZFMCBS(TCIBS.GCBS.GALCZFMCBS value) { + this.galczfmcbs = value; + } + + + /** + * Grupo de operações em áreas incentivadas (ALC/ZFM) - CBS (alíquota zero). + * Criado pela NT 2025.002 v1.40 (UB66a), arts. 451 e 466 da LC 214/2025. + * + *

Classe Java de anonymous complex type. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence>
+         *         <element name="tpALCZFMCBS" type="{http://www.portalfiscal.inf.br/nfe}TtpALCZFMCBS"/>
+         *         <element name="nProcSuframa" minOccurs="0"/>
+         *         <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>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpALCZFMCBS", + "nProcSuframa", + "pAliqEfetRegCBS", + "vTribRegCBS" + }) + public static class GALCZFMCBS { + + @XmlElement(required = true) + protected String tpALCZFMCBS; + protected String nProcSuframa; + @XmlElement(required = true) + protected String pAliqEfetRegCBS; + @XmlElement(required = true) + protected String vTribRegCBS; + + /** + * Obtém o valor da propriedade tpALCZFMCBS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpALCZFMCBS() { + return tpALCZFMCBS; + } + + /** + * Define o valor da propriedade tpALCZFMCBS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpALCZFMCBS(String value) { + this.tpALCZFMCBS = value; + } + + /** + * Obtém o valor da propriedade nProcSuframa. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNProcSuframa() { + return nProcSuframa; + } + + /** + * Define o valor da propriedade nProcSuframa. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNProcSuframa(String value) { + this.nProcSuframa = value; + } + + /** + * Obtém o valor da propriedade pAliqEfetRegCBS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPAliqEfetRegCBS() { + return pAliqEfetRegCBS; + } + + /** + * Define o valor da propriedade pAliqEfetRegCBS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPAliqEfetRegCBS(String value) { + this.pAliqEfetRegCBS = value; + } + + /** + * Obtém o valor da propriedade vTribRegCBS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVTribRegCBS() { + return vTribRegCBS; + } + + /** + * Define o valor da propriedade vTribRegCBS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVTribRegCBS(String value) { + this.vTribRegCBS = value; + } + + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schemas/TCompraGov.java b/src/main/java/br/com/swconsultoria/nfe/schemas/TCompraGov.java index 6a5bac1b..cb37e1ae 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schemas/TCompraGov.java +++ b/src/main/java/br/com/swconsultoria/nfe/schemas/TCompraGov.java @@ -1,6 +1,8 @@ package br.com.swconsultoria.nfe.schemas; +import java.util.ArrayList; +import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; @@ -22,19 +24,21 @@ * <element name="tpEnteGov" type="{http://www.portalfiscal.inf.br/nfe}TEnteGov"/> * <element name="pRedutor" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04RTC"/> * <element name="tpOperGov" type="{http://www.portalfiscal.inf.br/nfe}TOperCompraGov"/> + * <element name="refDFeAnt" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" maxOccurs="99" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * - * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TCompraGov", propOrder = { "tpEnteGov", "pRedutor", - "tpOperGov" + "tpOperGov", + "refDFeAnt" }) public class TCompraGov { @@ -44,6 +48,7 @@ public class TCompraGov { protected String pRedutor; @XmlElement(required = true) protected String tpOperGov; + protected List refDFeAnt; /** * Obtém o valor da propriedade tpEnteGov. @@ -117,4 +122,25 @@ public void setTpOperGov(String value) { this.tpOperGov = value; } + /** + * Gets the value of the refDFeAnt 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. + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getRefDFeAnt() { + if (refDFeAnt == null) { + refDFeAnt = new ArrayList(); + } + return this.refDFeAnt; + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schemas/TDevTrib.java b/src/main/java/br/com/swconsultoria/nfe/schemas/TDevTrib.java index 2c0a816e..e40ec68a 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schemas/TDevTrib.java +++ b/src/main/java/br/com/swconsultoria/nfe/schemas/TDevTrib.java @@ -19,24 +19,51 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> + * <element name="pDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec0302a04RTC" minOccurs="0"/> * <element name="vDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDec1302RTC"/> * </sequence> * </restriction> * </complexContent> * </complexType> * - * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TDevTrib", propOrder = { + "pDevTrib", "vDevTrib" }) public class TDevTrib { + protected String pDevTrib; @XmlElement(required = true) protected String vDevTrib; + /** + * Obtém o valor da propriedade pDevTrib. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPDevTrib() { + return pDevTrib; + } + + /** + * Define o valor da propriedade pDevTrib. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPDevTrib(String value) { + this.pDevTrib = value; + } + /** * Obtém o valor da propriedade vDevTrib. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schemas/TNFe.java b/src/main/java/br/com/swconsultoria/nfe/schemas/TNFe.java index 9d8f5538..0c315fb9 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schemas/TNFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schemas/TNFe.java @@ -34502,7 +34502,8 @@ public void setTpRest(String value) { "iest", "im", "cnae", - "crt" + "crt", + "isufEmit" }) public static class Emit { @@ -34525,6 +34526,8 @@ public static class Emit { protected String cnae; @XmlElement(name = "CRT", required = true) protected String crt; + @XmlElement(name = "ISUFEmit") + protected String isufEmit; /** * Obtém o valor da propriedade cnpj. @@ -34766,6 +34769,31 @@ public void setCRT(String value) { this.crt = value; } + /** + * Obtém o valor da propriedade isufEmit. + * Inscrição do emitente na Suframa (C22, NT 2025.002 v1.40). + * + * @return + * possible object is + * {@link String } + * + */ + public String getISUFEmit() { + return isufEmit; + } + + /** + * Define o valor da propriedade isufEmit. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setISUFEmit(String value) { + this.isufEmit = value; + } + } @@ -35200,6 +35228,7 @@ public void setXLocDespacho(String value) { "indFinal", "indPres", "indIntermed", + "cIndOp", "procEmi", "verProc", "dhCont", @@ -35250,6 +35279,7 @@ public static class Ide { @XmlElement(required = true) protected String indPres; protected String indIntermed; + protected String cIndOp; @XmlElement(required = true) protected String procEmi; @XmlElement(required = true) @@ -35813,6 +35843,31 @@ public void setIndIntermed(String value) { this.indIntermed = value; } + /** + * Obtém o valor da propriedade cIndOp. + * Código indicador do local da operação de fornecimento (B25d, NT 2025.002 v1.40). + * + * @return + * possible object is + * {@link String } + * + */ + public String getCIndOp() { + return cIndOp; + } + + /** + * Define o valor da propriedade cIndOp. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCIndOp(String value) { + this.cIndOp = value; + } + /** * Obtém o valor da propriedade procEmi. * From 5e48c9d948bb39800fdeaba822b28a41cb031e06 Mon Sep 17 00:00:00 2001 From: Edivaldo Date: Tue, 28 Jul 2026 12:54:53 -0300 Subject: [PATCH 2/3] DetEvento211110 conforme o e211110_v1.00.xsd publicado em 27/07/2026 A classe seguia uma minuta anterior do evento 211110 (Solicitacao de Apropriacao de credito presumido). Confrontada com o e211110_v1.00.xsd do pacote "Schema dos eventos da NT 2025.002 v.1.40 - RTC", divergia em cinco pontos, cada um deles suficiente para a SEFAZ rejeitar o evento: - o grupo se chama gCredPresOper, nao gCredPres; - a base de calculo se chama vBCCredPres, nao vBC; - cCredPres e unico e fica no nivel do grupo, nao repetido dentro de gIBS e gCBS; - os subgrupos se chamam gIBSCredPres e gCBSCredPres; - tpAutor aceita "1" e "2" (o XSD enumera os dois). O detEvento gerado pela classe agora valida contra o XSD oficial. Co-Authored-By: Claude Opus 5 --- .../nfe/schemas_eventos/DetEvento211110.java | 512 ++++++------------ 1 file changed, 157 insertions(+), 355 deletions(-) diff --git a/src/main/java/br/com/swconsultoria/nfe/schemas_eventos/DetEvento211110.java b/src/main/java/br/com/swconsultoria/nfe/schemas_eventos/DetEvento211110.java index 0239eeb9..ed783927 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schemas_eventos/DetEvento211110.java +++ b/src/main/java/br/com/swconsultoria/nfe/schemas_eventos/DetEvento211110.java @@ -6,98 +6,41 @@ import java.util.List; /** - *

Classe Java de anonymous complex type. - * - *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. - * + * Evento 211110 - Solicitação de Apropriação de crédito presumido (NT 2025.002-RTC). + * + *

Estrutura conforme o e211110_v1.00.xsd do pacote "Schema dos eventos da NT 2025.002 v.1.40 - + * RTC", publicado em 27/07/2026: + * *

  * <complexType>
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *   <sequence>
+ *     <element name="descEvento"> (enumeration "Solicitação de Apropriação de crédito presumido")
+ *     <element name="cOrgaoAutor" type="TCodUfIBGE"/>
+ *     <element name="tpAutor"> (enumeration "1", "2")
+ *     <element name="verAplic" type="TVerAplic"/>
+ *     <element name="gCredPresOper" maxOccurs="990">
  *       <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 name="vBCCredPres" type="TDec_1302"/>
+ *         <element name="cCredPres"/>
+ *         <element name="gIBSCredPres" minOccurs="0">
+ *           <sequence>
+ *             <element name="pCredPres" type="TDec_0302_04"/>
+ *             <element name="vCredPres" type="TDec1302"/>
+ *           </sequence>
  *         </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 name="gCBSCredPres" minOccurs="0">
+ *           <sequence>
+ *             <element name="pCredPres" type="TDec_0302_04"/>
+ *             <element name="vCredPres" type="TDec1302"/>
+ *           </sequence>
  *         </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>
+ *       <attribute name="nItem" type="TnItem" use="required"/>
+ *     </element>
+ *   </sequence>
+ *   <attribute name="versao"> (enumeration "1.00")
  * </complexType>
  * 
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { @@ -105,7 +48,7 @@ "cOrgaoAutor", "tpAutor", "verAplic", - "gCredPres" + "gCredPresOper" }) @XmlRootElement(name = "detEvento") public class DetEvento211110 { @@ -119,17 +62,17 @@ public class DetEvento211110 { @XmlElement(required = true) protected String verAplic; @XmlElement(required = true) - protected List gCredPres; + protected List gCredPresOper; @XmlAttribute(name = "versao") protected String versao; /** * Obtém o valor da propriedade descEvento. - * + * * @return * possible object is * {@link String } - * + * */ public String getDescEvento() { return descEvento; @@ -137,11 +80,11 @@ public String getDescEvento() { /** * Define o valor da propriedade descEvento. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setDescEvento(String value) { this.descEvento = value; @@ -149,11 +92,11 @@ public void setDescEvento(String value) { /** * Obtém o valor da propriedade cOrgaoAutor. - * + * * @return * possible object is * {@link String } - * + * */ public String getCOrgaoAutor() { return cOrgaoAutor; @@ -161,11 +104,11 @@ public String getCOrgaoAutor() { /** * Define o valor da propriedade cOrgaoAutor. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setCOrgaoAutor(String value) { this.cOrgaoAutor = value; @@ -173,11 +116,11 @@ public void setCOrgaoAutor(String value) { /** * Obtém o valor da propriedade tpAutor. - * + * * @return * possible object is * {@link String } - * + * */ public String getTpAutor() { return tpAutor; @@ -185,11 +128,11 @@ public String getTpAutor() { /** * Define o valor da propriedade tpAutor. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setTpAutor(String value) { this.tpAutor = value; @@ -197,11 +140,11 @@ public void setTpAutor(String value) { /** * Obtém o valor da propriedade verAplic. - * + * * @return * possible object is * {@link String } - * + * */ public String getVerAplic() { return verAplic; @@ -209,52 +152,44 @@ public String getVerAplic() { /** * 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. - * + * Gets the value of the gCredPresOper 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 DetEvento211110.GCredPres } - * - * + * {@link DetEvento211110.GCredPresOper } + * + * */ - public List getGCredPres() { - if (gCredPres == null) { - gCredPres = new ArrayList(); + public List getGCredPresOper() { + if (gCredPresOper == null) { + gCredPresOper = new ArrayList(); } - return this.gCredPres; + return this.gCredPresOper; } /** * Obtém o valor da propriedade versao. - * + * * @return * possible object is * {@link String } - * + * */ public String getVersao() { return versao; @@ -262,11 +197,11 @@ public String getVersao() { /** * Define o valor da propriedade versao. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setVersao(String value) { this.versao = value; @@ -274,161 +209,132 @@ public void setVersao(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="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>
-     * 
- * - * + * Grupo de crédito presumido, por item da NF-e. + * + *

A base de cálculo e o código do crédito presumido são do grupo; o percentual e o valor + * vêm separados por tributo, em gIBSCredPres e gCBSCredPres. */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "vbc", - "gibs", - "gcbs" + "vBCCredPres", + "cCredPres", + "gIBSCredPres", + "gCBSCredPres" }) - public static class GCredPres { - - @XmlElement(name = "vBC", required = true) - protected String vbc; - @XmlElement(name = "gIBS") - protected DetEvento211110.GCredPres.GIBS gibs; - @XmlElement(name = "gCBS") - protected DetEvento211110.GCredPres.GCBS gcbs; + public static class GCredPresOper { + + @XmlElement(required = true) + protected String vBCCredPres; + @XmlElement(required = true) + protected String cCredPres; + protected DetEvento211110.GCredPresOper.GIBSCredPres gIBSCredPres; + protected DetEvento211110.GCredPresOper.GCBSCredPres gCBSCredPres; @XmlAttribute(name = "nItem", required = true) protected String nItem; /** - * Obtém o valor da propriedade vbc. - * + * Obtém o valor da propriedade vBCCredPres. + * * @return * possible object is * {@link String } - * + * */ - public String getVBC() { - return vbc; + public String getVBCCredPres() { + return vBCCredPres; } /** - * Define o valor da propriedade vbc. - * + * Define o valor da propriedade vBCCredPres. + * * @param value * allowed object is * {@link String } - * + * */ - public void setVBC(String value) { - this.vbc = value; + public void setVBCCredPres(String value) { + this.vBCCredPres = value; } /** - * Obtém o valor da propriedade gibs. - * + * Obtém o valor da propriedade cCredPres. + * * @return * possible object is - * {@link DetEvento211110.GCredPres.GIBS } - * + * {@link String } + * */ - public DetEvento211110.GCredPres.GIBS getGIBS() { - return gibs; + public String getCCredPres() { + return cCredPres; } /** - * Define o valor da propriedade gibs. - * + * Define o valor da propriedade cCredPres. + * * @param value * allowed object is - * {@link DetEvento211110.GCredPres.GIBS } - * + * {@link String } + * */ - public void setGIBS(DetEvento211110.GCredPres.GIBS value) { - this.gibs = value; + public void setCCredPres(String value) { + this.cCredPres = value; } /** - * Obtém o valor da propriedade gcbs. - * + * Obtém o valor da propriedade gIBSCredPres. + * * @return * possible object is - * {@link DetEvento211110.GCredPres.GCBS } - * + * {@link DetEvento211110.GCredPresOper.GIBSCredPres } + * */ - public DetEvento211110.GCredPres.GCBS getGCBS() { - return gcbs; + public DetEvento211110.GCredPresOper.GIBSCredPres getGIBSCredPres() { + return gIBSCredPres; } /** - * Define o valor da propriedade gcbs. - * + * Define o valor da propriedade gIBSCredPres. + * * @param value * allowed object is - * {@link DetEvento211110.GCredPres.GCBS } - * + * {@link DetEvento211110.GCredPresOper.GIBSCredPres } + * + */ + public void setGIBSCredPres(DetEvento211110.GCredPresOper.GIBSCredPres value) { + this.gIBSCredPres = value; + } + + /** + * Obtém o valor da propriedade gCBSCredPres. + * + * @return + * possible object is + * {@link DetEvento211110.GCredPresOper.GCBSCredPres } + * */ - public void setGCBS(DetEvento211110.GCredPres.GCBS value) { - this.gcbs = value; + public DetEvento211110.GCredPresOper.GCBSCredPres getGCBSCredPres() { + return gCBSCredPres; + } + + /** + * Define o valor da propriedade gCBSCredPres. + * + * @param value + * allowed object is + * {@link DetEvento211110.GCredPresOper.GCBSCredPres } + * + */ + public void setGCBSCredPres(DetEvento211110.GCredPresOper.GCBSCredPres value) { + this.gCBSCredPres = value; } /** * Obtém o valor da propriedade nItem. - * + * * @return * possible object is * {@link String } - * + * */ public String getNItem() { return nItem; @@ -436,11 +342,11 @@ public String getNItem() { /** * Define o valor da propriedade nItem. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setNItem(String value) { this.nItem = value; @@ -448,79 +354,27 @@ public void setNItem(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="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>
-         * 
- * - * + * Crédito presumido do IBS. */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "cCredPres", "pCredPres", "vCredPres" }) - public static class GCBS { + public static class GIBSCredPres { - @XmlElement(required = true) - protected String cCredPres; @XmlElement(required = true) protected String pCredPres; @XmlElement(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; @@ -528,11 +382,11 @@ public String getPCredPres() { /** * Define o valor da propriedade pCredPres. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setPCredPres(String value) { this.pCredPres = value; @@ -540,11 +394,11 @@ public void setPCredPres(String value) { /** * Obtém o valor da propriedade vCredPres. - * + * * @return * possible object is * {@link String } - * + * */ public String getVCredPres() { return vCredPres; @@ -552,11 +406,11 @@ public String getVCredPres() { /** * Define o valor da propriedade vCredPres. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setVCredPres(String value) { this.vCredPres = value; @@ -566,79 +420,27 @@ public void setVCredPres(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="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>
-         * 
- * - * + * Crédito presumido da CBS. */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "cCredPres", "pCredPres", "vCredPres" }) - public static class GIBS { + public static class GCBSCredPres { - @XmlElement(required = true) - protected String cCredPres; @XmlElement(required = true) protected String pCredPres; @XmlElement(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; @@ -646,11 +448,11 @@ public String getPCredPres() { /** * Define o valor da propriedade pCredPres. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setPCredPres(String value) { this.pCredPres = value; @@ -658,11 +460,11 @@ public void setPCredPres(String value) { /** * Obtém o valor da propriedade vCredPres. - * + * * @return * possible object is * {@link String } - * + * */ public String getVCredPres() { return vCredPres; @@ -670,11 +472,11 @@ public String getVCredPres() { /** * Define o valor da propriedade vCredPres. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setVCredPres(String value) { this.vCredPres = value; From bbd497a82dae52c22435687a3444372650dde7e0 Mon Sep 17 00:00:00 2001 From: Edivaldo Date: Tue, 28 Jul 2026 13:01:09 -0300 Subject: [PATCH 3/3] Versionamento 4.1.2-SNAPSHOT --- pom.xml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index a161e479..537a3572 100644 --- a/pom.xml +++ b/pom.xml @@ -4,19 +4,11 @@ br.com.swconsultoria java-nfe - 4.1.1-evoli1 + 4.1.2-SNAPSHOT Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe - - - github - GitHub Apache Maven Packages - https://maven.pkg.github.com/edivaldoms/Java_NFe - - - MIT License @@ -35,8 +27,6 @@ UTF-8 false - - true 1.8 1.8 1.8